.htaccess block IP
Posted: Fri Oct 12, 2007 9:51 am
I think I have this correct, but I haven't used .htaccess much for blocking an IP. (I say I think because at least I can still see my site!).
Could someone verify that I have this defined correctly? And if I need to add more I can just copy the deny line correct?
Here's what I have in my .htaccess file:
Thanks.
Could someone verify that I have this defined correctly? And if I need to add more I can just copy the deny line correct?
Here's what I have in my .htaccess file:
Code: Select all
<Files *>
order deny,allow
deny from xxx.xx.xxx.xx
</Files>
# Prevent web browsers or spiders from seeing your .htaccess directives:
<Files .htaccess>
deny from all
</Files>Thanks.