Tim:
This piece of ASP script is from the top of the default page and it will
check the IP address of the user. I have it checking to see if it is one of
my 2 friends: Joe or Sean. Then it greets them accordingly. You could
easily modify it to check their IP address against your school's range of IP
addresses and have them redirected if they don't match. If they match, let
'em in!
Hope it helps a little... (the password thingy is in someone elses hands!)
Regards,
Joe
<%
'get user's ip address
Dim strUserIpAddress
strUserIpAddress = Request.ServerVariables("REMOTE_ADDR")
'check if this
If strUserIpAddress = "299.101.119.21" Then
Response.write "<title>Welcome Joe!</title>"
ElseIf strUserIpAddress = "299.101.119.20" Then
Response.write "<title>Welcome Sean!</title>"
End If
%>
Quote:
>We have an Intranet web at the college where I teach. We need to limit
>access to computers on campus (IP address control) ...BUT... we would also
>like to allow staff to access the site from off-campus with UID and
>password.
>We run IIS and can block access to only our IP range but I can't figure out
>how to:
>1) Look at the IP address of an incoming http get, if it's from on campus,
>let it through, otherwise
>2) Bring up a password window. (We can use the same password for everyone
so
>we don't have to go to a database or anything.)
>Any ideas? ASP, JavaScript?????
>Thanx
>Tim