toolsko

Choose your language

ToolsKo is written in English. Prefer another language? Open a translated version of this public page.

Browser language suggestion: English. You can choose any language below.

Translation opens in a new tab using Google Translate. It receives this public page URL. Automatic translations may contain mistakes; use the original English page for tool inputs, downloads, and generated documents.

Your choice is remembered on this browser when storage is available. Use Language in the header to change it.

Security Headers Generator (CSP, HSTS)

Generate HTTP security headers (Content-Security-Policy, HSTS, X-Frame-Options…) for Nginx, Apache, Next.js or Cloudflare.

Tool inputs stay in your browser · optional AI search sends your query

Good to know: Security headers tell browsers to block common attacks like clickjacking and script injection. Start CSP in “report only” mode, check the browser console for blocked items, then switch it on.

How to use it (step by step)

  1. 1Choose your options: “Where to add them”, “Content-Security-Policy”, “CSP mode”, “HSTS (force HTTPS)”, “Can other sites put you in an iframe?”.
  2. 2Press “Generate headers”.
  3. 3Copy the result with the Copy button. Press the button again for a fresh result.

Words to know

Nginx / web server
Software that receives visitors and sends them your pages or forwards them to your app.
Security headers (CSP, HSTS)
Instructions your server sends to browsers to block attacks. CSP limits where scripts can load from; HSTS forces HTTPS.

More in Developer