Security headers generator
Pick the protections you need and copy ready-made configuration for your host.
Security & domainGeneratorFree
Security headers generatorRuns in your browser
/* Strict-Transport-Security: max-age=31536000; includeSubDomains X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN Referrer-Policy: strict-origin-when-cross-origin Permissions-Policy: camera=(), microphone=(), geolocation=()
What you’ll get
A ready-to-use file, no code needed.
- A live preview as you fill it in
- Copy or download in one click
- Hand it to your developer, or paste it in yourself
Example result
_headers
Strict-Transport-Security: max-age=31536000Content-Security-Policy: default-src 'self'X-Content-Type-Options: nosniffReferrer-Policy: strict-origin-when-cross-origin
How it works
- Fill in the detailsSigned in, we pre-fill them from your latest report.
- Preview the resultSee exactly what will be published as you type.
- Copy or downloadPaste it into your site, or send it to your developer.
Why it matters
Security headers tell browsers to force HTTPS, refuse to be framed by other sites and stop guessing file types. They block whole classes of attack with a few lines of config.
Turn on HSTS only once every page works on HTTPS, and test a Content-Security-Policy before enforcing it.
Questions
Can headers break my site?
A strict Content-Security-Policy can block scripts you rely on, so test it first. The other headers here are safe for almost every site.
How do I check they work?
Run a free Pagelyt scan after deploying: the Security area lists any header that is still missing.
More free tools
- Security & domainFreeDomain age checkerRegistration date, age, expiry and registrar for up to 10 domains.Try it free
- ✓example.com15 years old
- !ExpiresIn 22 days
- •RegistrarExample Registrar Ltd
- AI visibilityFreeAI bot access checkerSee whether GPTBot, ClaudeBot, PerplexityBot and 11 other AI crawlers can reach your site.Try it free
- ✓GPTBotAllowed
- ✓ClaudeBotAllowed
- ✕PerplexityBotBlocked in robots.txt
- AI visibilityFreellms.txt generatorA short guide that helps AI assistants understand your site.Try it freellms.txt
# Sharma Dental Clinic> Family dental care in Pune since 2009. ## Services
Want the full picture?
This tool checks one thing. A free Pagelyt scan checks speed, SEO, AI readiness, security and more, and tells you what to fix first.