01.01.2013 Views

Web Gateway 7.1.5 Product Guide - McAfee

Web Gateway 7.1.5 Product Guide - McAfee

Web Gateway 7.1.5 Product Guide - McAfee

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Create a rule for setting text as the value of a user-defined property<br />

Monitoring<br />

Logging 8<br />

A rule can convert text that is the body of a web object to a list of strings and set this list as the value<br />

of a used-defined property.<br />

To configure this rule:<br />

1 Go to Policy | Rule Sets.<br />

2 From the rule sets tree, select the rule set you have created for the rule, for example, Block Unwanted<br />

Text.<br />

3 On the settings pane, click Add Rule. The Add Rule Window opens with the Name step selected.<br />

4 In the Name field, type the rule name, for example, Set User-Defined.listOfWords.<br />

5 Select Rule Criteria and under Apply this rule, select Always.<br />

6 Select Action and from the Action list, select Continue.<br />

7 Select Events, click Add, and select Set Property Value. The Add Set Property window opens.<br />

8 From the list under Set this property, select the user-defined property you created, for example,<br />

User-Defined.listOfWords.<br />

9 Under To this value, select Property and from the list of properties, select String.ToStringList.<br />

10 Click Parameters. The Property Parameters window opens.<br />

11 Configure the three parameters of the String.ToStringList property as follows:<br />

a Parameter 1: Select Property and from the list of properties, select Body.Text.<br />

b Parameter 2: Make sure Value is selected, and in the List Delimiter field, type the character to<br />

use as a delimiter.<br />

c Parameter 3: Make sure Value is selected, and in the Trim Characters field, type the characters<br />

you do not want to appear at the beginning and end of words in the string list that is the result of<br />

the conversion.<br />

12 Click OK to close the Property Parameters window and then again for the Add Set Property window.<br />

13 Click Finish. The Add Rule window closes and the new rule appears on the settings pane.<br />

After using this rule to set a particular text as the value of the User-Defined.listOfWords property, you<br />

can use another rule to compare this text to a list of key words and eventually execute a blocking<br />

action.<br />

For more information about this rule, see Create a rule for blocking text with bad key words.<br />

For more information about delimiters and trim characters and how to specify them as parameters, see<br />

the description of the String.ToStringList property in the List of properties.<br />

Add action settings for a key word blocking rule<br />

When a rule blocks text containing key words, the settings of the blocking action can specify a message<br />

to the user who requested access to this text.<br />

To add these settings to the preconfigured settings for blocking actions:<br />

1 Go to Policy | Settings.<br />

2 On the Actions branch of the settings tree, select Block.<br />

3 Click Add. The Add Settings window opens.<br />

4 Configure the following general parameters:<br />

• Name — For example: Bad Words Found<br />

• Comment — [Optional] Plain-text comment on the settings<br />

<strong>McAfee</strong> <strong>Web</strong> <strong>Gateway</strong> <strong>7.1.5</strong> <strong>Product</strong> <strong>Guide</strong> 287

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!