> >May I know how to let real http servers see the client's IP (for php access
> >control) in reverse proxy mode ? do squid2.6 have this feature?
On 13.01.07 04:47, Jeff Pang wrote:
> Squid record the clients' IP addr by default,notice for the
> "forwarded_for" section in squid.conf. You can get it via http environment
> variable,for CGI,it's "$ENV{'HTTP_X_FORWARDED_FOR'}".
$_SERVER['HTTP_X_FORWARDED_FOR'] should work in php (too?).
-- Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. "One World. One Web. One Program." - Microsoft promotional advertisement "Ein Volk, ein Reich, ein Fuhrer!" - Adolf HitlerReceived on Wed Jan 17 2007 - 14:37:57 MST
This archive was generated by hypermail pre-2.1.9 : Thu Feb 01 2007 - 12:00:01 MST