<?php
/*****************************************************
*
* isProxy
* check whether client is under Proxy or not
* $_SERVER['HTTP_X_FORWARDED_FOR'] is pivotal here
* if client is under Proxy, returns true
* if client is not under Proxy, returns false
*
*****************************************************/
function isProxy(){
return (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) ? true : false;
}
?> 扫码二维码 获取免费视频学习资料

- 本文固定链接: http://www.phpxs.com/post/4218/
- 转载请注明:转载必须在正文中标注并保留原文链接
- 扫码: 扫上方二维码获取免费视频资料
查 看2022高级编程视频教程免费获取