BreachHunter
Pricing Blog Log inSign up
● thermal huntscan engines onlineassessment only — no exploits
  1. Home
  2. Blog
  3. Security Headers Missing? What Each Header Stops

Guides · ← All guides

Security Headers Missing? What Each Header Stops

Last updated: October 31, 2026 · Reviewed October 2026 · 7 min read

By the Ingenious AI team

The short answer: Browsers will enforce six defenses for your visitors — free — if your server simply asks. Content-Security-Policy blunts cross-site scripting, HSTS stops protocol downgrades, X-Frame-Options stops clickjacking, X-Content-Type-Options stops MIME-sniffing attacks, and Referrer-Policy and Permissions-Policy stop quieter leaks and device access. A missing header is rarely rated above MEDIUM, because the fix costs a line of configuration. Header set as checked by the BreachHunter engine, October 31, 2026.

Security headers are the best deal in web security: protections the browser vendors already built, shipped to every visitor, switched on by a single line in your server's response. They are also the finding owners dismiss fastest — "it's just a header" — right up until the class of attack that header exists to stop shows up in an incident report. Here is the exact set BreachHunter's web audit checks, what each one stops, and the fix, taken from the scan's own check definitions.

What does each header stop?

HeaderAttack it stopsIf missingThe fix (one line)
Content-Security-PolicyCross-site scripting and data injection — the browser refuses scripts and resources from sources you never approvedMEDIUMSend a CSP that whitelists the script, style and image sources your site actually uses
Strict-Transport-Security (HSTS)Protocol downgrade / SSL-stripping — an attacker forcing visitors onto plain HTTPMEDIUMStrict-Transport-Security: max-age=31536000; includeSubDomains on every HTTPS response
X-Frame-OptionsClickjacking — your site embedded invisibly inside an attacker's pageMEDIUMX-Frame-Options: DENY (or frame-ancestors in your CSP)
X-Content-Type-OptionsMIME-sniffing — browsers guessing a file's type and executing an upload as a scriptMEDIUMX-Content-Type-Options: nosniff on every response
Referrer-PolicyURL leakage — full page addresses, tokens included, sent to third-party sites in the Referer headerLOWReferrer-Policy: strict-origin-when-cross-origin (or stricter)
Permissions-PolicyDevice access by any script on the page — camera, microphone, geolocation requested without your intentLOWSend a Permissions-Policy disabling the features you do not use, e.g. camera=(), microphone=()

Source: SECURITY_HEADERS table, BreachHunter engine (app/pentest.py) — severity, explanation and fix text as the scanner reports them, read October 31, 2026.

Why is Content-Security-Policy the hard one?

Five of the six headers describe a single behavior and can be added in minutes. CSP describes your whole site: every origin your pages legitimately load scripts, styles, fonts and images from. Guess wrong and your own checkout breaks. That is why the standard rollout is report-only first — send Content-Security-Policy-Report-Only with your draft policy, collect a few days of violation reports, fix the allow-list, then enforce. It is also why CSP is worth the effort: when an attacker does find an injection point on your site, a strict policy is often the difference between a defaced comment and stolen sessions.

Why does HSTS come before the others on a login site?

Because of the first visit problem. A visitor who types your domain without HTTPS can be intercepted before the redirect — the classic SSL-strip. HSTS tells every returning browser "never speak to this site over HTTP again", and with includeSubDomains and preload it can cover the first visit too. If your site has a login, a checkout, or an admin panel, this is the header whose absence has the most direct line to credential theft. BreachHunter's TLS module reports it alongside your certificate — see how the TLS phase of an assessment works.

How do you check your own headers right now?

curl -I https://your-site.com

Read the response block: each of the six headers should appear by name. Or skip the squinting — the free BreachHunter scan checks all six, plus the HttpOnly, Secure and SameSite flags on your cookies, and returns each missing header with its fix written out. Where does this sit among everything else a scan finds? Headers are this-week work, not same-day emergencies — our triage guide explains the ordering: which findings to fix first.

Check your headers with the free scan →

Frequently asked questions

Are missing security headers dangerous on their own?

A missing header is not a breach — it is a declined protection. Each header switches on a browser-enforced defense against a whole class of attack. Sites are rarely compromised because a header was missing; they are compromised faster and worse when one was. That is why BreachHunter rates most missing headers MEDIUM: cheap to fix, real protection gained.

Which security header matters most?

Start with Strict-Transport-Security if you serve any login or payment page — it prevents protocol downgrade attacks. Then Content-Security-Policy, the strongest of the six against cross-site scripting, though it needs care: a too-strict CSP can break your own scripts, so roll it out in report-only mode first.

How do I check my site's security headers?

Run curl -I https://your-site.com and read the response headers, or run the free BreachHunter scan — its web audit checks all six headers plus your cookie flags and reports each missing one with its fix.

