*This message was transferred with a trial version of CommuniGate(tm) Pro*
You could parse the last octet of the IP address off and just use the first
three to match the entire subnet. That is if their subnet is 255.255.255.0 .

I didn't test this code but it would probaly go something like this.....

<cfset parsedIP=ListDeleteAt(cgi.remote_addr,4,'.')>
<cfif parsedIP is '192.168.5'>
        Allow action
</cfif>

Hope that helps.
Dave Livingston
512.694.1669
[EMAIL PROTECTED]

-----Original Message-----
From: Marcus [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 9:56 AM
To: CF-Talk
Subject: Brain isn't working yet...


*This message was transferred with a trial version of CommuniGate(tm) Pro*
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

Reply via email to