It's now possible to use GeoIP on Simple Hosting instances and on the Web Accelerator.

To do so, just obtain the 'X-Country-Code' from the HTTP header. The value returned will be a country code in the form 'EN', 'FR', 'US', 'GB', and so on, as defined by ISO 3166.

This functionality is useful for multilingual websites, because it allows you to adapt the language the site will be served in based on the country your visitor is located in.

The country code is determined based on a visitor's IP address. Bother IPv4 and IPv6 addresses are supported, and this feature is now available on all Gandi's datacenters.

For more information about using GeoIP on Gandi's Simple Hosting platform, see our support wiki.

Retour

Taille du bandeau d'actualités