How to Use GeoIP on Gandi Web Hosting

It is possible to use GeoIP on a Gandi web hosting, 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.