node-express-ip-blacklist is a cache-based, automatic, IP blacklist for use with
expressJS. It caches a store of IP addresses used to make bad requests and then temporarily blocks requests from those sources once a threshold of bad requests has been exceeded. In this way it is possible to limit access of bad actors to any system.
npm install @dealerslink/node-express-ip-blacklist
const IPBlacklist = require('@dealerslink/node-express-ip-blacklist'); ipBlacklist = new IPBlacklist('blacklist');
See wiki for more details.