Walter.Web.FireWall.CookieStore 2020.9.29.10

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Walter.Web.FireWall.CookieStore --version 2020.9.29.10                
NuGet\Install-Package Walter.Web.FireWall.CookieStore -Version 2020.9.29.10                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Walter.Web.FireWall.CookieStore" Version="2020.9.29.10" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Walter.Web.FireWall.CookieStore --version 2020.9.29.10                
#r "nuget: Walter.Web.FireWall.CookieStore, 2020.9.29.10"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Walter.Web.FireWall.CookieStore as a Cake Addin
#addin nuget:?package=Walter.Web.FireWall.CookieStore&version=2020.9.29.10

// Install Walter.Web.FireWall.CookieStore as a Cake Tool
#tool nuget:?package=Walter.Web.FireWall.CookieStore&version=2020.9.29.10                

This package targets projects with dedicated servers and allows you to protect your firewall using annotations and pre-specified rules. A full getting started document is available at www.asp-waf.com in form of a PDF, compiled help and simple instructions

The bellow sample shows how you integrate and enable the firewall in your project your cookies using the CookieStore. This will

services.AddFireWall(FireWallTrail.License, FireWallTrail.DomainKey
    , domainName: new Uri("https://www.your-domain.com", UriKind.Absolute)
    , options =>
    {
        options.Cypher.ApplicationPassword = "123456$even";
        options.ApplicationName = "Name as used for reporting";
        options.ApplicationTag = "ITIL Tag";
        options.Rules.BlockRequest.BlockDuration.SlideExpiration = true;
        options.Rules.BlockRequest.BlockDuration.Expires = TimeSpan.FromSeconds(10);

        //used by JavaScript in the browser
        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);
		
    }).UseCookieStore();
	
//protect each MVC controller
services.AddMvc(options =>
    options.Filters.Add<Walter.Web.FireWall.Filters.FireWallFilter>()
);

For those applications that can use SQL server you can use save the cookies in the database by setting a connection string in cookies config connection

services.AddFireWall(FireWallTrail.License, FireWallTrail.DomainKey
    , domainName: new Uri("https://www.your-domain.com", UriKind.Absolute)
    , options =>
    {
        options.Cypher.ApplicationPassword = "123456$even";
        options.ApplicationName = "Name as used for reporting";
        options.ApplicationTag = "ITIL Tag";
        options.Rules.BlockRequest.BlockDuration.SlideExpiration = true;
        options.Rules.BlockRequest.BlockDuration.Expires = TimeSpan.FromSeconds(10);

        //used by JavaScript in the browser
        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.Cookies.ConnectionString = Configuration.GetConnectionString("FireWallCookieDatabase");
    }).UseDBCookieStore();
	
//protect each MVC controller
services.AddMvc(options =>
    options.Filters.Add<Walter.Web.FireWall.Filters.FireWallFilter>()
);

Or by specifying a database connection if you like to use different databases

services.AddFireWall(FireWallTrail.License, FireWallTrail.DomainKey
    , domainName: new Uri("https://www.your-domain.com", UriKind.Absolute)
    , options =>
    {
        options.Cypher.ApplicationPassword = "123456$even";
        options.ApplicationName = "Name as used for reporting";
        options.ApplicationTag = "ITIL Tag";
        options.Rules.BlockRequest.BlockDuration.SlideExpiration = true;
        options.Rules.BlockRequest.BlockDuration.Expires = TimeSpan.FromSeconds(10);

        //used by JavaScript in the browser
        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.Cookies.ConnectionString = Configuration.GetConnectionString("FireWallCookieDatabase");
    }).UseDBCookieStore(Configuration.GetConnectionString("FireWallCookieDatabase"));
	
//protect each MVC controller
services.AddMvc(options =>
    options.Filters.Add<Walter.Web.FireWall.Filters.FireWallFilter>()
);

