SiteAlertAI SiteAlertAI
๐Ÿ›ฐ Web Scan ๐Ÿ”’ SSL/TLS ๐Ÿ“ฌ MX Record โœ‰ Email Header ๐ŸŽฃ URL Check ๐ŸŒ IP Geo
๐Ÿ›ฐ Web Scan ๐Ÿ”’ SSL/TLS ๐Ÿ“ฌ MX Record โœ‰ Email Header ๐ŸŽฃ URL Check ๐ŸŒ IP Geo
โ† All articles
Security Headers 2026-01-16 ยท 7 min read

HTTP Security Headers Explained: HSTS, CSP, X-Frame-Options and More

Security headers are instructions a server sends with every response telling the browser how to behave. They are free to deploy and block whole categories of attack.

The headers that matter

  • Strict-Transport-Security (HSTS) โ€” forces HTTPS for a set period. Example: max-age=31536000; includeSubDomains; preload.
  • Content-Security-Policy (CSP) โ€” controls which sources of scripts, styles and images are allowed, the single strongest defence against cross-site scripting (XSS).
  • X-Frame-Options โ€” SAMEORIGIN stops your site being framed by attackers (clickjacking).
  • X-Content-Type-Options: nosniff โ€” stops the browser guessing a file type and running a non-script as script.
  • Referrer-Policy โ€” strict-origin-when-cross-origin limits how much URL data leaks to other sites.
  • Permissions-Policy โ€” disables powerful features (camera, microphone, geolocation) you do not use.

Getting started

Start with HSTS and X-Content-Type-Options (both safe and instant), then add X-Frame-Options. CSP is the most powerful but needs testing โ€” begin in report-only mode, watch what breaks, then enforce. A scan of your site headers shows which are present and which are missing.

Put this into practice
Run a free, private scan โ€” no login, nothing stored.
๐Ÿ›ก Web Scan ๐Ÿ”’ SSL/TLS ๐Ÿ“ฌ MX & Email ๐ŸŽฃ URL Check

Related articles

Security Headers Content-Security-Policy: Your Strongest Defence Against XSS CSP is the most effective header you can deploy โ€” and the most misunderstood. Here is a practical path to a working policy.
SiteAlertAI · © 2026 All rights reserved · Built for security professionals and developers.
Blog Guides Privacy Terms About Contact Social

⚠ For authorised security testing only. Scanning domains you do not own may violate laws in your jurisdiction. SiteAlertAI accepts no liability for misuse. CVE data is indicative โ€” verify with NVD.