Resources · Security guides · Security guide
Publish a security.txt so researchers can reach you
A security.txt file at /.well-known/security.txt tells people who find a vulnerability where to report it. It takes five minutes and needs an Expires date.
Check command
curl -s https://example.com/.well-known/security.txt
Copied.
When someone finds a hole in your site, they need a way to tell you that is not your support chat. Without one, reports go nowhere, or get posted publicly. security.txt (RFC 9116) is the standard place to look.
The file
Serve it at https://example.com/.well-known/security.txt as plain text:
Contact: mailto:[email protected]
Expires: 2027-12-01T00:00:00Z
Preferred-Languages: en
Canonical: https://example.com/.well-known/security.txt
Policy: https://example.com/security
- Contact (required): an email address or a form URL that a person reads. A dedicated alias such as
security@keeps reports out of the sales inbox. - Expires (required): a date less than a year ahead. Scanners treat an expired file as abandoned.
- Canonical: the URL of the file itself, so copies elsewhere can be recognised.
- Policy: a page that says what you consider in scope, how fast you reply, and that you will not take legal action against good-faith research.
Serve it
nginx, from a static file:
location = /.well-known/security.txt {
alias /var/www/example.com/security.txt;
default_type text/plain;
}
In Laravel, a route that builds the file lets you compute Expires so it never goes stale.
Make sure any rule that denies dotfiles excludes /.well-known. The common location ~ /\.(?!well-known) pattern does.
Answer what arrives
The file only helps if someone answers. Reply within a few days, even if only to say you are looking. Fix, then thank the reporter. Most reports are low-severity, and some are spam, but the one that matters usually comes through here first.