The add { url | host } command adds a URL or domain name rule to a user-defined category.
The undo add { url | host } command removes a URL or domain name rule from a user-defined 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 } }
# Add a URL rule www.example.com in the view of user-defined URL category abc and set the matching mode to Exact.
<sysname> system-view [sysname] url-filter category user-defined name abc [sysname-cate-user-defined-abc] add url www.example.com
# Add a URL rule bbs in the view of user-defined abc and set the matching mode to Keyword.
<sysname> system-view [sysname] url-filter category user-defined name abc [sysname-cate-user-defined-abc] add url *bbs*
# Add domain name rule www.example.com in the view of user-defined category abc and set the matching mode to Exact.
<sysname> system-view [sysname] url-filter category user-defined name abc [sysname-cate-user-defined-abc] add host www.example.com