Either change your web app configuration to disable anonymous access, or add this at the top of your page:
If Len(Trim(Request.ServerVariables ("LOGON_USER"))) = 0 Then
Response.Status = "401 Unauthorized"
Response.AddHeader "WWW-Authenticate", "NTLM"
Response.End
End If
|