Blog

6 security headers every small business website needs

Six simple server settings that stop common browser attacks. What each one does, in plain English.

Strict-Transport-SecurityContent-Security-PolicyX-Frame-OptionsX-Content-Type-OptionsReferrer-PolicyPermissions-Policy

Security headers are short instructions your web server sends with every page. They tell the visitor's browser what is allowed and what is not. They cost nothing, they take minutes to add, and they block whole groups of attacks.

1. Strict-Transport-Security (HSTS)

Tells browsers to only ever use HTTPS for your site. This stops someone on public Wi-Fi from quietly downgrading a visitor to an insecure connection.

2. Content-Security-Policy (CSP)

Lists the places your pages may load scripts, images and frames from. If an attacker manages to inject a script, the browser refuses to run it. This is the strongest header, and the one most sites are missing.

3. X-Frame-Options or frame-ancestors

Stops other sites from loading your pages inside a hidden frame. That blocks "clickjacking", where people are tricked into clicking buttons they cannot see.

4. X-Content-Type-Options

One word, "nosniff", stops browsers from guessing file types. It closes a small but real hole.

5. Referrer-Policy

Controls how much of your page address is shared when visitors click a link to another site. Good for privacy, especially on pages with order or account details in the address.

6. Permissions-Policy

Switches off browser features your site does not use, such as the camera, microphone and location.

Also: hide your software versions

Headers like X-Powered-By tell attackers which PHP version you run. Remove them.

Not sure which of these your site has? Ask for a free check and we will tell you, in plain English.

← All posts