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

UserTypeRenderTagHelper Class

Class UserType Renderer TagHelper allows you to make HTML elements visible, or hide them based on the type of consumer that is using 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 UserTypeRenderTagHelper


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 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