萬盛學電腦網

 萬盛學電腦網 >> 網絡編程 >> php編程 >> php 來路判斷 HTTP_REFERER

php 來路判斷 HTTP_REFERER

*/

 代碼如下 復制代碼 $ref = isset($_server['http_referer'])?$_server['http_referer']:'';
echo $ref;
if(strpos($ref,'192.168.0.119')!==false)
{
 echo '來路正確!';
}
else
{
 echo '錯誤來路';
}
?>


<a href="http://down.111cn.net/plus/download.php?open=0&aid=20861&cid=3">判斷來路</a>

copyright © 萬盛學電腦網 all rights reserved