Adobe Dreamweaver Forums



Last 10 THreads :         Centering a site using layers in browser window (Last Post : malcster2 - Replies : 2 - Views : 3 )           »          Flash/Flex Shopping Carts - A flawed concept ? (Last Post : gazmcghee - Replies : 5 - Views : 20 )           »          Open SWF from another SWF in new Flash Player (Last Post : Jimmy M - Replies : 0 - Views : 1 )           »          How do I open te files in older versions of Director? (Last Post : thaisdoro - Replies : 0 - Views : 1 )           »          Capture full URL with CF CGI variable (Last Post : Daverms - Replies : 1 - Views : 2 )           »          Load .exe file into Flash (Last Post : FlashJester Support Team - Replies : 1 - Views : 3 )           »          Create a link to open a .exe file (Last Post : FlashJester Support Team - Replies : 1 - Views : 2 )           »          Change html page image by the month (Last Post : malcster2 - Replies : 9 - Views : 10 )           »          Updated page not visible in IE (Last Post : aterrill - Replies : 6 - Views : 7 )           »          Tabbed pages question (Last Post : Dooza - Replies : 4 - Views : 5 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Cold Fusion
 
Tags:



Reply
  #1 (permalink)  
Old 10-01-2008, 04:00 AM
cz3452
 
Posts: n/a
Diggs:
Default Switch user from http to https

I have a customer intranet that now needs to be exposed to the internet. The
problem I now have is how to determine a users ip and then compare it to
another list that is internal versus external.

I know I can get the users IP using CGI variables, what I am not sure of is
what the best way to define the internal network(192.168.0.0) or external (
anything else) and redirect them to http or https. So basicly if your ip starts
with 192.168.???.*(I have multiple subnets that do and do not need access) then
you can use http. Anyhting else goes to https.

I would a appreciate any ideas or even better examples..

Thanks,
Chris




Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-01-2008, 04:00 AM
Ken Ford - *ACE*
 
Posts: n/a
Diggs:
Default Re: Switch user from http to https

Chris,

Something like this?

<cfif CGI.REMOTE_ADDR DOES NOT CONTAIN "192.168">
<cflocation addtoken="no" url="https://www.whatever.com">
</cfif>

--
Ken Ford
Adobe Community Expert Dreamweaver/ColdFusion
Adobe Certified Expert - Dreamweaver CS3
Fordwebs, LLC
http://www.fordwebs.com


"cz3452" <webforumsuser@macromedia.com> wrote in message
news:gannp0$li4$1@forums.macromedia.com...
>I have a customer intranet that now needs to be exposed to the internet.
>The
> problem I now have is how to determine a users ip and then compare it to
> another list that is internal versus external.
>
> I know I can get the users IP using CGI variables, what I am not sure of
> is
> what the best way to define the internal network(192.168.0.0) or external
> (
> anything else) and redirect them to http or https. So basicly if your ip
> starts
> with 192.168.???.*(I have multiple subnets that do and do not need access)
> then
> you can use http. Anyhting else goes to https.
>
> I would a appreciate any ideas or even better examples..
>
> Thanks,
> Chris
>
>


Reply With Quote
  #3 (permalink)  
Old 10-01-2008, 04:00 AM
Ken Ford - *ACE*
 
Posts: n/a
Diggs:
Default Re: Switch user from http to https

Chris,

Something like this?

<cfif CGI.REMOTE_ADDR DOES NOT CONTAIN "192.168">
<cflocation addtoken="no" url="https://www.whatever.com">
</cfif>

--
Ken Ford
Adobe Community Expert Dreamweaver/ColdFusion
Adobe Certified Expert - Dreamweaver CS3
Fordwebs, LLC
http://www.fordwebs.com


"cz3452" <webforumsuser@macromedia.com> wrote in message
news:gannp0$li4$1@forums.macromedia.com...
>I have a customer intranet that now needs to be exposed to the internet.
>The
> problem I now have is how to determine a users ip and then compare it to
> another list that is internal versus external.
>
> I know I can get the users IP using CGI variables, what I am not sure of
> is
> what the best way to define the internal network(192.168.0.0) or external
> (
> anything else) and redirect them to http or https. So basicly if your ip
> starts
> with 192.168.???.*(I have multiple subnets that do and do not need access)
> then
> you can use http. Anyhting else goes to https.
>
> I would a appreciate any ideas or even better examples..
>
> Thanks,
> Chris
>
>


Reply With Quote


  #4 (permalink)  
Old 10-01-2008, 04:00 AM
cz3452
 
Posts: n/a
Diggs:
Default Re: Switch user from http to https

Wow, I feel silly.... That will work!
Thanks,
Chris
Reply With Quote
  #5 (permalink)  
Old 10-01-2008, 04:00 AM
cz3452
 
Posts: n/a
Diggs:
Default Re: Switch user from http to https

Wow, I feel silly.... That will work!
Thanks,
Chris
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 12:12 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk