标签:
IIS版本:IIS 7.5
URL Rewrite组件:IIS URL Rewrite Module(http://www.iis.net/downloads/microsoft/url-rewrite)
规则定义截图:
Web.config中的规则定义:
<rewrite> <rules> <rule name="pingbi" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_REFERER}" pattern="^http://(.*\.)?(zhixingrensheng\.com)/.*$" negate="true" /> </conditions> <action type="Redirect" url="http://www.zhixingrensheng.com/img/replace.gif" /> </rule> </rules> </rewrite>
IIS URL Rewrite Module防盗链规则配置方法
标签:
原文地址:http://www.cnblogs.com/simadi/p/4792906.html