Guest User!

You are not Sophos Staff.

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

how to setup a regex rule if I want to block all websites for x?

I want to block all websites with specific before and after:
i.e.

This is the main root 
  m8.za.2mdn.net 
 the most common root of the addy.

now I want to block 
 1.m8.za.2mdn.net 


This thread was automatically locked due to age.
Parents
  • I don't think that what you are trying to achieve can be reasonably done using regular expressions. If you say they pro/retroactively make up new domains to prevent you from blocking their sites, you'd end up permanently changing and testing your RegExps. Domains are cheap, if I was the NSAADS guy i'd simply buy NSSAADS and NSADS and whatever comes to my mind as well.

    Anyways, for your example try:

    https://www.regex101.com/r/lL6jT1/1
Reply
  • I don't think that what you are trying to achieve can be reasonably done using regular expressions. If you say they pro/retroactively make up new domains to prevent you from blocking their sites, you'd end up permanently changing and testing your RegExps. Domains are cheap, if I was the NSAADS guy i'd simply buy NSSAADS and NSADS and whatever comes to my mind as well.

    Anyways, for your example try:

    https://www.regex101.com/r/lL6jT1/1
Children
No Data