You can use only the whitelist function to filter URLs to simplify configurations.
This function is disabled by default.
The configuration does not take effect immediately after you create or modify the profile. You must click Commit on the upper right of the interface to apply the configuration. To save time, you can commit the configuration after all operations on the profile are complete.
profile type url-filter name name
add { blacklist | whitelist } { url url-text | host host-text }
The new or modified security profile does not take effect until you run the engine configuration commit command to commit the configuration. To save time, you can submit the configuration after all operations on the profile are complete.
Add www.example.com to the whitelist and enable the function that supports only the whitelist mode to permit the URL requests matching www.example.com and block all URLs that do not match www.example.com.
<sysname> system-view [sysname] profile type url-filter name url_profile_01 [sysname-profile-url-filter-url_profile_01] add whitelist url www.example.com [sysname-profile-url-filter-url_profile_01] whitelist-only enable