Original IP from behind a proxy

Thursday, November 1st, 2012

When you’re serving a page from behind a load balancer or a proxy of any kind, you may not get the user’s IP with the REMOTE_ADDR HTTP header. That may return the IP of the proxy. Instead, you may want to write a little IP checking function like the one in this Stackoverflow post.

Comments are closed.