Current location: Hot Scripts Forums » Programming Languages » ASP » Response.Redirect based on IP address


Response.Redirect based on IP address

Reply
  #11 (permalink)  
Old 09-26-11, 12:42 PM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
Quote:
Originally Posted by Jordy View Post
Hi there,

thank you so much for your reply and indeed, that was the way I thought it would work, but my task is a little more complicated.

Essentially this is what I have to do. I need to host a page on the world wide web that detects the IP range of all our users and redirects them accordingly. To identity our users we need to check for our Subnet IP address - essentially the network address.

What is needs to do is point everyone using our VPN or internal to our building (that has a subnet address in the 10.0.0.0 range) and point them to our intranet page, hosted at say http://intranet (if you are in the building or using the VPN) and everyone one else, not on our VPN and external to our building to say Google. This is for all our remote users that will have our Intranet address set as their browsers homepage.

So while it's possible to list every IP address on our subnet, it would take me a year to list them all so hence the need to cover the entire range in one look up.

I'm sure it is possible, as I would imagine this is how country detection is done, over a range of IPs. That's what the very first script at the top of this post seemed to work as it was identifying our subnet/network address.

Thank you so much for your help thus far, all of this is really helpful and the tests I'm running through are helping me understand how this thing works. I'm no developer and am just trying to do the best I can and any help is fantastic support.

Look forward to hearing soon.
You might take a look at this material, it may help shed some light on your situation.
Online IP Subnet Calculator
IP Subnetting Tutorial
__________________
Jerry Broughton
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
WHM IP Address error cancer10 Web Servers 4 12-07-06 08:40 PM
Ip Address Question? purpleman The Lounge 2 07-12-06 05:59 PM
Refresh IP Address thorchan Visual Basic 0 04-16-05 02:30 AM
Regular Expression IP Address Replacement CMIVXX PHP 3 11-20-04 07:27 AM
index page not showing up skipper23 PHP 3 12-15-03 01:10 PM


All times are GMT -5. The time now is 04:01 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.