https://github.com/one-com/express-validate-ip
Validate the request IP against a whitelist
https://github.com/one-com/express-validate-ip
Last synced: about 1 year ago
JSON representation
Validate the request IP against a whitelist
- Host: GitHub
- URL: https://github.com/one-com/express-validate-ip
- Owner: One-com
- License: mit
- Created: 2016-05-31T09:30:16.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-02-24T15:18:06.000Z (over 5 years ago)
- Last Synced: 2025-03-07T14:38:53.897Z (over 1 year ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 0
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# express-validate-ip
## installation
```
$ npm install express-validate-ip
```
## Usage
```js
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