Build abuse reports for registrars, hosting providers and CDNs, as an email and as JSON.
security.txt Generator
Use security.txt Generator
What it does
Build a security.txt file so that researchers and people reporting phishing that imitates your brand know how to reach you. Save the result as /.well-known/security.txt.
It runs entirely in your browser: nothing you enter is uploaded.
How to use security.txt Generator
- Enter a contact. Type how to reach your security team in Contact, one per line: mailto:security@example.com, an https:// address of a report form, or a tel: number. A bare e-mail address gets mailto: added.
- Set the expiry date. Pick a date in Expires. The default is one year from today; RFC 9116 recommends less than a year, so choose an earlier date.
- Add optional fields. Fill in Preferred-Languages (en by default), Canonical, Policy, Encryption, Acknowledgments and Hiring if you have them. Empty fields are left out of the file.
- Generate and copy. Press Generate and read the result in the output box. Check every address once more, because the tool copies them as typed, then press Copy.
- Publish and renew. Save the text as /.well-known/security.txt on your site over HTTPS, sign it with gpg --clearsign if you want, and note a date to renew it before it expires.
Example
Minimal file
mailto:security@example.comContact: mailto:security@example.com
Expires: 2027-10-20T23:59:59.000Z
Preferred-Languages: enProduces Contact: mailto:security@example.com, an Expires line one year ahead at 23:59:59Z and Preferred-Languages: en, the two required fields plus a language hint, with a reminder that RFC 9116 recommends an Expires date less than a year ahead.
What it checks
| Signal | What it means |
|---|---|
| Contact: | One line per contact, in the order you typed them. Each must be a mailto:, https:// or tel: URI as RFC 9116 asks; http:// and malformed values give an error instead of a file. |
| Expires: | The chosen date at 23:59:59 UTC, written with milliseconds, for example 2027-03-31T23:59:59.000Z. If you clear the date field, Generate stops producing a new file. |
| Preferred-Languages: | en by default. Use comma-separated language codes such as en, de, or clear the field to leave the line out. |
| Canonical: | The full https:// address where this file lives, so a copy served from somewhere else can be recognised. |
| Encryption: | A link to your OpenPGP public key, so reporters can encrypt sensitive details. |
| Policy, Acknowledgments, Hiring | Links to your disclosure policy, a page thanking reporters, and security jobs. All optional, and the tool does not check that the links work. |
| A role address in Contact | Use an address or form that a team watches, such as security@ your domain, not one person's mailbox, so reports still arrive when people change jobs. |
| Error: Contact is required | Shown when Contact is empty. Any error replaces the output, with a note that nothing was generated until the fields are fixed. |
More examples
Web form with languages and policy
Contact https://example.org/report-security, Expires 2027-03-31, Preferred-Languages en, de, Canonical https://example.org/.well-known/security.txt, Policy https://example.org/security-policyFive lines in this order: Contact: https://example.org/report-security, Expires: 2027-03-31T23:59:59.000Z, Preferred-Languages: en, de, Canonical: https://example.org/.well-known/security.txt, Policy: https://example.org/security-policy.
E-mail contact with a key, no language
Contact mailto:abuse@example.net, Expires 2027-06-30, Preferred-Languages cleared, Encryption https://example.net/pgp-key.txtThree lines: Contact: mailto:abuse@example.net, Expires: 2027-06-30T23:59:59.000Z and Encryption: https://example.net/pgp-key.txt.
Contact left empty
All fields filled except ContactError: Contact is required, and a note that nothing was generated. The other fields keep their values, so fill in Contact and press Generate again.
FAQ
Which fields are required?
RFC 9116 requires at least one Contact and exactly one Expires field; the rest are optional. Each Contact line must be a mailto:, https:// or tel: URI (a bare e-mail address gets mailto: added), Expires must be a future date, and Generate shows an error instead of a file while one of them is missing or invalid.
What should I set Expires to?
The date defaults to one year from today, while RFC 9116 recommends less than a year, so pick an earlier date to follow it; the page reminds you when the date is more than a year ahead. Renew the file before that date, because the RFC says an expired security.txt should be treated as stale.
Does it upload or sign anything?
No. The file is assembled in your browser and nothing is sent anywhere. It is not signed; RFC 9116 recommends an OpenPGP cleartext signature, which you can add with gpg --clearsign before publishing.
Can I list more than one contact?
Yes. RFC 9116 allows several Contact lines, read in order of preference. Type one contact per line in the Contact field; duplicates are written once.
Where exactly does the file go?
At https://your-domain/.well-known/security.txt, served over HTTPS as plain text. A copy or a redirect at /security.txt is optional.
Does one file cover my subdomains?
No. RFC 9116 says a security.txt applies only to the host it was fetched from, not to its subdomains or parent domain. Publish a copy on each host where people might look, such as www and shop.
How does security.txt help against phishing that copies my brand?
People who find a look-alike site or a fake e-mail in your name often want to warn you. A working Contact line gets that report to your security team rather than a general support queue, so you can act on the look-alike domain sooner.