Forum Moderators: phranque

Message Too Old, No Replies

country wide ban

country wide ban

         

Bridge

11:31 pm on Feb 15, 2005 (gmt 0)

10+ Year Member



Apologies if this is a repeat, i did a search but did not find what i needed.

I want to ban a country, all the country, from my server, well a awebsite actually. I understood I could use .htaccess.

I have used this, can I get some confirmation please?

<Limit GET PUT POST>
Order allow,deny
deny from .ca
deny from .uk
Allow from all
</Limit>

Would this be exhautive and fool proof for UK and Canadian surfers?

i.e. a complete ban from those countries?

jdMorgan

11:51 pm on Feb 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Bridge,

No it's not exhaustive or foolproof, since it relies on reverse-DNS requests (thus making it awfully slow as well). It will deny access to people whose ISPs' domain names indicate that they are located in those countries, *if* they have a country-specific reverse-DNS entry.

Jim

Bridge

11:53 pm on Feb 15, 2005 (gmt 0)

10+ Year Member



Thank you so much.

Can you suggest another method which IS fool proof?

I want to ban canada.