Country Blocker

October 09, 2023

Country Blocker Plugin

This will block any country IP that you want. It's as easy to setup and use.

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

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

Details

  • Version: 3.2
  • Active installations: 100
  • WordPress Version: 4.9
  • Tested up to: 6.3.5
  • PHP Version: 7.4

Ratings


5 Stars
4 Stars
3 Stars
2 Stars
1 Stars