epsg.io icon indicating copy to clipboard operation
epsg.io copied to clipboard

GeoIP from Google as the primary one

Open klokan opened this issue 11 years ago • 1 comments

We may switch the the faster GeoIP service from Google and fallback to FreeGeoIP service (which is now used as primary).

Details: http://blog.klokantech.com/2008/08/google-ip-geolocation.html

klokan avatar Jan 22 '14 15:01 klokan

FreeGeoIP is not available anymore, it seems. The index.js must be adjusted - and free FreeGeoIP removed. Also - the requests are http requests which breaks the https security.

We can now use for country detection the CloudFlare caching infrastructure - all on the server side, if the http header in the request contains "HTTP_CF_IPCOUNTRY" with the two letter code of the country. See: https://support.cloudflare.com/hc/en-us/articles/200168236-What-does-CloudFlare-IP-Geolocation-do-

klokan avatar Jan 12 '15 14:01 klokan