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

BrowserIntentionsTagHelper Class

Class Browser IntentionsTagHelper allows you to make HTML elements visible, or hide them based on the type of user agent that is requesting to render the razor page. Implements the [Microsoft.AspNetCore.Razor.TagHelpers.TagHelper]

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


public sealed class BrowserIntentionsTagHelper


You can set the type to reject or accept via the boolean value or as the allowed type flags
create an UL only if the user-agent matches the type
       <li firewall-userTypes-allowed="IsHuman | IsSearchEngine"
           firewall-userTypes-is-bot="false" firewall-userTypes-is-Malicious="false">
           <a asp-action="Login" asp-controller="Account">login to view the movie</a>
       <li firewall-userTypes-is-bot="true"
           <a asp-action="Login" asp-controller="honeypot">login to view the movie</a>

See Also