php 来路判断 HTTP_REFERER
来源:程序员人生 发布时间:2013-12-18 20:41:56 阅读次数:3679次
- $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>
生活不易,码农辛苦
如果您觉得本网站对您的学习有所帮助,可以手机扫描二维码进行捐赠