This code allows you to let only a certain range of IP addresses to your ASP.
<% @ Language = VBScript%>
<%
Dim MyIP
MyIP = Request.ServerVariables ( “REMOTE_ADDR”)
‘change the IP below … 127.0. is 127.0 *
“So if you IP address of the
“set will let you in, otherwise I
‘T will not … more you
“Go off the more you segement ip
‘Will restrict
if Instr (MyIP, “127.0.”)> 0 Then
“Good field, let them
Other
Response.Write “<HTML> <HEAD> <TITLE> Authorization denied </ TITLE> </ HEAD> <BODY>”
Response.Write “Your domain is not listed as one authorized to view this web site. <HR>”
response.end
End if
%>