what is that, ASP? do I put that in a file? embed in html???
Main Topics
Browse All TopicsI need some sort of page (PHP, ASP, ASP.NET, HTML.... etc) that will redirect the user based on their IP Address.
It's application is this: I want to set Internet Explorer's homepage box to a single address for all clients, both inside and outside my network. I have two websites, one that is accessible from the internet ("Website"), and one that isn't ("Intranet"). I want clients that have a local IP address (10.0.0.x) to be redirected to the Intranet, and those without a local IP address to be redirected to the Website.
I don't want to implement a 403 error page that redirects to the website and put an IP filter on because I need to use the 403 page for a specific message where we are using an IP filter for other purposes elsewhere on the website.
The requirements is that the script/page can run on IIS6.0 on Windows Server 2003 Enterprise Edition as a flat-file (no database). If I could stick to Microsoft technologies (ASP, HTML) [yes I know they're not "Microsoft", but they're more acceptable in a Microsoft environment than say ... PHP]. Here's my order of preference (if possible) for technologies: HTML, ASP.NET, ASP, PHP.
Thanks in advance!
Andrew.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
No comment has been added to this question in more than 21 days, so it is now classified as abandoned. I will make a recommendation to the moderators on its resolution in a week or two. I appreciate any comments that would help me to make a recommendation.
Unless it is clear to me that the question has been answered I will recommend delete without refund of points. It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.
If the asker does not know how to close the question, the options are here:
http://www.experts-exchang
WMIF
EE Cleanup Volunteer
Business Accounts
Answer for Membership
by: nurbekPosted on 2005-06-07 at 03:19:09ID: 14160356
try like this
EMOTE_ADDR ")
tpage.asp" ) .asp")
<%
ip = Request.ServerVariables("R
If Left(ip,6)="10.0.0" Then
Response.Redirect("intrane
Else
Response.Redirect("webpage
End If
%>