How to handle bad requests in asp.net
I 开发者_开发问答am using asp.net 3.5, there are some requests with special characters (for example ./
and <
) return "bad request" by asp.net application, it looks like the Application_Error
method in Global.asax.cs
cannot handle these errors, are there any other methods to handle these request errors?
Requests examples:
http://localhost/abc./abc.aspx
http://localhost/ab<c.aspx
This is being caused because the characters specified can cause security issues. Further information.
Take a look at A potentially dangerous Request.Form value was detected from the client for how to handle these
精彩评论