![]() |
Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Jute Powerful Forum
![]() ![]() ![]() |
![]() ![]() ![]() ![]() ![]() |
作者 | 对于防止图片盗链的办法 |
alexyu2000
![]() 我是多罗,我很可爱 Jute Pro User ![]() 发贴: 405 积分: 70 ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 参见: http://httpd.apache.org/docs/misc/FAQ-G.html#image-theft How can I prevent people from "stealing" the images from my web site? The goal here is to prevent people from inlining your images directly from their web site, but accessing them only if they appear inline in your pages. This can be accomplished with a combination of SetEnvIf and the Deny and Allow directives. However, it is important to understand that any access restriction based on the REFERER header is intrinsically problematic due to the fact that browsers can send an incorrect REFERER, either because they want to circumvent your restriction or simply because they don't send the right thing (or anything at all). The following configuration will produce the desired effect if the browser passes correct REFERER headers. SetEnvIf REFERER "www\.mydomain\.com" linked_from_here SetEnvIf REFERER "^$" linked_from_here <Directory /www/images> Further examples can be found in the Environment Variables documentation. [img]http://www.nhacks.com/email/email.php?mail_e=q8UtjGduMME%3D&iv=ICTOzCo%3D&domain=TVNO&ext=0[/img][img]http://bbs.dongman.org:8080/post-85-10950836311.gif[/img] [img]http://bbs.8080.net/upload/17957/17957.jpg[/img] |
话题树型展开 |
人气 | 标题 | 作者 | 字数 | 发贴时间 |
12015 |
![]() | alexyu2000 | 1148 | 2003-12-05 12:06 |
9314 |
![]() ![]() | hao0323 | 3 | 2004-02-14 11:24 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() ![]() |
![]() |
![]() |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |