# Only allow Cloudflare IPs for Discourse server

**URL:** <https://meta.discourse.org/t/only-allow-cloudflare-ips-for-discourse-server/70489>\
**Category:** Self-hosting\
**Created:** [21 سبتمبر 2017، 6:01ص UTC](https://meta.discourse.org/t/only-allow-cloudflare-ips-for-discourse-server/70489 "2017-09-21T06:01:47Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![AMSTim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amstim/32/63242_2.png) [@AMSTim](https://meta.discourse.org/u/AMSTim)\
**Post date:** [22 سبتمبر 2017، 8:33م UTC](https://meta.discourse.org/t/only-allow-cloudflare-ips-for-discourse-server/70489/16 "2017-09-22T20:33:40Z")

</div>

I don’t use AWS, but block access to our instance using firewall rules to filter out IPs, not on an approved list. Not sure what AWS offers in terms of firewall support.

I am using PFSense, and it can pull a list of IPs from a URL at an interval. I have scripts that create the approved IP list for PFsense to pull. IPs on the list make it to the forum, IPs not on the list are redirected to a page explaining the block.

I use this same technique to block access to Atlassian Confluence instance. Since it’s a firewall rule you can block any type of traffic you want, to any destination you want. Very flexible.

---

_[View the full topic](https://meta.discourse.org/t/only-allow-cloudflare-ips-for-discourse-server/70489)._
