HTTP Header Explainer

Paste HTTP response headers and get a plain-English explanation of each directive with security and caching insights.

By Marshkalk

HTTP security headers and NCSC guidance for UK organisations

The National Cyber Security Centre (NCSC) publishes specific guidance on HTTP security headers for UK organisations. A correct set of headers blocks the most common web attack vectors: XSS, clickjacking, and protocol downgrade attacks. The GOV.UK platform, served via Fastly CDN, sets a specific header profile that includes HSTS with preloading and a strict Content-Security-Policy. Paste raw headers from DevTools or curl output here to get an immediate plain-English explanation of each directive.

Key security headers and what they do

HeaderPurposeNCSC recommendation
Strict-Transport-SecurityForces HTTPS for a set duration (HSTS)min-age=31536000; includeSubDomains
Content-Security-PolicyRestricts script and resource sources (XSS)Define explicitly; avoid unsafe-inline
Referrer-PolicyControls referrer data sent to third partiesno-referrer or strict-origin
X-Frame-OptionsPrevents clickjacking via iframesDENY or SAMEORIGIN
Permissions-PolicyRestricts browser feature access (camera, mic)Disable unused features

UK GDPR and Referrer-Policy

Referrer-Policy matters for UK GDPR compliance: a lax Referrer-Policy: unsafe-url setting sends the full URL of every page, including URL parameters that may contain personal data, to third-party analytics and advertising services. UK ICO guidance recommends setting Referrer-Policy: strict-origin at minimum to reduce data leakage to third-party scripts, including GA4.

How to access headers for this tool

In Chrome or Firefox: open DevTools (F12), click the Network tab, select any request, then copy the Response Headers section. Alternatively: curl -I https://example.com in a terminal. Paste the output directly into this tool for an explanation of every header present.