0.2.0 • Published 10 years ago
filter-by-ip-mongo v0.2.0
Filter by IP
MongoDB configuration for 'filter-by-ip'
Installation
first:
npm install filter-by-ip
then:
npm install filter-by-ip-mongo
Usage
require('mongoose').connect('mongodb://localhost/banned_ip_cfg');
require('http').createServer(
require('connect')()
.use(require('filter-by-ip')('filter-by-ip-mongo'))
.use(function(req, res){
res.end('hello world\n');
})
).listen(3000);
More Information
See Config