It is possible to use GeoIP on Gandi Simple Hosting instances, by recovering the value 'X-Country-Code' of the HTTP headers .

The value is returned in the form 'FR', 'EN', 'US', 'GB', etc. defined by the ISO norm 3166. You can find the complete list of country codes on the official website

The country code is returned depending on the IP address of the visitor; both IPv4 and IPv6 addresses are supported.

This feature is useful for example in the event that you want to have a website in several languages, where the language is automatically displayed depending on the county of the visitor.

Last modified: 02/11/2014 at 15:39 by Alexandre J. (Gandi)