All Tools

Security Headers Builder

Draft HSTS and related security headers for Nginx, Apache, or Cloudflare. This page does not publish the headers.

31536000 is one year.
Leave preload off until HSTS has been stable on every subdomain.

Draft explained

This draft has 5 headers for Nginx. The lines stay in the draft below. Nothing was published.

Publishing these lines is a separate step on your server or CDN. Check the live response after you publish.

HSTS

Strict-Transport-Security is included for 365 days, including subdomains.

nosniff

X-Content-Type-Options is nosniff.

SAMEORIGIN

X-Frame-Options is SAMEORIGIN.

Referrer policy

Referrer-Policy is strict-origin-when-cross-origin. The raw header stays in the draft.

Permissions policy

Permissions-Policy turns camera, microphone, and geolocation off. The raw header stays in the draft.

Check live security headers after you publish the draft yourself. These builders do not publish DNS, do not change headers, and do not start Mail Watch.

What This Tool Checks

  • HSTS max-age, includeSubDomains, and preload
  • X-Content-Type-Options, X-Frame-Options, and Referrer-Policy
  • A Permissions-Policy draft
  • Copy-paste lines for Nginx, Apache, or Cloudflare

Best For

Best for operators who want a header draft for one server before they change the live response.

What To Do Next

Publish the lines on your server or Cloudflare, then check the live response.