HTTP Headers Checker
Redirect chain
-
301
http://gov.uk/
Moved Permanently · HTTP/1.1 · 62 ms · 151.101.192.144
-
301
https://gov.uk/
· HTTP/2 · 83 ms · 151.101.192.144
-
200
https://www.gov.uk/
· HTTP/2 · 360 ms · 146.75.92.144
- HTTP redirects to HTTPS with a permanent (301) redirect.
- The page is compressed (br).
Security headers
A+100/100
Strict-Transport-Security Set for 365 days, preload-ready.
Content-Security-Policy Set. Controls where scripts, styles and other content can load from.
X-Frame-Options Set to SAMEORIGIN. Stops other sites showing this one inside a frame (clickjacking).
X-Content-Type-Options Set to nosniff. Stops browsers guessing file types, which can be abused.
Referrer-Policy Set to strict-origin-when-cross-origin. Controls how much of the page address is shared when visitors click away.
Permissions-Policy Set. Restricts features like camera, microphone and location.
Response headers (final page)
| Status | 200 |
| content-type | text/html; charset=utf-8 |
| server | nginx |
| cache-control | max-age=300, public |
| content-security-policy | default-src 'self'; base-uri 'none'; script-src 'self' www.google-analytics.com ssl.google-analytics.com stats.g.doubleclick.net www.googletagmanager.com www.region1.google-analytics.com region1.google-analytics.com www.google.co.uk analytics.google.com *.analytics.google.com www.google.com www.gstatic.com *.ytimg.com www.youtube.com www.youtube-nocookie.com 'nonce-te7sI28prayduAJpj3J9tw=='; style-src 'self' www.gstatic.com; font-src 'self'; object-src 'none'; frame-src 'self' *.publishing.service.gov.uk www.gov.uk *.dev.gov.uk www.youtube.com www.youtube-nocookie.com; frame-ancestors 'self' *.publishing.service.gov.uk www.gov.uk *.dev.gov.uk; report-uri https://csp-reporter.publishing.service.gov.uk/report; img-src 'self' *.publishing.service.gov.uk www.gov.uk *.dev.gov.uk www.google-analytics.com ssl.google-analytics.com stats.g.doubleclick.net www.googletagmanager.com www.region1.google-analytics.com region1.google-analytics.com www.google.co.uk analytics.google.com *.analytics.google.com www.google.com lux.speedcurve.com assets.digital.cabinet-office.gov.uk https://img.youtube.com https://i.ytimg.com https://tiles.openfreemap.org data:; connect-src 'self' *.publishing.service.gov.uk www.gov.uk *.dev.gov.uk www.google-analytics.com ssl.google-analytics.com stats.g.doubleclick.net www.googletagmanager.com www.region1.google-analytics.com region1.google-analytics.com www.google.co.uk analytics.google.com *.analytics.google.com www.google.com lux.speedcurve.com beacon.speedcurve.com https://tiles.openfreemap.org data: |
| etag | W/"24f35d1b1f219f42a2758df68085525c" |
| link | </assets/frontend/views/_homepage-fb5a9ea1f5f85a43a13979eb3e7b280f5458c2d290a3455a98823d3b5fe11c83.css>; rel=preload; as=style; nopush,</assets/frontend/govuk_publishing_components/vendor/lux/lux-measurer-d66192b1b665d415e1874e49a48138b7ae339548aa6cdb8687c7f9933e72b969.js>; rel=preload; as=script; nopush,</assets/frontend/govuk_publishing_components/rum-custom-data-b9e1806d1da2fa8ef1855d01aa71ba5eb0afc010dd2c4de3672cc7c7a39b0c8c.js>; rel=modulepreload; as=script; nopush,</assets/frontend/govuk_publishing_components/rum-loader-a65b10e18ceeba3bd8a2eac507c7f2c513cdc82f35097df903fdea87f1dc2e33.js>; rel=preload; as=script; nopush,</assets/frontend/govuk_publishing_components/load-analytics-d5c92d4ce9f98141170a466427da86ca1ff62f234637bf0776121e6df57b3b67.js>; rel=modulepreload; as=script; nopush,</assets/frontend/application-ad55f533090cfd6b0febe2ee40e92e4de4a9efb50d007174cf763239a116750f.css>; rel=preload; as=style; nopush |
| permissions-policy | interest-cohort=() |
| referrer-policy | strict-origin-when-cross-origin |
| via | 1.1 router, 1.1 varnish |
| x-content-type-options | nosniff |
| x-frame-options | SAMEORIGIN |
| x-permitted-cross-domain-policies | none |
| x-request-id | eefc05f8-fbc4-4010-b894-27852ede9bea |
| x-runtime | 0.031603 |
| x-xss-protection | 0 |
| fastly-backend-name | origin |
| content-encoding | br |
| accept-ranges | bytes |
| date | Fri, 04 Dec 2026 17:05:31 GMT |
| age | 26 |
| strict-transport-security | max-age=31536000; preload |
| server-timing | cacheHit |
| x-served-by | cache-bur-kbur8200110-BUR |
| x-cache | HIT |
| x-cache-hits | 1 |
| x-timer | S1796403931.177547,VS0,VE1 |
| vary | X-Requested-With, Accept-Encoding |
| alt-svc | h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400 |
| content-length | 11262 |
Show headers for the 2 redirects
301 · http://gov.uk/
| Connection | close |
| Content-Length | 0 |
| Server | Varnish |
| Retry-After | 0 |
| Location | https://gov.uk/ |
| Fastly-Backend-Name | force_ssl |
| Accept-Ranges | bytes |
| Date | Fri, 04 Dec 2026 17:05:30 GMT |
| X-Varnish | 2374904430 |
| Via | 1.1 varnish |
301 · https://gov.uk/
| server | Varnish |
| retry-after | 0 |
| location | https://www.gov.uk/ |
| strict-transport-security | max-age=63072000; preload |
| accept-ranges | bytes |
| date | Fri, 04 Dec 2026 17:05:30 GMT |
| x-varnish | 18480346 |
| via | 1.1 varnish |
| content-length | 0 |
SSL certificate for www.gov.uk · DNS records ·
View as JSON
What are HTTP headers?
Every time a browser asks for a web page, the server replies with a status code and a set of headers
before the page itself. Headers carry instructions and information you never see on screen: what type of content is
coming, how long it can be cached, whether it's compressed, where to go instead (a redirect), and which security rules
the browser should enforce.
Status codes
- 200
- OK – the page was found and sent.
- 301 / 308
- Moved permanently – the page now lives at a new address. Search engines move their listing across.
- 302 / 307
- Moved temporarily – go here for now, but keep the old address.
- 403
- Forbidden – the server refused the request.
- 404
- Not found – nothing exists at that address.
- 500 / 502 / 503
- Server errors – something went wrong on the website's side, or it's overloaded.
Why redirects matter
A site should send anyone who types http:// straight to the secure https:// version,
ideally with a single permanent (301) redirect. Long chains – http to https to
www to a language folder – each add a round trip and slow the first visit down. They can also lose
search ranking if temporary redirects are used where permanent ones should be.
Security headers explained
These headers tell the browser to switch on extra protection. They cost nothing and are usually a few lines in the
web server configuration or .htaccess file.
- Strict-Transport-Security (HSTS) – forces HTTPS for future visits, even if someone types
http:// or clicks an old link.
- Content-Security-Policy – a list of places scripts and other content are allowed to load from.
The best defence against cross-site scripting, but needs care to set up without breaking the site.
- X-Frame-Options – stops other sites loading yours inside a frame to trick visitors into clicking
things (clickjacking).
- X-Content-Type-Options: nosniff – stops the browser guessing what a file is.
- Referrer-Policy – controls how much of your page address is passed on when visitors click a link
to another site.
- Permissions-Policy – switches off browser features like the camera, microphone and location for
your pages.
How is the grade worked out?
Each security header is worth points (HSTS and CSP 25 each, X-Frame-Options and X-Content-Type-Options 15 each,
Referrer-Policy and Permissions-Policy 10 each), giving a score out of 100 and a grade from A+ to F. Sites not using
HTTPS are capped at a low grade. It's a quick guide to how well a site uses the protection browsers offer – not a full
security audit.