This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Black list import??

Hi
I was giving a list of about 1000 URLs that I need to block. 
Is there an easy way to import these or must they all be done one by one?


This thread was automatically locked due to age.
  • 9.113 (perhaps earlier) appears to have an import/export function.

    Or were you looking for something from the command line?
  • How did I not see that, thank you now just have to test it tomorrow. [:)]
  • Mind your backups and warranty/support, testing outside of production is prudent.

    9.113

    Add entry to an existing to an existing blocklist (regular expression object) from the command line:  

    Find correct object reference:
    cc get_objects_filtered '$_->{type} eq "domain_regex"'


    Check object contents:
    cc get_object REF_HttDomWhatever


    Add domain to list:
    cc change_object REF_HttDomWhatever domain blocked.example.com



    Can a single domain be removed from the list via the command line or must the entire list be redefined sans deleted member(s)?  Example?
  • teched, you're a Wildman! [;)]

    NewImage.  Rather than import such an unwieldy list that's a hangover from an ancient approach, get categorization on them from TrustedSource.  You can get a free account and then do 100 at a time.  This is the approach I take when installing Web Filtering.  Every once in a while, if I'm in a client's box on a project, I'll check any URLs they've blacklisted manually, categorize them and adjust their URL Filtering settings.  When I'm done, they usually have nothing in a blacklist.

    Cheers - Bob
  • Certainly getting sites properly categorized is valuable.

    However, some environments may have "local" categorizations which conflict with or otherwise differ from TrustedSource's designations (I understand 9.2 offers categorization overrides - no mention of a version in this thread and I like general purpose solutions).  Also third party lists may be desired (Zeus Tracker, etc).

    Redefine the domain list for REF_HttDomWhatever as blocked1.example.com and blocked2.example.com:

     echo -e RAW\n"change_object('REF_HttDomWhatever','domain',['blocked1.example.com','blocked2.example.com'])" | cc --batch