Reputation: 1253
If I wanted to make sure that AUTHENTICATED users were denied access to Enroll.aspx and UNAUTHENTICATED users had access how should my "allow/deny users" tags be set in the web.config?
<location path="Enroll.aspx">
<system.web>
<authorization>
<allow users = "?" />
<deny users = "?" />
</authorization>
</system.web>
</location>
Upvotes: 3
Views: 241
Reputation: 16680
Did you try this?
<authorization>
<allow users = "?" />
<deny users = "*" />
</authorization>
Allow anonymous users, deny everyone else.
Upvotes: 2