express-validate-ip
v2.1.0
Published
Validate the request IP against a whitelist
Downloads
10,311
Readme
express-validate-ip
installation
$ npm install express-validate-ip
Usage
const express = require('express');
const expressValidateIp = require('express-validate-ip');
const allowList = [
'127.0.0.1',
'10.0.0.0/16'
];
const app = express();
app.use(expressValidateIp(allowList));
// ...
License
MIT