A firewall only protects the traffic that goes through it. If an attacker finds your server's real IP address, they can skip the firewall and connect to it directly. Origin authentication makes sure your server only answers requests that came through NOC.
Old DNS records, a mail server on the same box, a forgotten subdomain or an SSL certificate search are often enough to find a website's real server IP. With that address, an attacker talks to your server directly, and none of your firewall rules apply.
We saw this with PHP2Shell: one server was protected for its main site, but a second hostname on the same box pointed straight at its IP, and that was the way in. Locking the origin closes that door for every site on the server. Read the PHP2Shell article.
In the General tab of your site, enable origin authentication. NOC creates a secret key and starts sending it.
Copy the ready-made rule for nginx or Apache from the dashboard into your server config.
Requests without the header get a 403 from your own server. Only traffic through NOC gets in.
if ($http_noc_cdn_auth != "YOUR_KEY") {
return 403;
}
<If "%{HTTP:NOC-CDN-Auth} != 'YOUR_KEY'">
Require all denied
</If>
The dashboard shows these with your real key filled in, plus a mod_rewrite version for older and shared hosting. Add the rule to your default (catch-all) server or VirtualHost too, so a direct request with an unknown hostname can't land on an unprotected site.
Learn the basics: What is an origin server? · What is a proxy server?
Get access to our full suite of services, including DNS, WAF/CDN and Monitoring, or use only what you need. Our WAF/CDN operates on a distributed anycast network with over 20 data centers, delivering exceptional global performance.
Free 14-Day Trial