What are security headers?
Short instructions your website sends with every page, telling the visitor's browser to be careful: always use https, don't let other sites frame this page, don't guess file types. They cost nothing and close common gaps.
The six we check
| Strict-Transport-Security | Always use https here, even if someone types http://. |
|---|---|
| Content-Security-Policy | Where scripts, styles and frames may come from. |
| X-Content-Type-Options | Don't guess a file's type. |
| X-Frame-Options | Don't show this site inside another site's frame. |
| Referrer-Policy | Don't share the full page address with other sites. |
| Permissions-Policy | Switch off features like the camera that the site doesn't use. |
Common mistakes
- Adding headers to the http page only: browsers read them on the https page.
- Setting them in two places (your host and Cloudflare) with different values.
- Copying a strict Content-Security-Policy from another site: it can break your own pages. Start with the safe one we suggest and grow it.