Return to Snippet

Revision: 28518
at July 9, 2010 01:39 by j4kp07


Initial Code
<ifmodule mod_rewrite.c>
 RewriteCond %{QUERY_STRING} \.\.\/    [NC,OR]
 RewriteRule .* -                      [F,L]
</ifmodule>
# block evil incarnate user agents
SetEnvIfNoCase User-Agent "shell_exec"  keep_out
SetEnvIfNoCase User-Agent "passthru"    keep_out
SetEnvIfNoCase User-Agent "function"    keep_out
<Limit GET POST>
 order allow,deny
 allow from all
 deny from env=keep_out
</Limit>

Initial URL
http://perishablepress.com/press/2008/09/15/evil-incarnate-but-easily-blocked/

Initial Description
block evil incarnate query strings

Initial Title
htaccess DENY incarnate query strings

Initial Tags
htaccess

Initial Language
Apache