i am working on a shopping cart project. I am redirecting all users who are behind a proxy(like those anonymouse proxies0.
i can find their proxy ip. but, i can't seem to find their REAL ip.
if(getenv("HTTP_CLIENT_IP")) {
$ip = getenv("HTTP_CLIENT_IP");
} elseif(getenv("HTTP_X_FORWARDED_FOR")) {
$ip = getenv("HTTP_X_FORWARDED_FOR");
} else {
$ip = getenv("REMOTE_ADDR");
}
gives the proxy ip too.
any idea?