1.简单防盗链
CODE: [Copy to clipboard]
$ADMIN[defaulturl] = "http://21nw.com/errorinfo.htm";//盗链返回的地址
$okaysites = array("http://21nw.com/","http://21nw.com"); //白名单
$ADMIN[url_1] = "http://21nw.com/temp/download/";//下载地点1
$ADMIN[url_2] = "";//下载地点2,以此类推
$reffer = $HTTP_REFERER;
if($reffer) {
$yes = 0;
while(list($domain, $subarray) = each($okays...