# Add wildcard top and/or second level domains to whitelist for inclusion

**URL:** https://meta.discourse.org/t/add-wildcard-top-and-or-second-level-domains-to-whitelist-for-inclusion/28791
**Category:** Feature
**Created:** [5월 13, 2015, 10:44오후 UTC](https://meta.discourse.org/t/add-wildcard-top-and-or-second-level-domains-to-whitelist-for-inclusion/28791 "2015-05-13T22:44:53Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![stroupaloop](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stroupaloop/32/43099_2.png) [@stroupaloop](https://meta.discourse.org/u/stroupaloop)
#### Post date: [5월 13, 2015, 10:44오후 UTC](https://meta.discourse.org/t/add-wildcard-top-and-or-second-level-domains-to-whitelist-for-inclusion/28791/1 "2015-05-13T22:44:53Z")

</div>

I did some testing and don’t think this works, but would it be possible to add wildcard top and/or second level domains capability to the whitelist for acceptable registered user emails?

For example:

\*.gov  
\*.custom.gov  
\*.mil  
\*.custom.mil

or some variation of this? Thanks!

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [5월 13, 2015, 11:33오후 UTC](https://meta.discourse.org/t/add-wildcard-top-and-or-second-level-domains-to-whitelist-for-inclusion/28791/2 "2015-05-13T23:33:51Z")

</div>

Wildcard support was added to **blacklist** 11 hours ago by @techAPJ :  
[https://github.com/discourse/discourse/commit/220b9c5abe561a8bed3192b54472f7c347bdda55](https://github.com/discourse/discourse/commit/220b9c5abe561a8bed3192b54472f7c347bdda55)

There was no mention of whitelist in the discussion or commit.

---

<div class="post-metadata">

### Author: ![kensims](https://avatars.discourse-cdn.com/v4/letter/k/97f17d/32.png) [@kensims](https://meta.discourse.org/u/kensims)
#### Post date: [5월 14, 2015, 4:28오전 UTC](https://meta.discourse.org/t/add-wildcard-top-and-or-second-level-domains-to-whitelist-for-inclusion/28791/3 "2015-05-14T04:28:32Z")

</div>

Speaking as someone who doesn’t use the whitelist … if I did, I don’t think that I would want it to automatically allow all subdomains in the same way that the blacklist now automatically blocks all subdomains.

I don’t think that full regex is needed, just a simple marker.

If I were programming it (and I am a programmer, just not in any language used by Discourse), I would probably make it so that **[example.com](http://example.com)** is an exact match, and **.example.com** matches [example.com](http://example.com) plus subdomains.

---

<div class="post-metadata">

### Author: ![stroupaloop](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stroupaloop/32/43099_2.png) [@stroupaloop](https://meta.discourse.org/u/stroupaloop)
#### Post date: [5월 14, 2015, 3:46오후 UTC](https://meta.discourse.org/t/add-wildcard-top-and-or-second-level-domains-to-whitelist-for-inclusion/28791/4 "2015-05-14T15:46:53Z")

</div>

Hey @kensims, not looking for it to do it automatically, but by using some differentiating annotation (like your example below), it should be a capability, not a default. Thanks!

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [12월 4, 2025, 11:35오전 UTC](https://meta.discourse.org/t/add-wildcard-top-and-or-second-level-domains-to-whitelist-for-inclusion/28791/5 "2025-12-04T11:35:55Z")

</div>


