Info
Version: | 2024.11.15.421 |
Author(s): | Walter Verhoeven, Stijn Snellinx |
Last Update: | Friday, November 15, 2024 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://www.asp-waf.com/firewall |
NuGet Url: | https://www.nuget.org/packages/Walter.Web.FireWall.Geo.MaxMind |
Install
Install-Package Walter.Web.FireWall.Geo.MaxMind
dotnet add package Walter.Web.FireWall.Geo.MaxMind
paket add Walter.Web.FireWall.Geo.MaxMind
Walter.Web.FireWall.Geo.MaxMind Download (Unzip the "nupkg" after downloading)
Dependencies
net5.0
- Walter.BOM(>= 2020.12.27.6)
- Walter.Web.Firewall(>= 2020.12.27.6)
- MaxMind.GeoIP2(>= 4.0.1)
- Walter(>= 2020.12.27.1)
- Walter.BOM(>= 2020.12.27.6)
- Walter.Web.Firewall(>= 2020.12.27.6)
- MaxMind.GeoIP2(>= 4.0.1)
- Walter(>= 2020.12.27.1)
- Walter.BOM(>= 2020.12.27.6)
- Walter.Web.Firewall(>= 2020.12.27.6)
- MaxMind.GeoIP2(>= 4.0.1)
- Walter(>= 2020.12.27.1)
Tags
interface geographically aware allowing you to block requests for certain countries
and enables you to render a different result based on the region or country the request came from.
The Package adds functionality to NuGet package Walter.Web.Firewall
services.AddFireWall(FireWallTrial.License, FireWallTrial.DomainKey
, domainName: new Uri("https://www.your-domain.com", UriKind.Absolute)
, options =>
{
//your firewall settings
}).UseGeography(directory:new DirectoryInfo("d:\\MaxMind"));
This assumes that data files are in d:\MaxMind folder leave blank if you use App_Data and in your application configuration you can set blocking scope like this
app.UseFireWall()
.UseGeoBlockingMiddleware(options => {
options.Block(new[]{GeoLocation.China
,GeoLocation.RussianFederation});
});
More information on how to use this Add-On is available in this manual https://www.asp-waf.com/download/ASP-WAF-FireWall-Getting-Started.pdf.