Skip to main content
Agency Program 50% cashback. 10% commissions. Priority support. Built for growing agencies. 50% cashback for agencies Speak to the team Join free
iQ Block Country icon

iQ Block Country

v1.2.24
by Pascal · 3.9 (159 reviews)

Allow or disallow visitors from certain countries accessing (parts of) your website

20K+ active installs Updated Nov 21, 2024 Tested to 6.7.2 Requires PHP 7.4
Try Demo Download
Pre-installed Ready in ~10s No card

About iQ Block Country

iQ Block Country is a WordPress plugin that allows you to limit access to your website content based on countries. You can block specific countries or allow only certain countries to access your content. The plugin also offers additional features such as blocking IP addresses, customizing blocked messages, and integrating with caching plugins.

Frequently asked questions

What is iQ Block Country?
iQ Block Country is a plugin that allows you to limit access to your website content. You can either allow or disallow visitors from defined countries to (parts of) your content.
How can I use iQ Block Country?
You can use iQ Block Country to restrict access to your website content for certain countries or to block rogue countries that cause issues like hack attempts or spamming.
Can I secure my WordPress Admin backend site with iQ Block Country?
Yes, you can secure your WordPress Admin backend site by only allowing access from your country or by blocking all countries except for your IP address.
What data does iQ Block Country store about visitors?
iQ Block Country stores the IP address, date and time of visit, requested URL, country of the IP address, and whether the block happened on the backend or frontend. Non-blocked visitors' data is not stored.
Is iQ Block Country compatible with caching plugins?
Many caching plugins are not compatible with iQ Block Country. Some caching plugins that seem to work are Comet Cache and WP Super Cache, while plugins like W3 Total Cache, Hyper Cache, and WPRocket do not work.

Changelog

1.2.24

  • Added: SiteGuru Service
  • Changed: Multiple internal changes

1.2.23

  • Change: Upgraded the GeoIP Library to the latest version.

1.2.21

  • Fix: Minor update to support PHP 8.x better

1.2.20

  • Change: Added Ahrefs as service
  • Change: If no other IP address is detected the override is set to REMOTE_ADDR by default for security reasons.

1.2.19

  • Fix: Small security issue fixed
  • Fix: Redirect to page fixed

1.2.18

  • Fix: Small errors

1.2.17

  • Fix: Other small error

1.2.16

  • Fix: DBVERSION error

1.2.15

  • Change: A lot of internal code changes to make it more in line of WordPress Best Practices
  • Change: Added Privacy Policy of GeoIP API / Admin API Key
  • Change: Added Terms of Use / Privacy Policy Of MaxMind

1.2.14

  • Unreleased version

1.2.13

  • Change: Altered import/export function to make it more secure
  • New: Added “Reset Counters” button to reset your total number of frontend / backend blocks.

1.2.12

  • Change: Added/Changed some services.
  • Bugfix: Security issue fixed which could only be abused by people with administrator rights.

1.2.11

  • Change: Minor UI fix
  • Change: Added some more checking if the visitors IP is an actual IPv4 or IPv6 address
  • Change: Updated README

1.2.10

  • Change: Changed whitelist/blacklist to allow list / block list.
  • Change: Removed Paris as GeoIP location
  • Change: Added website server address to allow list of the backend to ensure certain WordPress functions keep working if you block the country your website is hosted from the backend.

1.2.9

  • Change: Some codefixes applied

1.2.8

  • Bugfix: Checking the IP address on the tools tab gave wrong information about countries being blocked if the “block countries below” function was used. This had no effect on the actual denying of visitors.
  • New: Added GeoIP API usage (not realtime) of the current month to the tools tab as beta function.

1.2.7

  • Change: Typo in San Francisco (Thanks to Shizart)
  • New: Added France as GeoIP location
  • Change: Update to text description due to MaxMind update to Geo2Lite database policy
  • Bugfix: No empty location anymore (Thanks to Stonehenge Creations)

1.2.6

  • Change: Added better support to detect if mbstring is available for usage.

1.2.5

  • New: Mediapartners-Google service added
  • Change: Changed webserver ip detection a bit
  • New: You can unblock feed pages on the frontend configuration tab for the people who want to block visitors but want to allow access to the (RSS) feeds

1.2.4

  • Change: Changed webserver ip detection a bit

1.2.3

  • Change: Changed inverse option to that you have to select between ‘Block countries selected below’ or ‘Block all countries except those selected below’ as inverse option caused some confusion.
  • New: Added ‘inverse’ function to the pages selection as well. So you can now select the pages you want to block or select the pages you do not want to have blocked and block all other pages.
  • New: Added override function for IP detection.
  • Change: Cutoff for long urls on the statistics page.

1.2.2

  • New: Added MOZ as service.
  • New: Added SEMrush as service.
  • New: Added SEOkicks as service.
  • New: Added EU2 and EU3 servers for GeoIP API
  • New: Added support for WPS Hide Login
  • Change: Deleted Asia server due to bad performance
  • Change: Altered behavior of flushing the buffer

1.2.1

  • New: Added Link Checker (https://validator.w3.org/checklink) as service.
  • New: Added Dead Link Checker as a service.
  • New: Added Broken Link Check as a service.
  • New: Added Pingdom as a service
  • Change: Adjusted loading chosen library (Credits to Uzzal)
  • Change: Display error when only the legacy GeoIP database exists and not the new GeoIP2 version

1.2.0

  • New: Added support for GeoIP2 country database
  • New: Added Pinterest as service

Try other plugins

Yoast SEO icon

Yoast SEO

4.8 · 10M+ installs

Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…