开发者

Matching <script> or <iframe onload in querystring

开发者 https://www.devze.com 2023-03-28 16:43 出处:网络
i am facing xxs problem and i am using ISAPI Rewite 3. I want to detect if a querystring contains ... or开发者_JAVA技巧redirect it to my home page.Try using the following structure:

i am facing xxs problem and i am using ISAPI Rewite 3. I want to detect if a querystring contains ... or 开发者_JAVA技巧redirect it to my home page.


Try using the following structure:

RewriteEngine on
RewriteBase /

RewriteCond %{QUERY_STRING} ^(.*iframe.*)$
RewriteRule .* http://www.domain.com [NC,R=301,L]
0

精彩评论

暂无评论...
验证码 换一张
取 消