Tools / security.txt
security.txt checker
Look for the vulnerability disclosure contact file at the RFC 9116 well-known location and review its key fields.
More free checks
Run a full security scan or speed test on your site, or try a related tool.
Related free tools
Fields reviewed
Contact, Expires, and Canonical are highlighted
alongside Policy, Encryption, Acknowledgments, and preferred languages when present.
The checker tries /.well-known/security.txt first, then
/security.txt. It checks presence and basic fields, not full RFC conformance.
What security.txt is for
Someone has found a flaw in your system and wants to tell you. Without a published contact
they will try security@ and hope it exists, message whoever answers support,
post on social media, or give up. None of those end well. A security.txt file is a plain text
file at a fixed location that answers one question: where do I send this?
It is defined by RFC 9116, it takes ten minutes to publish, and it measurably shortens the time between someone finding a problem and your team hearing about it.
Where it has to live
The canonical location is /.well-known/security.txt, served over HTTPS as
text/plain. The bare /security.txt was the original convention and
is now a fallback only — keep it if you already publish it, ideally as a redirect, but
the well-known path is the one automated checkers and researchers look for first.
One deployment trap worth naming: a site-wide rule that blocks or rewrites .txt
requests will quietly swallow the file. Publish it, then fetch it from outside your network
and confirm you get 200 and text/plain rather than an HTML error
page or a redirect to your homepage.
The fields that matter
Contact— required, and you may list several in preference order. Amailto:, a URL to a reporting form, or both. Use an address that actually reaches a human: a dedicated alias beats a personal mailbox, and an address that bounces is worse than publishing nothing, because the reporter believes they have told you.Expires— required, and the field people get wrong. A single RFC 3339 timestamp, recommended to be less than a year out. Its whole purpose is to force a human to revisit the file, so anExpiresgenerated automatically at request time defeats the point. Once the date passes, checkers treat the file as stale.Policy— a link to your disclosure policy: what is in scope, what you ask researchers not to do, how fast you respond, and whether you offer safe harbour. This is what turns a contact address into a process.Canonical— the URI where this file officially lives. It lets a reader confirm they are looking at the authoritative copy rather than one served from a lookalike host.Encryption— a link to a public key, if you can accept encrypted reports. A link to the key, never the key inline.Preferred-Languages— at most one of these fields, listing the languages you can act on quickly.Acknowledgments— a credits page. Recognition is often the only reward a researcher wants.
Publishing one that works
The file is only half of it. Before you publish, make sure someone owns the inbox and knows what to do with what arrives — a report that sits unread for three weeks tends to become a public disclosure. Decide in advance how you will acknowledge, who triages, and what you will commit to publicly on timelines.
Write the policy page too, even a short one. Researchers read it before they test, and the presence of a plainly worded scope and a safe-harbour statement is the difference between getting a careful report and getting nothing.
Reading your result
A 404 at both locations simply means no file is published. If the file is there,
check Expires first: a lapsed date is the most common defect, because publishing
is a one-off task and renewing is not. Missing Policy or
Canonical is a recommendation rather than a failure. This is a presence and
basic-field check, not a full RFC 9116 conformance test — it does not verify signatures
or validate every field's grammar.
Related checks: robots.txt & sitemap validator and security headers analyzer. Setting up a disclosure process and want it tested before you advertise it? Talk to us.
Frequently asked questions
What does a minimal security.txt look like?
Two lines are required: Contact: mailto:security@example.com and Expires: 2027-06-30T00:00:00Z. Adding Policy: with a link to your disclosure policy and Preferred-Languages: is good practice.
Where do I put the file?
At /.well-known/security.txt, served over HTTPS as text/plain. A copy or redirect at /security.txt helps older tools find it.
How far ahead should the Expires date be?
RFC 9116 recommends less than a year, so the file is reviewed regularly and stale contacts do not linger. Set a reminder to update it before it expires.
Do I need a bug bounty programme to publish security.txt?
No. A contact address and a short disclosure policy are enough. See our own vulnerability disclosure policy as an example.