To implement BGP GeoBlocking, accurate geolocation data is required to determine the country or region associated with IP addresses. Commercial geolocation databases like MaxMindDB or ip2location, as well as open-source alternatives and public IP geolocation APIs, can provide the necessary geolocation data.
MaxMind’s Geolocation Databases
MaxMind offers a variety of GeoIP databases, including the GeoIP2 database and its free version GeoLite2. The GeoIP2 database is the paid version and provides more accurate information than the GeoLite2.
The choice between the GeoIP2 Lite and GeoIP2 databases, therefore, depends on the specific needs of the application and the level of detail and accuracy required. For applications that only require basic geolocation information, the free GeoIP2 Lite database may be sufficient. However, the paid GeoIP2 database may be necessary for more advanced applications requiring more detailed and accurate information.
The tool on this page enables you to compare the accuracy of the following MaxMind database offerings by country:
GeoIP2 City Plus web service
Accuracy is calculated by checking known web user IP address and location pairs against the data within MaxMind’s database offerings. For example, for Georgia’s country and Broadband IPs, if the databases have a resolution of 250 km, the GeoLite2 City database offers an accuracy of 91%, while the GeoIP2 City database provides 96% accuracy.
It’s worth noting that the accuracy of IP geolocation is generally higher for broadband IP addresses and lower for cellular networks. For the databases mentioned, the accuracy for cellular networks is within the 88%-89% range.
Both GeoIP2 and GeoLite2 Country, City, and ASN databases are updated twice weekly, every Tuesday and Friday.
Ip2location Geolocation Databases
IP2Location is a provider of IP geolocation databases that offer both commercial and free versions (IP2Location™ LITE). The commercial IP2Location databases provide more accurate data compared to the free version. They have over 99.5% accuracy in country-level detection and are updated on the first day of the calendar month.
The IP2Location LITE version is free for non-commercial use. It offers a limited set of data fields compared to the commercial version. In terms of accuracy, the IP2Location LITE version provides a 98% accuracy rate for country-level detection, which means it can accurately identify the country where an IP address is located.