If you are only concerned with the last octet, you could treat the IP as
a period delimited list like so:

cfif listgetat(CGI.REMOTE_ADDR,4) gt 33 and listgetat(CGI.REMOTE_ADDR,4)
lt 62

Not sure exactly you are going for though.

~Brad

-----Original Message-----
From: Elena Aminova [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 27, 2007 2:42 PM
To: CF-Talk
Subject: get Range Between 2 IP addresses

What is the correct way to write the following?
I need to redirect a user based on his/her IP address range if the
CGI.REMOTE_ADDR falls between 2 IP address ranges or if using a netmask.


<CFIF (#Left(CGI.REMOTE_ADDR, 13)# between ('172.29.278.33' and
'172.29.278.62'))>

<cflocation url=.....> etc

Can I use the between function like above?
Please advise....

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276443
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to