- Does having a security.txt make my site more secure?
- No, and it is important to be clear about that. It is purely a contact and disclosure file. It helps someone who has already found a vulnerability report it to the right place quickly. The security work itself, patching, updates, strong authentication, HTTPS, is entirely separate and has to be done regardless.
- Where exactly does the file go?
- At https://yourdomain.co.uk/.well-known/security.txt, served over HTTPS. The .well-known directory is the standard location and the one scanners check first. A copy at the site root is tolerated by the spec, but the .well-known version is the one that takes precedence, so put it there.
- What happens when the Expires date passes?
- Readers are told by the standard not to trust the file after that date, so it effectively stops doing its job. That is by design, it forces you to review the contents. Set a date you will actually honour, add a calendar reminder, and regenerate and republish before it lapses.
- Do I have to sign it with a PGP key?
- No. Signing is recommended by RFC 9116 but not required. For most small sites an unsigned file over HTTPS is fine. Sign it only if you already run OpenPGP and can keep the signature current, otherwise you are taking on key management for little practical gain.
- What contact should I use?
- A monitored one. A dedicated address like security@yourdomain.co.uk that a real person reads is ideal. Avoid pointing it at a mailbox nobody checks, because the whole value of the file is that a report actually reaches someone who can act. You can list more than one method, and the first is treated as preferred.