Skip to content

CSP Analyzer

Parse Content-Security-Policy directives, highlight unsafe patterns, grade from A to F.

TL;DR:

CSP Analyzer parses a site's Content-Security-Policy header, validates syntax, assigns a grade A-F. Detects dangerous directives: unsafe-inline, unsafe-eval, wildcards in script-src. Produces migration guidance toward nonce-based CSP.

Save & track URLs you check Free account · 24/7 checks · alerts via Telegram, email, Slack — sign up to monitor any URL you test here.
Free Sign Up

What is Content Security Policy?

Content Security Policy (CSP) is an HTTP response header that tells browsers which resources (scripts, styles, images) are allowed to load. A well-configured CSP is one of the most effective defences against Cross-Site Scripting (XSS). This tool fetches the CSP header, parses every directive, highlights dangerous patterns like 'unsafe-inline' or wildcards, and assigns a grade from A (strict) to F (missing or broken).

Learn more

Frequently Asked Questions

What is Content-Security-Policy and why check it?

CSP is a security header that restricts script/style/font/iframe sources. Prevents XSS and data injection. The checker flags overly permissive directives (unsafe-inline, unsafe-eval, wildcards) and missing critical rules.

Automate this check

Set up continuous monitoring and get an alert when something breaks. No manual runs to remember.