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.
Parents
  • 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"...

    ----------
    Sophos user, admin and reseller.
    Private Setup:

    • XG: HPE DL20 Gen9 (Core i3-7300, 8GB RAM, 120GB SSD) | XG 18.0 (Home License) with: Web Protection, Site-to-Site-VPN (IPSec, RED-Tunnel), Remote Access (SSL, HTML5)
    • UTM: 2 vCPUs, 2GB RAM, 50GB vHDD, 2 vNICs on vServer (KVM) | UTM 9.7 (Home License) with: Email Protection, Webserver Protection, RED-Tunnel (server)
Reply
  • 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"...

    ----------
    Sophos user, admin and reseller.
    Private Setup:

    • XG: HPE DL20 Gen9 (Core i3-7300, 8GB RAM, 120GB SSD) | XG 18.0 (Home License) with: Web Protection, Site-to-Site-VPN (IPSec, RED-Tunnel), Remote Access (SSL, HTML5)
    • UTM: 2 vCPUs, 2GB RAM, 50GB vHDD, 2 vNICs on vServer (KVM) | UTM 9.7 (Home License) with: Email Protection, Webserver Protection, RED-Tunnel (server)
Children
No Data