HTTP Security Headers Generator
Security headers are a simple yet effective layer of protection: they guard against clickjacking, enforce HTTPS and limit the impact of XSS attacks. Select the headers, set the format for your server (Apache or Nginx) and paste the result into your configuration. Everything is computed in your browser. This complements WordPress security and HTTPS configuration.
Forces HTTPS for a set time. Enable it only once the site reliably works on HTTPS — enforcement is hard to undo during the max-age period.
Protects against clickjacking by blocking embedding of the page in an iframe.
Sets nosniff — the browser does not guess the MIME type, which limits some attacks.
Disables access to sensitive browser features (camera, microphone, geolocation) if the site does not use them.
The strongest but trickiest header — it controls where scripts, styles and media load from. Misconfigured, it can break the site. Start in report-only mode.
.htaccess or the virtual host configuration. For Nginx paste into the server { } block and reload the configuration (nginx -t && systemctl reload nginx).

