How to hide the IP of a site

I need to hide the IP of the site. How to do it?

Hm, from what I understand and if you want to achieve it via Cloudflare, you could.

If you are using Cloudflare for your domain name, you could “mask” your real origin host / server IP by switching your hostname DNS records like A www and A to proxied mode :orange: cloud.

That way, the IP for the A type of DNS record would be seen as it’s from USA, Cloudflare.

1 Like

The problem is not A, but MX. I think there’s nothing to be done.

Unfortunately as it states:

Cloudflare’s default configuration only allows proxying of HTTP traffic and will break mail traffic.


You could use some relay server to “hide” your real IP, but I doubt as it would end up in some of the e-mail headers (if not being removed) - which could cause possible issues to your e-mail not being delivered or marked as a junk one.

Or some solution as a proxy/relay server of JavaPipe infront of your origin (for specific/needed ports) for example:

Otherwise, I would suggest using Cloudflare Business or even Enterprise plan for SMTP including the Cloudflare Spectrum service:

Is your e-mail being hosted on the same origin host / server as your Website?

Best practices for MX records on Cloudflare:

  • Use separate IP addresses for mail traffic and HTTP/HTTPS traffic. Cloudflare recommends using non-contiguous IPs from different IP ranges.

In terms of using e-mail with Cloudflare:

1 Like


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.