[Zope-dev] Reporting X-FORWARDED-FOR into the log ( REMOTE_ADDR )

Egon listaseu at yahoo.es
Fri Jul 23 06:46:31 EDT 2004


Yes, X-FORWARDED-FOR, but this solution (enabling
trusted-servers in zope.conf) do not work.
Trusted-servers in my zope.conf are already enabled,
but in the log file, the ip of the proxy appears when
I want to log the ip of the client.
I was searching the function that writes the
REMOTE_ADDR variable into the log file in order to
modify it.
I was searching this function across the source code
of Zope 2.7.1 in /opt/zope/lib/python.
 
I want to modify the function that writes de
REMOTE_ADDR variable to:
if X-FORWARDED-FOR and REMOTE_ADDR in trusted-servers:
    REMOTE_ADDR = X-FORWARDED-FOR
log ( REMOTE_ADDR)

Anyone can help me ?

Thanks
--- Toby Dickenson
<tdickenson at devmail.geminidataloggers.co.uk> escribió:
> On Thursday 22 July 2004 12:06, Egon wrote:
> > I have a Zope server behind a proxy server, this
> proxy
> > enables de X-FORWARDED-FROM that contains the real
> ip
> > of the client that is connected.
> > I want to log this variable but I cannot find the
> way
> > to do it.
> 
> Check out "trusted-proxies" in the zope configuation
> file.
> 
> ....and you mean X-FORWARDED-FOR, not -FROM, right?
> 
> -- 
> Toby Dickenson
>  


		
______________________________________________
Yahoo! lanza su nueva tecnología de búsquedas
¿te atreves a comparar?
http://busquedas.yahoo.es


More information about the Zope-Dev mailing list