forum.coppermine-gallery.net
Support => 中文 (Chinese) => Closed boards => Language Specific Support => cpg1.4.x 中文 (Chinese) => Topic started by: tomhan on May 24, 2005, 09:36:16 am
-
我的gallery用户的图片作品涉及到版权问题,他们都希望能做防盗链(英文Pirate link?搞不懂)处理,请问有这个hack或其他解决方法吗?谢谢!
-
其實防盜連是避免不了的, 只要看的到圖片就沒辦法防.
如果你要防止非用戶看到你的圖片, 你可以用下面這個方法:
打開: 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", 可以找到很多, 說不定能找到你要的