Skip to content

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.

firewall tag helpers FireWall Tag Helpers

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

After 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

The FireWall is made to block or redirect not to generate content

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

Clone this wiki locally