Skip to content

One-com/express-validate-ip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Validate the request IP against a whitelist

Resources

License

Stars

Watchers

Forks

Packages

No packages published