Portal Home > Knowledgebase > Articles Database > how to deny one whole country IP except one particular IP address?
how to deny one whole country IP except one particular IP address?
Posted by psalm91, 08-13-2013, 03:19 PM |
I can use htaccess to block one whole country but from all those IP from that country how to allow access from one certain IP?
|
Posted by feliper, 08-13-2013, 03:28 PM |
Try add in .htaccess line:
order deny,allow
allow from IP-HERE
deny from HERE
|
Posted by YUPAPA, 08-13-2013, 11:31 PM |
use geoip to determine the country
|
Posted by RoseHosting, 08-14-2013, 07:11 AM |
For a current list of IP addresses by country, go to
http://ipinfodb.com/ip_country_block.php or
http://www.ip2location.com/free/visitor-blocker
|
Posted by psalm91, 08-14-2013, 07:14 AM |
OK
Let's say I want to block all US country except IP 173.194.38.81
Can any body tell me the contents of htaccess?
|
Posted by MagicSata, 08-20-2013, 05:34 PM |
Use one of the generators and add to it the end.
|
Posted by aiderpro, 08-21-2013, 03:32 AM |
Hi,
The following link will help you.
http://www.inmotionhosting.com/suppo...ck-country-ips
|
Posted by bune, 08-21-2013, 05:06 PM |
can use mod_rewrite rule in .htaccess
and set it up
|
Add to Favourites Print this Article
Also Read
305 Use Proxy (Views: 746)