You could use a find statement

<cfif find('192.168.0.'', cgi.REMOTE_ADDR>
<cflocation url="http://www.somedomain.ca"; addtoken="No">
</cfif>

Rob Smith
CAmagazine



                                                                                       
                              
                    "Erik Fenkell"                                                     
                              
                    <[EMAIL PROTECTED]       To:     <[EMAIL PROTECTED]>            
                              
                    om>                    cc:                                         
                              
                    Sent by:               Subject:     [CFTALKTor] cgi.REMOTE_ADDR    
                              
                    owner-cfug@cfugt                                                   
                              
                    oronto.org                                                         
                              
                                                                                       
                              
                                                                                       
                              
                    19/03/2002 04:43                                                   
                              
                    PM                                                                 
                              
                    Please respond                                                     
                              
                    to CFTALK                                                          
                              
                                                                                       
                              
                                                                                       
                              




Hi Everybody,

I would like to check against a range of IP addresses rather than just 1.

I would like to conditionally process all IP aadreeses from the same block
ie.

192.168.0.0 - 192.168.0.255


Below is my current strip of code.

-------------------------------
<cfif cgi.REMOTE_ADDR EQ '192.168.0.33'>
<cflocation url="http://www.somedomain.ca"; addtoken="No">
</cfif>
-------------------------------

Thanks for any help,

Erik





-
You are subscribed to the CFUGToronto CFTALK ListSRV.
This message has been posted by: [EMAIL PROTECTED]
To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
This System has been donated by Infopreneur, Inc.
(http://www.infopreneur.net)

Reply via email to