Ip to location identify visitor's geographical location (longitude/latitude), country, region and city based on the IP address of the user. These information will be stored at session variable ($_SESSION) with array key 'iptolocation' . It provides a feature for you to perform your own IP lookup and admin spoofing of an arbitrary IP for testing purposes.


Provide session variable for show user location, that is used any where it it.
Supports user ip location caching manage by admin section.

Data Sources

Source of Ip to location module is the www.easyjquery.com service which used api provided by eazytoquery which have accuracy over 99.6 % country level and 80 % on city level with monthly updating. URL of demo http://www.easyjquery.com/detect-get-clients-ip-address-country-using-ja...


Copy the extracted iptolocation directory to your Drupal sites/all/modules directory.
Login as an administrator. Enable the module at http://www.example.com/?q=admin/modules
Configure/update at http://www.example.com/?q=admin/config/people/iptoloaction.


IPtoLocation is being developed by OssCube.

Get involve

If you find this module useful, please consider the following:

Helping other users that request for a support by sharing what you know is a kind thing to do.
Patches are welcome. If you are developer, help fix reported bugs by sharing patches.
Want to help but don't have the time, giving donation would help me allocate more time to support new feature request and fix old bugs.

Your support is much appreciated. Thank you in advance.

Sandbox URL - http://drupal.org/sandbox/osscube/1822664

Version - 7.x


ramsonkr’s picture

You must check the data filled by user using the function check_plain().
drupal will uninstall the schema automatically for you, so remove drupal_uninstall_schema().

developmenticon’s picture

Here are some little things, i think you should consider it:

  • It appears you are working in the "master" branch in git. You should really be working in a version specific branch. The most direct documentation on this is Moving from a master branch to a version branch. For additional resources please see the documentation about release naming conventions and creating a branch in git.
  • iptolocation.info ; Information added by drupal.org packaging script on 2012-10-25: Remove this line it will be added by drupal.org
  • iptolocation.module: at iptolocation_show_session_location() "</br>" should be "<br />"
    klausi’s picture

    Status: Needs review » Closed (duplicate)
    Multiple Applications
    It appears that there have been multiple project applications opened under your username:

    Project 1: http://drupal.org/node/1823698
    Project 2: http://drupal.org/node/1822638
    Project 3: http://drupal.org/node/1823696

    As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).

    If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.