express-ip-access
v1.0.5
Published
``` npm i express-ip-access ```
Downloads
8
Readme
Install
npm i express-ip-access
Import
const ipAccess = require('express-ip-access')
Usage
let options = {
allow:['127.0.0.1','192.168.0.5'],
status:401,
message:'This ip is not allowed to acccess the resource.'
}
app.use(ipAccess(options))