Errors people run into
What most often makes a security.txt useless, and how to fix it.
The file has expired
Why. Expires is required and was set once, usually a year ahead. Nothing warns you when the date passes.
Fix. Set a new date less than a year away and add a reminder. If the file is generated by your site, generate the date at deployment.
Contact is a bare e-mail address
Why. The field takes an address with its scheme. “security@acme.org” alone is not one, and strict tools reject the file.
Fix. Write “Contact: mailto:security@acme.org”. Use a shared mailbox that someone reads, not a person’s address.
The address answers with the home page
Why. The site sends every unknown address to a page with a 200 status, so the file seems to exist and is in fact a web page.
Fix. Publish a real text file at /.well-known/security.txt, served as text/plain, and let unknown addresses answer 404.