public FirewallBlockReasons PhysicalFileWallExcludeReasons {get; set;}
public FirewallBlockReasons PhysicalFileWallExcludeReasons {get; set;}
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"; });
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