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.
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"]);
}