Security headers generator

Generate HTTP security headers for the protections you want to enable on your site.

Preset

Strict-Transport-Security (HSTS)

Enable X-Content-Type-Options: nosniff

Referrer-Policy

One directive per line or separated with commas.

HTTP headers

HTTP headers

Nginx configuration

Apache configuration