GeoIP Information
Use the base for nginx
Our database can be used to determine the geolocation of IP addresses.
- City Base:
- Country base:
- ASN Base:
geoip2 /usr/local/share/BgpCountry.mmdb {
$geoip2_country_code default=UA country iso_code;
}
Utilization of the city base:
geoip2 /usr/local/share/BgpCity.mmdb {
$geoip2_data_country_name country names en;
$geoip2_data_country_code country iso_code;
$geoip2_data_city_name city names en;
}
ASN Base Utilization:
geoip2 /usr/local/share/BgpIPASNum.mmdb {
$geoip2_as_number default=0 autonomous_system_number;
}
Download up-to-date GeoIP databases for accurate IP address geolocation that are ideal for use with nginx. Our suite includes databases for a variety of data types including cities, countries, and AS numbers (autonomous systems). These databases will help you pinpoint a user’s location based on their IP address with region and city accuracy.
Using our GeoIP databases, you can integrate geolocation into various applications and services, improve ad targeting, analyze traffic and ensure security. The city database contains data for precise location by IP, the country database contains information about countries by ISO codes, and the AS number database contains data about offline systems, allowing you to identify ISPs.