# 真实用户因IP封禁无法注册

**URL:** https://meta.discourse.org/t/genuine-user-cannot-register-because-of-ip-block/110434
**Category:** Support
**Created:** [2019年三月1日 11:51 UTC](https://meta.discourse.org/t/genuine-user-cannot-register-because-of-ip-block/110434 "2019-03-01T11:51:40Z")
**Posts on this page:** 1
**Showing post:** 9

<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: [2019年三月2日 00:48 UTC](https://meta.discourse.org/t/genuine-user-cannot-register-because-of-ip-block/110434/9 "2019-03-02T00:48:08Z")

</div>

Ok so your server isn’t getting the client IPs at all. It thinks all of your visitors are coming from the cloudflare network. You’re missing the `cloudflare.template.yml` in your `app.yml`

Turn the orange cloud off - do registrations work then?

Assuming you’re using [the standard install](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md) add this to the `templates:` section of your app.yml:

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

And rebuild:

`./launcher rebuild app`

To avoid any future pain, make sure you add the following rule to CloudFlare for your Discourse install:

 ![](https://global.discourse-cdn.com/meta/original/3X/1/3/13bc9663ffd3e069a6b6fb91a888ecc72a9b932b.png)

Those features at best can undo some of the optimisations on your site and at worst cause a raft of issue with Discourse. Also be sure to disable Brotli under the ‘Speed’ settings for your domain:

 ![04%20PM](https://global.discourse-cdn.com/meta/original/3X/5/e/5e98c31b890a862198caaa79aef34c1c406e8d30.png)

---

_[View the full topic](https://meta.discourse.org/t/genuine-user-cannot-register-because-of-ip-block/110434)._
