Skip to main content

HTTP Headers Analyzer

Paste a list of HTTP response headers to get plain-English explanations. Identifies security headers, cache directives, CORS policies, and flags missing critical headers. Everything runs in your browser — no data is sent anywhere.

✓ Security header analysis ✓ Missing header detection ✓ Cache-Control parsing ✓ Runs 100% in your browser

Paste the raw headers section from curl, browser DevTools, or Postman. One header per line (format: Header-Name: value).

Security Headers Quick Reference

Strict-Transport-Security
Forces HTTPS. Prevents SSL stripping attacks.
max-age=31536000; includeSubDomains; preload
Content-Security-Policy
Restricts resource loading sources. Blocks XSS.
default-src 'self'; script-src 'self'
X-Frame-Options
Prevents clickjacking via iframe embedding.
DENY
X-Content-Type-Options
Prevents MIME type sniffing attacks.
nosniff
Referrer-Policy
Controls what referrer info is sent with requests.
strict-origin-when-cross-origin
Permissions-Policy
Disables browser APIs you don't need.
camera=(), microphone=(), geolocation=()

Frequently Asked Questions

What HTTP headers should every website send?▼

At minimum: Strict-Transport-Security (HSTS), X-Content-Type-Options: nosniff, X-Frame-Options: DENY or SAMEORIGIN, and Referrer-Policy. Content-Security-Policy is the most powerful security header but requires careful tuning. Cache-Control is critical for performance. Together these prevent the most common web vulnerabilities.

What is Content-Security-Policy (CSP)?▼

CSP is a browser-enforced allowlist that specifies which sources of scripts, styles, images, and other resources are permitted. A strong CSP like 'default-src "self"' blocks all inline scripts and external resource loading by default, eliminating most XSS attack vectors. Start with report-only mode to audit before enforcing.

What is HSTS and why is it important?▼

HTTP Strict Transport Security (HSTS) tells browsers to only connect via HTTPS for a specified period. Once cached, the browser will refuse HTTP connections entirely — even if the user types http://. This prevents SSL stripping attacks. Use max-age=31536000 (1 year) for production sites. Submit to the HSTS preload list for maximum protection.

What does X-Frame-Options do?▼

X-Frame-Options prevents your site from being embedded in iframes on other domains. This blocks clickjacking attacks where attackers overlay your site to trick users into clicking hidden elements. Use DENY (block all framing) or SAMEORIGIN (only allow your own domain). Note: CSP frame-ancestors is the modern replacement and offers more granular control.

How does Cache-Control work?▼

Cache-Control tells browsers and CDNs how long to cache a response. Key directives: max-age=N (cache for N seconds), no-cache (must revalidate before using cached copy), no-store (never cache — for sensitive data), immutable (resource will never change — use with content-hashed filenames), public (allow CDN caching), private (only browser cache). For static assets with hashed filenames, use max-age=31536000, immutable.

What is the Permissions-Policy header?▼

Permissions-Policy (formerly Feature-Policy) controls which browser APIs and features a page can access. For example, camera=(), microphone=() disables access to those hardware features, reducing the attack surface even if XSS occurs. List only the features your page needs and deny everything else.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Webhook Tester WebSocket Tester WebP Converter WebSocket Test Client HTTP Status Code Reference HTTP Status Code Reference HTTP Status Code Lookup HTTP Status Code Lookup Core Web Vitals Guide HTTP Methods Reference HTTP Security Headers Generator Web Vitals Scorer HTTP Header Analyzer Web Vitals Analyzer HTTP Security Headers Checker Core Web Vitals Budget Calculator API Request Builder HTTP Headers Inspector HTTP Status Code Reference PWA Manifest Generator Caddy Caddyfile Generator HTTP Cache-Control Builder WASM Module Explorer HTTP/2 Server Push Headers Builder Lighthouse Score Simulator Core Web Vitals Calculator Content Security Policy Builder HTTP Header Inspector WebAssembly Binary Inspector Web Vitals Budget Planner HTTP Cache Header Builder Prompt Injection Tester GCP Service Account Key Auditor Web Performance Checklist Image Optimizer Checklist AI System Guardian API Response Formatter & Analyzer API Response Mock Generator HTTP API Tester Color Blindness Simulator curl Command Builder .htaccess Generator HTTP Code Snippet Generator JWT Builder JWT Decoder nginx Config Generator Password Strength Checker Developer Utilities Service Worker Generator HTTP Mock Response Builder HMAC Generator CSP Header Builder AWS IAM Policy Validator Haproxy Config Validator WCAG Contrast Checker HTTP Cookie Parser HAR Diff Analyzer SBOM Generator JWT Debugger Pro Dockerfile Linter Bundle Size Estimator SSL Certificate Checker REST API Request Builder nginx Config Builder Mock Service Worker (MSW) API Mocking Guide API Response Mocker Docker Layer Optimizer Bundle Size Impact Calculator TTFB Analyzer Password Strength Analyzer JWT Decoder & Validator

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →