• Your shopping cart is empty!

IP2Proxy Nginx Module

This Nginx module supports all IP2Proxy™ BIN database products to query an IP address if it is being used as VPN anonymizer, open proxies, web proxies, Tor exits, data center & web hosting range (DCH), search engine robots (SES) and residential proxy (RES). It has been optimized for speed and memory utilization.

Installation
  1. Download IP2Proxy C library from https://github.com/ip2location/ip2proxy-c.
  2. Compile and install IP2Proxy C library.
  3. Download IP2Proxy module and decompress the package.
    wget https://github.com/ip2location/ip2proxy-nginx/archive/master.zip
    unzip master.zip
    rm master.zip
  4. Download the latest Nginx source code from https://nginx.org/en/download.html
    wget https://nginx.org/download/nginx-x.y.z.tar.gz
  5. Decompress and go into Nginx source directory.
    tar xvfz nginx-x.y.z.tar.gz
    cd nginx-x.y.z
  6. Re-compile Nginx from source to include this module.

    Static Module
    ./configure --add-module=/absolute/path/to/nginx-ip2proxy-master
    make
    make install
    Dynamic Module
    ./configure --add-dynamic-module=/absolute/path/to/nginx-ip2proxy-master
    make
    make install
  7. 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 IP2Proxy Databases (BIN)
Sample Packages IPv4 + IPv6
IP2Proxy PX1 Sample BIN File Download (29.42 MB)
IP2Proxy PX2 Sample BIN File Download (32.33 MB)
IP2Proxy PX3 Sample BIN File Download (38.40 MB)
IP2Proxy PX4 Sample BIN File Download (46.01 MB)
IP2Proxy PX5 Sample BIN File Download (48.17 MB)
IP2Proxy PX6 Sample BIN File Download (49.12 MB)
IP2Proxy PX7 Sample BIN File Download (52.22 MB)
IP2Proxy PX8 Sample BIN File Download (53.45 MB)
IP2Proxy PX9 Sample BIN File Download (53.84 MB)
IP2Proxy PX10 Sample BIN File Download (61.45 MB)