Only allow requests from a given list of IP addresses.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
README.md
index.js
package.json

README.md

#connect-whitelist

Only allow requests from a given list of IP addresses.

Example

var express = require('express');
var app = express();
// ...
app.use(require('connect-whitelist')(["127.0.0.1"]));
app.listen(8080);