判断用户是否使用代理的PHP代码

2015-09-17 0 200
判断用户是否使用代理的PHP代码
<?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;
}
?>

遇见资源网 PHP 判断用户是否使用代理的PHP代码 http://www.ox520.com/22176.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务