Forum Moderators: coopster
Probably they are using HTTP_X_FORWARDED_FOR.
Anyhow, it appears HTTP_X_FORWARDED_FOR could be modified by the sender and REMOTE_ADDR is more reliable. Which ways of getting the user IP are reliable if any, otherwise I'll stick with REMOTE_ADDR, which can be a router/proxy server.
FYI, I did read all the users comments in uk.php.net/getenv and found this routine, which is of interest, but uses that unreliable HTTP_X_FORWARDED_FOR.
if (getenv("HTTP_CLIENT_IP")) $ip = getenv("HTTP_CLIENT_IP");
else if(getenv("HTTP_X_FORWARDED_FOR)) $ip = getenv("HTTP_X_FORWARDED_FOR");
else if(getenv("REMOTE_ADDR")) $ip = $_SERVER['REMOTE_ADDR'];
else $ip = "UNKNOWN";
What do you know?