CSP Builder · runs in your browser

CSP Builder for Apache, Nginx and HTML

Build a Content Security Policy step by step, see the risk of each choice and copy it as an Apache, Nginx or meta tag snippet.

Scripts
Styles, images, fonts
Connections and frames
Hardening

Your policy


      
    apache.htaccess or virtual host

    Start in report-only mode, watch the browser console for blocked resources, then enforce. Test Apache with apachectl configtest and Nginx with nginx -t.

    Read the background