The most valuable hour you can spend on your website security
There is a category of website vulnerability that costs nothing to fix, takes under an hour to implement, and is missing from the majority of UK small business websites. It does not require a developer, does not require server access, and does not require any code changes.
HTTP security headers. You have probably never heard of them. Your website is almost certainly missing them.
"Security headers are the easiest wins in website security. They do not eliminate all risk, but they close off entire categories of attack — clickjacking, cross-site scripting, information leakage — with a few lines of configuration."
— NCSC, Website Security Guidance for Organisations, 2025The five headers that matter most
How to add security headers: the Cloudflare method
If your website uses Cloudflare (and it should — the free tier is excellent), adding security headers requires no server access and no code changes:
- Log in to Cloudflare → select your domain
- Go to Rules → Transform Rules → Response Header Modification
- Create a new rule that applies to all requests
- Add each header as a Set Header action with the appropriate value
- Deploy the rule and verify using securityheaders.com
How to add security headers: server configuration
If you manage your own server, headers can be added directly:
Apache (.htaccess):
Header always set X-Content-Type-Options "nosniff"
Header always set Referrer-Policy "strict-origin-when-cross-origin"
Nginx (nginx.conf):
add_header X-Content-Type-Options "nosniff";
add_header Referrer-Policy "strict-origin-when-cross-origin";
Go to securityheaders.com and enter your domain. You will get an instant grade (A+ to F) and see exactly which headers are missing. Most UK small business sites score a D or F.
Key takeaways
- Security headers are instructions from your server to visitors' browsers that block entire categories of attack
- 78% of UK small business sites are missing the Content-Security-Policy header
- All headers can be added via Cloudflare in under an hour at zero cost
- CSP prevents script injection attacks; X-Frame-Options prevents clickjacking
- Check your current score for free at securityheaders.com