Technical Note: Retrieve/Restore a URL filter list within a GUI web filter profile
Description
Solution
In the GUI menu Security Profile > Web Filter, if one unticks 'Enable URL Filter' and performs 'Apply', then later on, it is not possible to re-select the URL filter.
This article explains the CLI command to re-install the GUI URL filter.
Example of Customized profile with URL filter

GUI after unticking 'Enable URL Filter', the filtered URLs have disappeared

This article explains the CLI command to re-install the GUI URL filter.
Example of Customized profile with URL filter

GUI after unticking 'Enable URL Filter', the filtered URLs have disappeared

Solution
Perform the following commands
config webfilter profile
edit <web filter profile> (here above "antivirus+antispam+webfilter+ips")
config web
set urlfilter-table 1 <------ this is the trick
CLI Configuration extract
config webfilter urlfilter
edit 1
set name "malware"
config entries
edit 1
set url "sinixer.com"
set type regex
set action block
next
edit 2
set url "220.241.35.236"
set type regex
set action block
next
edit 3
set url "202.4.250.100"
set type regex
set action block
config webfilter profile
edit "antivirus+antispam+webfilter+ips"
config web
set urlfilter-table 1
Verification of the restored GUI Configuration

Supplemental information when another set of filters exist.
Perform the following command list.
config webfilter urlfilter
edit 1
set name "malware-urls"
config entries
edit 1
set url "sinixer.com"
set type regex
set action block
next
edit 2
set url "220.241.35.236"
set type regex
set action block
next
edit 3
set url "202.4.250.100"
set type regex
set action block
.
.
.
edit 4
set name "antivirus+antispam+webfilter+ips"
config entries
edit 1
set url "toto.com"
next
edit 2
set url "tutu.fr"
next
end
config webfilter profile
edit "antivirus+antispam+webfilter+ips"
config web
set urlfilter-table 4 -- select the number matching the url list
One can apply another URL filter #4

config webfilter profile
edit <web filter profile> (here above "antivirus+antispam+webfilter+ips")
config web
set urlfilter-table 1 <------ this is the trick
CLI Configuration extract
config webfilter urlfilter
edit 1
set name "malware"
config entries
edit 1
set url "sinixer.com"
set type regex
set action block
next
edit 2
set url "220.241.35.236"
set type regex
set action block
next
edit 3
set url "202.4.250.100"
set type regex
set action block
config webfilter profile
edit "antivirus+antispam+webfilter+ips"
config web
set urlfilter-table 1
Verification of the restored GUI Configuration

Supplemental information when another set of filters exist.
Perform the following command list.
config webfilter urlfilter
edit 1
set name "malware-urls"
config entries
edit 1
set url "sinixer.com"
set type regex
set action block
next
edit 2
set url "220.241.35.236"
set type regex
set action block
next
edit 3
set url "202.4.250.100"
set type regex
set action block
.
.
.
edit 4
set name "antivirus+antispam+webfilter+ips"
config entries
edit 1
set url "toto.com"
next
edit 2
set url "tutu.fr"
next
end
config webfilter profile
edit "antivirus+antispam+webfilter+ips"
config web
set urlfilter-table 4 -- select the number matching the url list
One can apply another URL filter #4

