Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7489919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:24:09+00:00 2026-05-29T15:24:09+00:00

I currently have healthmonitoring implemented for a public facing website. I am using the

  • 0

I currently have healthmonitoring implemented for a public facing website. I am using the SimpleMailWebEventProvider to send emails out when errors happen. “All Errors”.

I am hoping someone who has experience with this will be able to show me an easy way to prevent emails from being sent in the case of
“A potentially dangerous Request.Path value was detected from the client (:)” I can see these errors and can tell they are coming from a bot and not a human, by their timing (all at once) and by the url being requested

example:

Request path: /Scripts/,data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g

I like the fact that .Net is throwing an error in these cases but these emails account for probably 90% of all healthmonitoring emails I get. Reading through all of them to locate error emails that indicate a code problem with the website is a hassle.

I would like to avoid creating my own MailEventProvider, although I have in the past but I believe I ended up having to use ILSpy to create my own since SimpleMailWebEventProvider is Sealed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T15:24:12+00:00Added an answer on May 29, 2026 at 3:24 pm

    To filter exceptions caused by robots, I usually call Server.ClearError() in Application_Error handler in Global.asax, this prevents health monitoring from processing unhandled exceptions. However, if you use health monitoring with event log, this will also prevent errors from appearing in event log.

    void Application_Error(object sender, EventArgs e)
    {
        var exception = Server.GetLastError();
        if (exception is HttpException && exception.Message.Contains("A potentially dangerous Request.Path value was detected from the client"))
        {
            Server.ClearError();
        }
    }
    

    In real app, I think it makes sense to use some additional conditions to ensure that error comes from robot, like taking into account IP address, url, etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently, in all of our environments we have healthmonitoring turned on to alert us
I currently have: Range(Z1).Interior.Color = RGB(255, 255, 255) But this wipes out the borders
I currently have a ViewModel set up for a blog: public class PostViewModel {
I currently have a grid made out of square DIVs (200px x 200px each).
We currently have an application that sends out SMS to users, it acts like
I currently have an existing database and I am using the LINQtoSQL generator tool
I currently have a MySQL database that I am accessing using PHP. You search
Currently have password protection on my main and sub directories, however I'd like to
I currently have 4 textboxes which will be used to store an ip address.
I currently have a Gridview , And I want to use client-side validation to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.