- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
07-11-2011 01:41 PM
To be honest, the UI change for updating the custom-url-category in 4.03 threw us for a loop.
We generate hundreds of domain names and IP addresses to block through our malware threat analysis system. The old 3.19 interface of copy and paste the text worked fine for us.
Since there is no "clear all" options for the new interface, I did manage to figure out the CLI way of doing it:
configure
edit shared profiles custom-url-category OUR_Malware_Threat_List
delete list
What I can't find in any documentation is the path to the file and a way to automate deletion of the old list and importing the new one.
Any help would be most welcomed.
Thanks.
Mark
08-13-2012 11:25 PM
You can use config edit API request to replace the entire list of urls in a url filtering profile with a new set of urls:
http(s)://hostname/api/?type=config&action=edit&xpath=/config/devices/entry/vsys/entry[@name='vsys1']/profiles/url-filtering/entry[@name='blocked-url-profile']&element=<entry name='blocked-url-profile'><member>www.badsite.com</member><member>www.badsite2.com</member></entry>
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!