【问题标题】:filter asp.net healthmonitoring过滤asp.net healthmonitoring
【发布时间】:2013-06-06 20:07:24
【问题描述】:

我们已在我们的网站上激活健康监测。最近我们收到了很多由机器人引起的黑客攻击,但也产生了很多服务器错误。

Exception type: System.Web.HttpException
Exception message: The length of the URL for this request exceeds the configured maxUrlLength value.

Request information:
Request URL: http://www.ourdomain.be/Product/Band/29360" onmousedown="return rwt(this,'','','','7','[CUT_OUT_SOME_STUFF]row ab_button" id="am-b6" href="
User host address: ---.---.47.93

如何过滤这些特定事件,以免每秒收到 10 封电子邮件? 或者如何在 ASP.NET 的安全部分处理 URL 之前对其进行清理?

【问题讨论】:

    标签: asp.net sanitization health-monitoring


    【解决方案1】:

    我无法完全重现您的错误 - 我得到了路径中非法字符的异常。不过……

    【讨论】:

    • Application_error 不会触发,因为它显然是之前捕获它的 ASP.Net 管道。现在有类似的错误:“ASP.NET 检测到 URL 中的无效字符。”
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-09
    • 1970-01-01
    • 2014-09-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多