# Whitelist domain to stop user being banned

**URL:** https://meta.discourse.org/t/whitelist-domain-to-stop-user-being-banned/107948
**Category:** Support
**Created:** [30 בינואר,‏ 2019,‏ 7:28pm UTC](https://meta.discourse.org/t/whitelist-domain-to-stop-user-being-banned/107948 "2019-01-30T19:28:19Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![GrahameGrieve](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/grahamegrieve/32/126982_2.png) [@GrahameGrieve](https://meta.discourse.org/u/GrahameGrieve)
#### Post date: [30 בינואר,‏ 2019,‏ 7:28pm UTC](https://meta.discourse.org/t/whitelist-domain-to-stop-user-being-banned/107948/1 "2019-01-30T19:28:19Z")

</div>

[community.fhir.org](http://community.fhir.org) is a discourse site for asking questions about [Index - FHIR v5.0.0](http://hl7.org/fhir). As such, most questions refer directly to the site. Users are often banned as spammers for excessive external links because of their links to that site, or a couple of others.

Is there a way to whitelist a domain so that users don’t get banned?

see: [My questions are being banned - #2 by lloyd - FHIR Community](http://community.fhir.org/t/my-questions-are-being-banned/1189/2)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [30 בינואר,‏ 2019,‏ 7:38pm UTC](https://meta.discourse.org/t/whitelist-domain-to-stop-user-being-banned/107948/2 "2019-01-30T19:38:40Z")

</div>

Have you tried `whitelisted link domains`: Domains that users may link to even if they don’t have the appropriate trust level to post links

---

<div class="post-metadata">

### Author: ![GrahameGrieve](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/grahamegrieve/32/126982_2.png) [@GrahameGrieve](https://meta.discourse.org/u/GrahameGrieve)
#### Post date: [30 בינואר,‏ 2019,‏ 7:54pm UTC](https://meta.discourse.org/t/whitelist-domain-to-stop-user-being-banned/107948/3 "2019-01-30T19:54:24Z")

</div>

We have now - thanks.

---

<div class="post-metadata">

### Author: ![tkearsley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tkearsley/32/155788_2.png) [@tkearsley](https://meta.discourse.org/u/tkearsley)
#### Post date: [9 בדצמבר,‏ 2020,‏ 6:04pm UTC](https://meta.discourse.org/t/whitelist-domain-to-stop-user-being-banned/107948/4 "2020-12-09T18:04:48Z")

</div>

> [@pfaffman](#):
>
> whitelisted link domains

@pfaffman,

I don’t see this option in my settings. Did something change?

---

<div class="post-metadata">

### Author: ![tkearsley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tkearsley/32/155788_2.png) [@tkearsley](https://meta.discourse.org/u/tkearsley)
#### Post date: [9 בדצמבר,‏ 2020,‏ 6:09pm UTC](https://meta.discourse.org/t/whitelist-domain-to-stop-user-being-banned/107948/5 "2020-12-09T18:09:29Z")

</div>

I found it. With the current IP limits, some of our customers will be blocked from posting. Can I use this to whitelist a domain? For example, allow anyone from @sony.com to post from the same IP.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [9 בדצמבר,‏ 2020,‏ 6:35pm UTC](https://meta.discourse.org/t/whitelist-domain-to-stop-user-being-banned/107948/6 "2020-12-09T18:35:08Z")

</div>

I don’t know of a good solution. For a client that had many of his users all attend the same conference on the same NAT network, we just upped the rate limits. I imagine if you’re clever you could modify the nginx config inside the container to exempt that IP from the rate limits.

I have no idea how to do that, just a good imagination. 😉

But. . . .here’s this in teh `discourse.conf`. I guess you’d Google Nginx and figure out how to add a line like that for the other address.

```plaintext
limit_req_zone $binary_remote_addr zone=flood:10m rate=12r/s;

```

If you do figure it out, please post. They’ll have a conference again one day.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [9 בדצמבר,‏ 2020,‏ 8:19pm UTC](https://meta.discourse.org/t/whitelist-domain-to-stop-user-being-banned/107948/7 "2020-12-09T20:19:38Z")

</div>

Oh. I’m not sure if you’re referring to limits established by Discourse or nginx. What error are they seeing?

---

<div class="post-metadata">

### Author: ![tkearsley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tkearsley/32/155788_2.png) [@tkearsley](https://meta.discourse.org/u/tkearsley)
#### Post date: [9 בדצמבר,‏ 2020,‏ 8:22pm UTC](https://meta.discourse.org/t/whitelist-domain-to-stop-user-being-banned/107948/8 "2020-12-09T20:22:45Z")

</div>

It would be the rate limit set by Discourse.

This is the message they see: _Login Error_  
_There is a problem with your account. Please contact the site’s administrator._
