ASP-WAF Web application firewall for .Net 5, .Net Standard 2.1 and .Net Core 3.x

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


[CLSCompliantAttribute]
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
}

Inheritance Hierarchy


Object
  Walter.Web.FireWall.Annotations..::..FireWallAttribute