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.TagHelpersAssembly: Walter.Web.FireWall (in Walter.Web.FireWall.dll)
Examples
create an UL only if the user-agent matches the type
<ul> <li firewall-userTypes-allowed="IsHuman | IsSearchEngine" firewall-userTypes-is-NotDiscovered="true" firewall-userTypes-is-bot="false" firewall-userTypes-is-Malicious="false"> <a asp-action="Login" asp-controller="Account">login to view the movie</a> </li> <li firewall-userTypes-is-bot="true" firewall-userTypes-is-Malicious="true"> <a asp-action="Login" asp-controller="honeypot">login to view the movie</a> </li> </ul>