By default, Tealeaf includes rules and actions to recognize specific HTML comments in the response data and to block the data between them.
Data can be bracketed by the web application in the following manner:
Your Social Security No. is <!--TLTIHB-->123-12-1234<!--TLTIHE-->
When this data filter is enabled, the data is rendered in Tealeaf as the following:
Your Social Security No. is <!--TLTIHB-->XXXXXXXXXXX<!--TLTIHE-->
Note: Tealeaf provides a utility for testing privacy filters. You might wish to use this utility for developing and testing this filter prior to deploying it through TMS.
- Open the Privacy filter through TMS.
- In the Privacy Editor, enable the action
TextBlockTags
. Find the entry and click Edit.- In the Action section, the Start Pattern and End Pattern values should match the HTML tags above.
- If there is whitespace between the tags that must be factored, apply a regular expression:
Note: Use of a regular expression in a privacy rule is an expensive operation. They should be avoided wherever possible. Instead, try to remove the whitespace between the tags.
- Enter the following expression in the Start Pattern text-box and :
<!--[ \t\r\n]*TLTIHB[ \t\r\n]*-->
- Enter the following expression in the End Pattern text-box and select Regular Expression:
<!--[ \t\r\n]*TLTIHE[ \t\r\n]*-->
- Enter the following expression in the Start Pattern text-box and :
- By default, the replacement character for each character between the tags is
X
. To use a different character, enter a value in the Strike Character textbox. - Review the other listed values.
- Click OK.
- Configure Rule 1 to execute this action.
- Under the Rules section, find Rule 1. Click Edit.
- Verify that the Enabled checkbox is selected.
- From the Actions drop-down, select
TextBlockTags
. Then, click Add.The TextBlockTags action was added to the rule. - Review the other listed values.
- Click OK.
- For this filter, there are no Tests to configure.
- Click Save.
The
TextBlockTags
action was enabled for Rule 1. - Create a TMS task to assign this configuration to all servers immediately.