How to fix it
Step-by-step fixes for security headers, DNS, email authentication, indexing and certificates, with the exact record or config line for each platform.
Security headers
- How to add a Content-Security-Policy
Roll out a Content-Security-Policy in report-only mode first, fix what it reports, then enforce it.
- How to add a Permissions-Policy header
Send a Permissions-Policy that switches off browser features the site does not use, such as camera, microphone and location.
- How to add a Referrer-Policy header
Send Referrer-Policy strict-origin-when-cross-origin so other sites see only your domain, not the full address of the page a visitor came from.
- How to add an HSTS header
Send a Strict-Transport-Security header so browsers use HTTPS for every visit, starting with a one-year max-age and nothing else.
- How to add the X-Content-Type-Options nosniff header
Send X-Content-Type-Options with the value nosniff so browsers trust each response's declared type instead of guessing.
- How to stop other sites framing yours (X-Frame-Options and frame-ancestors)
Send a frame-ancestors policy, and X-Frame-Options SAMEORIGIN for older browsers, so only your own site may show its pages in a frame.
Certificate
- How to fix a certificate that does not cover the hostname
Get a certificate that names every hostname the site answers on, and make the server send it for each of them.
DNS
- How to add a CAA record
Publish CAA records naming the certificate authorities you actually use, so no other authority may issue certificates for the domain.
Email authentication
- How to add a DMARC record
Publish a monitoring-only DMARC record with a report address, then work towards enforcement.
- How to find your DKIM selector and turn on DKIM
Find the DKIM selector each sender really uses from a received message, and if none signs as your domain, turn DKIM signing on at the mail provider.
- How to fix SPF too many DNS lookups
Cut the SPF record to ten or fewer DNS-querying terms, counting nested includes, so receivers stop returning permerror.
- How to fix an SPF record ending in ?all or ~all
Change the final ?all in the SPF record to ~all now, and consider -all once the DMARC reports show every legitimate sender passing.
- How to move DMARC from p=none to quarantine and reject
Move the DMARC policy from none to quarantine and then reject in stages, reading the reports before each step.
Indexing
- How to fix a robots.txt that blocks the whole site
Replace the robots.txt rule that disallows everything with one that lets search engines crawl the site, on every hostname it is served from.
- How to remove noindex from a live site
Find where the homepage's noindex comes from, a robots meta tag or an X-Robots-Tag header, and remove it from the live site.