IP2Proxy LITE IP-COUNTRY Database

IP2Proxy LITE IP-COUNTRY Database contains IP addresses which are used as VPN anonymizer, open proxies, web proxies and Tor exits. The database includes records of country for all public IPv4 addresses.

Anonymous proxy servers are intermediate servers meant to hide the real identity or IP address of the requestor. Studies found that a large number of anonymous proxy users are generally responsible for online credit card fraud, forums and blogs spamming.

IP2Proxy database is based on a proprietary detection algorithm in parallel with evaluation of anonymous open proxy servers which are actively in use. Then it generates an up-to-date list of anonymous proxy IP address in the download area every 24 hours. Web developers can automate the download process once a day from our server and import the anonymous IP address list into server using download scripts. If you prefer a hosted service, you can get the IP2Proxy™ Web Service.

The LITE edition is a free version of database that is limited to public proxies (PUB) IP address. It is free for personal or commercial use with attribution required by mentioning the use of this data as follows,

This site or product includes IP2Location LITE data available from <a href="http://lite.ip2location.com">http://lite.ip2location.com</a>.

Please get the commercial edition if you are looking for complete proxy data including public proxies, web proxies, Tor, VPN and etcs.

Downloads

IPv4 CSV IPv4 BIN

Product Features
Features Contain which are used as VPN anonymizer, open proxies, web proxies and Tor exits. The record consists of country.
Current Version February 2017
Database Size 1.04 MB (67,795 Rows)
Database Format ASCII Text File (Comma Delimited) & Binary (BIN)
Database Fields
Name Type Description
ip_from INT (10) First IP address in netblock.
ip_to INT (10) Last IP address in netblock.
country_code CHAR(2) Two-character country code based on ISO 3166.
country_name VARCHAR(64) Country name based on ISO 3166.
Proxy Type
Proxy Type Description Anonymity
VPN Anonymizing VPN services. These services offer users a publicly accessible VPN for the purpose of hiding their IP address. High
TOR Tor Exit Nodes. The Tor Project is an open network used by those who wish to maintain anonymity. High
DCH Hosting Provider, Data Center or Content Delivery Network. Since hosting providers and data centers can serve to provide anonymity, the Anonymous IP database flags IP addresses associated with them. Low
PUB* Public Proxies. These are services which make connection requests on a user's behalf. Proxy server software can be configured by the administrator to listen on some specified port. These differ from VPNs in that the proxies usually have limited functions compare to VPNs. High
WEB Web Proxies. These are web services which make web requests on a user's behalf. These differ from VPNs or Public Proxies in that they are simple web-based proxies rather than operating at the IP address and other ports level. High
* Note: the LITE database is limited to public proxies (PUB) IP address. Please get the commercial edition if you are looking for complete proxy data, including VPN, Tor, etcs.
Database Setup

Below are the steps to set up the database for both IPv4 and IPv6 data.

Create table

CREATE DATABASE ip2proxy;
USE ip2proxy;
CREATE TABLE `ip2proxy_px1`(
	`ip_from` INT(10) UNSIGNED,
	`ip_to` INT(10) UNSIGNED,
	`country_code` CHAR(2),
	`country_name` VARCHAR(64),

	PRIMARY KEY (`ip_from`, `ip_to`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

Import the database

LOAD DATA LOCAL
	INFILE 'IP2PROXY-IP-COUNTRY.CSV'
INTO TABLE
	`ip2proxy_px1`
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n';

Create table

CREATE DATABASE ip2proxy
GO

USE ip2proxy
GO

CREATE TABLE [ip2proxy].[dbo].[ip2proxy_px1](
	[ip_from] bigint NOT NULL,
	[ip_to] bigint NOT NULL,
	[country_code] nvarchar(2) NOT NULL,
	[country_name] nvarchar(64) NOT NULL,
) ON [PRIMARY]
GO

CREATE CLUSTERED INDEX [ip_to] ON [ip2proxy].[dbo].[ip2proxy_px1]([ip_from], [ip_to]) ON [PRIMARY]
GO

Import the database

BULK INSERT [ip2location].[dbo].[ip2proxy_px1]
    FROM 'C:\[path to your CSV file]\IP2PROXY-IP-COUNTRY.CSV'
    WITH
    (
        FORMATFILE = 'C:\[path to your PX1.FMT file]\PX1.FMT'
    )
GO
PX1.FMT

NOTE: You will need to copy the FMT code below and save it as a file named DB1.FMT on your computer. The first line of the FMT code indicates the version of bcp. Please change the version as according to your MS-SQL installed.

SQL Server 201612.0
SQL Server 201412.0
SQL Server 201211.0
SQL Server 2008/2008R210.0
SQL Server 20059.0
SQL Server 20008.0
SQL Server 7.07.0
SQL Server 6.56.5

10.0
5
1 SQLCHAR 0 1 "\"" 0 first_double_quote  Latin1_General_CI_AI
2 SQLCHAR 0 20 "\",\"" 1 ip_from ""
3 SQLCHAR 0 20 "\",\"" 2 ip_to ""
4 SQLCHAR 0 2 "\",\"" 3 country_code Latin1_General_CI_AI
5 SQLCHAR 0 64 "\"\n" 4 country_name Latin1_General_CI_AI

Create table

CREATE DATABASE ip2proxy WITH ENCODING 'UTF8';
\c ip2proxy
CREATE TABLE ip2proxy_px1(
	ip_from integer(10) NOT NULL,
	ip_to integer(10) NOT NULL,
	country_code character(2) NOT NULL,
	country_name character varying(64) NOT NULL,
	CONSTRAINT ip2proxy_px1_pkey PRIMARY KEY (ip_from, ip_to)
);

Import the database

COPY ip2proxy_px1 FROM 'IP2PROXY-IP-COUNTRY.CSV' WITH CSV QUOTE AS '"';
Library for IP2Location BIN Database

Please visit IP2Location Developers to download the library/module for IP2Proxy BIN database reading.

Commercial Edition Upgrade

Ready to upgrade to our commercial edition for complete proxy data?

  1. Login to account area.
  2. Click on the Upgrade button (on the right of the package listing).
  3. You will be redirected to http://www.ip2location.com to complete your order.
  4. You will receive your download instructions once payment is completed.

License Agreement: General Terms and Conditions for the database licensing.