Last post Sep 27, 2012 02:59 PM by wazz
Sep 27, 2012 01:03 PM|wazz|LINK
looking into getting a user's ip address, i've seen two variations on dealing with HTTP_X_FORWARDED_FOR.
if i split HTTP_X_FORWARDED_FOR into an array, can someone please confirm whether i should get the first or the last element?
Sep 27, 2012 02:51 PM|RichardD|LINK
According to Wikipedia:
The general format of the field is:
X-Forwarded-For: client, proxy1, proxy2
where the value is a comma+space separated list of IP addresses, the left-most being the original client, ...
Sep 27, 2012 02:59 PM|wazz|LINK
thanks. didn't occur to me to check there.