Re: Brain isn't working yet...

2001-06-01 Thread net_man

I would presume this in on an Intranet because on an Internet site you will
not see that range.

Thanks,
Robert

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


 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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Brain isn't working yet...

2001-06-01 Thread net_man

You will probably need to do a test and then set the result to a variable
and then do a CFIF based on that variable result.

Robert

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


 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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Brain isn't working yet...

2001-06-01 Thread Brian Fox

You're most of the way there...

cfif #left(cgi.remote_addr,8)# is '192.168.'
or
cfif #left(cgi.remote_addr,10)# is '192.168.5.'

 -Original Message-
 From: Marcus [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 01, 2001 7:56 AM
 To: CF-Talk
 Subject: Brain isn't working yet...
 
 
 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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Brain isn't working yet...

2001-06-01 Thread Thomas Chiverton

cfif #cgi.remote_addr# contains '192.168.5'
Will do the trick, but you really need to use REfind and anchor the string
to the start.

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Brain isn't working yet...

2001-06-01 Thread Paul Johnston

how about a regular expression?

cfif REFind(192[.]168[.]5[.][12]?[0-9]?[0-9], cgi.remote_addr)
/cfif

or something like that!

Paul
-Original Message-
From: Marcus [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Date: 01 June 2001 16:14
Subject: Brain isn't working yet...


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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Brain isn't working yet...

2001-06-01 Thread Christopher Porter

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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Brain isn't working yet...

2001-06-01 Thread DJ Riebesell

cfif find(192.168.5., cgi.remote_addr)
Allow action
/cfif



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


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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Brain isn't working yet...

2001-06-01 Thread Jones, Matt

cfif mid(cgi.remote_addr,1,10) is '192.168.5.'
Allow action
/cfif
-Original Message-
From: Marcus [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 9:56 AM
To: CF-Talk
Subject: Brain isn't working yet...


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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Brain isn't working yet...

2001-06-01 Thread Dave Livingston

*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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Brain isn't working yet...

2001-06-01 Thread Chris Rice

Take cgi.remote_addr as list with delimiter as '.', then it is easy.

Chris
[EMAIL PROTECTED]

- Original Message -
From: Paul Johnston [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, June 01, 2001 4:09 PM
Subject: Re: Brain isn't working yet...


 how about a regular expression?

 cfif REFind(192[.]168[.]5[.][12]?[0-9]?[0-9], cgi.remote_addr)
 /cfif

 or something like that!

 Paul
 -Original Message-
 From: Marcus [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Date: 01 June 2001 16:14
 Subject: Brain isn't working yet...


 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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Brain isn't working yet...

2001-06-01 Thread Kelly Matthews


cfif #cgi.remote_addr# CONTAINS '192.168.5'
Allow action
/cfif

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


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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Brain isn't working yet...

2001-06-01 Thread Marcus

I tried refind, and it didn't want to work at all. Contains works great!

Marcus

 cfif #cgi.remote_addr# contains '192.168.5'
 Will do the trick, but you really need to use REfind and anchor the string
 to the start.


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Brain isn't working yet...

2001-06-01 Thread Paul Johnston

or the numerous ways you could do it:

cfif ListFirst(cgi.remote_addr, .) eq 192
AND ListGetAt(cgi.remote_addr, 2, .) eq 168
AND ListGetAt(cgi.remote_addr, 2, .) eq 5
/cfif

or

cfif Left(cgi.remote_addr, 3) eq 192
AND Mid(cgi.remote_addr, 4, 3) eq 168
AND Mid(cgi.remote_addr, 9, 1) eq 5
/cfif

or

cfset a = ListToArray(cgi.remote_addr, .)
cfset b = 192.168.5
cfset ip_ok = TRUE
cfloop from=1 to=3 index=i
cfif a[i] neq ListGetAt(b, i, .)
cfset ip_ok = FALSE
/cfif
/cfloop

cfif ip_ok

/cfif

and I can't be bothered to think of more as it's getting very silly!

Enjoy

Paul

;-)

-Original Message-
From: Paul Johnston [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Date: 01 June 2001 16:54
Subject: Re: Brain isn't working yet...


how about a regular expression?

cfif REFind(192[.]168[.]5[.][12]?[0-9]?[0-9], cgi.remote_addr)
/cfif

or something like that!

Paul
-Original Message-
From: Marcus [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Date: 01 June 2001 16:14
Subject: Brain isn't working yet...


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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Brain isn't working yet...

2001-06-01 Thread Bill King

I use:

cfif cgi.remote_addr contains '192.168.5.'
Allow action
/cfif

Quite a bit easier I think.

- BILL -

-Original Message-
From: Paul Johnston [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 10:00 AM
To: CF-Talk
Subject: Re: Brain isn't working yet...


or the numerous ways you could do it:

cfif ListFirst(cgi.remote_addr, .) eq 192
AND ListGetAt(cgi.remote_addr, 2, .) eq 168
AND ListGetAt(cgi.remote_addr, 2, .) eq 5
/cfif

or

cfif Left(cgi.remote_addr, 3) eq 192
AND Mid(cgi.remote_addr, 4, 3) eq 168
AND Mid(cgi.remote_addr, 9, 1) eq 5
/cfif

or

cfset a = ListToArray(cgi.remote_addr, .)
cfset b = 192.168.5
cfset ip_ok = TRUE
cfloop from=1 to=3 index=i
cfif a[i] neq ListGetAt(b, i, .)
cfset ip_ok = FALSE
/cfif
/cfloop

cfif ip_ok

/cfif

and I can't be bothered to think of more as it's getting very silly!

Enjoy

Paul

;-)

-Original Message-
From: Paul Johnston [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Date: 01 June 2001 16:54
Subject: Re: Brain isn't working yet...


how about a regular expression?

cfif REFind(192[.]168[.]5[.][12]?[0-9]?[0-9], cgi.remote_addr)
/cfif

or something like that!

Paul
-Original Message-
From: Marcus [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Date: 01 June 2001 16:14
Subject: Brain isn't working yet...


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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists