I am trying to restrict access to certain asp pages on my intranet. This is how it is currently written. I grab the user and if it does not match any of the groups specified, access is denied. Here is the code. Is there an easier way to do this? Thanks for any help or suggestions.
'Temporary Fix to allow only Agents to Use Employee Search form.
strParm3 = Request.ServerVariables("Remote_User")
strParm4 = Mid(strParm3,8,15)
If (strParm4 <> "RETAILERINTRA") and (strParm4 <> "retailerintra") and (strParm4 <> "SECURITYTOP") and (strParm4 <> "securitytop") and (strParm4 <> "SECAGENTS") and (strParm4 <> "secagents") then
Response.write "You do not have access to this page. Please notify Security for access"