Tink, the Tinkkit robotTinkkit
← All toolsSecurity›Web & Email Safety

Security Headers & CSP Generator

Build HTTP security headers including Content-Security-Policy, HSTS, X-Frame-Options and Referrer-Policy, ready to paste into Nginx, Apache or Netlify.

Tip from Tink: Roll out a new CSP on a test site first.

Content-Security-Policy sources

Raw headers
Nginx
Netlify / Cloudflare Pages _headers
Apache .htaccess

Test a strict CSP on a staging site first; it can block analytics, ads or embedded videos until you add their domains.

Advertisement

How to use the Security Headers & CSP Generator

  1. Tick the headers you want.
  2. Adjust the CSP sources.
  3. Copy the version for your server.

Everything runs in your browser. Nothing you enter is uploaded.