View Full Version : Block country plugin
AdjusterGuru
02-01-2014, 07:35 PM
Is there a plugin that will allow me to block visitors from selected countries, or all countries except the USA? WordPress has such a plugin called "IQ Block Country" with the following description:
"Block out the bad guys based on from which country the ip address is from. This plugin uses the GeoLite data created by MaxMind for the ip-to-country lookups."
Spangle
02-02-2014, 09:34 PM
You could try using the IP Deny manager in your control panel, that stops them getting anywhere near the forum
Manoel J?nior
02-02-2014, 10:03 PM
See:
https://vborg.vbsupport.ru/showthread.php?t=292742
AdjusterGuru
02-03-2014, 09:27 PM
Spangle,
Where is "IP Deny manager in your control panel" in Admin Cp for VB 505?
RichieBoy67
02-03-2014, 10:27 PM
Or you could also use htaccess, country codes and country ip ranges.
ozzy47
02-04-2014, 02:32 AM
Try this neat tool, http://incredibill.me/htaccess-block-country-ips
I have read in some places though that doing this through .htaccess can slow the site down.
Or you can try by blocking the country code.
SetEnvIf CF-IPCountry CN BuzzOff=1
SetEnvIf CF-IPCountry RU BuzzOff=1
SetEnvIf CF-IPCountry IN BuzzOff=1
Order allow,deny
Allow from all
Deny from env=BuzzOff
In this example, notice "CN", "RU" and "IN" in the first three lines. These stand for China, Russia and India. Edit those to suit your needs (and add or remove as many lines as you like) by consulting the list of internet country abbreviations (http://www.asiteaboutnothing.net/c_country-codes.html).
Spangle
02-06-2014, 06:00 AM
Spangle,
Where is "IP Deny manager in your control panel" in Admin Cp for VB 505?
It's in your Database C Panel
AdjusterGuru
02-07-2014, 07:00 AM
Thanks Spangle,
I tried the Godaddy CPanel IP Deny Manager and learned that the blocked ip ranges have to be listed for each country. I tried it for Chad (small country in the Sahara Desert) and Godaddy found 30 IP addresses to fill in. Can't imagine how many IP's Russia would have.
Better than nothing, but would be better if they simply had an "Allow country" tool.
--------------- Added 1391760389 at 1391760389 ---------------
Thanks Ozzy,
Researched your htaccess html (eg: SetEnvIf CF-IPCountry CN BuzzOff=1) and it looks like that can only be done with a dedicated server. Not in my budget or expertise for now. Guess I'm screwed for now :) Thanks again.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.