Walter.BOM Namespace
Walter.Web.FireWall Namespace
ASP-WAF | .Net API for WAF Systems

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/")
                };
           });