Salad UN

To Taste The Salad Of Life.

« golden box人的一生在追求什么呢? »

利用httpd.ini文件来防止盗链

[ At 2008-7-3 By Ash   0 comments ]

针对下载地址IIS的虚拟主机的url规则
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^/httpd(?:\.ini|\.parse\.errors).* [F,I,O]
RewriteCond Host: (.+)
RewriteCond Referer: (?!http://(www\.wolfone\.cn)).+
#domain.com 是你允许连接资源的网站
RewriteRule .*\.(?:gif|jpg|mid|wav|mp3|rar|zip|jar) /

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

最新评论及回复

最近发表

Powered By Z-Blog 1.8 Spirit Build 80722 Code detection by Codefense

Copyright 2008 www.s-un.cn. Some Rights Reserved.