Thursday, June 17, 2010

X-Forwarded-For

It appears every proxy's ip on the path gets added. The list is comma separated, so, we need logic to pick the first one only.

X-Forwarded-For: client1, proxy1, proxy2

client1 will have the client ip.

client is first not last :-)