GeoTargeting Lite – WordPress Geolocation


Based on Maxmind GeoIP2 data Geo Targeting plugin for WordPress will let you create dynamic content based on your users country.

With a simple shortcode you will be able to specify which countries are capable of seeing the content.

Compatible with WordPress Popups Plugin. You can now geotarget your popups

If you use popular firewall services such as Cloudflare, Reblaze, Sucuri, Ezoic, Akamai or Clouways the plugin will auto detect real IP from users.


[geot country="Argentina"] Messi is the best! [/geot]``
[geot country="Portugal"] Cristiano ronaldo is the best! [/geot]``
[geot exclude_country="Portugal"] This text is seeing by everyone except Portuguese people [/geot]``

The plugin save into it’s own cache the country you are in. If you need to test for different countries you have two options:

You can pass a country iso code in the url like this:“

Or you can add in wp-config.php the following to use your own VPN

Premium Version

Check the new premium version available in ( that comes with Premium database with much more accuracy.
* Geo Redirects
* GeoTarget countries, cities and states
* Cloudflare geolocation support
* Geotarget posts / pages entirely
* Create multiple Redirects based on user countries states or cities
* Editor button to easily add shortcodes
* Create multiple regions (group of countries or cities) to use with shortcodes
* Exclude countries, cities and regions shortcode
* Dropdown Widget to let users change their country (with flags)
* Complete set of PHP functions
* Hide Woocommerce or Easy digital downloads products. Works with any plugin
* AJAX mode that make plugin compatible with Cache plugins
* Geotarget menu items, widgets, everything
* Upcoming integration with other populars plugins
* Premium support

WordPress Popups

Best popups plugin ever (

Install Multiple plugins at once with WpFavs

Bulk plugin installation tool, import WP favorites and create your own lists (

Send HTML Emails

Beautiful email in wordpress with (

WordPress Social Invitations

Enhance your site by letting your users send Social Invitations (


  1. Unzip and Upload the directory ‘geo-targeting’ to the ‘/wp-content/plugins/’ directory

  2. Activate the plugin through the ‘Plugins’ menu in WordPress

  3. Go to the editor and use as many shortcodes as needed

  4. If it fails try uploading files manually by ftp


Installation Instructions
  1. Unzip and Upload the directory ‘geo-targeting’ to the ‘/wp-content/plugins/’ directory

  2. Activate the plugin through the ‘Plugins’ menu in WordPress

  3. Go to the editor and use as many shortcodes as needed

  4. If it fails try uploading files manually by ftp

How can I display content to everyone except some countries

If you have content that want to be display to USA’s users but then you want to show another content to everyone else, you can do the followin:
[geot country=”United States”] USA only content [/geot]
[geot exclude_country=”United States”] Everyone except USA will see this [/geot]


Fantastic Support, Great Plugin

This plugin is great, but the support is even better. I’ve always received a response within hours – something you’re not going to find very often. Can’t say enough good things about Damian.
– the logic will allow you to prevent consumption of credits for pages that don’t need to listen for your redirects
– you can opt to turn on a ‘cache mode’ that will minimize credit consumption for a session (not always appropriate, fyi)
– bots are ignored
Love it. A+

Settings page is useless

Instead of spending 3 pages of video real-estate showing me what I’m missing you could have documented the shortcodes for me… If I want the pro-version I’ll go looking for it.

The BEST Region redirect plugin

I have bought the PRO version of this plugin. The support received from Damian has been absolutely exceptional, and I couldn’t recommend him highly enough. My hosting environment had some caching issues which couldn’t be resolved through standard means, and Damian and I have worked through all the problems.

I would recommend this plugin to anyone who wants to redirect users from different locations to alternative parts of their website. If there are any glitches Damian will sort them out quickly and professionally.

Works Beautifully!

Installed this and got it working right away, no problem. Ridiculously easy to use, and perfect for something I wanted to achieve on my blog. Thanks.

Read all 17 reviews

Contributors & Developers

“GeoTargeting Lite – WordPress Geolocation” is open source software. The following people have contributed to this plugin.




  • Updated db


  • Updated db
  • Added settings page for debug mode
  • Added Ip testing page


  • Updated db
  • Fixed bug where countries db not being populated after uninstall
  • Added new debug method for easy debugging


  • Updated db
  • Updated country db list of iso codes
  • Added clouways real ip detection


  • Updated db
  • Updated readme file
  • Changed default country for bots/crawlers


  • Updated db
  • Code improvements


  • Updated db
  • Added akamai and Ezoic real IP detection
  • Added crawler detect class for better detection


  • Updated db
  • Real Ip is autodetected from Cloudflare, sucuri and Reblaze


  • Fixed problem with fallback country generating undefined errors
  • Fixed problem that was generating installation errors
  • Updated ip database


  • Added catch to all exceptions
  • Updated ip country database


  • Fixed bug when address is not found
  • Removed country calculation on ajax and cron calls


  • Updated popups integration for latest version
  • Updated country Database


  • Fixed function country name
  • Added fallback in case IP not found


  • Fixed bug with popups integration
  • Fixed bug in some shortcodes and functions


  • Now we use Maxmind API and mmdb database instead of loading mysql server
  • No more heavy databases installs on plugin installation
  • Added cloudflare geolocation



  • Added sessions to cache user country and calculate it just once per session
  • Updated IP database
  • Removed calculate IP in admin area because was not necessary


  • Fixed error uploading data on activation or certain servers
  • Fixed error in php functions
  • Updated IP database


  • Plugin launched!