[Zope] Easiest way to turn X-Forwarded-For to Remote-IP?
Evan Simpson
evan@4-am.com
Thu, 12 Oct 2000 12:39:52 -0400
From: Marcin Kasperski <Marcin.Kasperski@softax.com.pl>
> > > X-Forwarded-For header (REQUEST['HTTP_X_FORWARDED_FOR']).
> Does there exist some sample of such usage? Can such a change be
> performed before authorization?
You could do this with an Access Rule in your root folder, containing:
<dtml-call expr="REQUEST.set('REMOTE_ADDR', REQUEST['HTTP_X_FORWARDED_FOR'])">
Cheers,
Evan @ digicool & 4-am