开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