The add { url | host } command adds a URL or domain name rule to a predefined category.
The undo add { url | host } command removes a URL or domain name rule from a predefined category.
add { url url-text &<1-2> | host host-text &<1-2> }
undo add { url { url-text &<1-2> | all } | host { host-text &<1-2> | all } }
Before you add a URL rule to a predefined URL category, run the display url-filter category pre-defined command to view the subcategory-id of the predefined URL category. Then run the url-filter category pre-defined subcategory-id subcategory-id command to access the predefined URL category view and add the desired URL rule.
Run the display url-filter category pre-defined subcategory-id subcategory-id command to view existing user-defined URL and domain name rules in the predefined URL category view.
# Add a URL rule www.example.com/news to the predefined category General Fashion, and set the matching mode to Exact.
<sysname> system-view [sysname] url-filter category pre-defined subcategory-id 200 [sysname-cate-pre-defined-200] add url www.example.com/news
# Add a domain name rule www.example.com to the predefined category General Fashion, and set the matching mode to Exact.
<sysname> system-view [sysname] url-filter category pre-defined subcategory-id 200 [sysname-cate-pre-defined-200] add host www.example.com
# Add a URL rule fashion to the predefined category General Fashion, and set the matching mode to Keyword.
<sysname> system-view [sysname] url-filter category pre-defined subcategory-id 200 [sysname-cate-pre-defined-200] add url *fashion*