Webmaster Tools

Security Headers Generator

Generate high-security CSP, HSTS, and X-Frame-Options headers.

Content Security Policy (CSP)
HSTS (HTTP Strict Transport Security)
Other Security Headers
Generated Configuration
.htaccess Output

How to use Security Headers Generator

1

Configure security headers

Enable and configure Content Security Policy, HSTS, and other security headers for your website.

2

Review the generated code

Check the .htaccess or Nginx configuration that will be generated based on your settings.

3

Add to your server

Copy the generated configuration and add it to your .htaccess file or Nginx server block.

Frequently Asked Questions