Will adding these headers break my site?

Five of the six are safe to add as-is for most sites. The exception is Content-Security-Policy: deploy it first as Content-Security-Policy-Report-Only, watch what it would have blocked, adjust the allow-list, then enforce.

A sane rollout order for the header set

You do not have to ship all six headers on the same afternoon. Start where the risk-to-effort ratio is best. X-Content-Type-Options: nosniff goes first: one line, breaks nothing, closes MIME-sniffing tricks. Referrer-Policy and a Permissions-Policy that switches off the sensors and payment handlers you do not use are nearly as free.

Framing protection comes next — frame-ancestors in CSP, or X-Frame-Options while the policy is young. HSTS waits until every page and subdomain is solidly on HTTPS, because the header is a promise your whole estate has to keep. CSP goes last and goes in report-only mode first, as its own section above explains. Ordered this way, a small team can land the full set in a week of coffee-break changes instead of one frightening deploy.

Whatever order you choose, re-check after platform changes. Headers live in server and CDN configuration, and migrations, host moves and CDN onboarding reset them silently — the report that showed six headers in March shows two in June, and nobody deleted anything on purpose. Reading your own headers after every infrastructure change takes one command and catches the regression while the change window is still open.

Sources

The references this guide stands on — standards, specifications and official documentation:

  • OWASP Secure Headers Project (2025) — the reference table of recommended header values.
  • MDN — Content Security Policy (2025) — the header in this set that takes real design work.
Share this: X · Facebook · LinkedIn · WhatsApp

Related guides

  • Website Security Test: What It Checks, What It Misses, and How to Read Yours · 9 min read
  • Website Security Cheat Sheet: Headers, TLS, Cookies and Exposed Files · 7 min read
  • What a Website Security Assessment Actually Tests · 10 min read
  • TLS/SSL Basics: What Your Certificate Says About Your Site · 8 min read
  • Common Website Misconfigurations (and How to Fix Them) · 11 min read
  • Reading Your First Pentest Report: From Score to Action · 9 min read
  • Deleted ≠ Gone: What the Wayback Machine Keeps After You Delete Your Secrets · 9 min read
  • SQL Injection in Plain English: How One Login Box Can Read Your Database · 9 min read
  • What Does a Website Security Scan Check? · 8 min read
  • Exposed .git Directory: What It Leaks and How to Check · 7 min read
  • How Much Does a Penetration Test Cost in 2026? · 7 min read
  • Website Security Checklist for Small Teams (60-second self-check) · 6 min read
  • Reading Your Scan Results: Which Findings Fix First? · 7 min read
  • Content-Security-Policy Missing: What CSP Does and How to Add It Safely · 8 min read
  • HSTS Missing: What Strict-Transport-Security Prevents · 7 min read
  • Clickjacking and X-Frame-Options: How Framing Attacks Work · 7 min read
  • Cookie Flags Explained: Secure, HttpOnly and SameSite · 8 min read
  • Exposed .env File: What Leaks, What Attackers Do Next, What You Do First · 8 min read
  • Directory Listing Enabled: What It Shows Attackers and How to Disable It · 7 min read
  • Mixed Content: Why Your HTTPS Page Still Loads Insecure Resources · 7 min read
  • Expired SSL Certificate: What Breaks, Why Renewal Fails, and How to Catch It Early · 7 min read
  • TLS 1.0 and 1.1 Still Enabled: Why Old Protocols Show Up as a Finding · 7 min read
  • Open Ports on a Web Server: Which Ones Should Never Face the Internet · 8 min read
  • No SPF or DMARC Record: How Missing Email Auth Exposes Your Website · 7 min read
  • Subdomain Takeover: How a Dangling DNS Record Lets Attackers Claim Your Name · 7 min read
  • Forgotten Subdomains: The Staging Site You Forgot Is Still Public · 7 min read
  • WordPress Security Scan: The Exposures an Assessment Finds on WordPress Sites · 8 min read
  • Exposed Backup Files: .bak, .old and .zip Files Sitting in Your Web Root · 7 min read
  • phpinfo() in Production: The Diagnostic Page That Maps Your Server for Attackers · 7 min read
  • Server Version Banners: Why Your Headers Point Attackers to the Right Exploit · 7 min read
  • End-of-Life Software: Running a Server Stack Nobody Patches Anymore · 7 min read
  • CORS Misconfiguration: When Cross-Origin Sharing Opens Your Data to Any Site · 7 min read
  • Open Redirect Vulnerability: How Your Own Domain Sends Visitors to a Phishing Page · 7 min read
  • Dangerous HTTP Methods: What TRACE, PUT and DELETE Should Never Answer · 7 min read
  • Host Header Injection: Poisoned Reset Links and Cache Attacks Explained · 7 min read
  • What Is security.txt? The Small File That Lets Researchers Reach You · 6 min read
  • Admin Panel Exposed to the Internet: What an Assessment Flags and Why · 7 min read
  • phpMyAdmin Exposed: Why This Database Door Is a Prime Brute-Force Target · 7 min read
  • Spring Boot Actuator Exposed: Environment Dumps, Heap Leaks and Shutdown Endpoints · 7 min read
  • Debug Console in Production: The Finding That Can Become Code Execution · 7 min read
  • Exposed AWS Credentials File: The /.aws/credentials Finding, Explained · 7 min read
  • Referrer-Policy and Permissions-Policy: The Two Quiet Headers You Are Probably Missing · 6 min read
  • Exposed package.json: Your Dependency List Is a Recon Gift · 6 min read
  • DNS Zone Transfer Open (AXFR): Handing Out Your Entire DNS Map · 6 min read
  • Certificate Name Mismatch: Why the Cert Does Not Match Your Domain · 6 min read
  • Website Security Assessments for Agencies: Checking Every Client Site Without a Security Team · 8 min read
  • SaaS Security Questionnaires: What Buyers Check About Your Website First · 8 min read
  • Ecommerce Website Security: The Exposures That Put Your Checkout at Risk · 8 min read
  • Small Business Website Security: The Checks That Matter at Your Size · 7 min read
  • How to Prepare for a Website Security Assessment (and Read the Report Calmly) · 7 min read
  • Vulnerability Severity Explained: What Critical, High, Medium and Low Actually Mean · 7 min read
  • Retest After Fixes: How to Prove a Security Finding Is Actually Closed · 7 min read
  • Security Assessment vs Vulnerability Scan vs Pentest: What Is the Difference? · 7 min read
  • How Long Does a Website Security Scan Take? · 6 min read
  • Website Security Drift: Why Last Month's Clean Scan Is Already Out of Date · 7 min read
  • WordPress Site Keeps Getting Hacked After Cleanup · 8 min read
  • Google Blacklist Removal: Getting the Red Warning Off Your Site · 8 min read
  • VirusTotal Flagged My Site: How to Clear a False Positive · 8 min read

