Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

ip2country

2,109 sites Security covered
View on drupal.org

This module uses a visitor's IP address to identify the geographical location (country) of the user. The module makes this determination and stores the result as an ISO 3166 2-character country code in the Drupal $user object, but otherwise has no effect on the operation of your site. The intent is simply to provide the information for use by other modules. A function is also provided for you to perform your own lookup, to use in your own manner. Features include automatic updates of the IP-country database and admin spoofing of an arbitrary IP or Country for testing purposes.

The database used to make the association between IP address and Country is hosted and maintained by ARIN, the American Registry for Internet Numbers (http://www.arin.net/about_us/index.html). ARIN is one of the five official Regional Internet Registries (RIR) responsible for assigning IP addresses. (Although this module defaults to using ARIN, a menu option allows you to select any of the five registries to use.) The claim is the database is 98% accurate, with most of the misidentifications occurring for visitors from less-developed countries. Regardless, there's no more-authoritative source of this information. There is no need to separately download or manually update any of the data - this module takes care of that for you.

Note: When this module is initially enabled, it fills the IP-Country database. This process can take as much as 30 seconds, so please be patient and WAIT for it to complete to ensure your table is full.

A README.txt is included, containing detailed installation instructions and a discussion of what the module does and how it does it. Please consult the README.txt before posting questions/problems.

Activity

Total releases
1
First release
Feb 2025
Latest release
1 year ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
2.1.1 Stable Feb 5, 2025