All Projects → ip2location → ip2proxy-nodejs

ip2location / ip2proxy-nodejs

Licence: MIT license
IP2Proxy Node.js module allows users to query an IP address to determine if it was being used as open proxy, web proxy, VPN anonymizer and TOR exits.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ip2proxy-nodejs

ip2proxy-java
IP2Proxy Java Component.It can be used to find the IP addresses which are used as VPN anonymizer, open proxies, web proxies and Tor exits.
Stars: ✭ 16 (-54.29%)
Mutual labels:  tor, vpn, ip2proxy, anonymous-proxy, proxy-database
ip2proxy-python
Python library for IP2Proxy database lookup. It can be used to find the IP addresses which are used as VPN anonymizer, open proxies, web proxies and Tor exits.
Stars: ✭ 19 (-45.71%)
Mutual labels:  tor, vpn, anonymous-proxy, proxy-database
ip2proxy-php
PHP module for IP2Proxy database lookup. It allows user to query an IP address if it was being used as open proxy, web proxy, VPN anonymizer and TOR exits.
Stars: ✭ 49 (+40%)
Mutual labels:  ip2proxy, anonymous-proxy, proxy-database
ruantiblock
Использование tor или VPN для доступа к заблокированным сайтам
Stars: ✭ 20 (-42.86%)
Mutual labels:  tor, vpn
darknet.py
darknet.py is a network application with no dependencies other than Python and Tor, useful to anonymize the traffic of linux servers and workstations.
Stars: ✭ 71 (+102.86%)
Mutual labels:  tor, anonymous-proxy
Icepa
iOS system-wide VPN based Tor client
Stars: ✭ 519 (+1382.86%)
Mutual labels:  tor, vpn
Streisand
Streisand sets up a new server running your choice of WireGuard, OpenConnect, OpenSSH, OpenVPN, Shadowsocks, sslh, Stunnel, or a Tor bridge. It also generates custom instructions for all of these services. At the end of the run you are given an HTML file with instructions that can be shared with friends, family members, and fellow activists.
Stars: ✭ 22,605 (+64485.71%)
Mutual labels:  tor, vpn
Awesome Privacy
💡Limiting personal data leaks on the internet
Stars: ✭ 488 (+1294.29%)
Mutual labels:  tor, vpn
auto-change-tor-ip
Automatically change tor ip address over time when accessing the internet. Make it private and safe for you
Stars: ✭ 29 (-17.14%)
Mutual labels:  tor, vpn
onionfruit
OnionFruit™ Connect - Tor access client with country selection, bridge configuration, pluggable transports and experimental DNS support
Stars: ✭ 150 (+328.57%)
Mutual labels:  tor, vpn
Cloak
A censorship circumvention tool to evade detection against state adversaries
Stars: ✭ 942 (+2591.43%)
Mutual labels:  tor, vpn
woodpecker
Custom security distro for remote penetration testing
Stars: ✭ 45 (+28.57%)
Mutual labels:  tor, vpn
autovpn2
OpenVPN VPN Gate Client for Linux, connects you to a random Free VPN in a country of your choice by country code.
Stars: ✭ 30 (-14.29%)
Mutual labels:  vpn, anonymous-proxy
ezpptp
Easy PPTP VPN setup script for Debian based VPS
Stars: ✭ 87 (+148.57%)
Mutual labels:  vpn
torchestrator
Spin up Tor containers and then proxy HTTP requests via these Tor instances
Stars: ✭ 32 (-8.57%)
Mutual labels:  tor
client-library-apple
Private Internet Access - Client library for Apple platforms
Stars: ✭ 26 (-25.71%)
Mutual labels:  vpn
oniontree
A repository of Tor hidden services.
Stars: ✭ 45 (+28.57%)
Mutual labels:  tor
internetarchivebot
iabot.toolforge.org
Stars: ✭ 67 (+91.43%)
Mutual labels:  tor
Skeleton
Skeleton is a Social Engineering tool attack switcher
Stars: ✭ 44 (+25.71%)
Mutual labels:  vpn
docker-tor
TOR Server Docker image
Stars: ✭ 32 (-8.57%)
Mutual labels:  tor

npm npm

IP2Proxy Node.js Module

This module allows user to query an IP address if it was being used as VPN anonymizer, open proxies, web proxies, Tor exits, data center, web hosting (DCH) range, search engine robots (SES) and residential (RES). It lookup the proxy IP address from IP2Proxy BIN Data file. This data file can be downloaded at

As an alternative, this module can also call the IP2Proxy Web Service. This requires an API key. If you don't have an existing API key, you can subscribe for one at the below:

https://www.ip2location.com/web-service/ip2proxy

Installation

To install this module type the following:

npm install ip2proxy-nodejs

QUERY USING THE BIN FILE

Methods

Below are the methods supported in this class.

Method Name Description
open Open the IP2Proxy BIN data for lookup.
close Close and clean up the file pointer.
getPackageVersion Get the package version (1 to 11 for PX1 to PX11 respectively).
getModuleVersion Get the module version.
getDatabaseVersion Get the database version.
isProxy Check whether if an IP address was a proxy. Returned value:
  • -1 : errors
  • 0 : not a proxy
  • 1 : a proxy
  • 2 : a data center IP address or search engine robot
