[Zope] ip redirect

Tim Wilson wilson@isis.visi.com
Tue, 19 Feb 2002 21:57:57 -0600 (CST)


On Tue, 19 Feb 2002, Tom Scheidt wrote:

> <dtml-if "REMOTE_ADDR == '255.255.2255.*'">
> <dtml-var "RESPONSE.redirect('/redirect_html')">
> </dtml-if>

How 'bout

<dtml-if expr="REMOTE_ADDR[:12] == '255.255.255.'">
 etc.

-Tim

--
Tim Wilson      |   Visit Sibley online:   | Check out:
Henry Sibley HS |  http://www.isd197.org   | http://www.zope.com
W. St. Paul, MN |                          | http://slashdot.org
wilson@visi.com |  <dtml-var pithy_quote>  | http://linux.com