Content Security Policy Generator (CSP Scanner)

Use our free Content Security Policy Generator and CSP Scanner to automatically create secure, optimized CSP headers for your website. This content security policy scanner doubles as a CSP builder so you can review, edit, and export a policy tailored to real site behavior.

Enter a URL and hit Scan to begin.

What This CSP Generator Does

This CSP Generator loads your website in a secure, headless browser and observes real network activity. The resulting Content Security Policy reflects actual site behavior, reducing breakage and improving protection against XSS attacks.

Want background on CSPs? See our CSP FAQ or review our privacy policy.