Free Security Tool

HTTP Security Headers,Configured Visually

Toggle headers on, set your options, and get ready-to-paste configs for Nginx, Apache, or Next.js. No guessing. No docs diving.

🛡️

All Major Headers

CSP, HSTS, X-Frame-Options, Referrer-Policy, Permissions-Policy, and CORP — all in one place.

📋

3 Output Formats

Copy as Nginx, Apache, or Next.js headers() config — ready to paste without editing.

🔒

Security Score

See your security posture improve in real-time as you enable each header.

Security Score100% — Strong

Configure Headers

Strict-Transport-Security

Forces HTTPS for this domain for the configured duration. Enable only after your site is fully on HTTPS.

max-age (seconds)

X-Frame-Options

Prevents your page from being embedded in iframes on other origins. Stops clickjacking attacks.

X-Content-Type-Options

Prevents browsers from MIME-sniffing responses. Always set this to nosniff.

Referrer-Policy

Controls how much referrer information is included with cross-origin requests.

Cross-Origin-Opener-Policy

Isolates your browsing context from cross-origin windows, preventing cross-origin info leaks.

Cross-Origin-Resource-Policy

Prevents other origins from reading your resources. Defends against Spectre-style side-channel attacks.

Content-Security-Policy

Controls which resources the browser can load. Most powerful security header — tune carefully before deploying.

default-src

script-src

style-src

img-src

font-src

connect-src

frame-ancestors

Permissions-Policy

Restrict which browser features are available on this page. Unchecked features are blocked.

Output

nginx.conf
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; connect-src 'self'; frame-ancestors 'none'" always;
add_header Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=(), usb=(), fullscreen=*" always;
add_header Cross-Origin-Opener-Policy "same-origin" always;
add_header Cross-Origin-Resource-Policy "same-origin" always;

Active Headers (8)

Strict-Transport-Security

max-age=31536000; includeSubDomains

X-Frame-Options

SAMEORIGIN

X-Content-Type-Options

nosniff

Referrer-Policy

strict-origin-when-cross-origin

Content-Security-Policy

default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; connect-src 'self'; frame-ancestors 'none'

Permissions-Policy

camera=(), microphone=(), geolocation=(), payment=(), usb=(), fullscreen=*

Cross-Origin-Opener-Policy

same-origin

Cross-Origin-Resource-Policy

same-origin

Frequently Asked Questions

Everything you need to know about Security Headers Generator.