Cookie __Secure-/__Host- Prefix Validator
Validate Set-Cookie headers against __Secure- and __Host- prefix rules from RFC 6265bis (Secure, Domain, Path).
—
The prefixes that make a cookie harder to forge
A session cookie can be overwritten by a compromised subdomain or over a plain HTTP connection, even when the main site is configured properly. The __Secure- and __Host- prefixes exist to shut that door: when a cookie name starts with one of them, the browser only accepts it if certain conditions are met, and silently refuses it otherwise.
Paste one or more Set-Cookie headers, one per line, and the page checks each rule. For __Secure-, the Secure attribute is enough. For __Host-, the stricter of the two, three requirements apply at once: Secure present, Path equal to a single slash, and Domain absent. That combination is what binds the cookie to the exact host that set it, with no subdomain able to create or replace it.
The browser's refusal produces no visible error — the cookie simply does not appear, and the symptom is a login that will not stick with nothing in the console. That is why it pays to check the header before shipping. A cookie without a prefix is reported as such here: not an error, just no additional protection, and the validation limits itself to saying so.
Frequently asked questions
Is the prefix part of the cookie name?
Why does __Host- forbid Domain?
Does this replace HttpOnly and SameSite?
Related Tools
IPv6 CIDR Visual Explainer
Explain an IPv6 prefix visually: hex breakdown, address count, expanded/compressed range — quick reference for SREs.
Clear-Site-Data Header Builder
Build a Clear-Site-Data header (cache, cookies, storage, executionContexts) — useful on logout to wipe origin data.
Secure Token Generator
Generate cryptographically secure random tokens (alphanumeric, hex or base64) in your browser. Ideal for API keys, secrets, passwords and unique IDs.
Hill Cipher 2×2
Encrypt text with a 2×2 matrix mod 26 (Hill cipher) — algebraic explanation and key invertibility check.
Passphrase Generator
Generate strong, memorable passphrases made of random words. Easy to remember and hard to guess.
COOP / COEP Headers Builder
Generate the COOP and COEP HTTP headers (Cross-Origin Opener/Embedder Policy) to isolate your origin. Required to safely use features like SharedArrayBuffer.