Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Boxtrapper: blacklisting .co domains?

Discussion in 'E-mail Discussion' started by Teresa Green, Oct 10, 2014.

  1. Teresa Green

    Teresa Green Registered

    Joined:
    Oct 10, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Whilst I successfully block other TLDs by using (for example) "from .+\.eu" (sans quotes), when I try to block all mail from the .co TLD ("from .+\.co"), it also blocks all TLDs from .co.uk, .com etc.

    Anyone enlighten me as to how I can specify a literal (*.co) string rather than a contained-in string which is obviously how Boxtrapper reads it (*.co*)? I'm stumped.

    Thanks.
     
  2. jxmot

    jxmot Member

    Joined:
    Sep 24, 2014
    Messages:
    7
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    Try this -

    from .+\@\.co$

    Or this -

    from .+\@.+\...$

    The '$' indicates (in regex) that the matching string must end with a match of the regex pattern. The first example will match "*@*.co" and the second one will match all TLDs with 2 characters like "*@*.eu", "*@*.pl", etc. But "*@*.com" will not match.

    The other problem with boxtrapper is the order in which the lists are checked. It checks the ignore list first, then white, then black. It should really be checking the white list first.

    Regards,
    j
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,384
    Likes Received:
    1,951
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Feel free to report back and let us know if the suggested entry in the previous post works as it's intended.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice