Website & Hosting7 min read

How to Check Website Security Headers: HSTS, CSP, X-Frame-Options & CORS

Protect your website against Clickjacking, Cross-Site Scripting (XSS), MIME-sniffing, and SSL-stripping by auditing HTTP response headers.

D
DNSChecker AppSec Team
Application Security & Hardening Engineer
Published: November 2026
Companion Diagnostic Tool

Audit HTTP Security Headers Live

Test your domain or IP address in real time with our free online network scanner.

Launch Tool

Whenever a user visits your website, your web server sends an HTTP response containing invisible metadata headers. Setting the proper security headers instructs modern web browsers to enforce strict sandboxing, block clickjacking frames, and mandate HTTPS.

The 6 Essential Security Headers

  • Strict-Transport-Security (HSTS): Forces HTTPS and prevents SSL-stripping attacks.
  • Content-Security-Policy (CSP): Prevents XSS attacks by restricting which scripts, images, and styles can execute.
  • X-Frame-Options: Disallows embedding your site inside iframes to defeat Clickjacking.
  • X-Content-Type-Options: nosniff prevents MIME-type confusion attacks.
  • Referrer-Policy: Controls how much URL referrer data is passed to external links.
  • Permissions-Policy: Disables browser features like camera, microphone, and geolocation.

Frequently Asked Questions

What is HSTS Preloading?

HSTS Preload is a list hardcoded into Google Chrome, Firefox, and Safari that instructs browsers to NEVER connect to your domain via unencrypted HTTP, even on the very first visit before any headers are received.

Share this technical guide: