i don't believe that'll work as intended. you can always use listLast() using the period as a delimiter to get those last octals and -then- use the BETWEEN operator.
also, you could convert the addresses to their integer counterparts. i believe the formula is: (first octet * 16777216) + (second octet * 65536) + (third octet * 256) + (fourth octet) and use the BETWEEN operator on ther resulting integers. On 4/27/07, Elena Aminova <[EMAIL PROTECTED]> wrote: > 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:276444 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4