Related from the Ingenious AI suite

  • Ingenious AI — the full suite of security and compliance tools
  • DomainGuard — domain impersonation and typosquat defense
  • See BreachHunter pricing →
BreachHunter · by Ingenious AI · read-only security assessment — scan only targets you own or are authorized to test
About · Contact · Blog · vs Intruder · Privacy · Terms · Security · Threats · Nextcloud Check · Verify Evidence · Help · Redeem
More from Ingenious AI:
DisclosureGuard — AI disclosure compliance · Vibe-Code Audit — AI code security scanner · Rogue-Agent Defense — AI agent firewall · ChatBreaker — AI chatbot red-teaming · ModelMinder — AI model deprecation radar · TermsWatch — AI vendor terms monitor · Agent Flight Recorder — tamper-evident agent audit trails · Agent Auth Gateway — agent credentials & kill switch · DomainGuard — domain impersonation defense · Agent Passport — Know-Your-Agent registry · AgentGate — agent policy publisher · AgentBlock — AI agent & crawler access control · BoundaryVault — agent log forensics · Agentic Receipts — verifiable agent payment receipts · EvalEgress — eval-to-production exposure scan · HomeShield MCP — home AI server exposure check · WireWatch — payment verification ceremony · ADMT Notice Kit — AI decision notice compliance · DueLadder — human-approved invoice chasing · Agent-Ready Store Audit — can AI agents buy from your store · ContentCraft AI — content operations · AgentReady — agent-readiness checks · AI Audit Exchange — AI audit exchange · CallbackShield — callback & webhook protection · CompanionGuard — AI companion safety guardrails · CRAClock — EU Cyber Resilience Act deadline clock · EInvoice Translator — e-invoice format translator · GEOFixer — geo & local listing fixes · MandateGuard — agent spending mandates · OutcomeMeter — AI outcome measurement · ProvenanceGuard — content provenance checks · ReviewDesk — review response desk · ReviewProof — verified review evidence · TakedownCoop — coordinated phishing takedowns · TrustGate — trust & safety gating · BreachHunter — website penetration testing · All 36 platforms — the Ingenious AI portfolio

We use cookies. Necessary cookies keep the site working. With your permission we also use analytics cookies (to understand usage) and marketing cookies (for ads). Read our privacy policy.

NecessaryRequired for login, security and core features. Always on.
AnalyticsHelps us understand which pages are useful.
MarketingUsed for advertising and measuring ad performance.

    No match. Try “pricing”, “php2shell” or “contact” — or press Esc to close.

    ↑↓ navigate · Enter open · Esc close