Security Headers

HTTP headers that protect visitors from common web attacks like clickjacking and XSS.

What are Security Headers?

Security headers are HTTP response headers that tell browsers how to behave when handling your site's content. They protect visitors from common attacks.

The Three We Check

#### 1. HSTS (Strict-Transport-Security)

Forces browsers to always use HTTPS, even if the user types http://.

Strict-Transport-Security: max-age=31536000; includeSubDomains

#### 2. Content-Security-Policy (CSP)

Controls which resources (scripts, images, styles) can be loaded. Prevents XSS attacks.

Content-Security-Policy: default-src 'self'; script-src 'self' cdn.example.com

#### 3. X-Frame-Options

Prevents your site from being embedded in an iframe (clickjacking protection).

X-Frame-Options: SAMEORIGIN

Scoring

ScoreMeaning
3/3All key headers present — excellent
2/3Missing one header — good but could improve
1/3Minimal security — should be addressed
0/3No security headers — vulnerable
← All topics