prsona
Get started
Low: fix when convenient

What is security.txt? A clear way for researchers to reach you

Last reviewed

Give honest researchers a clear way to reach you.

security.txt is a short plain text file, defined by the internet standard RFC 9116, that tells anyone who finds a security problem on your website how to report it. It lives at /.well-known/security.txt and must include a Contact line and an Expires date. Without it, a helpful report may land in a general inbox or nowhere at all. Adding one is a small job.

Why a missing security.txt file costs you customers

Researchers and well-meaning customers do find flaws in small business websites, and many would like to tell the owner. If they cannot find the right address, the report sits unread in a contact form, or they give up. A clear contact turns a stranger's discovery into a free early warning, and some larger clients ask about it on security questionnaires.

What usually causes a missing security.txt file

  • Nobody on the project had come across the standard
  • The file was added once and lost in a redesign or host move
  • An older file exists but its Expires date has passed
  • The file was placed only at the top of the site, not in the /.well-known/ folder the standard names
  • The file exists but has no Contact line

How to check for a missing security.txt file yourself

  1. In a browser, add /.well-known/security.txt to the end of your domain and load it. A short page of text with lines such as Contact: is what you hope to see.
  2. An error page means the file is missing. If text appears, confirm it has at least one Contact line with an email address or web link.
  3. Find the Expires line and check that its date is still in the future, since a file past that date counts as stale.
  4. Send a brief test message to the listed contact to make sure it still reaches a real person.

How to fix a missing security.txt file

  1. You choose a contact that will actually be read, such as a dedicated security email address or web form, and decide who checks it.
  2. Your developer writes the file with a Contact line, an Expires date less than a year ahead, and optional extras such as Preferred-Languages or Policy.
  3. Your developer or host places it at /.well-known/security.txt and serves it as plain text over HTTPS.
  4. You open that address in a browser and confirm the file loads and the details are right.
  5. You put the Expires date in a calendar with a reminder ahead of it, and update the file whenever the contact changes.

How Prsona catches a missing security.txt file

Prsona checks whether your site publishes a security.txt file with a way to contact you, and lists a missing one as a quick win rather than an urgent fix.

Prsona looks for a missing security.txt file as part of website security monitoring.

See whether people who find a flaw on your site know where to report it.

Questions about a missing security.txt file

Does a small business website really need a security.txt file?

No law or search engine requires it, so treat it as good practice rather than an obligation. It costs almost nothing, is quick to add, and makes it easy for someone who spots a problem to warn you instead of moving on. For a site with logins, payments or customer records, it is well worth having.

What has to go in a security.txt file?

Two fields are required. Contact gives an email address, phone link or web address where reports should go, and Expires gives the date after which the file should be treated as out of date. RFC 9116 recommends keeping that date less than a year ahead. Optional fields can point to an encryption key, a disclosure policy or preferred languages.

Sources