ip-blacklist
Basic middleware for blacklisting ip addresses
Usage
Install and save the package to your project npm i --save ip-blacklist
const ipBlacklist = path = ; // Use the predefined array callback// NOTE: Changes in the array you pass to ipBlacklist.array will not be considered!app; // Use the predefined file callback// NOTE: One line in the file represents an IP addressapp; // Create your own callbackapp; // Chain multiple callbacksapp;
More advanced usage
const ipBlacklist = ; let blacklist = ; app;app;app;