NewOne plan from €9.90, extra domains €1, every feature included

All articlesBest Practices

Protecting Your Origin IP: The Most Overlooked Step in DDoS Defense

A

Akarguard Team

Security Engineering

Sep 13, 20268 min read

A DDoS scrubbing proxy is useless if attackers know your real server IP. Here are every place your IP can leak — and how to seal them.

Routing your traffic through a reverse proxy is the right way to defend against DDoS — but it rests on one fragile assumption: that attackers cannot find your real server. The whole model works because the world resolves your domain to the proxy, so attacks hit the proxy instead of your origin. The moment an attacker learns your origin's real IP address, they can aim straight at it and bypass the proxy entirely. Origin-IP hygiene is the most overlooked step in DDoS defence, and the one that most often quietly defeats it.

Where Your IP Leaks

  • Historical DNS records: services like SecurityTrails archive every IP your domain has ever pointed to. If your server was live before you added the proxy, your old IP is sitting in a database.
  • Subdomains: mail., dev., ftp., cpanel. and staging hosts often still resolve straight to the origin even after the main domain is proxied.
  • Email headers: mail your server sends can carry its real IP in the headers; check your SPF and MX setup.
  • TLS certificates: certificates issued to your origin before the proxy can appear in public Certificate Transparency logs.
  • Third-party services and analytics: some resolve and log the addresses of servers they connect to.
  • Application errors: stack traces, debug output and error pages that leak server metadata or internal addresses.

One leak undoes everything

It does not matter how good your protection is if the attacker can skip it. A single exposed subdomain or a stale DNS record in an archive is all it takes to route an attack straight at your origin. Origin privacy is not optional hardening — it is a precondition for the proxy working at all.

The Reliable Fix: Rotate and Re-Hide

The dependable solution after moving behind a proxy is to change your origin server's IP address — ask your hosting provider for a fresh one — and then make sure the new address never appears in any public record. Point every subdomain through the proxy or at addresses that are not your origin, fix mail so it does not leak the server IP, and lock your origin's firewall to accept traffic only from the proxy, so even a discovered IP cannot be connected to directly.

How Akarguard Helps You Check

Origin privacy is something you have to get right regardless of provider, so Akarguard's guidance during setup walks you through the leak vectors above: what to look for in DNS history and Certificate Transparency logs, which subdomains to re-point, how to stop mail from exposing the server, and why to rotate the IP and firewall the origin to the proxy. The panel gives you the edge address to point at and the DNS steps to follow. The check itself is straightforward once you know where to look — and doing it before an attacker does is what keeps the proxy in front of your server rather than beside it.

Frequently asked questions

Why does my origin IP need to stay hidden?

Because reverse-proxy DDoS protection only works while attackers hit the proxy instead of your server. If they discover your origin's real IP, they can target it directly and bypass the proxy entirely. A hidden origin is a precondition for the whole model, not optional hardening.

How does my origin IP get exposed?

Common leaks include historical DNS records archived by services like SecurityTrails, subdomains (mail., dev., ftp.) that still resolve to the origin, email headers carrying the server IP, old TLS certificates in Certificate Transparency logs, third-party services that log addresses, and application error pages that expose server metadata.

How do I hide my origin IP properly?

After moving behind a proxy, rotate your origin's IP (ask your host for a new one), ensure the new address never appears in any public record, re-point subdomains, stop mail from leaking the server IP, and firewall your origin to accept traffic only from the proxy — so even a discovered IP can't be connected to directly.

Does Akarguard help with origin IP protection?

Yes. Its setup guidance walks you through the leak vectors — DNS history, Certificate Transparency logs, subdomains, mail, IP rotation and firewalling the origin to the proxy — and the panel gives you the edge address and DNS steps. Getting origin privacy right before an attacker exploits it is what keeps the proxy effective.

A

Akarguard Team

Security Engineering at Akarguard

Ready to protect your infrastructure?

Start free — 7 days, nothing charged. €9.90 a month after that, €1 for each extra domain.

Get Protected Free

Keep your site up
on its worst day.

€9.90 a month, €1 for each extra domain, every feature included, 7 days free. One DNS change to start.