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

RulesCreatedEventArgs Class

Event triggered when the rules have been applied before the rules are used to generate endpoint protection defaults

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

Syntax


public class RulesCreatedEventArgs

Remarks


Use this event to apply advanced runtime configuration to the firewall rules

Examples


The following code show how to update the pattern to allow access to the default .net default membership path "/Identity/Account/"
C#
services.AddFireWall(FireWallTrial.License, FireWallTrial.DomainKey
          , domainName: new Uri("https://www.your-domain.com", UriKind.Absolute)
          , options =>{
            options.OnRulesCreated+=(sender, rules)=> {
                rules.BlockedPatterns.NoPublicAccessToAdministration.Remove("/Identity/Account/")
                };
           });