PHP5盗链函数(referfile)

PHP5盗链函数(referfile)作者:axgle功能:任何以HTTP_REFERER为主要特征的防盗链技术将通通失效,顷刻间便灰飞烟灭。?php/**@title:PHP5盗链函数@author:axgle@filename:referer.php@contents:This
is a demo that show referer made success*/if($_GET[”id”]) { echo
$_SERVER[”HTTP_REFERER”];} else { echo referfile(””,””);
}function referfile($url,$refer=””) {
$opt=array(”http”=array(”header”=Referer:$refer));
$context=stream_context_澳门新葡亰网站注册,create($opt); return
file_get_contents($url,false,$context);}?