What security.txt is
It is a small text file defined in RFC 9116 that tells security researchers how to report a problem on your site. Without it, someone who finds a bug often cannot work out who to tell, and may stay silent or post it publicly.
Create a valid security.txt file in a minute. Fill in how researchers can reach you, copy or download the file and publish it at /.well-known/security.txt so people know where to report a vulnerability.
The file is built in your browser. Nothing is sent or stored.
One per line: an email address, a https link or a phone number.
Preferred-Languages: en
Publish it at https://your-domain/.well-known/security.txt, served as plain text.
It is a small text file defined in RFC 9116 that tells security researchers how to report a problem on your site. Without it, someone who finds a bug often cannot work out who to tell, and may stay silent or post it publicly.
Serve it over HTTPS at /.well-known/security.txt on your main domain, as plain text. The old location /security.txt is allowed as a fallback. In Next.js, put the file in public/.well-known/. Check that the URL returns text and a 200 status, not your app's HTML page.
Contact is required and may be a mailto address, a web form or a phone number, and you can list several. Expires is required and should be within a year, so the file does not go stale. Policy, Preferred-Languages, Encryption, Canonical and Acknowledgments are optional but useful.
An expired file is treated as untrustworthy, so set a reminder to renew it before the date. Use a mailbox you actually read, and answer reports politely. Say what you will and will not do, for example whether you offer rewards or legal safe harbour.
No, but it is a widely recognised convention and costs nothing. Scanners and researchers look for it first.
A date no more than a year ahead in ISO 8601 form, for example 2027-12-31T23:59:59Z. The tool converts a plain date for you.
Signing with PGP is optional. If you do, publish your key and point to it with the Encryption field.
No. The file is built locally and the download is created in your browser without uploading anything.
Yes, any https URL works as a Contact value. An address that bounces or an unmonitored inbox defeats the purpose, though.
Enter a URL to check HSTS, CSP, X-Frame-Options and other security headers.
Open tool →Enter a URL to check HTTPS, redirects, HSTS and mixed content.
Open tool →One tool checks one thing. The free scan reads your public pages the way a visitor sees them and reports headers, exposed keys, outdated libraries and more. No signup.
Scan your whole site free →