Walter.Web.FireWall
PhysicalFileWallExcludeReasons Property
Example 
Walter.Web.FireWall Assembly > Walter.Web.FireWall.Configurations Namespace > RulesConfig Class : PhysicalFileWallExcludeReasons Property
Reasons that will cause the disk logger to not write block rules to disk file for physical firewall integration
Syntax
public FirewallBlockReasons PhysicalFileWallExcludeReasons {get; set;}
Remarks
See documentation for physical firewall integration
Example
Sometimes you would like to limit what rules cause a physical firewall to close. the bellow sample shows how you can only generate blocking rules for a IPAddress coming from the wrong country
services.AddMemoryCache();
            
services.AddFireWall("Your token", "Domain key"
    , domainName: new Uri("https://www.test.dll", UriKind.Absolute), options =>
   {
       options.JoinCustomerImprovementProgramWithEmail = "email@MailAddress.com";
       options.Cypher.ApplicationPassword = "123456Seven";
       options.ApplicationName = "www.test.dll";
       options.ApplicationTag = "WS3";
       options.Rules.AllowWhiteListing = false;
       //only write NoAccessFromRegion rules to disk
       options.Rules.PhysicalFileWallExcludeReasons = Walter.BOM.FirewallBlockReasons.ALL & ~Walter.BOM.FirewallBlockReasons.NoAccessFromRegion;
       options.UseSession = false;
       
       //view located in ~/Views/Shared
       options.Reporting.HealthReportView = "_healthReport";
       options.Reporting.EmailReportView = "_EmailReport";
       
       options.Cashing.GeoLocation.SlidingExpiration = TimeSpan.FromMinutes(20);
       options.Rules.BlockRequest.BlockDuration.SlideExpiration = true;
       options.Rules.BlockRequest.BlockDuration.Expires = TimeSpan.FromSeconds(10);                   
       
       options.WebServices.IsUserApiUrl = new Uri(Links.IsUserEndpoint, UriKind.Relative);
       options.WebServices.RegisterLinksApiUrl = new Uri(Links.SiteMapEndPoint, UriKind.Relative);
       options.WebServices.BeaconApiUrl = new Uri(Links.BeaconPoint, UriKind.Relative);
       options.WebServices.CSPReportUrl = new Uri(Links.CSPViolation, UriKind.Relative);
             
       options.Rules.AllowWhiteListing = false;
       options.OnEndpointsCreated+= Options_OnEndpointsCreated;
       options.OnFireWallCreated += Options_OnFireWallCreated;
       options.Rules.Headers.AddDefaultSecurePolicy()
                            .AddStrictTransportSecurityNoCache()
                            .AddXssProtectionBlockAndReport()
                            .AddContentSecurityPolicyButTrust(trustingSites: Walter.Web.FireWall.TrustingSites.Jquery | Walter.Web.FireWall.TrustingSites.Google
                                      , allowInline: true
                                      , framesPolicy: Walter.Web.FireWall.FramesPolicy.Self);
            
            
   })
    .UseGeography(new System.IO.DirectoryInfo("D:\\MaxMind"))
    .UseDiskLogging(options => { options.Directory = @"D:\Firewall"; });
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RulesConfig Class
RulesConfig Members