Categories


Tags


apache、iis规则设置防盗链

Linux下规则文件.htaccess(手工创建.htaccess文件到站点根目录)

<IfModule mod_rewrite.c>

RewriteEngine on

RewriteCond %{HTTP_REFERER} !baidu.com [NC]

RewriteCond %{HTTP_REFERER} !google.com [NC]

RewriteCond %{HTTP_REFERER} !xxx.net [NC]

#RewriteCond %{HTTP_REFERER} !^$ [NC]

RewriteRule .*\.(gif|jpg|png|css|js)$ /band.txt [NC,L]

</IfModule>

注:xxx.net是您自己的域名,band.txt是被盗链后的提示内容文件

Windows2008、2012或更高系统下规则文件web.config (手工创建web.config文件到站点根目录)

<?xml version="1.0" ?>

<configuration>

<system.webServer>

<rewrite>

<rules>

<rule name="rule1" stopProcessing="true">

<match url="^.*\.(css|js|gif|png|jpg|jpeg)$" ignoreCase="true" />

<conditions>

<add input="{HTTP_REFERER}" pattern="您的域名.com(不用加www)" negate="true" />

<!--<add input="{HTTP_REFERER}" pattern="^$" negate="true" />-->

</conditions>

<action type="AbortRequest" />

</rule>

</rules>

</rewrite>

</system.webServer>

</configuration>

apache、iis屏蔽限制ip访问(适用虚拟主机)

apache、iis规则屏蔽拦截蜘蛛抓取

来源:西部数码


Public @ 2022-01-19 16:09:16

apache、iis6、ii7独立ip主机屏蔽限制ip访问(适用vps云主机)

注:如果只屏蔽IP 8.8.4.4 则写(8.8.4.4)如果只屏蔽IP段8.8.8. 则写(8.8.8.)屏蔽多段中间用|隔开,如(8.8.4.4|8.8.8.)Linux下 规则文件.htaccess(手工创建.htaccess文件到站点根目录)<IfModule mod_rewrite.c>RewriteEngine On#Block ipRewriteCond %{http:X

Public @ 2015-06-09 16:13:52

博客可用性:十大错误设计

写在前面的话:本文将介绍一些关于博客可用性(Weblog Usability)的十个最常见的错误。本文为翻译作品,之所以我要花一晚上的时间翻译这篇文章,因为我看完此文后颇有一些感慨,为了让更多的人了解这篇文章,我将这篇文章进行了翻译,并附加上我自己的观点。初次翻译,翻译的不好,见谅。博客可用性:十大错误设计作者:Jakob Nielsen, 翻译:William Long博客是网站的一种形态,因此

Public @ 2017-04-01 15:45:16

apache、iis6、ii7独立ip主机设置防盗链(适用vps云主机服务器)

若是安装了我司助手环境请先按http://www.west.cn/faq/list.asp?unid=650 把伪静态组件开启若是纯净版系统,请按http://www.west.cn/faq/list.asp?unid=639 把伪静态组件开启然后在配置文件中按以下系统规则配置apache和iis6实现防盗链规则相同:进入others/httpd.conf中,保留前两行,复制以下规则保存即可Rew

Public @ 2021-11-09 16:09:15

更多您感兴趣的搜索

0.497417s