Walter.BOM Namespace
Walter.Web.FireWall Namespace
ASP-WAF Web application firewall for .Net 6, .Net 5, .Net Standard 2.1 and .Net Core 3.x

PhishyRequestEventArgs Class

Argument used when a Phishy Request is considered, a phishy request is a request that is processed by your web application that resulted from a URL that is unknown to the firewall

Namespace:  Walter.Web.FireWall.EventArguments
Assembly:  Walter.Web.FireWall (in Walter.Web.FireWall.dll)

Syntax


public class PhishyRequestEventArgs

Examples


Assuming the firewall using the SMTP NuGet package we use the NuGet package extension method to send a email to the configured developers mailbox for those that are responsible for security
C#
private void MyFireWall_OnPhishyRequest(object sender, PhishyRequestEventArgs e)
{
    e.IgnoreForNow = true;
    (sender as IFireWall)?.SendEmail(EMailRoles.SecurityRelevant, $"URL {e.Request.OriginalUrl.PathAndQuery} phishy", $"Consider protection for {e.Request.OriginalUrl.PathAndQuery} on {e.Request}", false);
}