Security headers
HTTPS / HSTS
Serve the site over HTTPS and send Strict-Transport-Security so browsers refuse plain HTTP on later visits.
Why it matters
Without HSTS, a browser can still be sent to http:// on a public network, where someone can read or change the page. Users see a working site and never know.
One header tells the browser to stay on HTTPS for this domain. It is the difference between encrypting the first visit and protecting every visit.
How to fix it
-
Make every public URL reachable over HTTPS
-
Redirect http:// to https:// with a 301
-
Send Strict-Transport-Security: max-age=31536000; includeSubDomains
-
Add preload only after you are sure every subdomain supports HTTPS
Prompt for an AI assistant
Copy the text below and paste it into an AI assistant.
You are the person improving this website. Check the item below and fix it if it applies to the site. Item: HTTPS / HSTS Summary: Serve the site over HTTPS and send Strict-Transport-Security so browsers refuse plain HTTP on later visits. Steps: 1. Make every public URL reachable over HTTPS 2. Redirect http:// to https:// with a 301 3. Send Strict-Transport-Security: max-age=31536000; includeSubDomains 4. Add preload only after you are sure every subdomain supports HTTPS References: - Strict-Transport-Security (MDN) (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security) - HSTS Cheat Sheet (OWASP) (https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html) Constraints: - Keep the existing design and tone of voice. - Show the file or section you changed and the suggested final wording. - Do not decide ambiguous points alone; give options and a recommendation. - Do not change anything outside the listed item.
Checked by
-
vuln
Public exposure checks
Related checks
-
HTTP to HTTPS redirect
Redirect http:// requests to the same URL on https:// with a 301.
-
Other security headers
Set X-Content-Type-Options, Referrer-Policy, Permissions-Policy, and COOP/CORP to close the small gaps browsers leave open by default.
References
-
Strict-Transport-Security (MDN)
MDN (Mozilla) reference(Official)
-
HSTS Cheat Sheet (OWASP)
OWASP cheat sheet(Reference)
Check your site now
Enter a URL and find what is missing before launch, for free.
Run audit