GeoIP from Google as the primary one
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
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-