Robots & Sitemap Checker

Guides › Free tools

security.txt Generator & Checker (RFC 9116)

Check an existing security.txt against RFC 9116, or generate a valid one below. We fetch /.well-known/security.txt (and the legacy /security.txt), then check the required Contact and Expires fields, field syntax, HTTPS, PGP signing and Canonical.

security.txt generator

Save this as /.well-known/security.txt, served as text/plain over HTTPS. Update Expires before it passes.

What is security.txt?

security.txt is a small text file, standardized as RFC 9116 in 2022, that tells security researchers how to report a vulnerability in your site. It lives at https://yourdomain/.well-known/security.txt. Many security scanners flag its absence as "security.txt not configured".

Required and optional fields

FieldRequired?Notes
ContactYes, at least oneA URI: mailto:, https:// or tel:. List the preferred method first.
ExpiresYes, exactly oneAn ISO 8601 timestamp. The RFC recommends less than a year ahead.
EncryptionNoLink to your PGP key (not the key itself).
CanonicalNoWhere the file is meant to live. Recommended when signed.
Policy, Acknowledgments, HiringNoLinks to your disclosure policy, hall of fame and security jobs.
Preferred-LanguagesNoComma-separated language tags, at most once.

Fixing "security.txt not configured"

  1. Generate the file above and save it as .well-known/security.txt in your web root (on WordPress, Shopify or a static host, any way of serving a plain text file at that path works).
  2. Make sure it is served over HTTPS with Content-Type: text/plain.
  3. Set a calendar reminder to update Expires, because an expired file is treated as stale.
  4. Run the checker above to confirm.
Check your site now

Related

llms.txt Validator: check your llms.txt file free

More free tools from Swift Labs

OG Preview Tool
Preview links on Facebook, LinkedIn, X and Slack, and audit Open Graph tags.
Email DNS Check
Check SPF, DKIM, DMARC and MX records in seconds.
DeadLinkPatrol
Find broken links across your whole site.