4 ms·
If your goal is geo-redirection then a 3rd party service is usually a bad choice (speed + downtime). An memory geo-ip database is the best way to go - but this
by watson 13y ago
If your goal is geo-redirection then a 3rd party service is usually a bad choice (speed + downtime). An memory geo-ip database is the best way to go - but this is usually also part of what you pay for when you buy the non-free version
- hansjorg 13y agoMaxmind have a free database (GeoLite2) that's updated weekly. Here's an overview of the accuracy per country: http://www.maxmind.com/en/geolite_city_accuracy http://www.maxmind.com/en/geolite_city_accuracy It's less accurate than their commercial offering, but good enough in many cases. For ease of use, there's a nice C API (https://github.com/maxmind/geoip-api-c https://github.com/maxmind/geoip-api-c) and wrappers like pygeoip for Python.