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'm not sure I understand you correctly, probably you could rephrase your question in English [;)]

    Anyways, for a Regex that probably or not matches your requirement, try:
    [A-Za-z0-9]*\.m8\.za\.2mdn\.net


    If you care for an explanation: 
    https://www.regex101.com/r/aH4dB5/1

    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 
Reply
  • I'm not sure I understand you correctly, probably you could rephrase your question in English [;)]

    Anyways, for a Regex that probably or not matches your requirement, try:
    [A-Za-z0-9]*\.m8\.za\.2mdn\.net


    If you care for an explanation: 
    https://www.regex101.com/r/aH4dB5/1

    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 
Children
  • Ok sure not a problem.

    Many tracking websites use the numbering tricks to stay in the game.  Let's assume that an ad/tracking site is "NSAADS.com"  they know that they will get black listed so they create: 1.NSAADS.com and NSAADS.1.com (yeah I know that 1.com is another site but stay with me).
    Now do you see the common theme here?  That is being NSAADS.
    So why do I want to waste the valuable lookup resources by adding all the variants if I can just define a rule that blocks everything that has NSAADS in it.  
    Sometimes I want to block *.NSAADS.com and sometimes I want to block NSAADS.*.com and sometimes *.NSAADS.*.com.