Awesome
express-brute-memcached
A memcached store for express-brute
Installation
via npm:
$ npm install express-brute-memcached
Usage
var ExpressBrute = require('express-brute'),
MemcachedStore = require('express-brute-memcached');
var store = new MemcachedStore('127.0.0.1:11211');
var bruteforce = new ExpressBrute(store);
app.post('/auth',
bruteforce.prevent, // error 403 if we hit this route too often
function (req, res, next) {
res.send('Success!');
}
);
Options
hosts
Memcached servers locations, can by string, array, or hash.options
prefix
An optional prefix for each memcache key, in case you are sharing your memcached servers with something generating its own keys.- ... The rest of the options will be passed directly to the node-memcached constructor.
For details see node-memcached.