php 来路判断 HTTP_REFERER
栏目:php教程时间:2013-12-18 20:41:56
- $ref = isset($_server['http_referer'])?$_server['http_referer']:'';
- echo $ref;
- if(strpos($ref,'192.168.0.119')!==false)
- {
- echo '来路正确!';
- }
- else
- {
- echo '错误来路';
- }
- ?>
- <a href="http://www.phpfensi.com/plus/download.php?open=0&aid=20861&cid=3">判断来路</a>
------分隔线----------------------------
------分隔线----------------------------