ip2location facebbook  ip2location twitter  ip2location google+ ip2location github

IP2Proxy Perl Module

This Perl module supports all IP2Proxy™ BIN database products to query proxy IP address and its country, region, city, ISP name and proxy types. It has been optimized for speed and memory utilization.

Download Download  

 

Installation
ZIP Installation
  1. Download IP2Proxy Perl module Geo-IP2Proxy-[version].tar.gz
  2. Decompress the module
    tar -xvfz Geo-IP2Proxy-x.x.x.tar.gz
  3. Install Geo::IP2Proxy module.
    perl Makefile.PL
    make
    make test
    make install
    						
  4. Sign up and download IP2Proxy LITE database.

 

Sample Codes
use Geo::IP2Proxy;
my $obj = Geo::IP2Proxy->open("IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP.BIN");

my $packageversion = $obj->getPackageVersion();
my $dbversion = $obj->getDatabaseVersion();
my $moduleversion = $obj->getModuleVersion();
my $countryshort = $obj->getCountryShort("1.2.3.4");
my $countrylong = $obj->getCountryLong("1.2.3.4");
my $region = $obj->getRegion("1.2.3.4");
my $city = $obj->getCity("1.2.3.4");
my $proxytype = $obj->getProxyType("1.2.3.4");
my $isproxy = $obj->isProxy("1.2.3.4");

($isproxy, $proxytype, $coshort, $colong, $region, $city, $isp) = $obj->getAll("1.2.3.4");
($isproxy, $proxytype, $coshort, $colong, $region, $city, $isp) = $obj->getAll("2001:0000:0000:0000:0000:0000:0000:0000");

$obj->close();
		

 

IP2Proxy LITE BIN Database

Developers may subscribe the free IP2Proxy LITE BIN database for testing and evaluation purpose. Please take note that the LITE database is limited to public proxies (PUB) IP address. Commercial databases consist of other proxy types such as Tor, VPN and etcs.