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"...
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"...
Children
No Data