1.简单防盗链
复制内容到剪贴板 程序代码
$ADMIN[defaulturl] = "http://siyizhu.com/404.htm";//盗链返回的地址
$okaysites = array("http://siyizhu.com/","http://www.siyizhu.com"); //白名单
$ADMIN[url_1] = "http://siyizhu.com/temp/download/";//下载地点1
$ADMIN[url_2] = "";//下载地点2,以此类推
$reffer = $HTTP_REFERER;
if($reffer) {
$okaysites = array("http://siyizhu.com/","http://www.siyizhu.com"); //白名单
$ADMIN[url_1] = "http://siyizhu.com/temp/download/";//下载地点1
$ADMIN[url_2] = "";//下载地点2,以此类推
$reffer = $HTTP_REFERER;
if($reffer) {
Tags: 盗链