This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Country Blocker

Description

This plugin “hides” Your WordPress site from traffic that is coming from any Country (you do not select).
We give you three options now
1. https://ipstack.com this is a free service but if you have more then 1,000 requests per month you can find out the best plan for your web site.
2. https://ipgeolocation.io this is a free service for Non-Commercial Usage. but if you have more then 30,000 requests per month / 1,000 Daily Limit you can find out the best plan for your web site.
3. https://ipapi.com this is a free service but if you have more then 1,000 requests per month you can find out the best plan for your web site.

If you need help, go to http://globalwebplugin.com. As well if it does not work for you.
Tell us please

When a IPs Country is detected the plugin will act in one of these ways that you have pick:

  • Blank page

  • Redirection

  • 404 Error Page

  • Default pic

3rd Party service

https://ipstack.com this is a free service but if you have more then 1,000 requests per month you can find out the best plan for your web site.
https://ipgeolocation.io this is a free service for Non-Commercial Usage. but if you have more then 30,000 requests per month / 1,000 Daily Limit you can find out the best plan for your web site.
https://ipapi.com this is a free service but if you have more then 1,000 requests per month you can find out the best plan for your web site.

If this plugin take off and become too much for the service, we will do it in house on are web servers.

Installation

  1. Uncompressed the file and upload the folder country blocker to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Pick the Country to not Block page and select the Country you want to allow to your web site.

Note:

By default USA and if you are outside the USA, the system will auto add the county you are in base on the IP address you are using.

FAQ

Not yet

Reviews

March 26, 2023
Plugin was easy to install & setup with an API key for the database update. Doesnt impact my website loading speed. Recommended.
March 18, 2023
Hi all, I’ve installed this Country blocker in a hope of stopping all the bogus registrations we get from Russsia. At first I locked myself out of my website as the selection boxes seem to work in reverse. If you tick a box – it blocks that country – where as the instructions say to tick a box to allow it through. Has anyone else found this ? It seems to work well but in reverse to the stated setup. Also – the plugin does not add your country to the allowed list
Read all 3 reviews

Contributors & Developers

“Country Blocker” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Country Blocker” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0

*First stable version

1.5

Fix a bugs in the system.
Add a database checker to make sure that is work right each time.

2.0

Rework the code for this plugin.
Fix the 3rd Party service that was change to https://ipstack.com
ADD
A blackdoor to turn off this plugin ONLY if you need to used this. You will need to type in at the end of the url ?help=yes. You need to fill in the info. Then run the it.

2.1

Fix some errors with the code.

3.0

Added new things
1. Allow List that will allow a IP Address into the site. What not needed to check for Block Country. (The person who installed the plugin has their IP address added to the list.)
2. Ban List that will NOT allow a IP Address into the site. Even if the country is allow.
3. Added 2 new 3rd Party service for checking the IP address against a country.

3.1

Fix some errors with the code.

3.2

Fix some errors seach for IP address