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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6<br />

<strong>Web</strong> filtering<br />

HTML filtering<br />

Handle blocklisted media types<br />

HTMLElement.Attribute (“type”) is in list Mediatype blocklist –> Remove<br />

The rule uses the HTMLElement.Attribute property to check whether the type of an element is on a<br />

media type blocklist. If it is, the rule applies and the media type in question is removed from the<br />

HTML page.<br />

Processing of the embedded object cycle stops then and the HTML page is forwarded without the<br />

removed element to the user who requested it or to the web if a user attempted to upload it.<br />

Embedded Scripts<br />

This nested rule set removes script code embedded in HTML pages, providing options for keeping some<br />

code types.<br />

It is processed in the embedded object cycle when this code is sent with requests or responses.<br />

Nested library rule set — Embedded Scripts<br />

Criteria — HTMLElement.Name equals “SCRIPT”<br />

Cycle — Embedded objects<br />

The rule criteria specifies that the rule set applies when an element of the script type is embedded in<br />

an HTML page.<br />

The rule set contains the following rules:<br />

Variable resetter<br />

Always –> Continue – Set User-Defined.removeOneScript = false<br />

The rule sets the User-Defined.removeOneScript property to false, so the break rules that follow<br />

this rule later in the rule set do not apply. Processing continues with the next rule.<br />

Note: This rule is not enabled by default.<br />

JavaScript<br />

HTMLElement.Script.Type (“type”) equals “text/javascript” –> Stop Rule Set<br />

– Set User-Defined.removeOneScript = true<br />

The rule uses the HTMLElement.Script.Type property to check whether an element is of the<br />

JavaScript type. If it does, the rule applies.<br />

Processing of the rule set stops then, so the rule that removes script code at the end of the rule set<br />

is not processed. This way, the embedded script code is kept in the HTLM page. Processing<br />

continues with the next rule set.<br />

If you want to remove JavaScript code, replace the Stop Rule Set by the Remove action.<br />

The rule also sets the User-Defined.removeOneScript property to true. This property is evaluated<br />

by the break rule that follows this JavaScript rule.<br />

When this rule applies with Stop Rule Set or Remove as its action, processing of the rule set is<br />

stopped. If you let the rule use an action that does not stop the rule set, you can enable the break<br />

rule. It will find that the value for the User-Defined.removeOneScript property is true and stop<br />

processing of the rule set accordingly.<br />

To reset the value of the User-Defined.removeOneScript property to false, you need to enable the<br />

reset rule at the beginning of the rule set. With this value for the property, the break rules of the<br />

rule set will not apply.<br />

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

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

Saved successfully!

Ooh no, something went wrong!