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

FireWallAttribute Class

Protects and block any requests that are in violation on URL type pattern attacks and allow only a the specified user types

Namespace:  Walter.Web.FireWall.Annotations
Assembly:  Walter.Web.FireWall (in Walter.Web.FireWall.dll)

Syntax


public sealed class FireWallAttribute

Remarks


This method will work even if you do not specify app.UseFireWall() in startup.cs of your project, however you will need to integrate the firewall in the services by calling services.AddFireWall as the dependent objects need to be registered

Examples


The sample shows how to enable the firewall on a single controller and all the endpoints in it.
C#
[Walter.Web.FireWall.Annotations.FireWall]
public class HomeController : Controller
{
// your controller here
}