# Hoe het probleem van IP-adreslekken en DD-aanvallen op te lossen, zelfs bij gebruik van Cloudflare CDN?

**URL:** https://meta.discourse.org/t/how-to-solve-the-problem-of-source-ip-leakage-and-dd-attacks-even-when-using-cloudflare-cdn/326476
**Category:** Support
**Created:** [14 september 2024 om 06:33 UTC](https://meta.discourse.org/t/how-to-solve-the-problem-of-source-ip-leakage-and-dd-attacks-even-when-using-cloudflare-cdn/326476 "2024-09-14T06:33:38Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [14 september 2024 om 08:29 UTC](https://meta.discourse.org/t/how-to-solve-the-problem-of-source-ip-leakage-and-dd-attacks-even-when-using-cloudflare-cdn/326476/3 "2024-09-14T08:29:00Z")

</div>

You can prevent a lot of leaking by doing the following

- set up a proxy server like Tinyproxy on a different VPS
- set the environment variable `HTTPS_PROXY` and `HTTP_PROXY` so Discourse will use that (set them in the `env` section of your `app.yml`)
- set `NO_PROXY='127.0.0.1, localhost, <internal-network>'`

See also [Install discourse with internet access only via proxy](https://meta.discourse.org/t/install-discourse-with-internet-access-only-via-proxy/66396/), [Configuration outbound proxy](https://meta.discourse.org/t/configuration-outbound-proxy/65992) and [Discourse Link previews through a proxy server? - #14 by supermathie](https://meta.discourse.org/t/discourse-link-previews-through-a-proxy-server/72720/14)

Also, when you’re behind CF, you can modify the firewall on your Discourse host to only allow incoming traffic from your Cloudflare IPs (and the host you access it from yourself)

---

_[View the full topic](https://meta.discourse.org/t/how-to-solve-the-problem-of-source-ip-leakage-and-dd-attacks-even-when-using-cloudflare-cdn/326476)._
