C Library
PHP Module
Perl Module
Ruby Library
Python Library
.NET Component
Java Component
Apache Module
Nginx Module
Node.js Module
HTTP Module
Go Package
D Library
Lua Package
OpenResty Package
Splunk Add-on
Erlang Module
Haskell Package
Kotlin Module
Scala Library
Apache Kafka Transform
Deno Module
R Package
IP2Proxy Nginx Module
This Nginx module supports all IP2Proxy™ BIN database products to query an IP address if it is being used as virtual private networks (VPN), open proxies, web proxies, Tor exits, data center & web hosting ranges (DCH), search engine robots (SES), residential proxies (RES), consumer privacy networks (CPN), and enterprise private networks (EPN). It has been optimized for speed and memory utilization.
- Download IP2Proxy C library from https://github.com/ip2location/ip2proxy-c.
- Compile and install IP2Proxy C library.
-
Download IP2Proxy module and decompress the package.
wget https://github.com/ip2location/ip2proxy-nginx/archive/master.zip unzip master.zip rm master.zip
-
Download the latest Nginx source code from https://nginx.org/en/download.html
wget https://nginx.org/download/nginx-x.y.z.tar.gz
-
Decompress and go into Nginx source directory.
tar xvfz nginx-x.y.z.tar.gz cd nginx-x.y.z
-
Re-compile Nginx from source to include this module.
Static Module
./configure --add-module=/absolute/path/to/nginx-ip2proxy-master make make install
./configure --add-dynamic-module=/absolute/path/to/nginx-ip2proxy-master make make install
-
Edit your Nginx config file (nginx.conf), add the following lines under http context:
http { ... ip2proxy_database /usr/share/ip2location/PX3.BIN; ip2proxy_proxy_recursive on; ip2proxy_proxy 192.168.1.0/24; }
Please refer to https://github.com/ip2location/ip2proxy-nginx for up-to-update instructions and example.
Sample Packages - BIN File | IPv4 + IPv6 |
---|---|
IP2Proxy PX1 | Download (20.69 MB) |
IP2Proxy PX2 | Download (23.17 MB) |
IP2Proxy PX3 | Download (27.55 MB) |
IP2Proxy PX4 | Download (32.29 MB) |
IP2Proxy PX5 | Download (33.72 MB) |
IP2Proxy PX6 | Download (34.01 MB) |
IP2Proxy PX7 | Download (36.69 MB) |
IP2Proxy PX8 | Download (37.84 MB) |
IP2Proxy PX9 | Download (37.69 MB) |
IP2Proxy PX10 | Download (45.43 MB) |
IP2Proxy PX11 | Download (46.34 MB) |
Discover Your User Locations
Retrieve geolocation data for FREE now!