My rule is only to block one page from outside my country and nothing else.
The plugin is blocking robots.txt as well, why ?
]]>Thanks for the plugin, it was the simplest I found for the purpose of blocking external access by region.
My only suggestion would be to have the path definable in a configuration field, sometimes it’s good to have it somewhere other than wp-uploads, for instance, I’d prefer to have it versioned instead of having to connect thought sftp every time I need to update this file.
I use Wordfence and it download this file automatically, so I would use the same one instead of downloading it again.
]]>Fresh Forms Plugin Excludes Caching from Form Pages (e.g. Gravity Forms). Is this sufficient to bypass problems related to caching? I mostly use FastCache.
Thanks!
]]>Hello
I am using Dreamhost company’s Dreampress and they are running on Nginx cache. is the country block system that is not affected or interfered with by the Nginx cache? I tried and it didn’t work.
best regards
]]>Hello!
I’m using your plugin IQ Block Country I’m trying to block a the frontend website
https://www.caseificiogennari.com/
from all countries except 4 (Austria, Finland, Denmark and Portugal),
but it does not work.
I set redirection to the italian site. (.it)
I still have access to the frontend site although I’m visiting it from Italy (I’m logged out, of course)
Please can you help me?
ps: I also sent an email to the address found in the plugin (with screenshots of the setting)
]]>Looks like this plugin is running after Wordfence.
PS. Blocking only sometimes:
IP Adress 183.87.217.222 belongs to India: is shown in Last blocked visits
but IP Adress 154.216.16.154 belongs to Hong Kong: is NOT shown in Last blocked visits
Both IP addresses are shown in Wordfence Life Traffic Log.
]]>Hi,
are there any known issues and fixes with ?LiteSpeed Cache plug-in for WordPress when viewing pages from mobile devices?
Thanks.
Hi,
Great plugin by the way, I now use it on several sites and I’m always happy with the results, thank you very much!
I’ve recently setup some Google Tags on a site, but Google Tag Manager can’t see the tags when the plugin is activated. All of the Google services are ticked and it’s still not allowing access. I also temporarily allowed access to the United States and Ireland (normally set to UK only), and this also didn’t work. Currently the only way is to deactivate the plugin.
Do you have any suggestions?
Many thanks!
]]>Hello, IQ Block Country team,
I blocked access to the front-end of my website but even when I add the IP to the allow list I still can’t access the front-end. I check my IP in the plugin and I get the message “This country is not permitted to visit the frontend of this website. This IP address is present in the frontend allow list.”
I’ve been using this plugin for years and this started happening in the last 2 weeks.
I appreciate any help,
]]>I have deleted the old files and reinstalled the plugin but no luck. All pages down with critical error. PHP is full of:
[31-Jul-2024 18:22:11 UTC] PHP Fatal error: Declaration of GeoIp2\Database\Reader::country(string $ipAddress): GeoIp2\Model\Country must be compatible with GeoIp2\ProviderInterface::country($ipAddress) in /var/www/advantechmsp.com/html/wp-content/plugins/iq-block-country/vendor/geoip2/geoip2/src/Database/Reader.php on line 107
]]>Does this plugin automatically whitelist search engines such as Google and Bing or does this need to be set somewhere? For example, if you’re blocking all countries except for x.
]]>After upgrading iQ Block Country to 1.2.23, all my pages shows: “There has been a critical error on this website.” after some reloads (F5) it sometimes work, after disabling the Plugin, everything is back to normal, please fix it.
]]>So it seems that now we need already PHP8.1? Now most of our clients sites which have lower hosting plans cannot update the plugin. And yes, we know that even 8.0 is too old but WordPress core requires 7.4.
]]>Ran the latest update an got critical error site crash
Immediately renamed plugin to xxx.old to get site back
]]>I use IQ Block successfully on a number of sites, it is fantastic.
I tried to install it on a site today and as soon as I activate it, it blocks me and redirects me to Google.com. This is how I usually setup the plugin – redirect other countries to Google.
I regain access by deleting the plugin through Cpanel. How can I regain control of the plugin so I can go in and change the settings to whitelist my IP? I cannot see any IQBlock tables in the database which I can edit?
]]>Hello. Am having trouble doing Safe Updates through ManageWP. Am going through the plugins and noticed this one hasn’t been tested w/the current version of WordPress. When will it be?
]]>I have historically used this for blocking all countries EXCEPT (mine, and a few others).
But can I use it to block all countries BUT whitelist certain IPs?
]]>Hi, IQ Block Country team,
I have installed, activated and configured your plugin for a client’s site that has been receiving huge amounts of spam lately. I’ve tested the plugin using a VPN and can still access the site from countries not included in the whitelist. Can you provide any advice on how I can ensure effective implementation of the plugin?
Best regards,
]]>Hello,
This plugin loads version 2.9.0 of geoip2 which is more than 4 years old.
{
“name”: “geoip2/geoip2”,
“version”: “v2.9.0”,
“version_normalized”: “2.9.0.0”,
—
Could you please update this, as it’s causing incompatibility clashes with other plugins using 2.13+.
Here’s another plugin with similar issue, and excellent directions and info from Diego at Aelia, https://www.ads-software.com/support/topic/updating-geoip2-api/
It seems pretty smooth to update to 2.13 without any issues.
Currently we’ve had to disable iq-block-country due to the incompatible geoip2 version with our other newer versions.
php8.3 if relevant*
Thanks,
Kent
On the Frontend tab, under “Select the countries” to block, the first list item is “Anonymous Proxy”. What exactly does this block and what is the criteria? Will this block some people using proxies or Virtual Private Networks?
]]>I use custom Fail2ban solutions on my web servers for better protection.
For a long time, this has been successful with an extension of the Bad-Bot plugin from Jeff Star here (https://www.ads-software.com/plugins/blackhole-bad-bots/).
I also process data from the Wordfence plugin, for example (which is somewhat complex)
It was therefore quite logical to look for a solution for IQ-Block Country as well. Because it is very helpful to transfer an IP already recognized by a WordPress instance to the entire server in order to block further access even for other WordPress installations on the same server.
In the first step, I therefore inserted this code in line 130 of the blockcountry-logging.php file:
do_action( 'iqbc_fail2ban_logging', $iqbc_ipaddress, $iqbc_country, $iqbc_banned, $iqbc_urlRequested );
And for four weeks now, I have been able to add the accesses to the backend recognized and blocked in the plugin to Fail2ban without any errors.
It would be a great help if we could talk about the above hook and possibly 1-2 others (e.g. for a reset of the log file or rebuild of the log).
The necessary script is still beta, but I am happy to share it for my own tests. I plan to offer this to the community as an add-on in the future.
Best regards
]]>Many thanks for your great plugin! I have now successfully achieved what I wanted for several months on various websites.
Here is a suggestion/hint for a future version:
I run my own web servers with Plesk and WordPress toolkit and block the backend via IQ block. So far everything is working as expected!
For websites that are managed in a different country code, only the country code of the login area is open, everything else is blocked. However, this then leads to an effect ( possibly triggered by the WP-Toolkit). The IP of the web server is shown in the log file on a daily basis.
I have manually prevented this by adding the IPs of the web server to the white list of the backend in the relevant WordPress installations. This must be corrected manually when moving servers and taken into account for new installations.
My idea: If the web server has an NL IP, for example, and the backend is blocked for NL, the IP of the server is added to the whitelist. Or in general… as I don’t see it as a security risk.
I find it more difficult to customize after the server move. But a visit to the corresponding options page in the plugin and a button would be a simple mode. Or when activating the plugin – so that deactivating and activating via WP-Toolkit from Plesk would simplify the re-setting of the IP to the whitelist.
I would be happy to provide further details or – if not available myself – access to a Plesk account!
Kind regards
]]>Could you supply some examples of how to block ranges in CIDR format?
For example suppose I wanted to block the range 198.55.22.0 to 198.55.22.255
Would the CIDR format be 198.55.22.0/24
How would I block the more difficult case of 198.55.22.120 to 198.55.22.180
]]>On the HOME settings page when html and css tags are added to the “Message to display when people are blocked:” box, html characters such as < are converted to the safe form <
Please can this be fixed so html and images can be added.
]]>My PHP log is filling up with these messages:
[17-Dec-2023 09:00:54 UTC] PHP Warning:? Undefined global variable $pagenow in /var/www/html/wp-content/plugins/iq-block-country/libs/blockcountry-checks.php on line 580
]]>I’m testing this plugin to block all countries accept mine (Netherlands) from backend access.
I’m running the latest version of the plugin on my WP website (v6.4.1) and PHP 8.1.
On the backend tab is see: Your IP address is <my ip address>. The country that is listed for this IP address is Unknown.
When under tools i check an ip address of a brute force attacker i see: No country for 103.83.81.221 could be found. Or 103.83.81.221 is not a valid IPv4 or IPv6 IP address.
The actual Maxmind country database has been uploaded to the wp-content/uploads directory. When i check my ip address and also the ip addresses of brute force attackers on the website of maxmind these addresses are found.
I’ve disabled the caching plugin and the security plugin on my website to no avail. Any idea what i am missing here.
]]>Hello Pascal,
i’ve found the setting. Many thanks!
]]>Using your plugin for the last few years to restrict visitors to visiting frontend from some specific countries. It was working fine. But for the last few days, it is working only a few hours after setting. Then again doesn’t work. I uploaded the latest ip database according to your guideline.
From the setting page, I set it to restrict visitors from a specific country. It works for a few hours then after a few hours, the restriction doesn’t work though the setting remains the same on the setting page. What should be the problem?
]]>Hi, thanks for the plugin. I used it to block all non-German approach to my website for a long time. Now I discovered, that when I switch on to NordVPN Frankfurt, I got blocked as well. Why is this so?
]]>Hi,
Great Plugin!
But sometimes it blocks also IPs not from the selected countries… it just happens from time to time just for 1 Click – is this a known bug? Any ideas what we can do?