filter-by-ip-mongo

0.2.0 • Public • Published

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

Package Sidebar

Install

npm i filter-by-ip-mongo

Weekly Downloads

1

Version

0.2.0

License

none

Last publish

Collaborators

  • edumanskiy