iQ Block Country (a WordPress plugin)
iQ Block Country is a wordpress plugin that allows you to block visitors based on from which country they are from.
This plugin is tested with WordPress 2.9.2, this is also the version which was first used to test it so no guarantees it will work on prior versions. This plugin also works for WordPress 3.0.1
Latest version: 1.0.4
Description
If you want to block people from certain (obscure) countries that have no business visiting your blog and perhaps only leave spam comments or other harmful actions than this is the plugin for you.
Choose which countries you want to ban from visiting your blog. Any visitors from that country get a HTTP/403 error with the message “Forbidden – Users from your country are not permitted to browse this site.”
They will not be able to do harmful things to your blog like post comment spam.
This plugin uses the GeoLite database from Maxmind. It has a 99.5% accuracy so that is pretty good.
Once you setup this plugin it will try to download the GeoIP database from Maxmind so you will always have a recent version of the database when installing this plugin.
Installation
1. Unzip the archive and put the `iq-block-country` folder into your plugins folder (/wp-content/plugins/).
2. Activate the plugin through the ‘Plugins’ menu in WordPress
3. Go to the settings page and choose which countries you want to ban. Use the ctrl key to select
multiple countries
4. Check if it downloaded the GeoIP database from MaxMind otherwise follow instructions on screen.
Frequently Asked Questions
Q: Does this plugin also work with IPv6?
A: No not yet. Maxmind has a GeoIPv6 database though just no support for PHP yet.
And as my blog is also reachable on IPv6 I might incoporate this database as soon this is possible.
However: We need more IPv6 out there so please DO ask your hosting provider for IPv6!
Q: How can I get a new version of the GeoIP database?
A: You can remove the file GeoIP.dat from the plugin directory and after removal go to the settings page of this plugin. When it sees the GeoIP database is missing it will try to download it for you.
However you can also download the GeoIP database yourself from Maxmind and overwrite the existing database.
Since version 1.0.4 you can also press the “Download new GeoIP database” button in the admin menu.
Maxmind updates the GeoLite database every month.
Q: Help it gives some error about not being able to download the GeoIP database?
A: Follow the instructions on screen. It will probably tell you that you have to manually download the GeoIP database from Maxmind from the following url:
http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
It will also give you the location it expects the GeoIP.dat file. So go ahead and download it and unzip the file to this specific location.
Q: How come that I still see visitors from countries that I blocked in Statpress or other statistics software?
A: It’s true that you might see hits from countries that you have blocked in your statistics software. That is the way it works, certain plugins may be run before iQ Block Country is run so it may log visitors to pages. This however does not mean this plugin does not work, it just means somebody tried to access a certain page or pages and that that fact is logged.
If you are worried this plugin does not work you could try to block your own country and afterwards visit your frontend website and see if it actually works. Also if you have access to the logfiles of the webserver that hosts your website you can see that these visitors are actually denied with a HTTP error 403.
Changelog
v1.0.4
- Added a button to download the new GeoIP database.
v1.0.3
- Updated the FAQ
- Try to make sure this plugin is loaded first to avoid “headers already sent” trouble.
v1.0.2
- PHP 5.2 or higher required
- Fixed an include bug when other plugins also use the MaxMind database. Thanks to Marcus from LunaWorX for finding this bug.
v1.0.1
- Included the necessary geoip.inc file
v1.0
- Initial release
Upgrade Notice
v1.0.3
This baby should just upgrade fine. You may want to deactivate and reactivate this plugin to make (pretty) sure this
plugin is loaded first. This especially recommended if you have problems with ‘headers already sent’ notices.
v1.0.2
PHP 5.2 or higher is now required.
Just upgrade if you have PHP 5.2 or higher.
v1.0.1
You can just upgrade. Actually we urge you to as else this plugin won’t work.
v1.0
Initial release
Download
You can download this plugin from the WordPress Plugin site: http://wordpress.org/extend/plugins/iq-block-country/
Planned features
- IPv6 support
- Blacklist ip addresses as sometimes you just don’t want to ban an entire country
- Whitelist ip addresses, maybe you want to ban a whole country except some good guys
Feature requests
If you miss a certain feature or if you would like to see something else changed or added please let me know. I am open to any suggestion that may improve this plugin.
Gerelateerde artikelen:
U kunt reacties op dit bericht volgen via de RSS 2.0 feed. U kunt een bericht achterlaten, of een trackback geven op uw eigen site.




