Security headers are a few lines in a server config. They are easy to mistype, and one of them, HSTS preload, is hard to undo. Vulnify’s Security Headers Generator writes the lines for Nginx, Apache, or Cloudflare. It does not publish them. Recheck the live site after you do.
What the form starts with
Choose the server. The options are Nginx, Apache, and Cloudflare. HSTS starts on, with max-age=31536000 and includeSubDomains on. Preload starts off. X-Content-Type-Options: nosniff is on. Framing defaults to SAMEORIGIN. Referrer-Policy and Permissions-Policy are on. Permissions-Policy in the Nginx draft disables camera, microphone, and geolocation.

A Nginx draft begins like this:
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
The rest of the block adds nosniff, X-Frame-Options: SAMEORIGIN, Referrer-Policy: strict-origin-when-cross-origin, and the Permissions-Policy line. Apache and Cloudflare get the same choices in their own syntax. Copy the block for the server you selected, not a mix of the three.
Leave preload off until you mean it
Preload submits every subdomain to the browser preload list. The warning on the form says to turn it on only after HSTS is stable on the whole domain. A first deploy is not that moment. A forgotten staging host, or a subdomain that still serves HTTP, becomes a problem you cannot reverse quickly. The longer rollout, including that decision, is in HSTS rollout without downtime.
Nginx, Apache, and Cloudflare are not interchangeable
Select the server you will paste into. Nginx uses add_header. A mistake people make is copying that line into an Apache config, or into a Cloudflare response-header rule, and wondering why the checker still shows the header missing. Generate three times if you run three edges. Deploy each block where it belongs.
HSTS on the first day, with a year-long max-age and includeSubDomains, is what the form starts with. That is reasonable when every host under the domain already redirects to HTTPS. It is not reasonable when a subdomain still serves a different product over HTTP. includeSubDomains applies to names you forgot. Turn it off in the form, regenerate, and read the HSTS article before you turn it back on.
Framing at SAMEORIGIN lets your own origin frame pages and refuses everyone else. DENY is stricter and breaks a same-site preview. Change it only if you know you need that. Referrer-Policy strict-origin-when-cross-origin sends the origin on cross-site HTTPS requests and the full URL on same-origin requests. Permissions-Policy in the Nginx draft turns camera, microphone, and geolocation off. If a page on that host needs the camera, remove that feature from the policy before you deploy, or the browser will refuse the prompt.
Publish, then look at the live headers
Paste the block into the server or CDN, reload the config, and request the site over HTTPS. Then run the Security Headers Checker on that URL. The generator cannot see production. The checker can.
Content-Security-Policy is not this form. Draft that text in the CSP Builder, and read how to draft a Content-Security-Policy before you paste a policy into the same server block. The explainer for what each header does is security headers explained. This article is the config you can copy.
Order of operations on a first production host
Confirm the site already redirects HTTP to HTTPS on the apex and on www. Then generate with preload off. Deploy. Request the URL and confirm the checker sees HSTS, nosniff, the frame policy, the referrer policy, and the permissions policy. Only then consider includeSubDomains, and only after you have listed the subdomains. Preload is a later project, with the rollout article, not a checkbox for launch day.
If the checker shows the header on one URL and not on another, you deployed to one server. Nginx add_header inside a location can also hide headers inherited from the server block, depending on how that location is written. Generate the lines, then put them where your config actually serves the response. The generator does not inspect your files.
