.htaccess rule to prevent iframe attack

Posted: มีนาคม 17, 2010 in Computers and Internet

RewriteCond %{QUERY_STRING}
^.*(;||’|"|\)|%0A|%0D|%22|%27|%3C|%3E|).*(/\*|union|select|insert|cast|set|declare|drop|update|md5|benchmark).*
[NC]
RewriteRule .* – [F]

reference:
http://abhionlinux.blogspot.com/2009/08/htaccess-rule-to-prevent-iframe-attack.html

Advertisements

ใส่ความเห็น

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out / เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out / เปลี่ยนแปลง )

Google+ photo

You are commenting using your Google+ account. Log Out / เปลี่ยนแปลง )

Connecting to %s