Skip to content
ScanAnt

security.txt generator

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.

Runs in your browser

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.

security.txt

Preferred-Languages: en

Publish it at https://your-domain/.well-known/security.txt, served as plain text.

How it works and what to look for

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.

Where to publish it

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.

The fields that matter

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.

Keep it alive

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.

Questions

Is security.txt required?

No, but it is a widely recognised convention and costs nothing. Scanners and researchers look for it first.

What should Expires be?

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.

Should I sign the file?

Signing with PGP is optional. If you do, publish your key and point to it with the Encryption field.

Does my data leave the browser?

No. The file is built locally and the download is created in your browser without uploading anything.

Can I use a contact form instead of email?

Yes, any https URL works as a Contact value. An address that bounces or an unmonitored inbox defeats the purpose, though.

Related security checks

Scan your whole site for free

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 →