-
Notifications
You must be signed in to change notification settings - Fork 7
TagHelpers
ASP-WAF Support Team edited this page Feb 22, 2021
·
9 revisions
The .Net framework will render a razor page using HTML tags as well as custom tags. This section explains how to use custom attributes to suppress or show content in your web application's output.
You can enable the firewall tag helpers for your razor pages by modifying your projects _ViewImports.cshtml to include
@using Walter.Web.FireWall
@addTagHelper *, Walter.Web.FireWallAfter you have done that you have the following attributes and tags will be available to you:
- firewall-detect attribute a helper method used to inject user detection script into the page learn more
- firewall-userTypes attribute a helper method blocking content from rendering that is of the wrong user type learn more
- firewall-geo-block a helper method blocking content from rendering that is being requested from a wrong geographical region learn more
One common theme in all tag helpers is that they **allow ** or **remove ** content, they have no other function. You can navigate to the online documentation for the tag helpers by visiting the online documentation as well as study the sample applications
FireWall Tag Helpers