English
 电子信箱
 加入收藏

  威盾防火墙 >> 新闻中心 >> 威盾新闻 >> IIS7.5配置防盗链

 

IIS7.5配置防盗链

威盾防火墙 2014-11-26

 
1、下载微软自己提供的IIS REWRITE模块:http://www.microsoft.com/downloads/zh-cn/details.aspx?familyid=1b8c7bd8-8824-4408-b8fc-49dc7f951a00
2、修改网站的web.config

引用
    <system.webServer>  
    <rewrite>  
    <rules>  
    <rule name="Prevent hotlinking">  
    <match url="^.*\.(rar|zip)$" ignoreCase="true" />  
    <conditions>  
    <add input="{HTTP_REFERER}" pattern="http://www.oyksoft.com/.*" negate="true" />  
    <add input="{HTTP_REFERER}" pattern="http://wt.oyksoft.com/.*" negate="true" />  
    </conditions>  
    <action type="Rewrite" url="/no.html" />  
    </rule>  
    </rules>  
    </rewrite>  
    </system.webServer>  

设置了只允许http://www.oyksoft.comhttp://wt.oyksoft.com调用网站的rar、zip类型的文件。

相关内容: 最新内容:
IIS7集成模式~对图像服务器进行防盗链设计[2014-11-25]
asp.net iis7.5下配置图片防盗链[2014-11-25]
iis httpd.ini中IIS图片防盗链[2014-11-25]
Windows系统中IIS防盗链设置详细介绍[2014-11-25]
Nginx目录保护网站防盗链及多域名处理[2014-11-24]
防盗链技术终极解决方案[2014-11-21]
SQL注入攻击及其防范检测技术研究(1)[2014-11-26]
CC攻击与防范专题[2014-11-25]
深入解析PHP中的(伪)多线程与多进程[2014-11-25]
PHP多进程编程实例[2014-11-25]
php跨站攻击实例分析[2014-11-25]
php cc攻击代码与防范方法[2014-11-25]