# For CloudFlare users: how to use CF-\* fields from HTTP header instead of normal IP?

**URL:** <https://meta.discourse.org/t/for-cloudflare-users-how-to-use-cf-fields-from-http-header-instead-of-normal-ip/131979>\
**Category:** Product Support\
**Created:** [27 oktober 2019 om 05:05 UTC](https://meta.discourse.org/t/for-cloudflare-users-how-to-use-cf-fields-from-http-header-instead-of-normal-ip/131979 "2019-10-27T05:05:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [27 oktober 2019 om 06:45 UTC](https://meta.discourse.org/t/for-cloudflare-users-how-to-use-cf-fields-from-http-header-instead-of-normal-ip/131979/2 "2019-10-27T06:45:30Z")

</div>

If you use the provided Cloudflare template this is all handled automatically. This has actually been available within Discourse for four or five years.

Assuming you followed the [standard install](https://meta.discourse.org/t/142537?silent=true):

```
cd /var/discourse
nano containers/app.yml

```

then add this line under templates:

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

Then just rebuild:

`./launcher rebuild app`

At which point your install will show true user addresses.

---

_[View the full topic](https://meta.discourse.org/t/for-cloudflare-users-how-to-use-cf-fields-from-http-header-instead-of-normal-ip/131979)._
