Skip to main content
Enter TitanOS

Glossary

What is security.txt?

By Kyle Deligny, Brisbane. Last reviewed 28 November 2026. General information, not legal advice.

security.txt. security.txt is a small text file placed at /.well-known/security.txt on a website that tells security researchers how to report a vulnerability to you. It is defined in RFC 9116. The two required fields are Contact, which is an email address, web form or phone number, and Expires, a date after which the file should be treated as stale. Optional fields point to your disclosure policy, encryption key and preferred languages. Without one, a researcher who finds a weakness has to guess who to tell, and may give up or post it publicly. For a small business the file takes about five minutes to write and signals that someone is paying attention. It does not make the site more secure on its own, it only makes responsible reporting possible.

How it works

A security.txt file solves a small but real problem: someone notices a weakness in your website or systems and wants to tell you, but cannot find who to tell. RFC 9116 standardised a plain text file at /.well-known/security.txt that gives them a clear route. Because it sits at a fixed address, researchers and automated tools know exactly where to look.

Two fields are required. Contact gives a way to reach you, written as a mailto: link, a web form address or a tel: number. Expires gives a date and time, after which the file is considered out of date, so a stale file does not mislead anyone. Optional fields add useful detail: Policy links to your disclosure policy, Encryption points to a public key, Preferred-Languages lists the languages you can read, Canonical states the official address of the file, and Acknowledgments links to a thank-you page.

The file must be served over HTTPS. Many people also sign it with a PGP key, although that is optional. For a small business it is a five-minute job that costs nothing, and the habit of renewing the Expires date once a year is the only upkeep.

A complete minimal file

For the illustrative site example.com.au, the file contains two lines: Contact: mailto:security@example.com.au and Expires: 2027-11-30T00:00:00.000Z. Add a Canonical line with https://example.com.au/.well-known/security.txt if you want the address stated explicitly. Make sure the mailbox is monitored by someone who will reply.

What to do about it

  1. Create a security@ mailbox or alias that a real person reads.
  2. Write the file with Contact and Expires, plus Policy if you have one.
  3. Publish it at /.well-known/security.txt over HTTPS.
  4. Put a yearly reminder in the diary to move the Expires date forward.

Common mistakes

  • Listing an address that nobody checks.
  • Letting the Expires date lapse so the file reads as abandoned.
  • Treating the file as a security control. It enables reporting and nothing more.

Related terms and tools

See where your own domain stands. Titanos runs a free external check from public records only, and nothing on your systems is touched.

Run the free domain check

Source

  1. RFC 9116, security.txt

See this term in the full glossary (35 terms).

Book a free call