4FreeForumsFree forum softwareStart a forum

Add a security.txt to your forum in 10 minutes

Add a security.txt to Your Forum: The RFC 9116 Format in 10 Minutes
Photo: "Love padlocks on the Butchers' Bridge (Ljubljana)" by Petar Milošević, CC BY-SA 4.0 (cropped).

If someone finds a hole in your forum (an outdated plugin, an exposed backup, an XSS bug in a custom template), how do they tell you? Many researchers look for a file called security.txt. It's a tiny, standardized text file, and adding one takes minutes.

Key takeaways

Where it goes

Under RFC 9116, A File Format to Aid in Security Vulnerability Disclosure, web services "MUST place the 'security.txt' file under the '/.well-known/' path," for example https://example.com/.well-known/security.txt. A copy at the top level (/security.txt) or a redirect is allowed for legacy compatibility, but if both exist, the /.well-known/ one wins. The file must be fetched over https and served with a Content-Type of text/plain in UTF-8. It applies only to the domain it's on, so a forum on a subdomain needs its own.

The required fields

Useful optional fields

Example for a small forum

Contact: mailto:security@yourforum.example
Contact: https://yourforum.example/contact.html
Expires: 2027-10-01T00:00:00Z
Preferred-Languages: en
Canonical: https://yourforum.example/.well-known/security.txt
Policy: https://yourforum.example/security-policy.html

Setup checklist

  1. Create the .well-known folder in your web root (some hosts already have one for SSL validation; see HTTPS with Let's Encrypt).
  2. Upload security.txt and open it in a browser to check it loads over HTTPS as plain text.
  3. Use an address you actually read, and set a calendar reminder before Expires.
  4. Write a short policy page: what's in scope, how fast you'll reply, and a promise not to take legal action against good-faith reports.
  5. When a report comes in, thank the reporter, fix it, update your software and review admin security.

Published October 29, 2026. We do not use affiliate links on this page; see our Affiliate Disclosure.