Plugin Directory

Test out the new Plugin Directory and let us know what you think.

iQ Block Country

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


  • Bugfix: Fix for bug in not blocking/allowing post types.
  • New: Moved GeoIP API to secure https
  • New: Logging DB optimization (Thanks to Arjen Lentz)
  • Change: Changed support option from forum to mail.


  • Bugfix: Only shows warning of incompatible caching plugin if frontend blocking is on.
  • Change: Better error handling


  • Change: Small adjustment to prevent wp_mail declaration as much as possible.


  • Bugfix: Smashed bug on backend


  • Change: Added WPRocket to list of caching plugins that are not compatible with iQ Block Country (thanks to Mike Reed for supplying the info)
  • New: Added Baidu to Search Engines list
  • New: Added Google Site Verification to the search engines list
  • New: Added Google Search Console to the search engines list
  • Change: Only displays warning about incompatible caching plugins in case frontend blocking is selected.
  • New: You can now also block individual post tags
  • Change: Fixed small security issue with downloading the statistics as CSV file (Thanks to Benjamin Pick for reporting)


  • Bugfix: Bug smashed on tag page


  • Bugfix: Bug smashed on tag page


  • Change: Small changes in GeoIP API calls
  • New: A warning is displayed for known caching plugins that ignore the no caching headers.
  • Change: Small changes
  • Change: Moved some of the urls to https, more to follow.
  • New: Added option to block / unblock tag pages.


  • Change: Added new GeoIP API location for Asia-Pacific region.
  • Change: Added some missing country icons.


  • Change: Small changes in GeoIP API calls
  • New: Added database information to tools tab.
  • New: Added support for rename wp-login plugin


  • Bugfix: Altered mysql_get_client_info check as in some setups this gave a fatal error.
  • New: Added WordPress Jetpack as search engine. You can allow Jetpack to communicate with your site if you have Jetpack installed.
  • New: Added option to allow admin-ajax.php visits if you use backend blocking.


  • Bugfix: Fixed small bug


  • New: xmlrpc.php is now handled the same way as other backend pages.
  • Change: Updated chosen library to latest version.
  • Change: Added a (de)select all countries to the backend en frontend country list.
  • Change: Changed order of how the plugin detects the ip address.
  • Change: Added detection of more header info that can contain the proper ip address
  • New: Added support forum to the site.
  • Change: Added download urls on database is too old message.


  • Bugfix: Altered checking for Simple Security Firewall


  • New: Added support for Lockdown WordPress Admin
  • New: Added support for WordPress Security Firewall (Simple Security Firewall)
  • Change: Various small changes


  • Bugfix: Fixed bug if cURL was not present in PHP version
  • New: When local GeoIP database present it checks if database is not older than 3 months and alerts users in a non-intrusive way.


  • Bugfix: Category bug squashed
  • Change: Altered text-domain
  • New: Added export of all logging data to csv. This exports max of 1 month of blocked visitors from frontend & backend.


  • Change: Minor improvements
  • New: Added check to detect closest location for GeoIP API users
  • Bugfix: Fixed an error if you lookup an ip on the tools tab while using the inverse function it sometimes would not display correctly if a country was blocked or not.
  • New: Added support for All in one WP Security Change Login URL. If you changed your login URL iQ Block Country will detect this setting and use it with your backend block settings.


  • New: Added Google Ads to search engines
  • New: Added Redirect URL (Basic code supplied by Stefan)
  • New: Added inverse selection on frontend. (Basic code supplied by Stefan)
  • New: Added inverse selection on backend.
  • New: Validated input on the tools tab.


  • Bugfix: Check if MaxMind databases actually exist.
  • New: Unzip MaxMind database(s) if gzip file is found.
  • New: Block post types
  • New: Added option to select if you want to block your search page.
  • New: When (re)activating the plugin it now adds the IP address of the person activating the plugin to the backend whitelist if the whitelist is currently empty.


  • Change: Changed working directory for the GeoIP database to /wp-content/uploads


  • Change: Due to a conflict of the license where WordPress is released under and the license the MaxMind databases are released under I was forced to remove all auto downloads of the GeoIP databases. You now have to manually download the databases and upload them yourself.
  • New: Added Webence GeoIP API lookup. See https://geoip.webence.nl/ for more information about this API.


  • New: Accessibility option. You can now choose if you want the country default selectbox or an normal selectbox.
  • New: New button to empty the logging database..
  • New: You can now set the option to not log the ip addresses to the database. This does not influence the blocking process only the logging process. This can be handy if the laws in your country do not permit you to log this information or if you choose not to log this information


  • Bugfix: You can now set an option to buffer the output of the iQ Block Country plugin. If you use for instance NextGen Gallery you should not set this option as it will break uploading pictures to your gallery.
  • Bugfix: Last time GeoIP databases were downloaded was wrong.
  • Bugfix: If you configured auto-update of the GeoIP databases the tools tab showed that you did not configure auto update.
  • Added check for HTTP_X_TM_REMOTE_ADDR to get real ip address of T-Mobile users.
  • Added Twitter, Bitly, Cliqz and TinEye to the search engines list.
  • New: No longer blocks category pages of categories you have not blocked.
  • Bugfix: Added check if HTTP_USER_AGENT is set.


  • Bugfix: The plugin did not recognise the login page when installed to a subdirectory.
  • New: You can configure if it auto updates the GeoIP Database. Upon request of those people who have the paid database of MaxMind.
  • Added Facebook and MSN to list of search engines.
  • Changed the version of the geoip.inc file to the version of https://github.com/daigo75/geoip-api-php


  • Bugfix on setting defaults when they values already existed.
  • You can now allow search engines access to your country even if they come from countries that you want to block.


  • Bugfix on the backend blacklist / whitelist


  • Added select box on how many rows to display on the logging tab
  • Redirect blocked users to a specific page instead of displaying the block message.
  • Added blacklist and whitelist of IP addresses to the backend.
  • Adjusted some text
  • Minor bugfixes


  • Small fixes
  • WP 3.9 compatability issue fixed


  • Bugfix release due to faulty v1.1.8 release. My Apologies.


  • Smashed a bug where the homepage was unprotected due to missing check.


  • Added Russian (ru_RU) translation by Maxim
  • Added Serbo-Croatian (sr_RU) translation by Borisa Djuraskovic (Webostinghub)
  • Changed the logging table a bit.


  • Added to ban categories. This works the same way as blocking pages (By request of FVCS)
  • Changed the admin page layout. Added tabs for frontend and backend blocking to make it look less cluttered
  • Added optional tracking to the plugin. This is an experiment to see if building a database of IP addresses that try to login to the backend is viable.
  • Upon first activation the plugin now fills the backend block list with all countries except the country that is currently used to activate.
  • Added IP checking in header HTTP_CLIENT_IP and HTTP_X_REAL_IP


  • Statistics required wp-config.php in a specific place bug smashed.


  • Added import/export function.
  • Minor bugs solved


  • Fixed error that when using the option to block individual pages all visitors would be blocked. (Thanks to apostlepoe for reporting)


  • Fixed localization error. (Thanks to Lisa for reporting)


  • You can now choose to block individual pages. Leaving other pages open for visitors from blocked countries. You can for instance use this feature to block countries from visiting specific pages due to content rights etc.
  • Source now supports localization. Included is the English and Dutch language. I'd be happy to include other translations if anyone can supply those to me.


  • Added statistics to the plugin.
  • You can view the last 15 hosts that were blocked including the url they visited.
  • You can view the top 15 of countries that were blocked in the past 30 days.
  • You can view the top 15 of hosts that were blocked in the past 30 days.
  • You can view the top URL's that were most blocked in the past 30 days.

Requires: 3.5.2 or higher
Compatible up to: 4.7.3
Last Updated: 3 weeks ago
Active Installs: 30,000+


3.8 out of 5 stars


6 of 11 support threads in the last two months have been marked resolved.

Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

67,3,2 50,2,1 100,1,1
50,4,2 100,1,1 67,3,2 100,1,1
100,1,1 25,4,1 100,1,1
100,2,2 100,1,1 100,1,1 100,1,1
0,1,0 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,2,2 100,2,2 0,1,0 100,1,1
100,2,2 100,1,1
100,1,1 100,1,1
0,1,0 100,1,1