What is HttpForbiddenHandler?

 Posted by Ddd on 2/17/2011 | Category: ASP.NET Interview questions | Views: 3583 | Points: 40

It is a class used to issue the HTTP 403 error
"Forbidden: Access is denied" or "This type of page is not served" error messages.
when an attempt is made to access a resource mapped to this handler.
You can use it to protect your files.

In the Web.Config file
<add verb="*" path="*.aspx" type="System.Web.HttpForbiddenHandler"/>

when you try to open .aspx page, "this type of page is not served" error message will be displayed.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response