# Reverse proxy per Discourse | Real IP masking

**URL:** https://meta.discourse.org/t/reverse-proxy-for-discourse-real-ip-masking/275611
**Category:** Self-hosting
**Created:** [17 Agosto 2023, 8:08pm UTC](https://meta.discourse.org/t/reverse-proxy-for-discourse-real-ip-masking/275611 "2023-08-17T20:08:47Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![vifyirusti](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@vifyirusti](https://meta.discourse.org/u/vifyirusti)
#### Post date: [19 Agosto 2023, 2:14am UTC](https://meta.discourse.org/t/reverse-proxy-for-discourse-real-ip-masking/275611/11 "2023-08-19T02:14:22Z")

</div>

L’ho scritto con l’aiuto di una traduzione. Mi scuso per l’errore di battitura. Il mio inglese non è molto buono.

Inoltre, dopo aver messo cloudflare davanti al VPS, l’indirizzo IP del server è mascherato. Non c’è problema qui.

Tuttavia, la richiesta in uscita dal server mostra l’indirizzo IP. “[https://iplogger.org/](https://iplogger.org/)” fa molto bene il lavoro di esporre l’indirizzo IP.

Se ciò è dovuto a una configurazione errata, sarebbe fantastico sapere come risolverlo.

Una guida end-to-end aiuterà molte persone.

> [@How to protect a server's IP from being exposed?](https://meta.discourse.org/t/how-to-protect-a-servers-ip-from-being-exposed/217424/6?u=vifyirusti):
>
> please share, i have change many time ip address coz the hacker get my ip from iplogger.

> [@Discourse Link previews through a proxy server?](https://meta.discourse.org/t/discourse-link-previews-through-a-proxy-server/72720/24?u=vifyirusti):
>
> Is it not possible to disable discourse’s parsing of these images/urls that cause the IP leak of the origin server? Or at least make it so there is a whitelist of a certain set of domains that will be parsed?

> [@Discourse Link previews through a proxy server?](https://meta.discourse.org/t/discourse-link-previews-through-a-proxy-server/72720/5?u=vifyirusti):
>
> From what I understand discourse fetches the link server side to generate the preview. Post a malicious link controlled by attacker, check server access logs, get IP address attack and site go down. Easy peasy

> [@Discourse Link previews through a proxy server?](https://meta.discourse.org/t/discourse-link-previews-through-a-proxy-server/72720?u=vifyirusti):
>
> I keep my forum’s server behind cloud flare due to a large amount of attacks against the site. The link previews and emails can leak the server’s backend IP Address. The email issue was resolved by setting up a SMTP relay that strips headers (if the user pulls email headers to get the IP, they get the relay and not the forum’s IP). Is there a way to make the link previews go through a proxy server?

Rispetto.

---

_[View the full topic](https://meta.discourse.org/t/reverse-proxy-for-discourse-real-ip-masking/275611)._
