Skip to content
Sign in
IPGeolocation.io – Geo Redirects & Content Control icon

IPGeolocation.io – Geo Redirects & Content Control

Redirect visitors by country, block or allow visitors by IP address, and show different content to people in different countries.

Not scanned yet WordPress plugin 20 installs

Install in

No install steps yet

Follow the steps on the source page.

IPGeolocation.io – Geo Redirects & Content Control decides what each visitor sees based on where they are and what IP address they are using.

You can send people from one country to a different page, keep unwanted IP addresses away from your site or your login page, and show or hide parts of a page depending on the visitor’s location. Everything is set up from one settings screen, and you do not need to write any code.

The plugin uses the ipgeolocation.io API to work out a visitor’s country and other details. Results are stored for 24 hours per address, so your site stays fast.

Main Features

  • Country-based redirects (entire site, specific pages, or URL patterns)
  • Optional popup confirmation before redirect
  • IP address blocking, with separate rules for your website and your login page
  • Address lists that accept single addresses, ranges, wildcards, IPv4 and IPv6
  • Safe list of addresses that are never blocked by any rule
  • Protection against locking yourself out, with a recovery option
  • Country-level access control (allow or block)
  • Conditional content shortcodes
  • Output visitor geolocation data via shortcode
  • Page and query-string exclusions
  • Redirect bypass and reset via URL parameters
  • Bot detection (search engines and social crawlers excluded from redirects)
  • Administrator-safe (admins are never redirected)
  • IP response caching using WordPress transients

Blocking Visitors By IP Address

The IP section asks two questions, and you answer them separately:

  • Who can visit your website
  • Who can reach your login page

For each one, you can leave it open to everyone, block a list of addresses, or allow only a list of addresses. Locking the login page to your office address is a simple way to stop password guessing bots, and ordinary visitors are not affected at all.

IP rules are checked before any location lookup, so blocking somebody uses none of your API credits.

Configuration

The plugin supports the following API plans from ipgeolocation.io:

  • Developer (Free)
  • Paid

On a Paid plan you can also turn on Include security data under Plan Type. It adds proxy, VPN, Tor and threat score details to each lookup and uses extra API credits. Only the security shortcode fields need it; country redirects and access control do not.

Blocking by IP address does not need an API key. Everything based on country does.

Shortcodes

Display Single Geolocation Field

[ipgeo country]
[ipgeo city]
[ipgeo country_code]

Available fields include:
ip, city, state, country, country_code, zipcode, continent, latitude, longitude, currency, calling_code, languages, is_proxy, is_tor, is_anonymous, cloud_provider

Conditional Content (Show If Match)

[ipgeo_if country_code="US,CA" logic="OR"]Visible to visitors from the US or Canada.[/ipgeo_if]

Supported attributes: country, country_code, state, city, continent, is_proxy, is_tor, is_cloud_provider, is_anonymous, logic (AND / OR)

Conditional Content (Hide If Match)

[ipgeo_if_not country="Germany"]Hidden from visitors in Germany.[/ipgeo_if_not]

Both shortcodes accept the same attributes, so you can hide content from one country just as easily as showing it to another.

Redirect Bypass

For testing or user control, redirects can be bypassed:

  • ?geo_bypass=1 bypasses redirects for 30 days. Use it in links that let visitors choose this site, for example a “Visit our international store” link on your other site
  • ?geo_reset=1 forgets everything the plugin remembers about the visitor: earlier redirects, popup answers and bypasses

Both are removed from the address bar once read, so they do not end up in shared links.

This does not affect IP rules.

External Services Used

This plugin connects to two outside services.

ipgeolocation.io

Used to find the country, region, city and security details for a visitor’s IP address. This powers country redirects, country access control and the shortcodes.

The visitor’s IP address and your API key are sent to https://api.ipgeolocation.io/v3/ipgeo when a page needs location data. Results are stored for 24 hours per address, so a returning visitor does not cause a second request. Nothing is sent if you have not entered an API key, and nothing is sent for a visitor already blocked by an IP rule.

An API key is required. You can get one by creating a free or paid account at ipgeolocation.io. Without it, the country-based features will not work.

Terms of service: https://ipgeolocation.io/tos.html
Privacy policy: https://ipgeolocation.io/privacy.html

Cloudflare

Used only to keep an up-to-date list of Cloudflare server addresses. The plugin needs this list to tell whether a Cloudflare header can be trusted. Without it, that header could be faked by anyone.

Once a day the plugin requests https://www.cloudflare.com/ips-v4 and https://www.cloudflare.com/ips-v6. No visitor information, site information or personal data is sent. If the request fails, a copy included with the plugin is used instead. This only happens when address detection is set to Automatic or Cloudflare.

