Below code segment protects secret.aspx from unauthorized uesrs. A '?' denotes anonymous/unauthorized users; whereas a '*' represents all user.
web.config
<configuration>
<location path="Secret.aspx">
<system.web>
<authentication mode=”Forms” />
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
</configuration>
No comments:
Post a Comment