SECURITY.TXT GENERATOR

Make a security.txt file in a minute

Someone finds a bug on your site. Where do they send it? A security.txt answers that. Add a contact, keep the date it fills in, and download the file.

Build your file

An email address, a phone number or an https link to a form. Separate several with commas or new lines.

Set a year ahead for you. Put a reminder in your calendar to renew it before then.

Link to your public PGP key.

A page that thanks people who reported issues.

Your disclosure policy and what you promise researchers.

Your security jobs page.

The address this file is served from.

Language codes, separated by commas.

Check a file you already have

The whole file, including comments.

How it works

The file is plain text, one field per line. A minimal one looks like this:

Contact: mailto:security@yourcompany.com
Expires: 2027-06-30T23:59:59Z

Putting it live

  1. Download the file and name it exactly security.txt.
  2. Place it at /.well-known/security.txt on your main domain, so the full address is https://yourcompany.com/.well-known/security.txt.
  3. Check it loads as plain text, with no login and no redirect to an HTML page.
  4. Run the domain check to confirm it is found and current.

Optional fields

Encryption points to your public PGP key. Policy links to your disclosure rules. Acknowledgments thanks past reporters. Canonical names the official address of the file, and Preferred-Languages lists the languages you can read.

Check your domain now

See how your SPF, DMARC, security headers and security.txt look from the outside, graded with a fix for each. Free, no account.

Check your domain

Coprsetr Pro watches up to 5 domains every week and emails you when something slips.

Questions

What is security.txt?

A small text file at /.well-known/security.txt that tells security researchers how to report a vulnerability to you. It is defined in RFC 9116, and it is one of the first things a buyer’s security review looks for.

Which fields are required?

Two: Contact and Expires. Contact says where to report. Expires is a date after which the file should be treated as out of date. Everything else, like Policy or Encryption, is optional.

Why does it expire?

An old file might point to a mailbox nobody reads anymore. The date forces you to look at it again. RFC 9116 recommends an Expires less than a year away, so put a renewal reminder in your calendar.

Where does the file go?

At https://yourdomain/.well-known/security.txt, served as plain text over https. Many sites also serve a copy at /security.txt. In most frameworks that means putting the file in the public folder under .well-known.

Keyboard shortcuts

⌘K or /
Search everything
?
This list
g h
Home
g l
Guide library
g f
Find my path
g t
Templates
g p
Playbooks
g w
My workspace
g d
Deadline calendar
g c
Regulatory changes