Learn DNS · Security and scams
Security contact (security.txt)
In one lineReviewed 2026-11-13The whole idea in one short sentence. The rest of the page explains it step by step.
security.txt is a small file on your website saying "if you find a security problem, tell this address". It helps good people warn you before bad people use the problem.
What it is
The file lives at /.well-known/security.txt and holds a contact address and an expiry date. Europe's NIS2 rules and many security questionnaires now expect one.
What happens if it's not fixed
- People who find a hole in your site have no easy way to tell you.
- Missing it can count against you in supplier and insurance questionnaires.
How to fix it
- Create a text file with at least
Contact: mailto:security@yourbusiness.comandExpires:a date within a year. - Upload it to
/.well-known/security.txton your site (your web person or host can do this). - Set a reminder to update the expiry date.
Example:
Contact: mailto:security@yourbusiness.com
Expires: 2027-11-13T00:00:00Z
Related
This page explains: Security contact (security.txt, NIS2).