filter-by-ip

0.4.0 • Public • Published

Filter by IP

Connect middleware for IP Filtering

Installation

first:

npm install filter-by-ip

then:

npm install filter-by-ip-file

or:

npm install filter-by-ip-mongo

(or any other config provider)

Usage

require('http').createServer(
    require('connect')()
        .use(require('filter-by-ip')('filter-by-ip-file'))
        .use(function(req, res){
            res.end('hello world\n');
        })
).listen(3000);

More Information

See Config

Package Sidebar

Install

npm i filter-by-ip

Weekly Downloads

2

Version

0.4.0

License

none

Last publish

Collaborators

  • edumanskiy