Advanced search  

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]

Pages: [1]   Go Down

Author Topic: 再麻烦CapriSkye一个问题  (Read 10362 times)

0 Members and 1 Guest are viewing this topic.

tomhan

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
再麻烦CapriSkye一个问题
« on: May 24, 2005, 09:36:16 am »

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

CapriSkye

  • Moderator
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 126
    • 森林之原
Re: 再麻烦CapriSkye一个问题
« Reply #1 on: May 25, 2005, 12:35:47 am »

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

打開: displayimage.php and index.php and search.php and thumbnails.php
Find:
Code: [Select]
require('include/init.inc.php');

Add after:
Code: [Select]
if (USER_ID){

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

   exit();
        }
}

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

或在這裡找 "hotlinks", 可以找到很多, 說不定能找到你要的
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 15 queries.