获取用户的真实IP

2016-6-15 liyangweb.com 李杨 PHP

function getRealIpAddr()  
{  
    if (!emptyempty($_SERVER['HTTP_CLIENT_IP']))  
    {  
        $ip=$_SERVER['HTTP_CLIENT_IP'];  
    }  
    elseif (!emptyempty($_SERVER['HTTP_X_FORWARDED_FOR']))  
    //to check ip is pass from proxy  
    {  
        $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];  
    }  
    else  
    {  
        $ip=$_SERVER['REMOTE_ADDR'];  
    }  
    return $ip;  
}

评论:

brtec
2019-08-04 01:39
<a href="http://www.cultureofwine.net/nike-huarache-triple-bianca-pre-order-kurpesd">nike huarache triple bianca pre order</a> <a href="http://www.cundinamarca.net/air-max-90-infrar%C3%B8d-herre-zen-kurpesc">air max 90 infrar酶d herre zen</a> <a href="http://www.darkstories.net/nike-air-zoom-total-90-iii-rojo-cam-scarpec">nike air zoom total 90 iii rojo cam</a> <a href="http://www.davidgosse.net/nike-kobe-icon-rot-himmelblau-schuhee">nike kobe icon rot himmelblau</a> <a href="http://www.desmotivaciones.net/adidas-zx-700-dark-onyx-vivid-rosado-dark-shale-exclusive-obuvf">adidas zx 700 dark onyx vivid rosado dark shale exclusive</a> <a href="http://www.didaar.net/nike-air-shox-current-mennns-sko-all-svart-and-hvit-butya">nike air shox current mennns sko all svart and hvit</a>
brtec http://www.brtec.net/

发表评论:

Powered by emlog 冀ICP备13011830号-1