[Zope] Intercept request
Tom Von Lahndorff
tom at modscape.com
Mon Jan 7 09:22:51 EST 2008
On Jan 7, 2008, at 9:00 AM, David Chelimsky wrote:
> Hi,
>
> I want to show different things to different viewers based on their IP
> addresses. How can I do this?
>
> Cheers,
> David
swap out "theipaddress" with the actual IP.
<dtml-if "REMOTE_ADDR == 'theipaddress'">
true
<dtml-elif "HTTP_X_FORWARDED_FOR == 'theipaddress'">
true
<dtml-else>
false
</dtml-if>
Tom
>
> _______________________________________________
> Zope maillist - Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
More information about the Zope
mailing list