The firewall is fully configurable and has quite a few options that allow you to protect against fishing, scrubbing, cross-site attach and much more. This is just a small set of options of what's possible

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2024.11.20.644 40 11/21/2024
2024.11.15.421 74 11/15/2024
2024.11.11.1334 71 11/14/2024
2024.11.6.1222 72 11/6/2024
2024.10.28.1605 87 10/28/2024
2024.10.28.1335 76 10/28/2024
2024.10.19.1525 76 10/20/2024
2024.10.18.1315 102 10/18/2024
2024.9.27.1406 80 9/27/2024
2024.9.17.1417 98 9/17/2024
2024.9.12.1923 100 9/12/2024
2024.9.6.1352 100 9/7/2024
2024.9.1.1159 105 9/1/2024
2024.8.26.1150 108 8/26/2024
2024.8.19.1411 120 8/19/2024
2024.8.17.1000 122 8/17/2024
2024.8.12.1622 116 8/13/2024
2024.8.5.1010 84 8/5/2024
2024.8.1.1545 119 8/16/2024
2024.7.28.629 68 7/28/2024
2024.7.26.1512 82 7/26/2024
2024.7.26.828 71 7/26/2024
2024.7.11.1604 92 7/11/2024
2024.7.9.1520 91 7/9/2024
2024.7.4.1425 94 7/4/2024
2024.7.3.1249 85 7/3/2024
2024.7.2.1536 96 7/2/2024
2024.6.28.953 103 6/28/2024
2023.11.13.1117 208 11/13/2023
2023.10.26.1502 147 10/29/2023
2023.10.12.1926 178 10/12/2023
2023.9.14.812 162 9/14/2023
2023.9.7.1748 159 9/7/2023
2023.9.7.1241 166 9/7/2023
2023.9.6.1001 153 9/6/2023
2023.9.5.1246 166 9/5/2023
2023.9.5.1032 162 9/5/2023
2023.8.31.1522 135 8/31/2023
2023.8.29.1040 182 8/29/2023
2023.8.17.901 220 8/17/2023
2023.8.9.1314 174 8/9/2023
2023.8.2.750 190 8/2/2023
2023.7.12.830 196 7/12/2023
2023.7.5.1419 170 7/6/2023
2023.6.14.1628 194 6/14/2023
2023.6.11.1304 224 6/11/2023
2023.5.30.1640 196 5/30/2023
2023.5.4.1552 237 5/4/2023
2023.5.1.1524 261 5/1/2023
2023.4.29.910 265 4/29/2023
2023.4.12.1236 253 4/12/2023
2023.3.22.1456 303 3/22/2023
2023.3.14.1356 336 3/14/2023
2023.3.1.810 368 3/1/2023
2023.2.25.11857 341 2/25/2023
2023.2.22.27 328 2/22/2023
2023.2.15.1413 326 2/15/2023
2023.2.11.1628 336 2/11/2023
2023.1.11.534 407 1/11/2023
2022.12.30.711 395 12/30/2022
2022.12.15.1108 368 12/15/2022
2022.12.14.648 385 12/14/2022
2022.11.27.1059 422 11/27/2022
2022.11.21.338 412 11/21/2022
2022.11.14.1819 440 11/14/2022
2022.11.13.917 444 11/13/2022
2022.10.31.740 455 11/1/2022
2022.10.15.652 529 10/15/2022
2022.10.1.810 519 10/1/2022
2022.9.26.1444 572 9/26/2022
2022.9.14.1508 589 9/14/2022
2022.9.14.809 617 9/14/2022
2022.9.8.1009 554 9/8/2022
2022.8.20.1007 530 8/20/2022
2022.8.1.1 578 7/31/2022
2022.7.1300 604 7/1/2022
2022.7.31.1016 564 7/31/2022
2022.7.15.841 581 7/15/2022
2022.6.21.647 632 6/21/2022
2022.5.18.638 625 5/19/2022
2022.5.16.853 594 5/19/2022
2022.5.16.816 575 5/16/2022
2022.5.4.1010 640 5/4/2022
2022.4.10.947 682 4/10/2022
2022.4.10.925 683 4/10/2022
2022.4.10.828 671 4/10/2022
2022.4.1.1545 683 4/1/2022
2022.3.31.823 692 3/31/2022
2022.3.26.1103 716 3/26/2022
2022.3.26.820 692 3/26/2022
2022.3.25.840 704 3/26/2022
2022.2.16.1131 749 2/17/2022
2022.2.16.834 700 2/17/2022
2022.2.5.1114 748 2/5/2022
2022.1.17.1158 725 1/17/2022
2022.1.10.1505 750 1/10/2022
2022.1.10.537 839 1/10/2022
2022.1.5.1139 837 1/8/2022
2021.12.28.1452 892 12/28/2021
2021.12.16.812 885 12/16/2021
2021.11.23.1528 6,872 11/24/2021
2021.11.21.925 721 11/22/2021
2021.11.19.1503 661 11/22/2021
2021.11.19.847 983 11/19/2021
2021.11.18.1824 912 11/16/2021
2021.11.10.852 1,247 11/10/2021
2021.11.9.2021 1,036 11/9/2021
2021.11.8.2109 513 11/9/2021
2021.11.8.1612 572 11/8/2021
2021.11.7.1021 525 11/8/2021
2021.11.3.1612 617 11/4/2021
2021.11.1.1102 642 11/1/2021
2021.10.25.1206 755 10/25/2021
2021.10.23.1310 603 10/25/2021
2021.10.19.1522 648 10/19/2021
2021.10.16.1325 620 10/18/2021
2021.10.9.1119 82 10/9/2024
2021.10.6.1546 597 10/6/2021
2021.10.5.1450 626 10/5/2021
2021.10.4.1155 604 10/5/2021
2021.10.1.753 667 10/1/2021
2021.9.27.1005 577 9/28/2021
2021.9.26.1913 650 9/26/2021
2021.9.19.1015 638 9/19/2021
2021.9.17.1702 564 9/17/2021
2021.9.17.1449 573 9/17/2021
2021.9.12.1100 624 9/13/2021
2021.9.11.2004 895 9/11/2021
2021.9.9.1110 589 9/9/2021
2021.9.7.1901 694 9/8/2021
2021.9.7.1121 644 9/7/2021
2021.9.6.1518 652 9/7/2021
2021.9.4.1124 648 9/4/2021
2021.9.2.708 576 9/4/2021
2021.9.0.1259 593 9/2/2021
2021.8.2200 636 8/23/2021
2021.8.2100 579 8/23/2021
2021.8.22.900 570 8/22/2021
2021.8.18.1500 611 8/18/2021
2021.8.18.930 628 8/18/2021
2021.8.14.1600 654 8/16/2021
2021.8.14.829 613 8/14/2021
2021.8.9.1105 615 8/9/2021
2021.8.8.1612 582 8/8/2021
2021.8.6.1044 657 8/6/2021
2021.8.4.1355 838 8/5/2021
2021.7.30.2118 737 7/31/2021
2021.7.27.926 817 7/28/2021
2021.7.23.931 621 7/26/2021
2021.7.22.1456 601 7/23/2021
2021.7.15.1547 604 7/15/2021
2021.7.13.812 609 7/13/2021
2021.7.8.1527 715 7/10/2021
2021.7.5.1649 639 7/5/2021
2021.6.29.1453 717 6/30/2021
2021.6.26.1753 615 6/27/2021
2021.6.25.1849 646 6/25/2021
2021.6.24.1518 601 6/24/2021
2021.6.20.729 694 6/20/2021
2021.6.15.2006 625 6/15/2021
2021.6.14.2025 597 6/15/2021
2021.6.13.2035 661 6/14/2021
2021.6.12.1154 654 6/13/2021
2021.6.9.1120 570 6/9/2021
2021.6.3.1509 637 6/3/2021
2021.5.31.1533 667 5/31/2021
2021.5.31.1415 664 5/31/2021
2021.5.25.1732 631 5/25/2021
2021.5.24.1128 637 5/24/2021
2021.5.24.1019 642 5/24/2021
2021.5.12.1054 549 5/12/2021
2021.5.12.637 584 5/12/2021
2021.5.8.1226 533 5/8/2021
2021.5.5.1901 611 5/6/2021
2021.5.3.1621 617 5/4/2021
2021.5.1.905 673 5/1/2021
2021.4.28.1511 590 4/28/2021
2021.4.20.1520 595 4/21/2021
2021.4.16.738 566 4/21/2021
2021.4.14.1216 586 4/16/2021
2021.4.9.1538 576 4/13/2021
2021.4.8.947 638 4/13/2021
2021.4.6.1235 671 4/6/2021
2021.4.5.1653 573 4/5/2021
2021.4.1.913 567 4/1/2021
2021.3.31.2003 661 4/1/2021
2021.3.18.1622 675 3/18/2021
2021.3.3.1259 650 3/3/2021
2021.3.2.1415 627 3/2/2021
2021.3.1.11 638 2/28/2021
2021.3.1.1 661 2/27/2021
2021.3.1 683 2/27/2021
2021.2.23.6 668 2/23/2021
2021.2.21.1 603 2/21/2021
2021.2.20.1 603 2/20/2021
2021.2.19.2 637 2/19/2021
2021.2.18.6 652 2/19/2021
2021.2.17.1 609 2/17/2021
2021.2.16.1 638 2/16/2021
2021.2.15.3 594 2/15/2021
2021.2.15.1 611 2/14/2021
2021.2.14.3 680 2/14/2021
2021.2.12.6 610 2/12/2021
2021.2.12.2 585 2/12/2021
2021.2.11.1 646 2/11/2021
2021.2.10.1 588 2/10/2021
2021.2.8.1 642 2/9/2021
2021.2.7.2 642 2/7/2021
2021.2.7.1 599 2/6/2021
2020.12.27.6 737 12/27/2020
2020.12.27.1 675 12/27/2020
2020.12.26.7 709 12/27/2020
2020.12.26.5 694 12/27/2020
2020.12.26.3 706 12/27/2020
2020.12.19.1 794 12/19/2020
2020.12.16.1 642 12/16/2020
2020.12.15.1 684 12/15/2020
2020.12.14.5 663 12/14/2020
2020.12.14.4 669 12/14/2020
2020.12.14.3 692 12/14/2020
2020.12.5.1 766 12/5/2020
2020.12.4.4 669 12/4/2020
2020.12.4.3 659 12/4/2020
2020.12.4.1 639 12/4/2020
2020.12.3.1 695 12/3/2020
2020.12.2.4 681 12/2/2020
2020.12.2.3 743 12/2/2020
2020.12.1.1 694 12/1/2020
2020.11.28.1 687 11/28/2020
2020.11.27.2 720 11/27/2020
2020.11.27.1 755 11/27/2020
2020.11.25.1 597 11/25/2020
2020.11.22.3 704 11/23/2020
2020.11.20.1 751 11/21/2020
2020.11.19.3 644 11/19/2020
2020.11.19.1 706 11/19/2020
2020.11.18.2 742 11/18/2020
2020.11.17.2 723 11/17/2020
2020.11.17.1 736 11/17/2020
2020.11.15.1 710 11/15/2020
2020.11.14.1 729 11/14/2020
2020.11.13.2 723 11/13/2020
2020.11.13.1 669 11/13/2020
2020.11.12.1 671 11/12/2020
2020.11.11.1 675 11/11/2020
2020.11.8.1 837 11/8/2020
2020.11.7.1 782 11/7/2020
2020.11.5.1 743 11/5/2020
2020.11.3.1 758 11/3/2020
2020.11.1.3 782 11/1/2020
2020.11.1.2 686 11/1/2020
2020.11.1.1 698 11/1/2020
2020.10.30.1 689 11/1/2020
2020.10.15.3 682 10/15/2020
2020.10.15.2 671 10/15/2020
2020.10.14.1 709 10/14/2020
2020.10.13.1 711 10/13/2020
2020.10.12.2 828 10/12/2020
2020.10.12.1 695 10/12/2020
2020.10.10.1 864 10/10/2020
2020.10.9.6 699 10/9/2020
2020.10.9.2 633 10/9/2020
2020.10.9.1 703 10/9/2020
2020.10.8.1 690 10/8/2020
2020.10.6.8 692 10/7/2020
2020.10.6.6 690 10/7/2020
2020.10.6.5 671 10/7/2020
2020.10.6.4 716 10/7/2020
2020.10.6.3 716 10/7/2020
2020.10.6.2 757 10/7/2020
2020.10.6.1 817 10/7/2020
2020.10.5.1 763 10/6/2020
2020.10.1.3 737 10/1/2020
2020.10.1.2 725 10/1/2020
2020.10.1.1 696 10/1/2020
2020.9.29.10 722 9/29/2020
2020.9.29.9 767 9/29/2020
2020.9.28.2 699 9/28/2020
2020.9.28.1 686 9/28/2020
2020.9.25.1 851 9/26/2020
2020.9.24.2 729 9/24/2020
2020.9.24 692 9/24/2020
2020.9.23.2 672 9/23/2020
2020.9.23.1 712 9/23/2020
2020.9.22.1 680 9/22/2020
2020.9.21.1 715 9/21/2020

22 September 2020
     1. Release of database based cookie storage
     Documentation at:https://firewallapi.asp-waf.com/?topic=html/T-Microsoft.Extensions.DependencyInjection.CookieStoreBuilderExtensions.htm

     19 September 2020
     - Initial release with support for disk based cookie storage