NodeJS Express middleware that rejects incoming traffic from a pre-defined source (blacklist file)
$ npm install express-blacklist
Setting up your express server with express-blacklist support
var blacklist = ;app;
blacklist.txt should look like this (list of IP addresses):
192.168.1.200 192.168.17.193 192.168.65.76 192.168.232.89
You might want to do this if you want to detect and reject malicious traffic on your site, when an attacker tries to find XSS or Path traversal security issues on your site.
var expressDefend = ;var blacklist = ;app;app;