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

url blocking

in v8 i used to be able to go *.whatever.whatever to kill an entire domain.  I've been hunting down the domains that are serving these freaking video ads and i have a good idea where they are coming from but i can't get them blocked inside the web proxy.  one of hte domains i want dead is newsinc.com and all subdomains.  *.newsinc.com used to work.  nOw it doesn't.  Some pointers would be appreciated.


This thread was automatically locked due to age.
  • here's another domain to kill
    ads.auditude.com
    adobes ad platform.  

    need to get these added to the ad blocking database...
  • plus they are being miscatergorized as hardware/software and other thing..like http..[:(]
  • Use regular expressions, e.g.:
    ^https?://([A-Za-z0-9.-]\.)*newsinc\.com/


    For a recategorization request go to Reassessment Request  and choose Sophos UTM.
  • Use regular expressions, e.g.:
    ^https?://([A-Za-z0-9.-]\.)*newsinc\.com/

    For a recategorization request go to Reassessment Request  and choose Sophos UTM.


    So that means the domain blocking section isn't working correctly...I'll contact support
  • Domain blocking in 9.1 works two ways:

    You can add a domain into the domains field.  This specific domain ONLY is blocked (not any subdomains).  Wildcards are not supported.  If you enter in "*.whatever.whatever" then nothing will get blocked.  If you enter in "whatever" then nothing will get blocked.

    If you use domains blocking, I recommend that you do not also enter in a Regular Expression.  This is because the two fields are ANDed together not ORed.  Therefore something would need to match both the domain and regex before it is blocked.

    The other option is to just use regular expressions.  For this leave the Domains field blank.  Use code similar to what scorpianking posted.

    The online help contains this information as well.

    In 9.2 the functionality will be exactly the same but the UI will be clearer that you can do domain, you can do regex, or you can do regex that applies to a domain.
  • Domain blocking in 9.1 works two ways:

    You can add a domain into the domains field.  This specific domain ONLY is blocked (not any subdomains).  Wildcards are not supported.  If you enter in "*.whatever.whatever" then nothing will get blocked.  If you enter in "http://whatever" then nothing will get blocked.

    If you use domains blocking, I recommend that you do not also enter in a Regular Expression.  This is because the two fields are ANDed together not ORed.  Therefore something would need to match both the domain and regex before it is blocked.

    The other option is to just use regular expressions.  For this leave the Domains field blank.  Use code similar to what scorpianking posted.

    The online help contains this information as well.

    In 9.2 the functionality will be exactly the same but the UI will be clearer that you can do domain, you can do regex, or you can do regex that applies to a domain.


    That's unfortunate...it was so easy to nail an entire domain with *.domain.TLD....
  • But once you got the RegEx basics, it's not that difficult.
    You have much more possibilities with RegEx to restrict your rules...

    ^ = the beginning of the string to match
    \ = escape sign for special characters (like . or \)
    [A-Za-z0-9.-] = only the character sets A-Z, a-z, . and - are allowed
    ? = the previous character (or set) is optional
    * = the previous character (or set) may appear 0 or more times
    + = the previous character (or set) may appear 1 or more times

    So the pattern "^https?://([A-Za-z0-9.-]+\.)?domain\.tld/" matches the domain and all its subdomains without allowing e.g. "my.domain.tld.baddomain.tld" or "http:/.../something"...