ProxySG Content Policy Language Guide
300
Filter-Part Components
The filter part of a filter file can contain the following:
Filters that are not part of a section
•Sections
ALL statements
default_filter_properties statements
Access-control list (ACL) definitions
Filters that are not part of a section must occur before the first section. The
default_filter_properties statements must be written after the last filter or section. The ALL
statements and ACL definitions can be written anywhere before the define_actions line. All of these
components are optional.

Filters

In CPL, the concept of a filter has been replaced by the concept of a rule.
A filter is a line that includes, at a minimum, a URL pattern. The filter is considered to be a match if
the requested URL matches the URL pattern. It can also include a tag specifying whether the match
will be case-sensitive, an acl condition expression for specifying a defined access-control list, and a
property setting. Multiple acl conditions and property settings can be listed. A filter line has the
following general syntax:
url_pattern [case_insensitive = { yes | no }] [acl=expression] [property=value]
...
url_pattern
where url_pattern is either a prefix-style pattern (like the prefix_pattern used in the url=
condition) or a regular-expression pattern (as is used in the url_regex= condition, see
"Sections" on page303). For more information on URLs, see "url=" on page 137.
case_insensitive= {yes|no}
where case_insensitive is an optional property that can specify whether URLs matches are
case-sensitive. By default, matching is case-sensitive. For more information, see "Properties"
on page3 01.
acl=expression
where acl= can include an IP address or subnet, or the label of a define acl definition
block. For more information, see "Conditions" on page301.
property=value
where property= is an optional property setting. For a list of properties available in filter
files, see "Properties" on page 301.
The following are differences with CPL:
Property settings have the form property=value in filter files, instead of the CPL form
property(value).