ProxySG Content Policy Language Guide
242
transform
Invokes an active content or URL rewrite transformer. The invoked transformer takes effect only if the
transform action is used in a define action definition block, and that block is in turn enabled by an
action( ) property.
See chapters 11 and 13 in the Configuration and Management Guide for examples of how this action is
used with the active content and URL rewrite transformers.
Note: Any transformed content is not cached, in contrast with content that has been sent to a virus
scanning server. This means the transform action can be safely triggered based on any
condition, including client identity and time of day.
Syntax
transform transformer_id
where transformer_id is a user-defined identifier for a transformer definition block. This identifier is
not case-sensitive.
Layer and Transaction Notes
• Use in
<Proxy> or <Cache> layers.
• Do not use in
<Admin>, <Forward>, or <Exception> layers.
Example
; The transform action is part of an action block enabled by a rule.
<proxy>
url.domain=!my_site.com action.strip_active_content(yes)
; transformer definition
define active_content strip_with_indication
tag_replace applet <<EOT
<B>APPLET content has been removed</B>
EOT
tag_replace embed <<EOT
<B>APPLET content has been removed</B>
EOT
tag_replace object <<EOT
<B>OBJECT content has been removed</B>
EOT
tag_replace script <<EOT
<B>SCRIPT content has been removed</B>
EOT
end
define action strip_active_content
; the transform action invokes the transformer
transform strip_with_indication
end