Geotargeting Scripts and Libraries

By Language/Platform

Here you'll find a list of geotargeting scripts and libraries organized by the platforms or programming languages they're used with. Unless otherwise noted all scripts and libraries use the industry standard MaxMind database. MaxMind offers both a free and a (more accurate) commercial version.

Language/Platform Name Download Documentation Information
Wordpress
WP GeoLocation Download Documentation This plugin uses the MaxMind GeoIP JS Web Service to return the Country, Region, City, Latitude, and Longitude WordPress shortcodes.
Wordpress
Ads By Country Download Documentation This plugin creates a javascript widget in your sidebar that shows ads to your site visitors based on what country they're in.
Wordpress
MaGiKS Geo Country Lite Download Documentation Make your visitors feel welcome by displaying their country name and/or flag on your blog automatically.
Wordpress
Geoposty GeoLocation Widgets, Posts and Redirects Download Documentation Geoposty determines your visitor's location from their ip address, then displays dynamic content that is specific to their area.
Drupal
Drupal GeoIP API Download Documentation This is an API module for using 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.
Drupal
Ad GeoIP Download Documentation Requires Drupal GeoIP API. The Ad GeoIP module adds geotargeting functionality to the Drupal advertisement module. This functionality allows you to optionally configure individual advertisements to only display to visitors of one or more countries, regions, and/or cities. The advertisement module's cache modules are fully supported for optimal performance.
Drupal
Context GeoIP Download Documentation Requires Drupal GeoIP API. User's IP address as a Context condition.
Drupal
GeoIP Role Download Documentation Requires Drupal GeoIP API. GeoIP Role allows to dynamically grant roles to the current user according to his IP address location. It depends on the GeoIP API module.
Drupal
GeoIP Country Download Documentation Requires Drupal GeoIP API. If you would like to restrict your content to only show in a certain country, use this module. It depends on the location module to provide a list of countries, and geoip api module to determine the country a user is in.
Drupal
GeoIP Redirect Download Documentation Requires Drupal GeoIP API. GeoIP Redirect uses the GeoIP API to redirect a user from your site to a different one based on their country of origin. The primary use-case is that you have 2 different markets and want to ensure users are accessing the correct form of that material.
Joomla
GeoIP Redirect Download Documentation This plugin uses Maxmind Geo IP lite country database http://www.maxmind.com/app/geoip_country, and based on visitor country can set its language or redirect visitor to the given address.
Joomla
MetaMod Download Documentation Control your modules by date, time, recurring time, GeoIP (country of viewer), browser type and language, user name, group, page within other component (e.g. Virtuemart), on-page text, article keywords, by article, section/category, domain, referrer, etc.
Apache
mod_geoip2 Apache module Download Documentation The mod_geoip2 module embeds GeoIP database lookups into the Apache web server. It is only capable of looking up the IP of a client that connects to the web server, as opposed to looking up arbitrary addresses.
Javascript
GeoIP2 JavaScript Client API Download Documentation The MaxMind GeoIP2 JavaScript API combines the best of W3C Geolocation and our GeoIP2 web service. This service first attempts to get the user's actual location from the browser. If that fails or if the information provided by the browser is inaccurate, the service uses GeoIP2 to determine the location of the user. In both cases, a JavaScript object is returned containing the GeoIP2 REST output.
PHP
GeoIP2-php Download Documentation Provides a PHP API for the GeoIP2 web services.
Python
GeoIP2-python Download Documentation Provides a Python API for the GeoIP2 web services.
Perl
GeoIP2-perl Download Documentation Provides a Perl API for the GeoIP2 web services.
Java
GeoIP2-java Download Documentation Provides a Java API for the GeoIP2 web services.
Magento
GeoIP Country Lock Download Documentation Lock, Restrict access by IP address, country. View online visitors and Ban them from your store.
Magento
Magento GeoIP Download Documentation This extension allows you to use free GeoIP Lite database by MaxMind with your Magento installation.
Magento
GeoIP Location Magento Extension Download Documentation GeoIP Location extension allows Magento store owners to see online visitors´┐Ż and customers´┐Ż IP addresses geographical location
Opencart
GeoIP Filter Download Documentation GeoIP Filter is an OpenCart module that allows you to perform redirection on your website base on the geographical location of visitors.