[Zope] Intercept request

Andreas Jung lists at zopyx.com
Mon Jan 7 09:06:32 EST 2008



--On 7. Januar 2008 08:00:27 -0600 David Chelimsky <dchelimsky at gmail.com> 
wrote:

> Hi,
>
> I want to show different things to different viewers based on their IP
> addresses. How can I do this?


Basically you look at the clients ip address (from the REQUEST object)
and perform any action you need (redirections, conditions within scripts,
templates)...but no idea what the sense of this usecase is. If you have 
different audiences, setup sites with different content or something 
similar. In addition: using Zope behind proxy will lead in request coming
from the IP address of your reverse proxy. Additional 
configuration/programming is necessary to get hold of the original IP.

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20080107/c74396ff/attachment.bin


More information about the Zope mailing list