← BACK TO BLOG
SECURITYMarch 2026· 5 min read

Website Security Headers: What They Are and Why You Probably Don't Have Them

Security headers are invisible to visitors but critical for protection. Here's what each one does, which ones every business website needs, and how to check yours.

What Security Headers Actually Do

When your web server sends a page to a browser, it includes HTTP response headers — instructions that tell the browser how to handle the page. Security headers are a specific set of these instructions that protect visitors from common attacks: clickjacking, cross-site scripting (XSS), protocol downgrade attacks, and more.

They're invisible to visitors and take no more than 30 minutes for a developer to implement — but the majority of small business websites are missing most or all of them. Attackers check for missing headers as standard reconnaissance before attempting other exploits.

The Six Headers Every Business Website Should Have

Content-Security-Policy (CSP)

Tells browsers which sources of scripts, styles, images, and other content are allowed to load on your pages. Blocks cross-site scripting (XSS) attacks where malicious code is injected into your pages through third-party content.

Strict-Transport-Security (HSTS)

Instructs browsers to always connect to your site over HTTPS, even if someone types http://. Prevents protocol downgrade attacks where a connection is intercepted and downgraded to unencrypted HTTP.

X-Frame-Options

Prevents your site from being embedded inside an iframe on another website — a technique used in clickjacking attacks, where visitors think they're interacting with your site but are actually clicking on invisible overlaid elements.

X-Content-Type-Options

Stops browsers from guessing (MIME sniffing) what type of content a file is. Prevents attacks where a malicious file is disguised as a benign one.

Referrer-Policy

Controls what URL information is sent to other sites when visitors follow links from your pages. Prevents leaking sensitive URL parameters (like session tokens or user IDs) to third parties.

Permissions-Policy

Controls which browser features your site can access — camera, microphone, geolocation. Prevents third-party scripts embedded on your site from accessing these without your knowledge.

How to Check Which Headers You Have

Visit securityheaders.com and enter your URL for a free header scan. It'll grade you A–F and show exactly which headers are missing. A full website audit will also surface missing security headers alongside your performance, SEO, and accessibility issues in a single report.

How to Add Them

Security headers are added at the server or CDN layer — in your Nginx or Apache configuration, your Vercel/Netlify configuration file, or your CDN's header rules. A developer familiar with your hosting setup can add all six headers in under an hour. Once set, they apply to every page automatically.

FREQUENTLY ASKED QUESTIONS

What are HTTP security headers?+

HTTP security headers are instructions your web server sends to browsers alongside page content. They tell browsers how to handle your site — preventing clickjacking, cross-site scripting, protocol downgrade attacks, and other common exploits. They are invisible to visitors but checked by attackers as standard reconnaissance.

Are security headers legally required?+

In the UK and EU, GDPR and the Network and Information Systems Regulations require organisations to take appropriate technical measures to secure their systems. Missing security headers can be cited as evidence of inadequate security in regulatory investigations. HTTPS enforced by HSTS is also a hard requirement under most PCI standards.

How do I check which security headers my site has?+

Visit securityheaders.com and enter your URL for a free instant scan. It grades your site A–F and shows exactly which headers are present and which are missing. A full website audit also surfaces missing security headers alongside performance, SEO, and accessibility issues.

FREE 60-SECOND AUDIT

SEE HOW YOUR SITE SCORES ACROSS ALL 5 PILLARS

Performance · SEO · Accessibility · Security · AI Visibility — with a revenue impact estimate. No sign-up required.

RUN FREE AUDIT →

MORE FROM THE BLOG

SEOThe 2026 Website Audit Checklist: 5 Areas Every Business Must Review
PERFORMANCEWebsite Speed Optimisation: A Plain-English Guide for Business Owners
SEOE-E-A-T SEO: How to Build Google's Trust in 2026