Free Tool — No Login Required

CSP Header Scanner

Enter any public URL and instantly check its Content Security Policy header. Get a security grade, XSS risk assessment, and actionable fixes — in seconds.

Only publicly accessible URLs can be scanned. Private/intranet URLs are blocked for security.

Instant Scan

Fetches live HTTP headers from any public URL in real time.

Deep Analysis

Checks every directive for XSS risks, unsafe values, and missing protections.

Actionable Results

Get clear recommendations to fix each issue, prioritized by severity.

How to Check a Website's Content Security Policy

A website's CSP is an HTTP response header named Content-Security-Policy. This scanner fetches one public URL, reads that header, and compares it with the hosts in that page's HTML: scripts, stylesheets, frames, images, and forms. It shows the first three blocked hosts on the page. The full list is emailed if you ask. It does not run JavaScript.

You can also read the header yourself in DevTools (Network tab, the document request, Response Headers). Last updated November 13, 2026.

Our scanner makes a server-side HTTP request to your URL, extracts the CSP header, and runs the same analysis as our CSP Analyzer ↗. Results include a security grade (A–F), a list of all directives with risk flags, and specific recommendations.

Why Your Site Needs a CSP

The OWASP Top 10 (2021) lists Injection as A03 ↗. Cross-site scripting is one of those injection risks. A Content-Security-Policy header tells the browser to refuse resources the policy does not name. The header does not remove the bug that injected the resource.

Mozilla's Mozilla Observatory ↗ is another excellent free tool for checking overall HTTP security headers. The Security Headers scanner by Scott Helme ↗ is also widely used in the security community. For in-depth reading, consult the MDN Content Security Policy guide ↗.

The PortSwigger Web Security Academy article on CSP ↗ is an excellent technical deep-dive into how attackers can bypass a weak CSP — essential reading for developers who want to understand what they're protecting against.

Frequently asked questions

Will enforcing this CSP break my site?

A header scan cannot promise that. It compares one URL’s HTML with the Content-Security-Policy header and lists hosts that policy would block. It does not run JavaScript, so a tag manager can still load hosts this page never saw.

What is the difference between report-uri and report-to?

report-uri is the legacy CSP directive that posts a csp-report body to a URL. report-to names a Reporting API group. CSP Radar collects report-uri reports. A report-to group is not delivered to CSP Radar.

Does a CSP grade mean the site is safe?

No. The grade describes the header on this response. It does not mean the site is safe to enforce, and it does not see other routes, consent banners, or scripts injected after the HTML arrives.

Other Free CSP Tools