Security Headers Check

Check whether a website sends the HTTP headers that protect its visitors, with an A–F grade and how to fix each one.

B

Grade

Good, with minor improvements possible

https://accounts.google.com/v3/signin/identifier?continue=https://accounts.google.com/&followup=https://accounts.google.com/&passive=1209600&flowName=WebLiteSignIn&flowEntry=ServiceLogin&dsh=S-465792951:1795396844760654 (200)

Results

  • Warning: No Referrer-Policy. Add "Referrer-Policy: strict-origin-when-cross-origin" so full URLs (with tokens or search terms) are not sent to other sites.
  • Warning: Cookies without some protection flags: __Host-GAPS (SameSite). Add Secure (HTTPS only), HttpOnly (not readable by JavaScript, for session cookies) and SameSite=Lax.
  • Ok: HSTS is enabled for 365 days: browsers will only use HTTPS.
  • Ok: Content-Security-Policy restricts where scripts can load from.
  • Ok: The page cannot be framed by other sites (protection against clickjacking).
  • Ok: X-Content-Type-Options: nosniff stops browsers from guessing file types.
  • Ok: Permissions-Policy limits the browser features the page can use.

Security headers

Strict-Transport-Security max-age=31536000; includeSubDomains
Content-Security-Policy script-src 'report-sample' 'nonce-R-i8k-qHrvMLb82aE3Q4mA' 'unsafe-inline';object-src 'none';base-uri 'self';report-uri /v3/signin/_/AccountsSignInUi/cspreport;worker-src 'self'
X-Frame-Options DENY
X-Content-Type-Options nosniff
Referrer-Policy Missing
Permissions-Policy ch-ua-arch=*, ch-ua-bitness=*, ch-ua-full-version=*, ch-ua-full-version-list=*, ch-ua-model=*, ch-ua-wow64=*, ch-ua-form-factors=*, ch-ua-platform=*, ch-ua-platform-version=*
All response headers (27)
Content-Typetext/html; charset=utf-8
X-Frame-OptionsDENY
Set-Cookie__Host-GAPS=1:RqJ5Cptj2E3EY8LDZ-CSiYbjm-jRLA:nZsh6w7UJa-dzV9V; Expires=Wed, 22-Nov-2028 01:20:44 GMT; Path=/; Secure; HttpOnly; Priority=HIGH
x-auto-loginrealm=com.google&args=continue%3Dhttps://accounts.google.com/
x-ua-compatibleIE=edge
Cache-Controlno-cache, no-store, max-age=0, must-revalidate
Pragmano-cache
ExpiresMon, 01 Jan 1990 00:00:00 GMT
DateMon, 23 Nov 2026 01:20:44 GMT
Strict-Transport-Securitymax-age=31536000; includeSubDomains
Content-Security-Policyscript-src 'report-sample' 'nonce-R-i8k-qHrvMLb82aE3Q4mA' 'unsafe-inline';object-src 'none';base-uri 'self';report-uri /v3/signin/_/AccountsSignInUi/cspreport;worker-src 'self'
Content-Security-Policyrequire-trusted-types-for 'script';report-uri /v3/signin/_/AccountsSignInUi/cspreport
Permissions-Policych-ua-arch=*, ch-ua-bitness=*, ch-ua-full-version=*, ch-ua-full-version-list=*, ch-ua-model=*, ch-ua-wow64=*, ch-ua-form-factors=*, ch-ua-platform=*, ch-ua-platform-version=*
Report-To{"group":"AccountsSignInUi","max_age":2592000,"endpoints":[{"url":"https://csp.withgoogle.com/csp/report-to/AccountsSignInUi"}]}
Cross-Origin-Resource-Policysame-site
Cross-Origin-Opener-Policy-Report-Onlysame-origin; report-to="AccountsSignInUi"
Accept-CHSec-CH-UA-Arch, Sec-CH-UA-Bitness, Sec-CH-UA-Full-Version, Sec-CH-UA-Full-Version-List, Sec-CH-UA-Model, Sec-CH-UA-WoW64, Sec-CH-UA-Form-Factors, Sec-CH-UA-Platform, Sec-CH-UA-Platform-Version
reporting-endpointsdefault="/v3/signin/_/AccountsSignInUi/web-reports?context=eJwNw30s1HEcB3C--b5nNzVTebi2ZrRGzcOZqGltMml-7rj9_DjO3SEntubq3GnUmDi1WPMPNj2oVouprPVPq0RbGrVO-FX3kFkLMUq1KBtbn9f2Umz47VMofXKilD7DEU9Z3-5n7Al1lrnZND3y2M2y6Be1h4VpPCyKulo8zPnSw1oSvcx-y8syUr6yVMMsS6d-A3NMpZ1nG9fmWWfAIuumDreTd9AHaeN8MGec226P82Z6mXbTiuIJfoqqwid5KrWGyvwCjT4o8xg6nCXzBv0H_iraxUdphcXFf9e5eNA5F09bc_EMOpLq5j37PfxkvZcHe7xcScfkz_wdvWPMRKOvAAddyBCwTDt6BDS8FdBEV2cErNOgHwLuTWUhOlaNGLpWrQZsaiy1aLBC-zs0GKCTnmz4fc_GyKccjNGaRC0-3tTCMqRFNXXOajFJf-4U8YcGhorYQX8liVilmYdFaOhciYhF-o9u0O2lIkKofF_Ew3URlvO5mLmbi2mFhEsBEiLrJCy1Slih0oCER4MS4gbz0EgdtI220y56lebtykchlerzUUAj_XVIDtMhhYak66CkR_t1OEbLLxbAfrYQtbSNttPu3kJcpzXBepiO63GCjur12BNaBEVzEbbR5L9FSKGbrQYIrw3Ipr3vDfDdasQ3hxETL4zYG25CEjU_N2FILsbUmxJsdpVCHj4QFhTgv9x3xYXAhc6mG1si4kotZ0yVZeYqW6WtttxqqbKZq8pK7LYKe2W12VpjtpoS4hOSVCrVodj4RNPp-P9jQwgL"
document-policyinclude-js-call-stacks-in-crash-reports
ServerESF
X-XSS-Protection0
X-Content-Type-Optionsnosniff
Alt-Svch3=":443"; ma=2592000,h3-29=":443"; ma=2592000
Accept-Rangesnone
VarySec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site,Accept-Encoding
Connectionclose
Transfer-Encodingchunked

