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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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", 可以找到很多, 說不定能找到你要的