Forum Moderators: phranque

Message Too Old, No Replies

Options * Http/1.0

         

therealgtron

4:36 pm on Mar 2, 2009 (gmt 0)

10+ Year Member



would the following block all of the 127.0.0.1 OPTIONS * HTTP/1.0 i see?

<Directory "/">
RewriteEngine on
RewriteCond %{REQUEST_METHOD} !^(GET¦HEAD¦POST)$
RewriteRule .* - [F]
</Directory>

thanks!

Caterham

6:48 pm on Mar 2, 2009 (gmt 0)

10+ Year Member



That is a pretty good example when not to use mod_rewrite because it's inefficient and would be overridden by other per-directory rules by default. Use the limitexcept containers instead, but within <Location /> to override prior per-directory settings.


<Location />
<LimitExcept GET HEAD POST>
Order Allow,Deny
deny from all
</LimitExcept>
</Location>