Guides · Security headers

security.txt

One of the checks in every audibot report. This page says exactly what audibot reads, what passes, and how to fix it.

What audibot checks

A GET of /.well-known/security.txt (following up to three redirects). The existing response is parsed for valid Contact URIs, one ISO 8601 Expires timestamp, HTTPS, text/plain, optional fields, Canonical matching and PGP signature presence; no new request is made.

Why it matters

Someone who finds a vulnerability needs to know who to tell. security.txt (RFC 9116) is the standard place to look; without it, reports go to a general inbox, a social media account, or nowhere.

How do I add a security.txt file?

Publish a plain-text file at /.well-known/security.txt. RFC 9116 requires Contact: and Expires:; set Expires less than a year ahead and renew it.

/.well-known/security.txt

Contact: mailto:security@example.com
Expires: 2027-06-30T00:00:00.000Z
Preferred-Languages: en
Canonical: https://example.com/.well-known/security.txt

nginx (if the file lives outside the web root)

location = /.well-known/security.txt {
    alias /etc/nginx/security.txt;
    default_type text/plain;
}

Related tools

Other checks in Security headers

Security headers in the methodology ·All guides

This check is one step of the website launch checklist.

Check your site

audibot runs this check and every other one in a single audit, and publishes the report with a recommendation for each finding.