View Single Post
Old 15-10-2004, 09:16   #9
Tricky
Inactive
 
Tricky's Avatar
 
Join Date: Jun 2003
Location: I am house...
Services: $KY+HD - BT Infinity
Posts: 2,284
Tricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful one
Re: NTL IP's - several people on same ones?

Some PHP Code I knocked up:
PHP Code:
    if ($HTTP_VIA)
        {
            *****
proxy = "Y";
            if (
strpos($HTTP_X_FORWARDED_FOR,',')) 
            { 
                
$HTTP_X_FORWARDED_FOR = substr($HTTP_X_FORWARDED_FOR,0,strpos($HTTP_X_FORWARDED_FOR,',') ); 
            }
                *****
addy = $HTTP_X_FORWARDED_FOR;
                if(*****
addy == "")
                    *****
addy = getenv("REMOTE_ADDR");                    
            }
        else
        {
            *****
proxy = "N";
            *****
addy = getenv("REMOTE_ADDR");
        }
} 
Would result in two variables being set:
*****proxy would be either Y or N to show if you've come via a PROXY (like NTL)
and
*****addy would be your REAL IP Address

EDIT: Don't you just love the filters!!! - the ***** was a $ for the variable followed by hit therefore looking like a foul smelling substance!? instead of ***** I.e. $wordproxy and $wordaddy
Tricky is offline   Reply With Quote