Forum Moderators: phranque

Message Too Old, No Replies

htaccess only denying root files not subdirs

         

Frank_Rizzo

11:17 am on Nov 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I am blocking an ip address in .htaccess (in public_html dir). This is blocking the ip from seeing any pages in the root of the website, but not in the subdirs.

<Limit GET>
order allow,deny
deny from yyy.yyy.yyy.yyy
allow from all
</Limit>

What's wrong with it? And should I have more than just GET in the limit?

jdMorgan

2:01 pm on Nov 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Possibly, the problem is the scope you have defined for the directives by enclosing them with <Limit GET>. Try enclosing them in <Files *> instead.

Another problem with using <Limit GET> is that even denied agents would be able to POST, PUT, DELETE, etc.

Jim