lovebet愛博代维 | Linux群集 | lovebet愛博维护 咨询电话:13146530122

iis7.5 重写限制来源访问网站

发布日期:2013-09-22 10
<rewrite>
<rules>
    <rule name="RequestBlockingRule1" patternsyntax="Wildcard" stopprocessing="true">
 <match url="*">
<conditions>
<add input="{HTTP_REFERER}" pattern="http://*.baidu.com">
 </add></conditions><br />
 <action type="CustomResponse" statuscode="403" statusreason="Forbidden: Access is denied." statusdescription="You do not have permission to view this directory or page using the credentials that you supplied.">
</action>
</match>
</rule>
</rules>
</rewrite>