Syntax: ip2location_proxy_recursive on|offĭescription: Enable recursive search in the x-forwarded-for headers. Syntax: ip2location_access_type file_io|shared_memory|cache_memoryĭescription: Set the method used for lookup.ĭescription: Set a list of proxies to translate x-forwarded-for headers for. Database bin file: Releases Or download the zip file in the warehouse and decompress it by yourself. Based on project statistics from the GitHub repository for the PyPI package ip2c, we found that it has been starred 2 times. As such, we scored ip2c popularity level to be Limited. Example: Download The update cycle of database bin file is once a month. The PyPI package ip2c receives a total of 29 downloads a week. 可选参数 ip2location_access_type file_io|shared_memory|cache_memoryĭescription: Enable or disable IP2LOCATION Nginx module.ĭescription: The absolute path to IP2LOCATION BIN database. IP2Location for Java The repository code is based on ip2location repository. #ip2location_database /usr/share/ip2location/IP-COUNTRY-REGION-CITY-LATITUDE-LONGITUDE-ZIPCODE-ISP-DOMAIN.BIN Ip2location_database /usr/share/ip2location/IP2LOCATION-LITE-DB1.BIN The IP2Location database has over 99. # Add following lines under `http` context: The IP2Location is supporting 249 countries as recognized in ISO 3166. You need to configure Nginx to use IP2LOCATION module. # Download and decompress the latest IP2Location LITE database. Sign up an account for login and password. # Create new directory for IP2Location database. Free database is less accurate comparing to commercial database. IP2Location offers 5 free LITE databases and 24 commercial IP geolocation databases. # libIP2Location.so.1()(64bit) is needed by nginx-garena-1.16.1-0.noarch configure -add-module=./ip2location-nginx #include "/root/ip2location/IP2Location-C-Library-master/libIP2Location/IP2Location.h" # IP2Location library in "ngx_http_ip2location_module.c" Sudo apt-get install wget git build-essential zlib1g-dev libpcre3 libpcre3-dev libtool autoconf automake Sudo yum install wget git gcc-c++ pcre-devel zlib-devel make libtool autoconf automake # These are for RedHat, CentOS, and Fedora. Ip2location_database /absolute/path/to/IP2LOCATION-DB1.BIN configure -add-module=/absolute/path/to/nginx-ip2location-8.0.0Įdit your Nginx config file to point the correct path of IP2Location database file: IP2Location Download Client Automate Database Download This is a command line script to download IP2Location database from the server. Add the below directive into the compile of Nginx: Re-compile Nginx from source to include this module. Developers can use the API to query all IP2Location™ binary databases for IPv4 and IPv6 address.ĭownload IP2location C library from here.ĭownload and decompress this Nginx module package.Ĭhange the path to IP2Location library in “ngx_http_ip2location_module.c”. It has been optimized for speed and memory utilization. IP2Location C library enables the user to find the country, region, city, coordinates, ZIP code, time zone, ISP, domain name, connection type, area code, weather, MCC, MNC, mobile brand name, elevation and usage type that any IP address or hostname originates from. In general, it is faster, easier and more accurate than reverse DNS lookups. This is an IP2Location Nginx Module that enables the user to identify the country code and country name by IP address. Geo IP solution to identify country, region, city, latitude & longitude, ZIP code, time zone, connection speed, ISP, domain name, IDD country code, area code, weather station data, mobile network codes (MNC), mobile country codes (MCC), mobile carrier, elevation and usage type.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |