再麻烦CapriSkye一个问题 再麻烦CapriSkye一个问题
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

再麻烦CapriSkye一个问题

Started by tomhan, May 24, 2005, 09:36:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tomhan

我的gallery用户的图片作品涉及到版权问题,他们都希望能做防盗链(英文Pirate link?搞不懂)处理,请问有这个hack或其他解决方法吗?谢谢!

CapriSkye

其實防盜連是避免不了的, 只要看的到圖片就沒辦法防.
如果你要防止非用戶看到你的圖片, 你可以用下面這個方法:

打開: displayimage.php and index.php and search.php and thumbnails.php
Find:

require('include/init.inc.php');


Add after:

if (USER_ID){

} else {
{
   $redirect = $redirect . "login.php";
   header("Location: $redirect");

   exit();
        }
}


也可以看看下面這個:
http://coppermine.sourceforge.net/faq.php#preventHotlinks

或在這裡找 "hotlinks", 可以找到很多, 說不定能找到你要的