> <cfif #IsDefined(cgi.remote_addr)#>
>  <cfif #cgi.remote_addr# GT '206.162.74.1' AND #cgi.remote_addr# LT
> '206.162.74.255'>
>   <cfoutput>#cgi.remote_addr#</cfoutput>
>  </cfif>
> </cfif>
>
> However, since the IP is not really a number, I am getting an
> error when it

Actually an ip IS a 32-bit number. Just for human readability it's broken
into 4 octets. If you (off the top of my head)...

<CFSET ip=ListGetAt(ipl,1,'.')*16777216 + ListGetAt(ipl,2,'.')*65536 +
ListGetAt(ipl,3,'.')*256 + ListGetAt(ipl,4,'.')>

...you should be able to compare. Maybe. If internal representation of a
number in cf is unsigned 32-bits or better.

You could also use the oft-forgotten bitshifting functions. :)

--min

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to