Squish/attentionSquish →

What Security Headers Are (and Why Your Site Probably Has None)

Security headers are the most invisible item on a site health report and among the easiest to fix. What each one does, in plain English, and how to check.

By Casey Payne··5 min read

Of everything that shows up on a website health report, security headers are the item most likely to be ignored. The name sounds like something for engineers, the findings are written in acronyms, and unlike an expired certificate, nothing visibly breaks when they are missing.

They are also among the cheapest things on the whole list to fix — often a few lines of configuration, applied once. Here is what they actually are.

The idea in one paragraph

Every time someone visits your site, your server sends the page along with a set of instructions to the browser. Most are administrative. A handful are safety rules: only connect to me securely, do not let other sites frame my pages, only load scripts from these places.

Browsers enforce those rules. Without them, they fall back on permissive defaults designed for compatibility with an older, more trusting web.

So a security header is not a shield sitting in front of your site. It is an instruction to the visitor's browser about how carefully to treat you. Free to send, and only useful if you send them.

The ones worth knowing

Strict-Transport-Security. Tells the browser to only ever connect securely to your site, even if someone types the insecure address. Closes a real gap where that first unencrypted request can be intercepted. This is the highest-value one on the list and it is a single line.

Content-Security-Policy. Declares which sources are allowed to load scripts, styles and images on your pages. It is the strongest protection against a whole family of attacks where someone gets malicious code onto your site — a compromised plugin, an ad network, a form. It is also the fiddliest, because a policy that is too strict breaks your own site. Worth doing carefully rather than quickly.

X-Frame-Options (and its modern equivalent inside the policy above). Stops other sites embedding your pages inside theirs, which is how clickjacking works — an invisible copy of your site layered under something a visitor thinks they are clicking.

X-Content-Type-Options. Stops the browser guessing what a file is when the label and the contents disagree. Guessing has historically been exploitable. One line, no side effects, no reason not to.

Referrer-Policy. Controls how much of the address your visitor came from gets passed on to the next site. A privacy measure more than a security one, and worth setting because the default leaks more than most people expect.

Permissions-Policy. Declares which browser capabilities your pages may use — camera, microphone, location. Mostly relevant if you embed third-party content, and a sensible thing to be explicit about.

Why almost nobody has them

Not negligence. Three structural reasons.

They are invisible. Nothing breaks, no warning appears, no customer complains. There is no moment that forces the issue.

They belong to nobody. The person who designed the site does not configure the server. The host provides the platform, not the policy. It falls in the gap.

And the documentation is written for people who already understand it. The advice tends to be a configuration snippet with no explanation of what it does or what it might break.

How to check yours

This is public information — anyone can read the headers your site sends, including you.

Run the Security Headers Checker on your address. It grades what your site currently sends and explains what each one actually does, rather than only naming it. Complimentary, no signup, a few seconds.

Most small business sites score poorly on first check. That is the norm rather than a sign of neglect, and the distance from a poor grade to a good one is usually smaller than the grade suggests.

For the wider picture, the Tune-Up folds this in alongside your certificate, mail authentication and blocklist status, which is the more useful single look if you are only going to run one thing.

Fixing them, in a sensible order

Do not apply everything at once. Two of these can break a site if applied carelessly.

Start with the safe ones. X-Content-Type-Options, X-Frame-Options and Referrer-Policy can go on almost any site with no realistic risk. That is three items off the report in one change.

Then add strict transport security, once you are confident your site works properly over the secure address everywhere — including any subdomains. This is the one to check twice, because it is deliberately hard to undo quickly: browsers remember it.

Do the content policy last, and slowly. Run it in report-only mode first so it tells you what it would have blocked without blocking anything. Read that for a while, adjust, then enforce. Applied blind, it will break your own analytics, fonts or embedded video.

That ordering is the whole trick. Three easy wins immediately, one careful change, one project.

Where this sits with us

Our position is that a small business should not have to know any of the above.

On our hosting the security posture is set at the server level — firewall, brute-force protection, auto-renewing SSL on every site, from $10 a month with no add-on. If you want headers configured for your specific site, that is a case rather than a research project.

If your site is hosted elsewhere, the checker still works and you should still run it. This is not a problem that requires moving anywhere — it is a conversation to have with whoever configures your server, and now you know what to ask for and in what order.

Five minutes today: run the Security Headers Checker and fix the three safe ones. It is the best security-per-minute available to a small business website, and it stays fixed.