Skip to Content

Free CSP Analyzer

Paste a Content-Security-Policy: get its directives decoded and its weaknesses flagged.

  • Processed in your browser
  • 5 free uses a day, 50 with a free account
  • No watermark
  • Updated

Use the CSP Analyzer

What is a CSP Analyzer?

A CSP can look impressive while protecting nothing: script-src with unsafe-inline quietly re-opens the XSS door the policy was meant to close.

Paste any policy for a directive-by-directive breakdown with the classic weaknesses flagged: unsafe-inline, unsafe-eval, wildcards, missing default-src, http: sources.

Frequently asked questions

Why is unsafe-inline so bad?

It allows inline <script> blocks: exactly what injected XSS payloads are. Nonces or hashes let your own inline scripts run without opening that door.

What does default-src do?

It is the fallback for every fetch type you didn’t list. Without it, anything unlisted is unrestricted.

How do I deploy CSP safely?

Start with Content-Security-Policy-Report-Only, watch violation reports, tighten, then enforce.

Does this tool fetch my site?

No: you paste the policy; analysis is local. Use the Security Headers Checker to fetch it.

Findings are the easy half.

BitsSolved builds and deploys products with these defaults set from the start: headers, cookies, transport and the server configuration underneath them.

Tell us what you need built.

Send a written enquiry and we reply by email with questions. A call is optional, and free. Then you get the scope in writing and a fixed quote for the first phase.

Based inTamil Nadu, India
ProcessWritten first, a call only if you want one