Boxtrapper: blacklisting .co domains?

Teresa Green

Registered
Oct 10, 2014
1
0
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.
 

jxmot

Member
Sep 24, 2014
22
1
53
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,903
2,237
463
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.