Simple htaccess question
I did a search on this and it got me more confuzzled.I want to ban some IP's from accessing a site with .htaccess.
My .htaccess is already there and is like this... (excerpt)
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
That's how the htaccess came from my host. Now the examples I see around the net say to just change it to.....
<Limit GET POST>
order deny,allow
deny from xxx.xxx.xxx.xxx
deny from yyy.yyy.yyy.yyy
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
But all the examples I see on the web have order allow, deny. So I'm kinda afraid to try this on risk that I'll ban myself or some other doltish thing.
Then I read this thread: http://www.webhostingtalk.com/showth...threadid=72806
And in there they say not to use the GET and POST, so I assume that means to delete all the Limit stuff and just do this....
<Limit>
order deny,allow
deny from xxx.xxx.xxx.xxx
deny from yyy.yyy.yyy.yyy
allow from all
</Limit>
Is that correct?
Any advice would be greatly appreciated.