I have been looking for this EXACT program and installed it directly from WP. Unfortunately, it blew up with this error:
You are missing the GeoIP class. Perhaps geoip.inc is missing?
I deleted the Geo dat file and reran the config. Nadda. Still broken. Waiting to help.
Cheers!!
Ken,
Yep I made mistake and didn’t include geoip.inc in the first version. Version 1.0.1 is downloadble from WordPress that does include this file.
So either delete the plugin, and reinstall again or wait till WordPress tells you there is a new version available. Or ofcourse upgrade manually
Yeah, sorry. I posted and then saw your .1 update!!
Cheers!!
No problem.
Hope this plugin is what you need. If you have any feature requests please let me know
Cool
ze weten het te vinden en was blijkbaar zeer gewild
Hi,
This looks just like what I need. I’m assuming if I block an entire country, then it blocks all scrapers from that country not just visitors to one of my pages?
Thanks!
It will give a “Forbidden – Users from your country are not permitted to browse this site.” on all of your pages if a visitor is from a country that you have blocked.
[...] bericht verwijderen.JC-IPRestrictions – met deze plugin kun je bepaalde IP adressen blokkereniQ Block Country – heb je veel last van spammers of andere vormen van ‘aanvallen’ op je blog dan [...]
I just need to show my site only to people coming from Italy, but then what will be about search engine indexing?
If you block every country but Italy you will only allow search engines from Italy (if any).
In a future release I am planning to be able to whitelist certain ip addresses but then you will need to get a list of IP addresses of the search engines you will want to allow.
As a partial solution you can for instance allow just the United States as that is where the Google IP addresses that index this site are coming from. And probably also the spiders from Bing/Microsoft are using IP addresses that are listed in the USA.
All i see is a list with $VALUE in it. No listing of countries or the like. Tried uninstalling, re-installing, resetting permissions. There’s no errors being generated, (If I delete the GeoIP.dat or .inc I can force an werror message, but still all I see id $value int he country list of the plugin.. Odd indeed.
Hi,
You definetly need to have the geoip.inc file which is included in the 1.0.1 release. The GeoIP.dat file is downloaded if it doesn’t find the file.
Which version of PHP are you running on your site?
-rw-r–r– 1 wwwrun www 958K May 3 11:51 GeoIP.dat
-rw-r–r– 1 wwwrun www 24K May 3 11:50 geoip.inc
-rw-r–r– 1 wwwrun www 6.0K May 3 11:50 iq-block-country.php
-rw-r–r– 1 wwwrun www 2.8K May 3 11:50 readme.txt
All of them are there, and it downloads the GeoIP.dat correctly. I’ve checked the Database and I do not see any new entries in the SQL Database for this Plugin. I’m thinking there’s an issue with the SQL Side of things. I’m checking permissions now.
Dave
Oh, Sorry forgot, PHP Version 5.2.5…
Dave
Great idea, but I’ll wait until the ban IP feature is implemented.
No thoughts?
There’s definatly no SQL Tables being added to the Databse. Unsure if there is supposed to be. Still after many tries all I see in the country list is $value, Download og GeoIP.dat works fine, the geoip.inc is there, (As per the previous messge)…. I’m stumped.
That’s correct, it will add an option in the general wordpress config as soon as you have selected a country (or countries) at the options page.
As I understand your problem is that you cannot select countries at all so no entry will be added to the database.
I will have to set up a test machine with PHP 5.2.5 as it has only been tested with PHP 5.2.12 and higher and PHP 5.3.x
Can you perhaps send a screenshot to info @ trinyx ? Also perhaps if display_errors is set to false perhaps setting:
php_flag display_errors on
in the .htaccess file will shine a light on the problem. I however do not recommend that you leave the display_errors set to on for too long.
I’ve tried to reproduce by installing PHP 5.2.5 but everything works fine for me.
So I need more input like a screenshot, error messages produced by setting display_errors to on etc.
This sounds like a great plugin, but the settings page turns out blank. Can’t get it to work.
Hi,
Which version of PHP are you running? And are there any error messages displayed?
Set:
php_flag display_errors on
in the .htaccess file
WordPress Version: 2.9.2
PHP Version: 5.2.10
I don’t get any error messages though :S
I will try to change the .htaccess
Hmm fascinating. when I use the php_flag display_errors on flag I get an error 500 and nothing shows
Perhaps you have made a typo in the .htaccess file? If there is a misconfiguration in the .htaccess file the webserver will return a error 500.
Also on what operating system version is your website running?
Nop, no typo. Just some dumb settings from on the webhosting place I am
I will try to locate the error in some way.
I can tell you this much, when I activated your plugin I couldn’t get into my site – so it works
It’s only the config part that doesn’t work.
I found the problem, the plugin “Count Per Day” http://www.tomsdimension.de/wp-plugins/count-per-day gets somehow in conflict with your plugin
Thank you for your feedback.
I’ve installed this plugin on my test site and was able to reproduce this problem.
Actually the problem that you couldn’t get in your site was the same problem why nothing else was displayed on the settings page. If no countries are selected it allows all countries by default. That is if this problem does not occur
I’ll be releasing a new version soon with a fix.
Thanks dude!
You’re awesome. I updated to the new version and it works great!
Yep he truly is awesome
Thank you both
A little request, would it be possible to redirect the unwelcome visitors to another page or another place?
And a small problem… when a user is blocked this is shown
“Warning: Cannot modify header information – headers already sent by …themes/melitus/index.php in …wp-content/plugins/iq-block-country/iq-block-country.php on line 223
Forbidden – Users from your country are not permitted to browse this site.“
Redirecting to a url may cause a loop so I would need to check if the redirect url is the page that is currently accessed.
You probably don’t want a page either as that will be visible in your menu under normal circumstances.
Perhaps another solution is to be allowed to add a text within the plugin itself that is displayed within the normal layout.
Regarding the other problem you’re having. You probably have a plugin that is loaded before the block country plugin and outputs stuff.
I’ve seen a possible solution that makes sure a plugin is first in line when it’s activated. I will see if this is a real solution and if so implement it.
Hi again
I installed the new version. Then I shut down all the plugins and activated only “IQ block country” but got the same result. So I added a line after the “not permitted” print that sends a javascript redirect to a page that does not belong to the blog. That worked fine
Anyhow, the blocking part works fine and that is the most important. I am truly grateful for this plugin!
[...] achar conveniente, instale você também o plug-in chamado iQ Block Country (http://www.trinyx.nl/2010/03/iq-block-country-a-wordpress-plugin/) e após tê-lo ativado, vá em [...]
Great idea for a plugin, but how about blocking by IP or IP range(s)?
Blocking individual IPs or IP ranges is on my to-do list.
Nice plugin.. but can it be used for redirect visitors to to other blog pages?
Like:
Like if i am from USA and i access domain.com then this plugin need to redirect me to domain.com/us
Another example if “Mike” which is from Canada access domain.com it will be redirected to domain.com/ca
Is this available ? If not you can use it for your new update on this plugin. Anyway i will test it right now.
No this plugin is just for keeping visitors from countries away from your blog.
If you are happy with redirecting visitors from a country to domain.com/countrytld so Visitors from Germany are redirected to domain.com/de and visitors from France are redirected to domain.com/fr then I can make this adjustment for you. If you would like to configure the urls that countries are redirected to that is a bit more work.
Can you really do it? I was looking on google but i did not found anything good for this redirects. Let me know if i can help you with something.
Do you use permalinks?
Yes i do use
I am sorry I already created a version for you a week ago but forgot all about it… I blame the weather
I am not entirely sure if this is what you want but if people come to the main page of your blog they are redirected to http://www.domain.tld/country (where country is the ISO code for the country).
For this to work you need to create ‘pages’ with the name of the ISO code.
Can I send this version to the email address you supplied with your comment?
Hi, I have a network of about 50 blogs that I have installed the plugin on (WPMU install). I wonder, since I have chosen the countries I wish to block on the first site, and I want the same countries blocked from all blogs, is there a way to replicate the php file with the chosen files to my other sites via ftp? Or is there no shortcut? As you can imagine, with 20-25 countries selected, the process could take quite awhile, and if I could locate an easy file to drag and drop over using FTP it would be great! Thank you.
Hi,
I am not familiar with the MU setup but I assume every blog has their own database or at least their own unique tables.
You can copy the option_name “blockcountry_banlist” from the wp_options table to the other blogs. The contents of this option is an array of all countries you block on the first blog.
[...] IQ Block country – awesome plugin. [...]
Just a thought regarding the redirection:
Maybe you can change the line of code/s that include these:
header ( 'HTTP/1.1 403 Forbidden' );print "....."
to something like:
<meta HTTP-EQUIV="REFRESH" content="0; url=">
Hi, how often should one manually refresh the database file? – Since iQBC doesn’t do it by itself automatically (right?).
Maybe an automatic database update could become a nice feature for the next release? Great plugin anyway.
You can remove the Geoip.dat file and then go back to the admin page. It will see the file is missing and fetch the file again.
In the future it will be either automagicly done or there will be a manual button to update the file.
I’ve just build a button into a new version that lets you download the GeoIP database.
I need to test it a bit more but after testing it will be releases as new version.
hi, i think this plugin doesn’t works with the cache plugins, i turn on iq block and blocked couple countries, and after a while i myself will see the 503 pages, because the cache plugin cached the page that blocked visitor visited. is there anyway around this problem?
That entirely depends on the type of caching that is being used. But chances are pretty high that this plugin won’t work or will result to undesired behaviour when you use caching.
Hi Pascal,
could you please send me the redirect-modified version that you and Ciprian were talking about?
Regards
Malcolm,
Can I send it to the address you have entered (.de) with your comment?
Dear Pascal,
my spam filter probably intercepted your response – please excuse me.
I entered a new email address and would be very glad to receive your codes for the redirecting version.
Thanks a lot in advance
Best regards,
M.
PS: My question from 11 juli 2010 om 07:46, whether one should update the IP database from time to time manually still remains unanswered…
Malcolm,
I’ve send you the version that I’ve build.
Hello Pascal,
This sounds like a great plugin, exactly what I was looking for! Does it work with 3.0.1? If it does, you may want to note it on the WP plugin page so that the automatic notification does not inform users that this version has not been tested with 3.0.1.
Thanks!
Yes it works with 3.0.1
Users can also tell on the wordpress plugin site that it works (or not). It needs an update of the documentation (and thus “a new release”) for me to tell that it works.
I want to install this on a blog, but I only want to block countries from certain pages on the blog (for instance, if any visitor outside of the U.S. goes to a certain category, they will be blocked). Is there an easy fix for this? Should I use the plugin or manual code? Help please! Need to do it before end of Thursday!
I am sorry my plugin cannot do such a thing the way it is written now.
Thx for responding! Is there any method you’d suggest I try so that I can have my site work like that? For instance, is there a way to add .htaccess instructions per post/page? If so, then I can just include that code in the “html view” of each WordPress post, right?
You may be able to do such a thing with mod_geoip for apache and soms rewriterules. But in that case you need to be able to compile apache. So you probably need to have your own vps or dedicated server. It’s most likely not something that is enabled on shared hosting accounts.
Just downloaded and activated — I get this error:
Fatal error: Call to undefined function filter_var() in (path removed)/iq-block-country/iq-block-country.php on line 41
Which version of WordPress are you running?
Hi, I am using classipress, and your plugin doesnt work with it. I get a blank screen on the settings page. I turned off all my other plugins, so it isnt that. Have you encountered this before?
I am not sure what classipress is. It seems to be a spinoff of wordpress with their own releases?
I would need more info to be able to judge what goes wrong here.
Perhaps setting the PHP errors display to on may get helpful information:
Set:
php_flag display_errors on
in the .htaccess file
I have only one pluggin and still get the “headers already sent error”.
To get around it I have changed :
header ( 'HTTP/1.1 403 Forbidden' );print "....."
To this:
echo ( 'HTTP/1.1 403 Forbidden' );print "....."
And it all seems to work out for me. Does anyone see any issues that this would cause ?
‘Problem’ with that is that browsers / search engines / spam bots etc will not receive a proper HTTP error code. For human readers this is not a real problem as they can read the message on the screen.
For search engines and spam bots (though a lot of them probably ignore the HTTP headers) they rely on the headers. With your solution they get a HTTP/1.1 200 code which basicly is everything is okay here’s the page you requested. So they keep on visiting your blog. Regarding anti-spam solutions not a huge problem as they might visit and try to post spam they do not get through.
You also may want to disable the echo or just delete that line as it has no meaning right now. It’s just text and not a header anymore.
You could also allow php to send another header after one is already send by setting: output_buffering = On
/etc/php5/apache2/php.ini
; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP’s output layer a
; bit. You can enable output buffering during runtime by calling the output
; buffering functions. You can also enable output buffering for all files by
; setting this directive to On. If you wish to limit the size of the buffer
; to a certain size – you can use a maximum number of bytes instead of ‘On’, as
; a value for this directive (e.g., output_buffering=4096).
output_buffering = On
Hi, how to redirect unwanted visitor by country to another site without sending Forbidden message.
You can’t by default. If you know how to code you could replace the header section by something like Location: http://www.othersite.com/ It has to be another site however as otherwise those visitors will be in an endless loop.
Sounds awesome, only thing I can recommend is the ability to redirect that traffic rather than just blocking it. One sites bad traffic is another sites gold.
Whether this plugin will have an effect on SEO?
[...] iQ Block Country from Pascal. If you have a lot of spam coming from some country, and you do not need the traffic [...]
Thank you Pascal, for such a useful plugin. A couple of questions:
1. I don’t see this plugin adding any code to my .htaccess file. Where is the injection/interception of the user?
2. Would it be possible to use Maxmind’s paid (& more accurate) database instead of the free one somehow?
3. Have you been able to tell how much this plugin adds to page load time exactly; I certainly can’t tell by looking, but every millisecond counts now that google uses page load times to factor into rankings.
Thanks again, and my vote for future improvements would be split between Cronned-database auto-updating, and of course custom 403 redirect. -You might make some cash affiliating a program or two that wants that traffic, while your at it!
Cheers,
Luke
Luke,
1: The plugin uses standard wordpress functions to nest itself in the header. It checks the IP address of the client and looks it up in the maxmind database. If it is a blocked country then it will spit out a forbidden header. If is not a blocked country it will do nothing.
2: I don’t see why not. You can download the database from the customer area of Maxmind if I recall correctly. Or you can use the update tool from the commandline. As long as the database is in the place it expects it will use the free or if replaced the paid version.
3: I haven’t checked either. As the plugin just checks the ip address against the maxmind database it is a very light weigthed plugin. It also depends on how busy the hosting server is and the file access times of that server.
Thanks for the input
I am not sure about the update through the crontab however. A lot of folks don’t have access to the crontab after all and the database is only updated once a month.
Then again, I don’t think it’s a big issue to write a small script that you can use for a cronjob if you have access to it.
Dag Pascal,
Ik heb een vreemd probleem sinds vandaag. Mijn IP 81.82.XXX.XXX word geblokkeerd en ik krijg geen toegang meer op mijn site. Nog vreemder is dat de toegang geweigerd word door G.Chrome et IE maar Firefox laat mij blijkbaar wel door.
Belgïe is niet in de lijst van de geblokkeerde landen.
Zeer vreemd en lastig probleem dus.
Enig idee wat het zou kunnen zijn en hoe ik dat kan oplossen aub ?
Mvg
Pascal
Ik heb nog een paar testen gedaan en blijk dat alle IP die toegewezen zijn aan telenet ook geblokkeerd worden 94.225.xxx.xxx
Your plugin only blocked main page.
But do nothing when I someone type mydomain.com/wp-admin or mydomain.com/wp-login.php
Can you fixed this problem?
Thanks.
Hi,
It does not block only the main page, it blocks all content pages. Except for the admin pages. But this is as designed. You don’t want to block yourself from visiting the admin pages just because you accidently deny access from your own country.
There are other ways to limit access to the admin pages to certain ip addresses for instance with the .htaccess file.
Hi Man,
First I must say that i really like your plugin , i have dozens of wordpress sites and i’m thinking to install your plugin in whole of them , but i really don’t have the time to configure the plugin settings manually (mainly the ban country list ) so i want to update it using a mysql update command.
my question is about the ‘blockcountry_banlist’ value syntax –
the value i want to replicate )
for example
a:6:{i:0;s:2:"BR";i:1;s:2:"CL";i:2;s:2:"CN";i:3;s:2:"RO";i:4;s:2:"RU";i:5;s:2:"TH";}i understand ( please correct me if i am wrong) that:
i- is index
s – is the string length followed by the string that represents the country
but what is the ‘a:6:’ string in the beginning ?
what does this string represents ?
Thanks a million
Hi, The a:6 is the number of fields in the array. This is actually a “readable” version of the array that wordpress uses to store it into a database field.
WordPress uses the PHP function serialize/unserialize to ‘compress’ and ‘uncompress’ the array.
Thanks for solving that mystery for me ,
also two thumbs up for answering so quick
just want to say thanks you for this plugin, it work!
After wp304 update get intermittent blank page load with
Forbidden – Users from your country are not permitted to browse this site.
But I am in US looking at my own site.
A refresh produces correct home page
Hi,
I cannot reproduce this error on my WordPress sites. Perhaps it was a browser cached page or something?
Thsi plugins doesn’t work in WordPress 3.0.4
Please update your plugin.
Here is the screen shoot my iq blcok Country:
http://i56.tinypic.com/xggnys.png
Nice plugin!
I had to edit it somewhat though, since i already had the ‘php5-geoip’ package installed (which adds the php functions already).
I changed the following in the geoip.inc:
function geoip_country_code_by_name($gi, $name) {
$country_id = geoip_country_id_by_name($gi,$name);
if ($country_id !== false) {
return $gi->GEOIP_COUNTRY_CODES[$country_id];
}
return false;
}
to
if ( !function_exists( ‘geoip_country_code_by_name’ ) ) {
function geoip_country_code_by_name($gi, $name) {
$country_id = geoip_country_id_by_name($gi,$name);
if ($country_id !== false) {
return $gi->GEOIP_COUNTRY_CODES[$country_id];
}
return false;
}
}
and
function geoip_country_name_by_name($gi, $name) {
$country_id = geoip_country_id_by_name($gi,$name);
if ($country_id !== false) {
return $gi->GEOIP_COUNTRY_NAMES[$country_id];
}
return false;
}
to
if ( !function_exists( ‘geoip_country_name_by_name’ ) ) {
function geoip_country_name_by_name($gi, $name) {
$country_id = geoip_country_id_by_name($gi,$name);
if ($country_id !== false) {
return $gi->GEOIP_COUNTRY_NAMES[$country_id];
}
return false;
}
}
also see:
http://code.google.com/p/slimstat/source/diff?spec=svn27&r=27&format=side&path=/trunk/_lib/geoip.php
Is it possible to block at the page level and not across the whole site? I just want to restrict countries from accessing a single page – not the entire site.
I really appreciate your great work on the plugin iQ Block Country (a WordPress plugin). But still there is a weakness that is the website can still be accessed via Google Cache. Please fix it Mister.
Why not use google’s own methods to stop the google cache
https://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=164734&rd=1
or just add this to your header…
or use something like this
https://wordpress.org/extend/plugins/avoid-googles-cache/
Cheers
The header disappeared.. i’ll try again
<META NAME="ROBOTS" CONTENT="NOARCHIVE">
<META NAME="GOOGLEBOT" CONTENT="NOARCHIVE">
I just have a dumb question, if I block Canada from accessing my blog and I live in Canada, will I still be able to access the admin side of my blog?
I don’t want to setup the iQ Block Country plugin and be unable to log back into my admin side again.
Thank you!
(I’m using the latest version of wordpress)
The iQ block plugin only works for the frontend so you will be able to access the admin side if you block your own country.
How do I know it’s working? I did find one place that lets you test from China: http://www.websitepulse.com/help/testtools.china-test.html
Like a couple other commentors, I’m looking for a way to block access to my admin site for a few specific countries. I realize I’d have to be extra careful not to block my own. Is there any way to reconfigure the plugin to allow me to do this?
Scratch my previous comment. I found a nice tool that will generate the code needed for an htaccess block (or allow) for specific countries. If others need this too, you’ll find it at Country IP Blocks.
Warning: fopen(/home/watchpre/public_html/wp-content/plugins/iq-block-country/GeoIP.dat.gz) [function.fopen]: failed to open stream: Permission denied in /home/watchpre/public_html/wp-content/plugins/iq-block-country/iq-block-country.php on line 107
i get this error
Could you add a feature to allow certain ip addresses, regardless of country block.
Also ban ip feature also.
PS: I will send you paypal money if you do it.
Bio.
I installed this a couple of days ago and it seems to be working. I have had a few people slip through but I assume they were using a US proxy.
I have an Amazon site and so I only get paid for sales on Amazon US and although I hate to block users there are a lot of folks from other countries that are not buyers and go through 50 pages at a time and eat up my band width. I also worry some may be scraping my site.
This may be a stupid question but I couldn’t find the answer. Maybe I missed it somehere. How do I unblock a country or countries I have blocked?
There is a error message that header is missing.
I will add header if you can provide information for eg. url.
Thanks for a great plugin.
“Please download this file yourself and unzip this file to ”
I get an error and when I try to download db manually I dont know where to put it!!
Doesnt say where to put it!!
Hi,
The file needs to be placed under: /wp-content/plugins/iq-block-country
I will look into why the location is not displayed.