# 注册限制来自IP地址

**URL:** https://meta.discourse.org/t/registration-limit-from-ip-address/33969
**Category:** Support
**Created:** [2015年九月30日 19:56 UTC](https://meta.discourse.org/t/registration-limit-from-ip-address/33969 "2015-09-30T19:56:01Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![pnewelljr](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@pnewelljr](https://meta.discourse.org/u/pnewelljr)
#### Post date: [2015年九月30日 19:56 UTC](https://meta.discourse.org/t/registration-limit-from-ip-address/33969/1 "2015-09-30T19:56:01Z")

</div>

My users are getting the following when they try to signup:

“New registrations are not allowed from your IP address (maximum limit reached). Contact a staff member.”

I didn’t set a limit that I know of, so not sure why this is happening. We are all at the same three IP address because the forum is for a company intranet.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2015年九月30日 19:59 UTC](https://meta.discourse.org/t/registration-limit-from-ip-address/33969/2 "2015-09-30T19:59:04Z")

</div>

Either relax the limit in site settings or make sure there is at least one staff member from each IP.

---

<div class="post-metadata">

### Author: ![pnewelljr](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@pnewelljr](https://meta.discourse.org/u/pnewelljr)
#### Post date: [2015年九月30日 20:04 UTC](https://meta.discourse.org/t/registration-limit-from-ip-address/33969/3 "2015-09-30T20:04:25Z")

</div>

What is that setting called though? I can’t find it.

---

<div class="post-metadata">

### Author: ![lisajill](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lisajill/32/32289_2.png) [@lisajill](https://meta.discourse.org/u/lisajill)
#### Post date: [2015年九月30日 20:06 UTC](https://meta.discourse.org/t/registration-limit-from-ip-address/33969/7 "2015-09-30T20:06:56Z")

</div>

Go to Settings and search for ‘registration’ - have a look for “max new accounts per registration ip”

It’s in the ‘spam’ menu item in Admin \> Settings.

---

<div class="post-metadata">

### Author: ![pnewelljr](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@pnewelljr](https://meta.discourse.org/u/pnewelljr)
#### Post date: [2015年九月30日 20:06 UTC](https://meta.discourse.org/t/registration-limit-from-ip-address/33969/8 "2015-09-30T20:06:57Z")

</div>

If I make it 0 will it be unlimited?

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [2015年九月30日 20:25 UTC](https://meta.discourse.org/t/registration-limit-from-ip-address/33969/9 "2015-09-30T20:25:48Z")

</div>

Not sure - make it six nines to be safe (don’t go too high or it might overflow)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2015年九月30日 22:20 UTC](https://meta.discourse.org/t/registration-limit-from-ip-address/33969/10 "2015-09-30T22:20:46Z")

</div>

We protect against overflows in settings because this has happened many times before.

---

<div class="post-metadata">

### Author: ![Martin\_Delille](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin_delille/32/122252_2.png) [@Martin\_Delille](https://meta.discourse.org/u/Martin_Delille)
#### Post date: [2019年一月12日 16:10 UTC](https://meta.discourse.org/t/registration-limit-from-ip-address/33969/13 "2019-01-12T16:10:19Z")

</div>

I changed the option to 100 and I still have the issue. Does it take some time to be taken into account?

---

<div class="post-metadata">

### Author: ![Martin\_Delille](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin_delille/32/122252_2.png) [@Martin\_Delille](https://meta.discourse.org/u/Martin_Delille)
#### Post date: [2019年一月13日 15:48 UTC](https://meta.discourse.org/t/registration-limit-from-ip-address/33969/14 "2019-01-13T15:48:11Z")

</div>

Ok sorry my IP was blocked. I authorized it and it’s now working.

---

<div class="post-metadata">

### Author: ![neerajsingh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neerajsingh/32/165330_2.png) [@neerajsingh](https://meta.discourse.org/u/neerajsingh)
#### Post date: [2020年三月26日 05:21 UTC](https://meta.discourse.org/t/registration-limit-from-ip-address/33969/15 "2020-03-26T05:21:48Z")

</div>

> [@lisajill](#):
>
> 每次注册最多可创建的新账户数

谢谢，这个回复对我很有帮助 😀

---

<div class="post-metadata">

### Author: ![evankoh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/evankoh/32/111223_2.png) [@evankoh](https://meta.discourse.org/u/evankoh)
#### Post date: [2020年七月18日 23:35 UTC](https://meta.discourse.org/t/registration-limit-from-ip-address/33969/16 "2020-07-18T23:35:44Z")

</div>

你好，Jeff，

我放宽了设置并重启了实例，但仍然遇到这个错误：

> “errors”:{“ip\_address”:[“不允许从您的 IP 地址进行新注册。”]}

还有其他可以尝试的方法吗？或者有什么更好的调试方式？

谢谢，  
Evan

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2020年七月20日 01:17 UTC](https://meta.discourse.org/t/registration-limit-from-ip-address/33969/17 "2020-07-20T01:17:22Z")

</div>

您是否在服务器上使用了反向代理，或者使用了 Cloudflare？

---

<div class="post-metadata">

### Author: ![absi](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@absi](https://meta.discourse.org/u/absi)
#### Post date: [2020年八月18日 21:35 UTC](https://meta.discourse.org/t/registration-limit-from-ip-address/33969/18 "2020-08-18T21:35:12Z")

</div>

我使用了 Cloudflare，遇到了这个问题。

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2020年八月18日 21:35 UTC](https://meta.discourse.org/t/registration-limit-from-ip-address/33969/19 "2020-08-18T21:35:57Z")

</div>

将 Cloudflare 模板添加到您的 app.yml 文件中并重新构建。

---

<div class="post-metadata">

### Author: ![absi](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@absi](https://meta.discourse.org/u/absi)
#### Post date: [2020年八月18日 21:49 UTC](https://meta.discourse.org/t/registration-limit-from-ip-address/33969/20 "2020-08-18T21:49:09Z")

</div>

> [@Stephen](#):
>
> Cloudflare 模板

抱歉，Cloudflare 模板是什么？

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2020年八月18日 21:50 UTC](https://meta.discourse.org/t/registration-limit-from-ip-address/33969/21 "2020-08-18T21:50:58Z")

</div>

通过 SSH 登录到您的服务器，编辑 app.yml 文件，在 templates 块中添加以下内容：

```
- "templates/cloudflare.template.yml"

```

请确保其与该块中的其他模板对齐。YML 文件对缩进错误非常敏感。`-` 前面需要有两个空格。

然后保存并重新构建。

---

<div class="post-metadata">

### Author: ![a\_lee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/a_lee/32/134326_2.png) [@a\_lee](https://meta.discourse.org/u/a_lee)
#### Post date: [2022年一月5日 20:01 UTC](https://meta.discourse.org/t/registration-limit-from-ip-address/33969/22 "2022-01-05T20:01:31Z")

</div>

谢谢！我们的网站由 Cloudflare 提供支持——我尝试将 `templates/cloudflare.template.yml` 添加到我们的 app.yml 中，但仍然遇到相同的错误消息。`cloudflare` 模板是否与 `web.ratelimited` 模板互斥？

---

<div class="post-metadata">

### Author: ![Farhan](https://avatars.discourse-cdn.com/v4/letter/f/b2d939/32.png) [@Farhan](https://meta.discourse.org/u/Farhan)
#### Post date: [2023年八月24日 11:07 UTC](https://meta.discourse.org/t/registration-limit-from-ip-address/33969/23 "2023-08-24T11:07:35Z")

</div>

它仍然发生。我正在使用 discourse API。

 ![MicrosoftTeams-image](https://global.discourse-cdn.com/meta/original/4X/6/b/3/6b3366d9d6033743d04098a6eabc5c02f747f160.png)

---

<div class="post-metadata">

### Author: ![Jolithune](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jolithune/32/322368_2.png) [@Jolithune](https://meta.discourse.org/u/Jolithune)
#### Post date: [2023年八月24日 11:14 UTC](https://meta.discourse.org/t/registration-limit-from-ip-address/33969/24 "2023-08-24T11:14:36Z")

</div>

> [@pnewelljr](#):
>
> “您的IP地址不允许新注册（已达到最大限制）。请联系工作人员。”

现在修复了吗？

---

<div class="post-metadata">

### Author: ![Farhan](https://avatars.discourse-cdn.com/v4/letter/f/b2d939/32.png) [@Farhan](https://meta.discourse.org/u/Farhan)
#### Post date: [2023年八月24日 11:32 UTC](https://meta.discourse.org/t/registration-limit-from-ip-address/33969/25 "2023-08-24T11:32:58Z")

</div>

不跟我一起

[下一頁](https://meta.discourse.org/t/registration-limit-from-ip-address/33969.md?page=2)
