Home

Awesome

express-brute-redis

Build Status NPM version

A Redis store for express-brute

Installation

via npm:

  $ npm install express-brute-redis

Usage

var ExpressBrute = require('express-brute'),
	RedisStore = require('express-brute-redis');

var store = new RedisStore({
	host: '127.0.0.1',
	port: 6379
});
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

For details see node-redis.