geek notes for advice seekers


$_SERVER[‘HTTP_X_FORWARDED_FOR’] returns multiple IPs, what to do?

Before reading this article, you should know that¬†HTTP_X_FORWARDED_FOR should only be used for websites behind a proxy, otherwise you should use REMOTE_ADDR!! This article talks about getting the right visitor IP through¬†HTTP_X_FORWARDED_FOR for applications behind a reverse proxy! You might have faced it as it’s not so well documented. Note that i’m using nginx as […]

, , ,