Skip to content

Your origin IP is the real password

A firewall in front of your website only helps if nobody can walk around it. Six ways the address of your server leaks — and how to close each one in an afternoon.

ready.lu editors
Security
  • 4 min read
  • 3 questions for your Radar

In short

  • A firewall protects a website only when the server refuses every visitor that did not come through it.
  • Origin addresses leak through old DNS records, email, unprotected subdomains and public certificate logs.
  • The fix is short: allow ports 80/443 only from the firewall's addresses, then change the server's IP once.

Putting a web application firewall in front of a website feels like locking the front door. Every request now passes a guard that knows thousands of attack patterns. But the building often has a second door: the server's own address. If someone can reach it directly, they talk to your website without the guard — no rules, no rate limits, no bot checks.

Security people call this an origin bypass. It is not exotic: scanning tools try it automatically, and it is the first thing a determined attacker checks once they notice a firewall.

How the address escapes

Your server's IP is not secret by nature: it was public the day you first pointed your domain at it. These are the places it keeps showing up:

  1. DNS history. Services record every answer a domain ever gave. If shop.example.lu pointed to your server last year, that address is in a database today.
  2. Email. A contact form sending mail from the web server writes the server's address into the Received: headers of every message. An SPF record listing ip4:203.0.113.10 says it outright.
  3. Forgotten subdomains. ftp., cpanel., direct. or staging. pointing straight at the same machine.
  4. Certificate logs. Every TLS certificate is published in Certificate Transparency logs. They reveal hostnames — including the ones you thought nobody knew.
  5. Internet-wide scans. Search engines for devices connect to every IPv4 address and record the certificate it presents. If your server answers on its bare IP with a certificate for your domain, it has introduced itself.
  6. Callbacks. Features that make the server fetch a URL — pingbacks, link previews, webhooks — reveal the address that made the request.
Check yourself · Security1 / 3

Your website has been behind a firewall for a year and you changed nothing else. Which leak can still expose the server today?

ready.lu console · Ready ShieldSimulated data
How Ready Shield worksRequests arrive from the internet. Attacks and bad bots are stopped at the Ready Shield gate; real visitors and verified search engines pass through to your server.Ready ShieldYour server
×Attacks & bad bots stoppedPeople & Google pass
Every request should arrive through the edge. A direct one skips every rule shown here.

Lock the second door

The fix that matters most is not hiding the address but making it useless. A server that only answers the firewall can be found and still turn everyone else away.

1. Allow web traffic only from the firewall

Your firewall provider publishes the addresses its edge connects from (ready.lu keeps them at /ips.txt). Allow ports 80 and 443 from those, refuse the rest. On a Linux server with nftables, the core of it is three lines:

nft
table inet web {
  set edge { type ipv4_addr; flags interval; elements = { 147.135.130.16, 57.128.74.142 } }
  chain input { type filter hook input priority 0;
    tcp dport { 80, 443 } ip saddr != @edge drop
    meta nfproto ipv6 tcp dport { 80, 443 } drop
  }
}

2. Move once, then stay quiet

Once the firewall is in place, ask your host for a new IP address and never publish it: not in DNS, not in SPF, not on a subdomain. Every old record now points at an address that no longer serves your site.

3. Send email from somewhere else

Use your mail provider or a transactional email service for the contact form. The web server stops appearing in headers, and your SPF record stops naming it.

4. Answer nothing on the bare IP

Configure a default virtual host that closes connections for unknown names (in nginx: return 444; with a self-signed certificate). Scanners then learn nothing from your server.

Check yourself · Security2 / 3

Which single change gives the most protection against an origin bypass?

Readers' poll

Is your server reachable directly today, without your firewall or CDN?

Check yourself in five minutes

From a machine outside your network, send a request straight to the server's address with your domain name in it. If you get your homepage, the door is open:

bash
curl -sk -o /dev/null -w "%{http_code}\n" \
  --resolve shop.example.lu:443:203.0.113.10 https://shop.example.lu/

A 200 means anyone can do the same. After the allowlist, the command should hang or fail — exactly what you want an attacker to see.

Check yourself · Security3 / 3

You run the command above against your server and get 200. What does it prove?

Your afternoon plan

0 of 6 done

Ticks are kept in this browser only. Create a free account to keep them on every device.

Check what an assistant suggests before you apply it, and keep a backup. General advice — every server is different.
Your result

0 / 3 right

3 questions above are waiting for you.

Security
0.0/10
Level
Curious
Week streak
0
SecurityBotsSpeedAnalyticsServersSearchUXUI
Useful? Keep it for later, or pass it on.

Questions people ask

What is an origin IP?

The address of the server that actually runs your website. When a firewall or CDN sits in front, visitors connect to the firewall and only the firewall should connect to the origin.

How do attackers find the origin IP behind a WAF?

From old DNS records kept by history services, mail headers and SPF records, subdomains that are not proxied, public certificate logs and internet-wide scans that read the certificate a server presents on its bare IP address.

What is the most effective fix?

Allow web traffic (ports 80 and 443) on the server only from the firewall's published addresses, and move the website to a fresh IP address once the firewall is in place, so old records point nowhere useful.

Related reading

Stuck on something? We write it next.

A question you keep googling, a problem on your server, a myth you want busted — readers’ ideas go first into the daily selection.

Be first to the next article

New questions for your Radar come with every article. One short email when it is out; nothing else.

Hide your origin IP behind a WAF: 6 leaks to close | Ready Journal