CATEGORY::analytics¶
Description¶
This iRules command enables or disables the analytics server on a per
request basis.
Note: This command requires the SWG license.
Examples¶
when HTTP_REQUEST {
set this_uri http://[HTTP::host][HTTP::uri]
set reply [CATEGORY::lookup $this_uri]
log local0. "uri $this_uri returns category=$reply"
if { $reply equals "Adult Material" } {
CATEGORY::analytics enable
}
}