The module allows simple redirection based on Country (Geo Ip).

The module uses the Telize API from http://www.telize.com/.

The redirection is handled on the front-end, rather than on the backend. So you don't have to worry about caching or breaking your Varnish. Works with boost as well.

How to configure:

1) Navigate to admin/config/system/telize-redirect
2) Enter the redirection rules in the format of [2-letter-country-code]|[Redirection-Url]
3) That's it!

For the 2 letter country codes, refer to http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

Highlights:

  • No additional library needs to be downloaded
  • Works with all caching mechanisms
  • Lightweight
  • No session cookies etc. So it won't break your Varnish

Configuration Screen:
telize config

NOTE: CURRENTLY ONLY REDIRECTS TO A DIFFERENT SITE ARE SUPPORTED. (ie, you can not redirect to a page on your current Drupal site based on the country)

Beware

You might lock yourself out if you add your country rule to redirection. The module tries its best to prevent it. Ex: Does not redirect if the user is already logged in. If you still happen to lock yourself out, you can still get back by various techniques like turning off JS on your browser, or disabling the module from command line etc.

Project information

Releases