- Open the Privacy filter through TMS.
- In the Privacy Editor, you must create the action. In the Actions section, click Add Action.
- Provide a name for the action, such as
TextEncryptTags
. - From the Action drop-down, select
Encrypt
. Additional options may appear. - For the Key value, paste in the value that you created for the privacy key above.
- In the Group textbox, enter the name of the group that can see the data.
- From the Section drop-down, select
response
. - The Start Pattern and End Pattern values should match the HTML tags below.
- Set the Start Pattern:
<!--TLTENB-->
. - Set the End Pattern:
<!--TLTENE-->
.
- Set the Start Pattern:
- If there is whitespace between the tags that must be factored, you must 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 textbox and :
<!--[ \t\r\n]*TLTENB[ \t\r\n]*-->
- Enter the following expression in the End Pattern textbox and select Regular Expression:
<!--[ \t\r\n]*TLTENE[ \t\r\n]*-->
- Enter the following expression in the Start Pattern textbox and :
- By default, the replacement character for each character between the tags is
X
. Typically, this character is reserved for blocking actions. Set this value to@
in the Strike Character textbox. - Review the other listed values.
- Click OK.
- Provide a name for the action, such as
- 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
TextEncryptTags
. Then, click Add.The TextEncryptTags action has been added to the rule. - Review the other listed values.
- Click OK.
- For this filter, there are no Tests to configure.
- Click Save. The
TextEncryptTags
action has been enabled for Rule 1. - Create a TMS task to assign this configuration to all servers immediately.