Prevent unauthenticated users from accessing the application - ASP.NET Security
Q. You are creating an ASP.NET application for company CareerRide. You use form based authentication to validate users. You need to prevent unauthenticated users from accessing the application. What should you do?
- Published on 27 Jul 15a. In the authorization section of the Web.config file, set the users attribute of the deny element to “?”
b. Set In the authorization section of the Web.config file, set the users attribute of the deny element to “*”
c. In the authorization section of the Machine.config file, set the users attribute to the allow element to “?”.
d. None of the above.
ANSWER: In the authorization section of the Web.config file, set the users attribute of the deny element to “?”