Skip to content
ع

Septertech Tools

CSP Header Generator

Build a Content-Security-Policy header to protect your site from XSS.

This tool runs entirely in your browser. Your data is never uploaded to our servers.

How would you rate this tool?

Be the first to rate

How to use

  1. Choose a starting point.
  2. Add the external sources your site uses.
  3. Start in test mode.
  4. Copy the policy into your server config.

About this tool

Builds a strict Content-Security-Policy with ready additions for Google Analytics, AdSense and any external sources you need, output for HTTP headers, Apache, Nginx and a meta tag, with a Report-Only test mode. It runs entirely in your browser, so nothing is uploaded — free and with no sign-up.

More tools