CLASSIFY::urlcat¶
Description¶
This command allows you to set or add an url category to the
classification.
Note: the Policy Enforcement Manager license is required for
functionality to work.
Syntax¶
CLASSIFY::urlcat set <URL_Category>
CLASSIFY::urlcat add <URL_Category>
CLASSIFY::application add <app_name>¶
- adds an URL Category to the URL classification token to the final classification result issued by the classification engine. This can be
issued multiple times in order to add multiple tokens to the
classification result.
Note: set/add commands will have no effect if fired after the flow
has been classified.
Examples¶
root@(vbigip01)(cfg-sync Standalone)(Active)(/Common)(tmos)# create ltm classification url-category customCategory { urlcat-id 28673 }
root@(vbigip01)(cfg-sync Standalone)(Active)(/Common)(tmos)# list ltm classification url-category customCategory
ltm classification url-category customCategory {
urlcat-id 28673
}
root@(vbigip01)(cfg-sync Standalone)(Active)(/Common)(tmos)# quit
iRULE for set:
--------------
when HTTP_REQUEST
{
if { [HTTP::host] contains "google"} {
CLASSIFY::urlcat set customCategory
}
}
iRule for add:
-------------
when HTTP_REQUEST
{
if { [HTTP::host] contains "google"} {
CLASSIFY::urlcat add customCategory
}
}