getAll Return the proxy information in an object.
getProxyType Return the proxy type. Please visit IP2Location for the list of proxy types supported
getCountryShort Return the ISO3166-1 country code (2-digits) of the proxy.
getCountryLong Return the ISO3166-1 country name of the proxy.
getRegion Return the ISO3166-2 region name of the proxy. Please visit ISO3166-2 Subdivision Code for the information of ISO3166-2 supported
getCity Return the city name of the proxy.
getISP Return the ISP name of the proxy.
getDomain Return the domain name of the proxy.
getUsageType Return the usage type classification of the proxy. Please visit IP2Location for the list of usage types supported.
getASN Return the autonomous system number of the proxy.
getAS Return the autonomous system name of the proxy.
getLastSeen Return the number of days that the proxy was last seen.
getThreat Return the threat type of the proxy.
getProvider Return the provider of the proxy.

Usage

const {IP2Proxy} = require("ip2proxy-nodejs");

let ip2proxy = new IP2Proxy();

if (ip2proxy.open("./IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP-DOMAIN-USAGETYPE-ASN-LASTSEEN-THREAT-RESIDENTIAL-PROVIDER.BIN") == 0) {
	ip = '199.83.103.79';
	
	console.log("GetModuleVersion: " + ip2proxy.getModuleVersion());
	console.log("GetPackageVersion: " + ip2proxy.getPackageVersion());
	console.log("GetDatabaseVersion: " + ip2proxy.getDatabaseVersion());
	
	// functions for individual fields
	console.log("isProxy: " + ip2proxy.isProxy(ip));
	console.log("ProxyType: " + ip2proxy.getProxyType(ip));
	console.log("CountryShort: " + ip2proxy.getCountryShort(ip));
	console.log("CountryLong: " + ip2proxy.getCountryLong(ip));
	console.log("Region: " + ip2proxy.getRegion(ip));
	console.log("City: " + ip2proxy.getCity(ip));
	console.log("ISP: " + ip2proxy.getISP(ip));
	console.log("Domain: " + ip2proxy.getDomain(ip));
	console.log("UsageType: " + ip2proxy.getUsageType(ip));
	console.log("ASN: " + ip2proxy.getASN(ip));
	console.log("AS: " + ip2proxy.getAS(ip));
	console.log("LastSeen: " + ip2proxy.getLastSeen(ip));
	console.log("Threat: " + ip2proxy.getThreat(ip));
	console.log("Provider: " + ip2proxy.getProvider(ip));
	
	// function for all fields
	let all = ip2proxy.getAll(ip);
	console.log("isProxy: " + all.isProxy);
	console.log("proxyType: " + all.proxyType);
	console.log("countryShort: " + all.countryShort);
	console.log("countryLong: " + all.countryLong);
	console.log("region: " + all.region);
	console.log("city: " + all.city);
	console.log("isp: " + all.isp);
	console.log("domain: " + all.domain);
	console.log("usagetype: " + all.usageType);
	console.log("asn: " + all.asn);
	console.log("as: " + all.as);
	console.log("lastSeen: " + all.lastSeen);
	console.log("threat: " + all.threat);
	console.log("provider: " + all.provider);
}
else {
	console.log("Error reading BIN file.");
}
ip2proxy.close();

QUERY USING THE IP2PROXY PROXY DETECTION WEB SERVICE

Methods

Below are the methods supported in this class.

Method Name Description
open(apiKey, apiPackage, useSSL = true) Expects 2 or 3 input parameters:
  1. IP2Proxy API Key.
  2. Package (PX1 - PX11)
  3. Use HTTPS or HTTP
lookup(myIP, callback) Query IP address. This method returns an object containing the proxy info.
  • countryCode
  • countryName
  • regionName
  • cityName
  • isp
  • domain
  • usageType
  • asn
  • as
  • lastSeen
  • threat
  • proxyType
  • isProxy
  • provider
    getCredit(callback) This method returns the web service credit balance in an object.

    Usage

    const {IP2ProxyWebService} = require("ip2proxy-nodejs");
    
    let ws = new IP2ProxyWebService();
    
    let ip = "8.8.8.8";
    let apiKey = "YOUR_API_KEY";
    let apiPackage = "PX11";
    let useSSL = true;
    
    ws.open(apiKey, apiPackage, useSSL);
    
    ws.lookup(ip, (err, data) => {
    	if (!err) {
    		console.log(data);
    		
    		ws.getCredit((err, data) => {
    			if (!err) {
    				console.log(data);
    			}
    		});
    	}
    });

    Proxy Type

    Proxy Type Description
    VPN Anonymizing VPN services
    TOR Tor Exit Nodes
    PUB Public Proxies
    WEB Web Proxies
    DCH Hosting Providers/Data Center
    SES Search Engine Robots
    RES Residential Proxies [PX10+]

    Usage Type

    Usage Type Description
    COM Commercial
    ORG Organization
    GOV Government
    MIL Military
    EDU University/College/School
    LIB Library
    CDN Content Delivery Network
    ISP Fixed Line ISP
    MOB Mobile ISP
    DCH Data Center/Web Hosting/Transit
    SES Search Engine Spider
    RSV Reserved

    Threat Type

    Threat Type Description
    SPAM Spammer
    SCANNER Security Scanner or Attack
    BOTNET Spyware or Malware
    Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].