How to allow access only within country

The solution quite simple, just deny all the access and allow that country IP.

<Limit GET HEAD POST>
order deny,allow
deny from all
allow from country IP 
</LIMIT>

Or you want to deny only one or several country

<Limit GET HEAD POST>
order allow,deny
deny from country IP 
deny from country IP 
allow from all
</LIMIT>

How to check the that country IP range, you can get the detail from this Useful site

Leave a Reply

Your email address will not be published. Required fields are marked *