[THIN] Re: Web Interface Redirect by IP

  • From: "Ian Aston" <ianaston@xxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Fri, 20 Feb 2004 10:13:38 -0000

Andrew...

YOU DA MAN!!

I've been messing about with this for ages and I haven't been able to get it
to work! 

Thanks,

Ian

-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf
Of Andrew Rogers
Sent: 20 February 2004 09:12
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: Web Interface Redirect by IP

thats easy peasy too :)

<%
sIP =3D Request.ServerVariables("REMOTE_ADDR")
ipArray =3D Split(sIP, ".")
Select Case ipArray(0)
Case "10"
        Server.Transfer "http://server/WI";
Case "172"
        Server.Transfer "http://www.google.com";
Case Else
        Server.Transfer "about:blank"
End Select
%>

Andrew
--o--

>>> L.Seitz@xxxxxxx 19/02/04 17:36:52 >>>
Excellent!  One other question as a result of my lack of knowledge?

If I wanted to redirect by the value in the first octet, how could i split
that out?  Let's say that I wanted to direct all 10.x.y.z addresses to the
WI page and 172.x.y.z addresses to google?

-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx]On=20
Behalf Of Andrew Rogers
Sent: Thursday, February 19, 2004 8:49 AM
To: thin@xxxxxxxxxxxxx=20
Subject: [THIN] Re: Web Interface Redirect by IP


in which case something like this should suit you, maybe!
<%
sIP =3D3D Request.ServerVariables("REMOTE_ADDR")
Select Case sIP
Case 127.0.0.1
        Server.Transfer "http://server/localpage.htm";
Case 255.255.255.255
        Server.Transfer "http://server/anotherpage.htm";
Case Else
        Server.Transfer "http://www.google.com";
End Select
%>

Obviously you can have as many Case's as you like! :)
Something like the above would do fine as an index.asp

Andrew
--o--

>>> L.Seitz@xxxxxxx 19/02/04 14:36:58 >>>
Prefer in a WI page, but either really.  I currently use a vanilla .html
page with links to ica files and links to my WI page, but I will soon be
replacing that (thank goodness) and going totally WI.

-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx]On=3D20=
B
 ehalf Of Andrew Rogers
Sent: Thursday, February 19, 2004 2:49 AM
To: thin@xxxxxxxxxxxxx=3D20=20
Subject: [THIN] Re: Web Interface Redirect by IP


actually in a WI page, or just as another page which redirects to a WI (or =
=3D
=3D3D
other) page?

Andrew
--o--

>>> L.Seitz@xxxxxxx 18/02/04 17:46:29 >>>
Anyone know of a script resource that can be used on a Web Interface Page to
examine client IP and based on that route them to a particular web page? =
=3D3D
*
 *******************************************************
This weeks sponsor Vizioncore, Inc.=3D3D20
--> vc-iMonitor - Performance Monitoring, Control & Reporting=3D3D20
--> vc-iControl - Desktop & Start Menu Management & Reporting=3D3D20
--> vc-iMapper - Drive, Printer & COM Management & Reporting=3D3D20
http://vizioncore.com/products.html=3D3D20=3D20=20
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm=3D3D20=3D20=20
***********************************************************
For Archives, to Unsubscribe, Subscribe or=3D3D20
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm=3D20=20

********************************************************
This weeks sponsor Vizioncore, Inc.=3D20
--> vc-iMonitor - Performance Monitoring, Control & Reporting=3D20
--> vc-iControl - Desktop & Start Menu Management & Reporting=3D20
--> vc-iMapper - Drive, Printer & COM Management & Reporting=3D20
http://vizioncore.com/products.html=3D20=20
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm=3D20=20
***********************************************************
For Archives, to Unsubscribe, Subscribe or=3D20
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm=3D20=20
********************************************************
This weeks sponsor Vizioncore, Inc.=3D20
--> vc-iMonitor - Performance Monitoring, Control & Reporting=3D20
--> vc-iControl - Desktop & Start Menu Management & Reporting=3D20
--> vc-iMapper - Drive, Printer & COM Management & Reporting=3D20
http://vizioncore.com/products.html=3D20=20
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm=3D20=20
***********************************************************
For Archives, to Unsubscribe, Subscribe or=3D20
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm=20

********************************************************
This weeks sponsor Vizioncore, Inc.=20
--> vc-iMonitor - Performance Monitoring, Control & Reporting=20
--> vc-iControl - Desktop & Start Menu Management & Reporting=20
--> vc-iMapper - Drive, Printer & COM Management & Reporting=20
http://vizioncore.com/products.html=20
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm=20
***********************************************************
For Archives, to Unsubscribe, Subscribe or=20
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm=20
********************************************************
This weeks sponsor Vizioncore, Inc.=20
--> vc-iMonitor - Performance Monitoring, Control & Reporting=20
--> vc-iControl - Desktop & Start Menu Management & Reporting=20
--> vc-iMapper - Drive, Printer & COM Management & Reporting=20
http://vizioncore.com/products.html=20
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm=20
***********************************************************
For Archives, to Unsubscribe, Subscribe or=20
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm
********************************************************
This weeks sponsor Vizioncore, Inc. 
--> vc-iMonitor - Performance Monitoring, Control & Reporting 
--> vc-iControl - Desktop & Start Menu Management & Reporting 
--> vc-iMapper - Drive, Printer & COM Management & Reporting 
http://vizioncore.com/products.html 
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm
***********************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

********************************************************
This weeks sponsor Vizioncore, Inc. 
--> vc-iMonitor - Performance Monitoring, Control & Reporting 
--> vc-iControl - Desktop & Start Menu Management & Reporting 
--> vc-iMapper - Drive, Printer & COM Management & Reporting 
http://vizioncore.com/products.html 
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm
***********************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

Other related posts: