use <cfif cgi.remote_addr contains '192.168.5'>
or use <cfif reFind(cgi.remote_addr,'192.168.5.[0-9]+')>
the contains version should work fine, but the reFind has less potential
for error
-chris
On Fri, 1 Jun 2001, Marcus wrote:
> I'm trying to provide functionality to a select group of people on a
> specific subnet. What I'd like to do is something along the lines of..
>
> <cfif #cgi.remote_addr# is '192.168.5.0'>
> Allow action
> </cfif>
>
> The thing being they use dhcp to allocate IP's and the address could
> actually be any of the block. Is there a wild card I can use? or some other
> way to not specify the last number?
>
> Marcus
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists