7 Jan
2008
7 Jan
'08
2:22 p.m.
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@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 )