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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.4.0
    3
    • latest

Version History

Package Sidebar

Install

npm i filter-by-ip

Weekly Downloads

6

Version

0.4.0

License

none

Last publish

Collaborators

  • edumanskiy