Protect ASP.NET Web Forms from Repeated Suspicious Requests with RdpGuard - Event Log Monitoring and IP Blocking
RdpGuard
Intrusion prevention system for your Windows Server
 

ASP.NET Web Forms Protection

If you run an ASP.NET website on IIS, you may find repeated "A potentially dangerous Request.Form value was detected" errors in the Windows Application log. Automated tools can repeatedly submit unwanted HTML, scripts and malformed input to your forms, consuming server resources and generating large numbers of validation errors.

A typical request validation event contains information like this. Server and application details are illustrative; the submitted value is omitted:

Log Name:          Application
Source:            ASP.NET 4.0.30319.0
Event ID:          1309
Task Category:     Web Event
Level:             Warning
Keywords:          Classic
Computer:          WEB-SERVER

Description:
Event code:        3003
Event message:     A validation error has occurred.
Event detail code: 0

Application information:
    Trust level: Full
    Application Virtual Path: /
    Application Path: C:\inetpub\wwwroot\example.net\
    Machine name: WEB-SERVER

Process information:
    Process ID: 3276
    Process name: w3wp.exe
    Account name: IIS APPPOOL\ExampleAppPool

Exception information:
    Exception type: HttpRequestValidationException
    Exception message: A potentially dangerous Request.Form value was detected from the client (submitted value omitted).
   at System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
   at System.Web.HttpRequest.ValidateHttpValueCollection(HttpValueCollection collection, RequestValidationSource requestCollection)
   at System.Web.HttpRequest.get_Form()
   at System.Web.HttpRequest.get_HasForm()
   at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
   at System.Web.UI.Page.DeterminePostBackMode()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   ...

Request information:
    Request URL: https://example.net/index.aspx
    Request path: /index.aspx
    User host address: 5.136.158.160
    User:
    Is authenticated: False
    Authentication Type:
    Thread account name: IIS APPPOOL\ExampleAppPool

ASP.NET may already reject these requests, but the same source can keep sending more. Your server still spends processor time, memory, bandwidth and log space handling them. Repeated probes can also make genuine application errors harder to find among thousands of similar log entries.

RdpGuard helps stop this repeated activity. It monitors ASP.NET events in the Application log, identifies requests that match its detection rules and temporarily blocks the source IP address when detections reach your configured limit. During the blocking period, that address can no longer continue sending requests to the protected server ports.

Start with the standard rules for request validation errors, or customize detection to match the events produced by your applications. You can adjust the blocking limit and duration, whitelist trusted addresses, and receive notifications when an IP address is blocked.

A validation error alone does not prove an attack: legitimate users can also trigger it by entering HTML into a form. Review the events your site produces and choose rules that fit its expected input. Keep ASP.NET and your application updated, and retain appropriate input validation and output encoding.

This protection uses the Windows events generated by classic ASP.NET on .NET Framework. It works with HTTP and HTTPS because it reads logged events. It requires a client IP in the event and does not automatically cover every ASP.NET Core application or every type of website attack.

For 64-bit Windows and Windows Server. Supported Windows versions.

See also

How to enable and configure ASP.NET Web Forms protection - enable monitoring, check logged events and adjust blocking settings.

Custom detection rules for ASP.NET Web Forms - match EventData fields and tailor detection to your application.

RdpGuard 10.4.5 Free Trial

RdpGuard protects:

Our customers say

"This sotware is really great. It's a relief. Because my server is constantly under attack. Thanks RdpGuard" - Joaquim De Sousa Marques

"Nice product. I used to implement something similiar in a low-tech and cumbersome manner via a script called TSBlock (not mine). This makes it much easier and is well worth the pricetag for SMB's." - J. Johnson

"Absolutely amazed at your product. We are a church in the North Dallas area, and I discovered this morning multiple failed logon attempts via our Remote Access Server. A friend suggested your product, so I immediately downloaded the trial. It had a list of about five blocked IP addresses in minutes, and that was enough to lead me to push the BUY button. Over the past 10-15 minutes the list is now about thirty with at least a third being international attempts to break into our system. Thanks for a great product. You may have just saved us much grief." - John Hallford

"Love the software. RDP on our Windows servers is just ridiculous. We would block it in the router but we have lots of old-time customers that would have issues." - Scott Hirsch

"Love the software! Makes it easier than tailoring VB Scripts!!" - Nick Brennan

"It's a great product - really stopping those RDP attackers :-)" - Dave, UK

"First of all: Your application is very (!!!) useful and I like it very much securing my 2012 R2 server. RdpGuard is the best solution, I found on the market and after 10 minutes of testing it I ordered the fully-featured version. :-)" - Carsten Baltes

Our Other Products
Copyright © 2012-2026 Netsdk Software FZE. All rights reserved.  Terms of Use.  Privacy Policy.  Refund Policy.