GZICP.com   
 
    返回首页
    联系我们
 
 
     

阻止图片盗链

www.gzicp.com   2004年4月21日 15:53:06
 

本示例展示了如何避免不在你服务器上的人在他们的站点中直接链接使用你服务器上的图片。 这不是一个推荐的配置,但它能在有限的环境中加以应用。 我们假设你所有的图片都在/web/images目录下。

SetEnvIf Referer "^http://www.example.com/" local_referal
# Allow browsers that do not send Referer info
SetEnvIf Referer "^$" local_referal
<Directory /web/images>
   Order Deny,Allow
   Deny from all
   Allow from env=local_referal
</Directory>

 

最新文章
·Apache 服务器Log分析应用实例  (2005年03月14日)
·大容量虚拟主机的动态配置  (2004年08月24日)
·在Apache上简简单单开个WAP站点  (2004年08月24日)
·整合TOMCAT5+APACHE2+jk2  (2004年08月24日)
·Apache2的httpd.conf翻译  (2004年08月24日)
·基于Apache服务器的文件防盗链  (2004年08月24日)





 
 
Copyright © 1999-2008 GZICP.com All Rights Reserved