Forum Moderators: phranque

Message Too Old, No Replies

Multiple Allow/Denys

         

ryan_b83

2:29 pm on Nov 21, 2006 (gmt 0)

10+ Year Member



Hello, this is probably a simple question for most of you, but im not much of a Apache guy... Anyways a PHP script of mine detected an email injection attack, I logged the IP and now i want to block it. I went to my web tree's root htaccess file and attempted to put this in


order allow,deny
deny from 211.234.93.146
deny from 219.240.36.174
allow from all

But i got an internal server error? I also noticed below it was this


<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>

Any idea on the problem?

Thanks,
Ryan

ryan_b83

4:27 pm on Nov 21, 2006 (gmt 0)

10+ Year Member



Nevermind everyone... i didn't know had to have the # for a comment as the first character, i thought it was like PHP and you could add comments to a line of code but not on the first character.

Thanks,
Ryan