Checked on 2026-11-23 01:20 UTC. Results are cached for 5 minutes.

What does the security headers check do?

It loads a page the way a browser does, follows its redirects, and reviews the HTTP headers that switch on browser protections. Each header gets a verdict, the site gets an A–F grade, and every problem comes with the line to add.

The headers we check

HeaderProtects againstRecommended value
Strict-Transport-SecurityDowngrade to HTTP and interception on public Wi-Fi.max-age=31536000; includeSubDomains
Content-Security-PolicyCross-site scripting (XSS) and injected content.Depends on the site; start with default-src 'self' in report-only mode.
X-Frame-OptionsClickjacking (your page inside an invisible frame).SAMEORIGIN, or frame-ancestors 'self' in the CSP.
X-Content-Type-OptionsFiles run as scripts because the browser guessed their type.nosniff
Referrer-PolicyLeaking full URLs (tokens, searches) to other sites.strict-origin-when-cross-origin
Permissions-PolicyAbuse of camera, microphone, location… by embedded code.camera=(), microphone=(), geolocation=()

We also flag headers that reveal software versions (Server: Apache/2.4.58, X-Powered-By) and cookies set without Secure, HttpOnly or SameSite.

How to add them

# Nginx (inside the server block for HTTPS)
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;

# Apache (.htaccess, needs mod_headers)
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
Header always set X-Frame-Options "SAMEORIGIN"
Header always set X-Content-Type-Options "nosniff"
Header always set Referrer-Policy "strict-origin-when-cross-origin"

Behind Cloudflare you can also set them with a Transform Rule (Rules → Transform Rules → Modify Response Header), and HSTS directly in SSL/TLS → Edge Certificates.

Before you enable HSTS

Once a browser has seen HSTS it refuses plain HTTP for that domain until max-age runs out. Make sure the site and, with includeSubDomains, every subdomain work over HTTPS with a valid certificate first. Check it with the SSL Checker, and the redirects with the Redirect Checker.

Frequently asked questions

What are security headers?

HTTP response headers that tell browsers to enable protections: use only HTTPS (HSTS), load scripts only from trusted places (CSP), refuse to be framed by other sites (X-Frame-Options), not guess file types (nosniff) and limit what is shared with other sites (Referrer-Policy).

How is the grade calculated?

Each missing or weak header takes points off 100, by importance: no HTTPS 60, no HSTS 25, no CSP 20, no clickjacking protection 15, nosniff and Referrer-Policy 10 each, smaller issues 5. 90 or more is an A, 75 a B, 60 a C, 40 a D.

How do I add these headers?

In your web server (Nginx add_header, Apache Header set), in your application, or at your CDN (Cloudflare Transform Rules, Netlify and Vercel config files). Add them on HTTPS responses, and test with this tool afterwards.

Why is a Content-Security-Policy hard?

It must list every place your pages load scripts, styles, fonts and frames from, including analytics and ads. Start with Content-Security-Policy-Report-Only to see what would break, fix the list, then enforce it.

Is X-XSS-Protection still needed?

No. Modern browsers removed the XSS filter it controlled, and enabling it could even cause problems. Use a Content-Security-Policy instead and leave X-XSS-Protection out (or set it to 0).

Does a good grade mean the site is secure?

No. Headers are one layer: they limit the damage of some attacks in the browser. The site still needs up-to-date software, a valid certificate (check it with the SSL Checker) and secure code.

Related tools

Last updated: