F
Fayland
when i use the HTTP proxy,how can i get my true ip address if it's possible?
the code is follows:
------------
foreach ('HTTP_X_FORWARDED_FOR', 'HTTP_CLIENT_IP', 'X_CLIENT_IP',
'REMOTE_ADDR', 'HTTP_VIA') {
print "$_ => $ENV{$_}\n";
}
------------
the output(proxy is 80.59.189.28):
------------
HTTP_X_FORWARDED_FOR => 80.59.189.28
HTTP_CLIENT_IP => 80.59.189.28
X_CLIENT_IP =>
REMOTE_ADDR => 80.58.3.235
HTTP_VIA => HTTP/1.0 proxy[AC1E0B46] (Traffic-Server/5.5.1-59096 [uSc ])
the code is follows:
------------
foreach ('HTTP_X_FORWARDED_FOR', 'HTTP_CLIENT_IP', 'X_CLIENT_IP',
'REMOTE_ADDR', 'HTTP_VIA') {
print "$_ => $ENV{$_}\n";
}
------------
the output(proxy is 80.59.189.28):
------------
HTTP_X_FORWARDED_FOR => 80.59.189.28
HTTP_CLIENT_IP => 80.59.189.28
X_CLIENT_IP =>
REMOTE_ADDR => 80.58.3.235
HTTP_VIA => HTTP/1.0 proxy[AC1E0B46] (Traffic-Server/5.5.1-59096 [uSc ])