Add the security headers that protect your visitors: HSTS, anti-framing, MIME sniffing protection, referrer policy and permissions policy. Pick what you need and copy lines ready for htaccess, Nginx or PHP.
Create headersSimple steps, all in your browser with no sign-up.
Recommended ones are preselected.
htaccess, Nginx or PHP.
Then test key pages.
| Header | Job |
|---|---|
| Strict-Transport-Security | Stops HTTP access after the first visit |
| X-Content-Type-Options | Stops browsers running files as another type |
| X-Frame-Options | Protects against clickjacking via frames |
| Referrer-Policy | Keeps internal URLs from leaking |
| Permissions-Policy | Turns off browser features you do not use |
| Content-Security-Policy | The strongest guard against script injection, but needs careful tuning |
| Command | What it does |
|---|---|
curl -sI https://example.com | Show all headers |
curl -sI https://example.com | grep -i strict | Confirm HSTS |
apachectl -M | grep headers | Confirm mod_headers is enabled in Apache |
nginx -t && systemctl reload nginx | Test and apply Nginx config |
Short definitions of what you meet along the way.
Did not find your answer? Ask us on WhatsApp
No. They are a few lines sent with each page.
A full CSP differs per site depending on scripts, fonts and analytics. A wrong one can break parts of your site, so we give a safe basic version.
Open browser developer tools, the Network tab, pick the page and review Response Headers.
Hosting with a free SSL certificate and protection against hacking.
We use necessary cookies to run the site, and Google Analytics to measure visits only if you agree. You can change your choice at any time from “Cookie settings”. Privacy policy