Check HTTP security headers, CSP and HSTS
Scan any public URL or paste curl -I response headers to flag XSS and framing gaps. Check OWASP headers, detect <meta> CSP tags, compute SHA-256 script hashes, and export configs.
Ready to scan a public URL or audit pasted HTTP headers.
Paste mode: in-tab · Live URL: no-store
- CSP directives
- 11 / 11
- OWASP HTTP headers
- 7 / 7
- SHA-256 script hash
- WebCrypto
- Audit source
- Local
Evaluating policy
Evaluating headers
Live inline digest ready
Paste mode · stays in tab
Scan a live URL or paste response headers
Enter any public URL to fetch its live headers and <meta> CSP tag. Or paste curl -sI output to keep localhost checks inside this tab.
Same-origin CSP with SHA-256 script hash, HSTS preload, nosniff, and locked permissions.
Column 1: CSP directive audit
11 directives- default-srcWAIT
Waiting for input...
Sets fallback origin rules for fetch directives.
- script-srcWAIT
Waiting for input...
Controls JavaScript sources, nonces, and SHA-256 hashes.
- style-srcWAIT
Waiting for input...
Restricts stylesheet origins and inline style blocks.
- connect-srcWAIT
Waiting for input...
Limits fetch, XHR, WebSocket, and sendBeacon targets.
- img-srcWAIT
Waiting for input...
Limits image origins and inline data URIs.
- font-srcWAIT
Waiting for input...
Restricts web font file origins.
- object-srcWAIT
Waiting for input...
Blocks legacy plugin embeds when set to none.
- base-uriWAIT
Waiting for input...
Never inherits from default-src; locks <base> tags.
- frame-ancestorsWAIT
Waiting for input...
Never inherits from default-src; stops clickjacking.
- form-actionWAIT
Waiting for input...
Never inherits from default-src; restricts form posts.
- upgrade-insecure-requestsWAIT
Waiting for input...
Rewrites http:// subresource URLs to https://.
Column 2: OWASP HTTP headers
7 checks- Strict-Transport-SecurityWAIT
Waiting for input...
Pins HTTPS in browsers for at least one year.
- X-Content-Type-OptionsWAIT
Waiting for input...
Requires nosniff to stop MIME type guessing.
- X-Frame-Options & framingWAIT
Waiting for input...
Pairs DENY or SAMEORIGIN with CSP frame-ancestors.
- Referrer-PolicyWAIT
Waiting for input...
Trims cross-origin URL paths in Referer headers.
- Permissions-PolicyWAIT
Waiting for input...
Turns off camera, microphone, and geolocation APIs.
- Cross-Origin-Opener-PolicyWAIT
Waiting for input...
Isolates window.opener from cross-origin popups.
- Server & X-Powered-ByWAIT
Waiting for input...
Flags headers that expose framework or OS versions.
WebCrypto SHA-256 CSP hash calculator
Paste the inner contents of an inline <script> or <style> tag to compute its exact 'sha256-...' source token and drop 'unsafe-inline'.
59 UTF-8 bytes hashed
Computed CSP token
Computing SHA-256...
Export hardened response headers
Preserves your CSP, fills missing OWASP baselines, and omits X-Powered-By.
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
Keep default-src 'self' clean while stopping attackers
Response headers stop browser-side XSS, clickjacking, and MIME sniffing. Third-party bot widgets often force teams to add outside domains to script-src and frame-src. camada serves its /_cam/b.js beacon and 16-bit SHA-256 challenge page from your own origin. Your default-src 'self' policy stays clean. Watchkeeper then catches credential stuffing and scrapers in your backend.
Grab your live headers from a terminal
Run curl -sSI against localhost, staging, or production and paste the output above.
curl -sSI https://your-app.example.comContent-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; font-src 'self'; connect-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; form-action 'self'; upgrade-insecure-requests1
Zero third-party CAPTCHA hosts in your CSP
External puzzle widgets force outside domains into script-src and frame-src. camada serves /_cam/b.js and its beacon route on your own domain. Your default-src 'self' policy needs zero third-party hosts.
2
Self-contained 16-bit SHA-256 challenge page
On a challenge verdict, your SDK serves a small first-party HTML page. It sets Cache-Control: no-store and loads zero external scripts or fonts. Passing sets an HttpOnly cookie on your own origin.
3
Headers guard the browser; Watchkeeper guards your routes
Strict headers stop XSS and framing in real browsers. Credential stuffers and scrapers ignore your CSP and hit your routes. camada links browser checks with track() outcomes in memory, and fails open.
- CSP generator
- Website security & cookie scanner
- Live CORS & preflight checker
- Live bot signal test
- User-Agent & Client Hints checker
- robots.txt & llms.txt checker
- All 14 frameworks
- Compare with WAFs and CAPTCHAs
SDK guides: Cloudflare, no code · Hono on Workers · Python · Go SDK · PHP · Ruby · Java · .NET
CSP directive and OWASP header reference
Three directives in Content Security Policy never inherit from default-src: base-uri, frame-ancestors, and form-action. Always declare each one on HTML responses.
1. Content-Security-Policy directives
Baseline values and common XSS or framing weaknesses across core CSP directives.
| Directive | Recommended baseline | Risk when missing or permissive |
|---|---|---|
| default-src | 'self' (or 'none' on JSON APIs) | Missing or * lets unconfigured resource types load from any host. |
| script-src | 'self' plus per-request nonces or 'sha256-...' hashes | Adding 'unsafe-inline', 'unsafe-eval', *, or data: lets XSS payloads run. |
| style-src | 'self' (or hashed inline styles) | Wildcard * or injected CSS can exfiltrate page attributes and tokens. |
| object-src | 'none' | Leaving object-src open allows <object> and <embed> execution gadgets. |
| base-uri | 'self' or 'none' | Does not inherit from default-src. An injected <base> tag hijacks relative scripts. |
| frame-ancestors | 'none' or 'self' | Does not inherit from default-src. Missing rules allow iframe clickjacking. |
| connect-src | 'self' plus explicit API origins | Wildcard * lets injected scripts send stolen data to outside hosts. |
| form-action | 'self' | Does not inherit from default-src. Injected forms can post logins elsewhere. |
| upgrade-insecure-requests | upgrade-insecure-requests (valueless token) | Mixed http:// assets can downgrade or break on HTTPS pages. |
2. OWASP HTTP security headers
Response headers that harden TLS transport, MIME handling, framing, referrers, and browser APIs.
| Header | Recommended value | Attack class mitigated |
|---|---|---|
| Strict-Transport-Security | max-age=63072000; includeSubDomains; preload | Blocks SSL stripping and plain HTTP downgrade attacks. |
| Content-Security-Policy | default-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none' | Stops cross-site scripting (XSS), rogue frames, and data leaks. |
| X-Content-Type-Options | nosniff | Stops browsers from running text or image uploads as script. |
| X-Frame-Options | DENY (or SAMEORIGIN alongside frame-ancestors) | Gives legacy browsers a fallback defense against clickjacking. |
| Referrer-Policy | strict-origin-when-cross-origin (or no-referrer) | Keeps private URL paths and query tokens out of cross-site Referer headers. |
| Permissions-Policy | camera=(), microphone=(), geolocation=() | Blocks embedded or injected code from reading device sensors. |
| Cross-Origin-Opener-Policy | same-origin | Severs window.opener links against cross-window XS-Leak attacks. |
Questions about CSP and HTTP headers
Building an app with logins, signups, or a checkout? Read our security overview or check plans and limits.
- What does Content-Security-Policy protect against?
- Content-Security-Policy tells browsers which script, style, frame, and network origins may load. A strict policy blocks injected XSS scripts from running. It also blocks stolen data from leaving for an attacker host.
- Why does unsafe-inline weaken script-src?
- Adding 'unsafe-inline' lets browsers run any inline <script> tag or event attribute. One HTML injection bug then gives an attacker full page access. Use per-request nonces or 'sha256-...' hashes instead.
- Do I still need X-Frame-Options if I set CSP frame-ancestors?
- Modern browsers enforce CSP frame-ancestors 'none' or 'self'. They ignore X-Frame-Options when you set frame-ancestors. Many teams still send X-Frame-Options: DENY as a fallback for old clients.
- What does X-Content-Type-Options: nosniff do?
- Without nosniff, browsers may guess that an uploaded file holds HTML or script. That file can then run inside your origin. X-Content-Type-Options: nosniff makes browsers obey your exact Content-Type header.
- Do live URL scans or localhost pastes store my headers or cookies?
- Paste mode runs in your tab, so localhost headers stay on your machine. Live URL scans check public ports 80 and 443 from our Worker. Our Worker blocks private IPs, strips cookie values, and sends Cache-Control: no-store.
Use it from an AI agent
This page is also Markdown at /tools/security-headers.md. Agents can also run the check itself, without the form.
audit_cspon the MCP server at https://www.camada.app/mcp, and in this tab through WebMCPTakes
policy, json_api?. Audit a Content-Security-Policy: a header value, a full "Content-Security-Policy: ..." line or a <meta> tag. Returns a row per key directive (ok, warn or info) with the reason, the warnings with fixes, any duplicated directives, and the policy as a header, a Report-Only header and a meta tag. Same rules as https://www.camada.app/tools/csp-generator and /tools/security-headers.
The MCP server needs no key. Every agent tool on this site is listed in the server card and on the tools page.
Related tools
- CSP generator
Answer a few questions and get a Content-Security-Policy header, a Report-Only version, and a meta tag. Strict by default.
- Website security check
Enter a URL to trace HTTPS redirects, check CSP and OWASP headers, and audit cookie flags. Also checks robots.txt, llms.txt, and security.txt.
- CORS checker
Run a live OPTIONS preflight with a test Origin, or paste curl headers. Spot reflected origin leaks, wildcard credential bugs, and missing Vary headers.
Protect your routes without bloating your CSP.
Install the SDK on the Free plan to score 100,000 events a month with no card. Turn on blocks and SHA-256 challenges on Starter ($59/month) or Growth ($249/month).
Free needs no card. A 14-day trial of Starter or Growth needs a card. Nothing is charged today. Cancel before the trial ends (the date is shown in the app) and you pay nothing. Otherwise the plan's monthly price starts on day 15.