我想将来自http://www.example.com的所有流量重定向到http://www.mysite.com/badreferer.aspx?bad=true
为此,我尝试在 IIS7的http://www.mysite.com的 web.config 文件中创建规则。
<rule name="bad referer" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_REFERER}" pattern="(.*)example(.*)" />
</conditions>
<action type="Redirect" url="/badreferer.aspx?bad=true" appendQueryString="false" />
</rule>
但是重定向循环有问题。
请帮忙。
谢谢。