HTTP headers

Content-Security-Policy validator

Analyze your CSP and find out if it protects against XSS.

Free, non-invasive check in seconds. No signup.

Scan my website for free

CSP tells the browser which origins may load scripts, styles and images.

Why it matters

Without CSP, a single XSS flaw can run malicious code in your users' browsers.

How to fix

Start with default-src 'self' and allow only the domains you use.

FAQ

Can CSP break my site?
Yes if too strict — test with Report-Only first.

Other free tools