Nginx module that allows user to lookup for geolocation information using IP2Location database.
IP2Location Nginx module enables user to easily perform client's IP to geographical location lookup by using IP2Location database.
Supported IPv4 and IPv6 address.
For more details, please visit: https://www.ip2location.com/developers/nginx
Change your Nginx config file to include the 'ip2location_database' directive:
ip2location_database /absolute/path/to/IP2LOCATION-LITE-DB1.BIN;
The following variables will be made available in Nginx:
$ip2location_country_code
$ip2location_country_name
Email: [email protected].
URL: https://www.ip2location.com