Form Based Authentication

If I wanted to make sure that AUTHENTICATED users were denied access to Enroll.aspx users and UNAUTHENTICATED users had access, how should the “allow / deny users” tags in the web.config file be set?

<location path="Enroll.aspx">
    <system.web>
      <authorization>
        <allow users = "?" />
        <deny users = "?" />
      </authorization>
    </system.web>
</location>
+3
source share
2 answers
<allow users="?" />
<deny users="*" />

Gotta do the trick

+2
source

Have you tried this?

<authorization>
<allow users = "?" />
<deny users = "*" />
</authorization> 

Allow anonymous users to refuse all.

+2
source

Source: https://habr.com/ru/post/1751650/


All Articles