What the file must contain
- Contact: email or web address (required).
- Expires: the date the file is valid until, at most one year ahead (required).
- Optional: Encryption, Policy, Preferred-Languages and Canonical.
Example
- Contact: mailto:security@company.com
- Expires: 2027-11-01T00:00:00.000Z
- Preferred-Languages: no, en
- Canonical: https://company.com/.well-known/security.txt
- Policy: https://company.com/security
Common mistakes
- Expires is missing or has passed. An expired file should not be used, so set a reminder to renew it.
- The file is only at /security.txt. The right place is /.well-known/security.txt.
- The file is served as HTML, for example because the website shows an error page with status 200. It should be plain text (text/plain).
- The contact address is a person who has left. Use a shared address.