WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Benjamin Pick v5.6.4

Geolocation IP Detection

Provides geographic information detected by an IP adress.

Geolocation IP Detection

The facts

Rating
4.7★ from 59
Active installs
20k+
Price
Free
Last updated
3 Jun 2026
Added
Jul 2013
Requires WP
5.0
Tested up to
WP 7.0.4
Requires PHP
7.2.5
Downloads
598,037

Our analysis

AI-assisted

Geolocation IP Detection is a WordPress plugin that provides geographic information based on an IP address. It can be integrated into themes or other plugins using shortcodes or CSS body classes. The plugin supports various data sources for geolocation, including both free and commercial options, allowing for flexibility in how location data is retrieved and displayed.

This plugin is suitable for users who need to tailor content based on geographic information, such as pre-filling shipping locations or showing content specific to certain regions. It is particularly useful for e-commerce sites and businesses that want to enhance user experience based on location.

Best for: This plugin is best for e-commerce sites and businesses looking to customise user experiences based on geographic data.

What it does well

  • Provides geographic information based on IP addresses
  • Supports multiple data sources, both free and commercial
  • Can be used with shortcodes and CSS body classes
  • Translates city and country names into different languages
  • Thorough documentation available

Where it falls short

  • Limited information on specific features and usage
  • Requires at least PHP 7.2.5

Verdict

Geolocation IP Detection offers a straightforward solution for integrating geolocation features into WordPress sites. Its flexibility with data sources makes it a practical choice for those needing location-based functionality.

From the developer

Benjamin Pick's own description of Geolocation IP Detection, lightly tidied.

Provides geographic information detected by an IP adress. This can be used in themes or other plugins, as a shortcode, or via CSS body classes. The city & country names are translated in different languages (supported languages).

Features:

  • You can use one of these data sources (see comparison):
    • geoip_detect2_get_info_from_ip($ip, $locales = array('en'), $options = array()): Lookup Geo-Information of the specified IP
    • geoip_detect2_get_info_from_current_ip($locales = array('en'), $options = array()): Lookup Geo-Information of the current website user
    • geoip_detect2_get_current_source_description(...): Return a human-readable label of the currently chosen source.
    • geoip_detect2_get_external_ip_adress(): Fetch the internet adress of the webserver
    • geoip_detect2_get_client_ip(): Get client IP (even if it is behind a reverse proxy)
    • A select input with all countries, the detected country being selected by default: [geoip_detect2_countries mycountry]
    • A text input that is pre-filled with the detected city (or other property): [geoip_detect2_text_input city property:city lang:fr id:id class:class default:Paris]
    • Geolocation information for the email text: [geoip_detect2_user_info]
    • Geolocation information for the email text: [geoip_detect2_user_info]

    See Documentation for more info.

    How can I use these functions?

    • You could choose the currency of the store based on the country name
    • You could pre-fill the shipping country
    • You could show the store nearest to your customer
    • You show or hide content specific to a geographic target group
    • Etc. … You tell me! I’m rather curious what you’ll do with this plugin!
    • Be careful to comply to the applicable laws. For example Regulation (EU) 2018/302 …
    • If you need to get the user’s timezone, it is more accurate to use JS solutions.

    System Requirements: You will need at least PHP 7.2.5 . Also, if you use the plugin WooCommerce, you’ll need at least WooCommerce 3.9.0 .

    GDPR: See Is this plugin GDPR-compliant?

    This extension is “charity-ware”. If you are happy with it, please leave a tip for the benefit of this charity. (See FAQ for more infos.)

    Here are other ways to contribute to the development of this plugin.

    This product can provide GeoLite2 data created by MaxMind, available from http://www.maxmind.com.

    Troubleshooting

    • Does geoip_detect2_get_info_from_current_ip() return the same country, regardless of where you are visiting the site from?
    • Maybe your server has a reverse proxy configured. You can check this: Go to the options page and look for “reverse proxy”. Are there 2 IPs listed there? If so, which one corresponds to your public IP?
    • Or maybe you are using a site cache plugin. Then enable the option Disable caching a page that contains a shortcode or API call to geo-dependent functions.

    Read the full description on the official page →

Tagged as

Alternatives

Other plugins for maps and locations.

Meta Box

Meta Box plugin is a powerful, professional developer toolkit to create custom meta boxes and custom fields fo...

Free 500k+ installs 4.8★ (165)
WP Go Maps

The easiest to use WordPress map plugin! Create a custom map, map block, store locator or map widget with high...

Free 300k+ installs 4.8★ (3,035)
SlimStat Analytics

Real-time WordPress analytics that stay on your own server: pageviews, outbound links, WooCommerce funnels, al...

Free 70k+ installs 4.8★ (817)
Open User Map

Create custom interactive maps with free Leaflet-based styles, no Google Maps API key, frontend marker submiss...

Free 10k+ installs 5★ (67)
WP Store Locator

An easy to use location management system that enables users to search for nearby physical stores.

Free 50k+ installs 4.8★ (312)
Leaflet Map

Interactive maps and markers on your posts and pages with simple shortcodes.

Free 30k+ installs 4.9★ (58)