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.
- 4 min read
- 3 questions for your Radar
- A checklist to keep
- A poll: compare with other readers
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:
- DNS history. Services record every answer a domain ever gave. If
shop.example.lupointed to your server last year, that address is in a database today. - 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 listingip4:203.0.113.10says it outright. - Forgotten subdomains.
ftp.,cpanel.,direct.orstaging.pointing straight at the same machine. - Certificate logs. Every TLS certificate is published in Certificate Transparency logs. They reveal hostnames — including the ones you thought nobody knew.
- 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.
- Callbacks. Features that make the server fetch a URL — pingbacks, link previews, webhooks — reveal the address that made the request.
Your website has been behind a firewall for a year and you changed nothing else. Which leak can still expose the server today?
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:
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.
Which single change gives the most protection against an origin bypass?
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:
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.
You run the command above against your server and get 200. What does it prove?
Your afternoon plan
0 of 6 doneTicks are kept in this browser only. Create a free account to keep them on every device.
0 / 3 right
3 questions above are waiting for you.
- Security
- 0.0/10
- Level
- Curious
- Week streak
- 0
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
- Bots
Not every bot is a burglar: a field guide to the crawlers on your website
On a close subject · 3 min
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.