BreachHunter
Pricing Blog Log inSign up
● thermal huntscan engines onlineassessment only — no exploits
  1. Home
  2. Blog
  3. Website Security Cheat Sheet: Headers, TLS, Cookies and Exposed Files

Guides · ← All guides

Website Security Cheat Sheet: Headers, TLS, Cookies and Exposed Files

Published: November 23, 2026 · Reviewed November 2026 · 7 min read

One page, four checks, most of the findings.

The short version: send six security headers with sane values, serve TLS 1.2 or newer with a valid certificate, set the Secure, HttpOnly and SameSite flags on session cookies, and make sure none of your sensitive files — .env, .git, backups, config — answer on the public web. That is the whole sheet, and the rest of this page is the detail behind each line.

Why start with headers? In BreachHunter's own scan corpus as of 23 November 2026 (52 websites, 441 findings, published on our statistics page), security header misconfiguration alone was 297 of the 441 findings — about two in every three — so the first table below is where most sites should start.

The six response headers

These headers are instructions your server sends with every page. Browsers enforce them; attackers probe for their absence because each missing header leaves a known technique open. Values below are starting points a small site can adopt as written.

HeaderStarting valueWhat it prevents
Strict-Transport-Securitymax-age=31536000; includeSubDomainsProtocol downgrade — forces HTTPS for a year, so a visitor can never be silently dropped to plain HTTP.
Content-Security-Policydefault-src 'self' (then widen only what your pages need)Cross-site scripting and injected content — the browser loads scripts, styles and images only from sources you name.
X-Content-Type-OptionsnosniffMIME sniffing — stops the browser guessing a file's type and executing an upload as script.
Referrer-Policystrict-origin-when-cross-originURL leakage — full page addresses (which can carry tokens and search terms) are not sent to third-party sites.
X-Frame-OptionsDENY (or CSP frame-ancestors 'none')Clickjacking — your pages cannot be framed inside an attacker's page.
Permissions-Policycamera=(), microphone=(), geolocation=()Feature abuse — browser capabilities your site does not use are switched off for anything embedded in it.

One caution from the corpus: a header that is present but wrong still counts as a finding. A Content-Security-Policy of default-src * allows everything and protects against nothing; a Strict-Transport-Security max-age of a few seconds expires before it helps. BreachHunter's misconfigurations guide walks through the wrong-value cases server by server.

TLS: the certificate layer

Serve TLS 1.2 or 1.3 and disable anything older. Keep the certificate in date, issued for the exact hostname visitors use, and chained to a public root — a hostname mismatch or an expired certificate trains your visitors to click through warnings, which is the habit attackers rely on. Redirect every HTTP request to HTTPS so the encrypted path is the only path, and let the HSTS header above hold that line for returning visitors. If your site still answers on port 80 with real content instead of a redirect, that is a finding, not a preference.

Cookies: three flags

Every session cookie should carry three attributes. Secure means the cookie travels only over HTTPS. HttpOnly means page scripts cannot read it, which is what stands between a cross-site scripting slip and a stolen session. SameSite=Lax (or Strict, if your flows allow it) means other sites cannot ride the cookie into cross-site requests. A cookie missing any of the three is flagged in our scans because each flag closes a different, named attack.

Exposed files: the quiet findings

The second-largest class in our corpus, after headers, is exposure of things that were never meant to be public. Check that none of these answer with a 200 on your domain: environment files (.env and its variants, which hold live API keys and database passwords), version-control folders (.git, which can reconstruct your source code), backup archives (.zip, .tar.gz, .sql dumps named after your site or database), configuration files, and debug or phpinfo pages. BreachHunter's full check set covers 33 such paths; the pattern behind all of them is the same — a file that was convenient during development and forgotten at deployment. Deleting the file is step one; rotating any secret it contained is step two, because archive services may already hold a copy.

Ports and services

Your web server needs two ports open to the world: 80 (for the redirect) and 443. Everything else that answers publicly is attack surface with a justification to write down. Our scans test 23 common ports; the regular findings are database ports (3306, 5432, 27017), remote access (22 is normal for administration but should be key-only; 3389 should not be public), and forgotten staging services. If a port is open, someone will find it — the scanners looking for these do not sleep, and neither do the bots cataloguing them.

The ten-minute self-check

  1. Open your homepage over HTTPS and confirm the padlock shows no warning and the certificate names your exact domain.
  2. Request your homepage with a header viewer and confirm all six headers from the table are present with sane values.
  3. Try the HTTP version of your site and confirm it redirects to HTTPS instead of serving the page.
  4. Log in (or add something to a cart) and inspect the session cookie for Secure, HttpOnly and SameSite.
  5. Request /.env, /.git/HEAD, and a backup name such as /backup.zip on your own domain. Every one should be a 404 or 403.
  6. Check that no database or admin port answers publicly — your host's port-scan tool or our free scan will tell you.
  7. Confirm your error pages do not print stack traces, file paths or framework version banners.
  8. Look at the grade: run the free BreachHunter scan and read the findings against this sheet, item by item.

That is the same order our scan module guide follows: recon, ports, TLS, web audit, directory discovery, then the deeper app checks. The cheat sheet is the configuration layer of that list — the part you can verify yourself, for free, in minutes.

Frequently asked questions

What is the single most common website security misconfiguration?

Missing or misconfigured security response headers. In BreachHunter's own scan corpus (52 websites scanned as of 23 November 2026), security header misconfiguration accounted for 297 of 441 findings — about two in every three. The fix is configuration, not code: most sites can set all six headers in a few lines of server config.

Which security headers should every website send?

Six, as a working baseline: Strict-Transport-Security, Content-Security-Policy, X-Content-Type-Options, Referrer-Policy, X-Frame-Options (or the CSP frame-ancestors directive), and Permissions-Policy. The table on this page gives a sane starting value for each one.

How do I check my own site against this cheat sheet?

Work down the ten-minute self-check on this page, or run the free BreachHunter scan: it tests the headers, TLS, cookie flags, ports and exposed-file paths listed here from outside your server, the same way an attacker would find them, and reports what it finds with evidence.

Is a cheat sheet a substitute for a security assessment?

No. This sheet covers the externally visible configuration layer — the part anyone on the internet can check. It does not test authenticated areas, business logic, or code. It is the right first pass because this layer is where most findings actually are, and it is the layer a full assessment starts from.

Sources

  • BreachHunter scan statistics — our own corpus, 52 websites and 441 findings as of 23 November 2026, computed live from the same feed as our threat pulse: breachhunter.getingeniousai.com/statistics (accessed November 2026).
  • MDN Web Docs — web security and response header references (Strict-Transport-Security, Content-Security-Policy, X-Content-Type-Options, Referrer-Policy, Permissions-Policy): developer.mozilla.org (accessed November 2026).
  • OWASP — Secure Headers Project, the community reference for response header values and trade-offs: owasp.org (accessed November 2026).
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