Website security how-to guides
Short guides to the fixes our scanner finds most often, each with copy-paste config for the platform you run. Not sure what you need? Run the free checkers first.
- How to add the HSTS header (Strict-Transport-Security)Add the Strict-Transport-Security header so browsers only ever use HTTPS for your site. Copy-paste config for nginx, Apache, Caddy, Cloudflare, Vercel, Netlify, Next.js and Express.Read the guide →
- How to add a Content-Security-Policy headerStart a Content-Security-Policy in report-only mode so it never breaks your site, then tighten it. Config for nginx, Apache, Caddy, Cloudflare, Vercel, Netlify, Next.js and Express.Read the guide →
- How to prevent clickjacking with X-Frame-OptionsStop other sites putting yours in an invisible frame. Add X-Frame-Options or frame-ancestors on nginx, Apache, Caddy, Cloudflare, Vercel, Netlify, Next.js and Express.Read the guide →
- How to add X-Content-Type-Options: nosniffStop browsers guessing file types. Add X-Content-Type-Options: nosniff on nginx, Apache, Caddy, Cloudflare, Vercel, Netlify, Next.js and Express.Read the guide →
- How to add a Referrer-Policy headerControl how much of your URLs is sent to other sites. Add a Referrer-Policy header on nginx, Apache, Caddy, Cloudflare, Vercel, Netlify, Next.js and Express.Read the guide →
- How to add a Permissions-Policy headerSwitch off browser features your site doesn't use, like the camera and location. Add a Permissions-Policy header on nginx, Apache, Caddy, Cloudflare, Vercel, Netlify, Next.js and Express.Read the guide →
- How to set up an SPF recordPublish an SPF record so only your mail servers can send email as your domain. What to put in it, how to avoid the common mistakes, and how to check it.Read the guide →
- How to set up DMARC, step by stepPublish a DMARC record, read the reports, and move from monitoring to reject without breaking your own email. The records to add and the order to do it in.Read the guide →
- How to fix an expiring or expired SSL certificateRenew an SSL/TLS certificate and make renewal automatic so it can't expire again. What to do on managed hosts like Vercel and Cloudflare, and on your own server with Let's Encrypt.Read the guide →
- How to hide your web server and framework versionStop your server announcing its name and version in every response. Turn off server_tokens in nginx, ServerTokens in Apache, and X-Powered-By in Express and Next.js.Read the guide →