CATEGORY::matchtype

Description

This iRules command is intended to be used with the CATEGORY_MATCHED event and will store the match result in the specified variable. It will return one of “custom”, “request_default”, or “request_default_and_custom”. This tells the admin what kind of match was made when the CATEGORY_MATCHED event was raised – custom category match, match from the Websense categorization engine, or both.
Note: This command requires the SWG license.

Syntax

CATEGORY::matchtype <variable>

Examples

when CATEGORY_MATCHED {
    CATEGORY::matchtype type_var
    if { $type_var eq “custom” } {
         log local0. “Custom category match was found.”
    }
}