Provides an API for geolocating an IP address.

Drupal 8

Provides plugins for Maxmind GeoIP2 and CDNs (Cloudflare/Cloudfront/Custom header).

Drupal 7

The Drupal 7 version is considered feature complete and won't be actively developed by the current maintainers.

Uses the GeoLite Country or City databases. Unlike other IP to country code modules, this one does nothing on its own. It is an API/utility module for use by other modules.

As of 7.x-2.x the module also supports Maxminds GeoIP2 databases.

Note: the D7 version of this module is incompatible with the geoip PECL extension. For more information please review this issue.

Supporting organizations:
sponsored development time for the 7.x branches
Development and maintenance of the Drupal 8 branch

Project information

Releases

3.1.0 Stable release covered by the Drupal Security Team released 12 August 2026
Works with Drupal: ^10.3 || ^11

Drupal 11 support

Install:

Development version: 3.1.x-dev updated 12 Aug 2026 at 09:47 UTC

3.0.0 Stable release covered by the Drupal Security Team released 19 June 2024
Works with Drupal: ^8 || ^9 || ^10

Stable Drupal 9 and 10 release

Install:

Development version: 3.0.x-dev updated 15 Oct 2024 at 11:11 UTC