June 2013
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930

Categories

June 2013
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930

Apache mod_rewrite security rules for Web server harding

# Hardened Apache Mod_Rewrite Security Rule # Ref: http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritecond # NC = ‘nocase|NC’ (no case-sensitive) # OR = ‘ornext|OR’ (or next condition) # L = last rule RewriteEngine on

# Allow only GET and POST verbs # ‘Coz most vul scanners use HEAD for hunting buggy files existence RewriteCond %{REQUEST_METHOD} !^(GET|POST)$ [NC,OR] # Ban Non-GUI […]