# Email domain blacklist with wildcards (revisited)

**URL:** <https://meta.discourse.org/t/email-domain-blacklist-with-wildcards-revisited/70088>\
**Category:** Feature\
**Created:** [September 15, 2017, 2:37am UTC](https://meta.discourse.org/t/email-domain-blacklist-with-wildcards-revisited/70088 "2017-09-15T02:37:40Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)\
**Post date:** [September 15, 2017, 2:37am UTC](https://meta.discourse.org/t/email-domain-blacklist-with-wildcards-revisited/70088/1 "2017-09-15T02:37:40Z")

</div>

> [@Email domain blacklist with wildcards](https://meta.discourse.org/t/email-domain-blacklist-with-wildcards/28627):
>
> Hi I’m trying to block email addresses from a particular domain - from which we seem to receive multiple spam user accounts per hour sigining up. They come from .jil.kr where can be one of some 20 or so names I’ve seen so far. I tried adding jil.kr but that doesn’t match, so then tried \*.jil.kr instead but that gives an error in the log that the regex is invalid as there’s no subject for the \* character, so I then tried (.\*).jil.kr and that doesn’t match either - I think because the . charac…

The current implementation already matches black-listed domains with `EndsWith` type string matching.

I would like to propose adding `regex` type matching as well.

Reason: Recently a lot of spammers come from email addresses with a long string of numbers, for example `76987.com`, `245934.net` etc.

I would like to be able to filter them out, but with the standard `EndsWith` matching, it is impossible.

---

_[View the full topic](https://meta.discourse.org/t/email-domain-blacklist-with-wildcards-revisited/70088)._
