ProxySG Content Policy Language Guide
define category
Category definitions are used to extend vendor content categories or to create your own. The category_name definition can be used anywhere a content filter category name would normally be used, including in category= tests.
Definitions can include other definitions to create a hierarchy. For example, sports could include football by including category=football in the definition for sports. A defined category can have at most one parent category (multiple inheritance is not allowed).
Multiple definitions using the same category_name are coalesced together.
When policy tests a request URL to determine if it is in one of the categories specified by a trigger, all
Syntax
define category category_name urlpaths
end [category_name]
where:
•
•
❐Hosts and subdomains within the domain you specify are automatically included.
❐If you specify a path, all paths with that prefix will be included (if you specify no path, the entire site is included).
Layer and Transaction Notes
•Use in <Proxy> and <Cache> Layers.
•Applies to all transactions.
Examples
The following example illustrates some of the variations allowed in a category definition:
define category Grand_Canyon kaibab.org www2.nature.nps.gov/ard/parks/grca/ nps.gov/grca/
grandcanyon.org
end
The following definitions define the categories sports and football, and make football a
define category sports sports.com
250