With Active Server Pages (ASP) server-side scripting you can programmatically control access to your .asp files by checking the IP address and Windows NT credentials of users. For more information about server-side scripts, see Active Server Pages Scripts.
Note You can use this procedure only to control access to a specific ASP page, and not other types of Web content.
To use ASP for access control<% AuthCred = Request.ServerVariables("LOGON_USER") IPAddr = Request.ServerVariables("REMOTE_ADDR") If IPAddr = "INSERT IP ADDRESS HERE!" Then 'Authenticate client 'Prompt user for a valid Windows NT account user name and password If IsEmpty(AuthCred) or AuthCred = "" Then 'If user logon information is not valid or if user cancels, send an 'HTTP 401 status to the browser, which will recognize a denial of access 'to the file. Response.Status = "401 Access Denied" Response.End End if Else 'Send an HTTP 403 status to the browser, indicating 'that access to file is forbidden. Response.Write("403 Access Forbidden") Response.End End if %>
INSERT IP ADDRESS HERE!