Comments for Getting The Real IP Of Your Users

11 to 20 of 29 < 1 2 3 >
#11 /* 3 years, 6 months ago */
wat do u want to get the IP for anyway if you need them for legal purposes then y would the visitoor need a proxy for u hackers
#12 /* 3 years, 6 months ago */
wat do u want to get the IP for anyway if you need them for legal purposes then y would the visitoor need a proxy for u hackers
#13 /* 2 years, 5 months ago */
I am using a foundry firewall, and tried all the methods above but i still get the foundry ip..
any help...
#14 /* 2 years, 12 months ago */
The Perl code is wrong ('==' tests numeric equality; for string equality, use 'eq'). This is the code I use:

$ip = $req->header('Client-IP') || $req->header('Remote-Addr');
if ($req->header('X-Forwarded-For')) {
$proxy = $ip;
$ip = $req->header('X-Forwarded-For');
}
#15 /* 2 years, 11 months ago */
For java it has to be:

String ipaddress = request.getHeader("X-Forwarded-For");


since this is the actual name of the http header.

BTW: is there any way of getting the right IP from behing an anonymous proxy?
#16 /* 2 years, 9 months ago */
This is a great tutorial. It didn't solve my problem but at least now I know why. Our corporate servers are using NAT and not passing the information along.

One question I have though is:

We use omniture to track our usage and it manages to grab IP's, how is it they can but I cannot?

Oregon Go Green!
SteveMcDaniel.com
#17 /* 17 months, 6 days ago */
Nice work... Good primer.
#18 /* 17 months, 27 days ago */
Perfect! Just what I was looking for. Thanks!
#19 /* 16 months, 2 days ago */
HTTP_X_FORWARDED_FOR may (and it usually does) contain an useless LAN IP which can and probably will be changed if needed, for instance if you need to block access to a troll and he/she's using a proxy to hide behind like a coward, then HTTP_X_FORWARDED_FOR is completely useless and very likely you're going to need to block the proxy itself so you'd better record his/her REMOTE_ADDR. This is the purpose of recording an IP address, isn't it?
#20 /* 16 months, 27 days ago */
HTTP_X_FORWARDED_FOR Can and will return multiple IP addresses. Like So
11.11.11.2, 41.241.135.194, 198.54.202.74

Could you tell me which is the correct address?
11 to 20 of 29 < 1 2 3 >
Home | Advertise | About | Contact | Legal © Oli Warner 2001—2007 Proud 9rules member