Terms of service: https://www.cloudflare.com/website-terms/
Privacy policy: https://www.cloudflare.com/privacypolicy/

License

This plugin is licensed under the GPL v2 or later.

Written by Joobi from the project's own listing. See the source page

access-controlcountry blockinggeo redirectgeolocationIP-blocking
26 Nov 2026
Version 1.5.0 released. Not scanned yet.

1.5.0

  • New: “Include security data” setting for Paid plans. Turn it off to fetch location data only and use fewer API credits per lookup. Sites updating from 1.4.0 keep it on until they change it
  • New: ipgeo_api_args filter to change the query sent to the ipgeolocation.io API
  • Cached lookups are kept when you update
  • Fixed: the first time Country Access Control was saved, its country list was discarded. If your blocked or allowed countries are empty, enter them again and save

1.4.0

  • New: choose how often the same visitor is redirected: every visit, once per browser session, once per hour or once per day, site-wide and for each rule. New installs redirect on every visit; existing sites keep once per hour until they change it
  • New: popups remember the answer for 30 days. “Yes” redirects automatically on later visits, “No” keeps the visitor on this site. Closing the popup asks again in the next browser session
  • New: a visitor sent here by another site running this plugin stays for the rest of the browser session, so two sites can never bounce a visitor between them
  • Improved: the popup keeps keyboard focus inside itself and closes on a click outside it
  • New: a setting to stop adding ?ipgeo_from=1 to redirects, for destinations that do not run this plugin
  • Improved: ?ipgeo_from, ?geo_bypass and ?geo_reset are removed from the address bar once read, on any site running this plugin, including one with no rules of its own
  • Improved: ?geo_reset=1 also forgets popup answers
  • Improved: spacing on the settings screen

1.3.0

  • Fixed: country redirects to another domain (for example https://gr.example.com/) sent visitors to wp-admin instead, then stopped redirecting them for an hour
  • Fixed: redirects, popups, conditional content and blocking are now correct on sites with page caching. Cached pages ask the site for each new visitor’s decision, popups and country-specific content are no longer stored in the cache, and page caches are cleared when settings change
  • Fixed: rules never matched pages with non-English addresses such as Greek slugs, and non-English search terms were erased from forwarded query strings
  • Fixed: 301 redirects were always sent as 302
  • Fixed: an error from the location API (invalid key, rate limit) was cached for 24 hours as if it were a real result. Errors are now retried after five minutes, and the settings page shows the API status
  • Security: a user agent claiming to be a search engine no longer bypasses country blocking; crawlers must pass a reverse DNS check
  • Security: an IP block destination on another site could let blocked visitors read the page with the same path on this site
  • Fixed: ?geo_reset=1 did not undo an earlier redirect
  • Fixed: form submissions, feeds and robots.txt were redirected; checkout, cart and account pages are now never redirected
  • Fixed: subdirectory installs matched rules against the wrong path
  • Fixed: the popup Yes button text colour was lost on save
  • Fixed: the admin screen could keep running an outdated script after an update
  • New: one rule can target several countries (GR, CY)
  • New: “/products/*” also matches /products itself
  • New: “Test a visitor” tool, and an X-IPGeo-Decision debug header with IPGEO_DEBUG
  • New: [ipgeo_if] accepts true/false and 1/0 as well as yes/no, and render=”browser” or render=”server”
  • Accessibility: the redirect popup is a proper dialog, keyboard focusable and closable with Escape

1.2.0

  • Added IP access control: block or allow visitors by IP address, with separate rules for your website and your login page
  • Address lists accept single addresses, ranges such as 203.0.113.0/24, wildcards such as 192.0.2.*, and IPv6
  • Added a safe list of addresses that are never blocked by any rule
  • The settings screen now shows your own IP address and how it was detected
  • The plugin refuses to save a login rule that would lock you out, with a wp-config.php recovery option
  • Security: visitor IP addresses can no longer be faked using request headers. If your site is behind a CDN or proxy, choose the matching option under Advanced settings
  • Fixed an empty redirect URL in Country Access Control causing an endless redirect loop
  • Fixed blocked visitors being redirected twice
  • Fixed cached location data not being reused within the same page load

1.1.0

  • Upgraded internal API from v2 to v3
  • Simplified plan types: Developer and Paid Plan only
  • Standard, Advanced, and Security plans auto-migrated to Paid Plan
  • Rename the plugin

1.0.0

  • Initial public release
  • Country redirects with popup support
  • Country access allow/block rules
  • Conditional shortcodes
  • Bot detection and caching
5 Jan 2026Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)