Display proxy name of the visitor


#1

Hello all,
I would like to know if it’s possible to get the name of the proxy (or final node) for a visitor ?
In Google Analytics it’s displayed in Technology/Network. It’s usefull to know if some companies come on the web site.
For example i have names like “nuxe firewall” (related to Nuxe company) or “clinique sa” etc.

Thank you


(Matthieu Aubry) #2

We don’t offer this. Do you know if it’s possible in PHP ?


#3

I really don’t know. My knowledge in PHP is copy-paste only …
I found this in google but i’m sure that you already know it (or it’s not what you are looking for) :


if ($HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"] != ""){
     // for proxy
     $IP = $HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"];
     [b]$proxy = $HTTP_SERVER_VARS["REMOTE_ADDR"];[/b]
     $host = @gethostbyaddr($HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"]);
}else{
     // for normal user
     $IP = $HTTP_SERVER_VARS["REMOTE_ADDR"];
     $host = @gethostbyaddr($HTTP_SERVER_VARS["REMOTE_ADDR"]);
}

Or maybe with gethostbyaddr ?

Sorry to not being more usefull


(Matthieu Aubry) #4

not what we’re looking for :wink:
I think the problem is that it’s non trivial to do, and costs in performance. We might add it one day…