开发者

How to handle bad requests in asp.net

开发者 https://www.devze.com 2023-02-28 01:19 出处:网络
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 meth

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

精彩评论

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