webzod
account

Serve security.txt over https on Cloudflare

hygiene.security_txt.http_only · effort: minutes

Why it matters

RFC 9116 requires security.txt to be served over https, because a file read over plain http can be altered on the way and send reports to an attacker. Researchers' tools may ignore a file that only exists on http.

The fix

  1. In SSL/TLS, Edge Certificates, turn on Always Use HTTPS so http requests are redirected to https at Cloudflare's edge.
  2. Check that the hostname is proxied and that the SSL/TLS mode is not Flexible, which talks to your origin over plain http. Use Full (strict) with a valid origin certificate.

Read the documentation (opens in a new tab)

Scan your domain to see whether this applies to you.