We have 3 web servers running a site with 1 primary server acting as the db/file sys with varnish installed on the front facing servers, and we need to be able to pull the x-forwarded-for headers in as all of our internal tracking and 3rd party plugins are resolving to the individual web head IPs instead of the client IPs…
see these articles
http://en.wikipedia.org/wiki/X-Forwarded-For
http://devcentral.f5.com/weblogs/macvittie/archive/2008/06/02/3323.aspx
the second one in particular seems to describe the method we need to instantiate:
“If you’re like me, you might have written an application or site in PHP and for some reason you want the real client IP address, not the proxy IP address…I still need to access that value from my code so I can store it in the database.
$headers = apache_request_headers();
$real_client_ip = $headers[“X-Forwarded-For”];”
Is there a value in EE I can adjust? Or does anyone have any experience with this?