Skip to content

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

Evaluating policy

OWASP HTTP headers
7 / 7

Evaluating headers

SHA-256 script hash
WebCrypto

Live inline digest ready

Audit source
Local

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.

Try:
Protected by camada 16-bit SHA-256 proof-of-work · 0 third-party scripts · How it works
Local presets:

Same-origin CSP with SHA-256 script hash, HSTS preload, nosniff, and locked permissions.

Pass: meets strict OWASP baseline Info: hardening note or optional header Flag: XSS, clickjacking, downgrade, or leak risk

Column 1: CSP directive audit

11 directives
  • default-src
    WAIT

    Waiting for input...

    Sets fallback origin rules for fetch directives.

  • script-src
    WAIT

    Waiting for input...

    Controls JavaScript sources, nonces, and SHA-256 hashes.

  • style-src
    WAIT

    Waiting for input...

    Restricts stylesheet origins and inline style blocks.

  • connect-src
    WAIT

    Waiting for input...

    Limits fetch, XHR, WebSocket, and sendBeacon targets.

  • img-src
    WAIT

    Waiting for input...

    Limits image origins and inline data URIs.

  • font-src
    WAIT

    Waiting for input...

    Restricts web font file origins.

  • object-src
    WAIT

    Waiting for input...

    Blocks legacy plugin embeds when set to none.

  • base-uri
    WAIT

    Waiting for input...

    Never inherits from default-src; locks <base> tags.

  • frame-ancestors
    WAIT

    Waiting for input...

    Never inherits from default-src; stops clickjacking.

  • form-action
    WAIT

    Waiting for input...

    Never inherits from default-src; restricts form posts.

  • upgrade-insecure-requests
    WAIT

    Waiting for input...

    Rewrites http:// subresource URLs to https://.

Fix this policy in the CSP generator

Column 2: OWASP HTTP headers

7 checks
  • Strict-Transport-Security
    WAIT

    Waiting for input...

    Pins HTTPS in browsers for at least one year.

  • X-Content-Type-Options
    WAIT

    Waiting for input...

    Requires nosniff to stop MIME type guessing.

  • X-Frame-Options & framing
    WAIT

    Waiting for input...

    Pairs DENY or SAMEORIGIN with CSP frame-ancestors.

  • Referrer-Policy
    WAIT

    Waiting for input...

    Trims cross-origin URL paths in Referer headers.

  • Permissions-Policy
    WAIT

    Waiting for input...

    Turns off camera, microphone, and geolocation APIs.

  • Cross-Origin-Opener-Policy
    WAIT

    Waiting for input...

    Isolates window.opener from cross-origin popups.

  • Server & X-Powered-By
    WAIT

    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.

terminal · curl headers
curl -sSI https://your-app.example.com
http · same-origin CSP
Content-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-requests

1

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.

See how first-party bot detection works

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.

Read the SHA-256 challenge specification

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.

Review camada security and fail-open design

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.

Content-Security-Policy directive reference
DirectiveRecommended baselineRisk 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-...' hashesAdding '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 originsWildcard * 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-requestsupgrade-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.

OWASP HTTP security response headers reference
HeaderRecommended valueAttack class mitigated
Strict-Transport-Securitymax-age=63072000; includeSubDomains; preloadBlocks SSL stripping and plain HTTP downgrade attacks.
Content-Security-Policydefault-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'Stops cross-site scripting (XSS), rogue frames, and data leaks.
X-Content-Type-OptionsnosniffStops browsers from running text or image uploads as script.
X-Frame-OptionsDENY (or SAMEORIGIN alongside frame-ancestors)Gives legacy browsers a fallback defense against clickjacking.
Referrer-Policystrict-origin-when-cross-origin (or no-referrer)Keeps private URL paths and query tokens out of cross-site Referer headers.
Permissions-Policycamera=(), microphone=(), geolocation=()Blocks embedded or injected code from reading device sensors.
Cross-Origin-Opener-Policysame-originSevers 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_csp on the MCP server at https://www.camada.app/mcp, and in this tab through WebMCP

    Takes 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.

All free tools

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.