I don't think that's really simple. You need some program that can lookup the IP number in a little database to see which country the visitor is coming from.
yup only way to ban them is determining location on browser language.. depending on the country you are planning to ban that only 50-90% accuracy (90% chinese for example and 50% if you plan to ban a european country).
I don't think that's really simple. You need some program that can lookup the IP number in a little database to see which country the visitor is coming from.
well i do have their ip addresses right now, and i dont mind the hotlinking, but not from hk and china.
actually lookin at my stats, i have their whole ip block. :D
Someone finds you...
2007
PS: Nationalnet is the best host I've ever had. And i tried alot of them.
If you have the IPblock, you can just use a deny statement in the .htaccess. Just put in the first 2 numbers or first 3 of the ip.
<Limit GET POST>
order Allow,Deny
Deny from XXX.XXX.
Allow from all
</Limit>
That'll drop the traffic completely and won't use the extra resources needed my mod-rewrite to redirect them or check for language or any of that stuff.
Comment