Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 232 Bytes

README.md

File metadata and controls

14 lines (10 loc) · 232 Bytes

#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);