Skip to content

wraithgar/ipcarefully

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IP Carefully

Creates HTTP or HTTPS agents for node.js that can filter based on IP. Accepts whitelists or blacklists.

const Https = require(https);
const IPCarefully = require('ipcarefully');
const agent = IPCarefully.https({ type: 'blacklist', iplist: ['127.0.0.1'], agent: { maxSockets: 5 });


Https.request({host: 'localhost', agent }); //Socket will error out before connecting

About

Creates HTTP or HTTPS agents for node.js that can filter based on IP.

Resources

Stars

Watchers

Forks

Packages

No packages published