Home/Security & Business/Security.txt Generator

Security.txt Generator

Publish a standards-compliant security.txt so researchers report vulnerabilities to you instead of dumping them publicly. Validated live against RFC 9116.

Free Browser-based No signup Copy-ready
Generator Settings
RFC 9116 requires every URL in the file to use https and, ideally, your own domain.
Contact *
At least one is mandatory. List them in the order you prefer to be reached — email, form URL or phone.
The only required date field. Researchers treat an expired file as unmaintained — set a calendar reminder to refresh it.
Your vulnerability disclosure policy: scope, safe harbour, expected response times.
Must point to a key — never paste the key itself into security.txt.
A public thank-you page measurably increases quality report volume.
For vendors publishing machine-readable security advisories.
Comma-separated RFC 5646 tags. Only one Preferred-Languages line is allowed.
Leave blank to auto-fill with the standard /.well-known/ location.
Options
Generated File ready
.well-known/security.txt

      
The canonical location is /.well-known/security.txt. Placing a copy at /security.txt as a fallback is allowed but optional.

How it works

1

Add your contacts

A monitored security inbox or report form, plus an expiry date one year out.

2

Link your policy

Point to your disclosure policy, PGP key and hall of fame so reporters know the rules.

3

Publish to /.well-known/

Upload, confirm it returns 200 as text/plain, and set a reminder before it expires.

Why security.txt matters more than it looks

When someone finds a flaw in your site, the clock starts. If they cannot find a contact in about two minutes, the realistic outcomes are: they give up, they post it publicly, or they sell it. security.txt — standardised as RFC 9116 — is the machine-readable answer to “who do I tell?”, and scanners, bug bounty platforms and browser extensions all look for it automatically.

Required fields

  • Contact — one or more, in preference order.
  • Expires — an ISO 8601 timestamp. A file past its expiry is formally invalid.

Optional but expected

  • Policy, Encryption, Acknowledgments
  • Preferred-Languages, Canonical, Hiring, CSAF

Mistakes that make the file useless

  • Pointing Contact at a general support inbox where tickets get closed as spam.
  • Letting Expires lapse — the single most common failure in the wild.
  • Serving it over HTTP, or from a path other than /.well-known/.
  • Pasting the PGP key inline instead of linking to it.
  • Publishing it with no policy, so reporters have no safe harbour and stay silent.
Nothing in this file grants permission to test your systems. State scope and safe-harbour terms in the linked Policy document — that is what turns a security.txt into a functioning disclosure programme.

Frequently Asked Questions

View all FAQs
Is security.txt required?
It is not universally required for every website, but it is a recognized standardized way to publish vulnerability disclosure information.
What is RFC 9116?
RFC 9116 defines the security.txt file format and how organizations can publish vulnerability disclosure information in a machine-parsable form.
Can I use a normal contact email?
Yes, but a dedicated monitored security contact is usually better because reports are less likely to get lost in general support traffic.
How often should I update security.txt?
Review it before the Expires date and whenever your security contacts, policies, public keys or related URLs change.
Does security.txt make my website safer?
Indirectly, it can improve the reporting process. It does not fix vulnerabilities or provide access control.
Can I generate security.txt for free?
Yes. Enter your security contact information above, validate the fields and download the generated file.

Security.txt Generator – Create an RFC 9116 File Online

Use the Security.txt Generator above to create a machine-readable security.txt file for your website. Add the contact method security researchers should use, set an expiration date, include your disclosure policy and optional fields, then validate and download the finished file.

Security.txt gives researchers a predictable place to find vulnerability reporting instructions instead of searching your footer, support portal or general contact channels.

The current format is defined by RFC 9116.

What Is security.txt?

Security.txt is a plain-text file that publishes information about an organization’s vulnerability disclosure process.

Its purpose is simple: make it easier for security researchers to report a vulnerability to the right people.

A typical file can contain fields such as:

  • Contact
  • Expires
  • Policy
  • Encryption
  • Acknowledgments
  • Hiring
  • Canonical
  • Preferred-Languages
  • CSAF

The file is not a vulnerability scanner. It does not make a website secure by itself. It is a communication mechanism that reduces friction after someone discovers a potential security problem.

Where Should security.txt Be Located?

The standard location is:

/.well-known/security.txt

For example:

https://example.com/.well-known/security.txt

RFC 9116 defines this well-known location so researchers and automated tools do not need to guess where your security contact information is published.

A site may also expose /security.txt as a fallback, but the .well-known location is the important one to implement.

After publishing, open the exact live address in a browser and confirm it returns the file correctly.

What Fields Are Required?

A valid security.txt file needs at least one Contact field and an Expires field.

The Contact field tells a researcher where to report a vulnerability.

The Expires field tells them how long the published information should be considered current.

Other fields can add valuable context, but these two are central to the format.

This generator highlights required values and helps format the optional fields correctly.

Contact Field

Contact is the most important field in the file.

You can provide more than one contact method and list them in your preferred order.

Common options include:

  • A security email address
  • A vulnerability-reporting form
  • A telephone URI
  • Another supported contact URI

A dedicated security address or disclosure form is usually clearer than sending researchers to a general customer service inbox.

Whatever method you publish, make sure someone actively monitors it.

A technically correct security.txt file is not useful if reports go to an inbox nobody reads.

Expires Field

Expires tells researchers when the security.txt information should be considered stale.

Do not set it and forget it.

Contact addresses change, teams reorganize, policies move and public keys expire. A clearly dated file gives researchers an indication that your disclosure information is being maintained.

Choose a practical renewal cycle and set an internal reminder to review the file before it expires.

When you update security.txt, verify every URL and contact method at the same time.

Policy Field

The Policy field points to your vulnerability disclosure policy.

A good disclosure policy can explain:

  • What systems are in scope
  • What testing is permitted
  • What testing is prohibited
  • How to submit a report
  • What information to include
  • Expected response times
  • Safe-harbor language
  • Rules about public disclosure
  • Reward or bug bounty information, if applicable

Security.txt should remain concise. Put longer procedural details on the policy page and link to that page from the file.

This keeps the machine-readable file simple while still giving researchers full instructions.

Encryption Field

The Encryption field points to a location where a researcher can obtain a public encryption key.

It should point to the key or key information rather than placing the full public key directly into the normal field value.

Encryption can be useful when a vulnerability report contains sensitive technical details, proof-of-concept information or data that should not be sent in plain text.

Only publish this field if the key is valid, maintained and actually monitored by the team receiving reports.

An expired or abandoned key creates more friction than omitting the field.

Canonical Field

The Canonical field identifies the canonical URL for the security.txt file.

This is useful because the same file may be reachable through more than one path or hostname.

The canonical location should use HTTPS.

For a normal website, the generator can build the expected .well-known/security.txt location from your domain.

If you operate several distinct domains, think carefully about whether they share one security policy or need separate files.

Preferred-Languages Field

Preferred-Languages tells researchers which languages your security team prefers for reports.

Use standard language tags separated by commas.

For example:

Preferred-Languages: en, fr, de

List languages in order of preference.

Do not list languages your team cannot reliably handle. The goal is to reduce communication problems, not to make the file look more complete.

Acknowledgments Field

The Acknowledgments field can point to a public page that thanks researchers who responsibly disclosed vulnerabilities.

This field is optional.

Some organizations maintain a security hall of fame, researcher credits page or public acknowledgments list. If you do, this field makes it easy to find.

Do not promise public acknowledgment if your policy or legal process cannot consistently provide it.

CSAF Field

CSAF is used for machine-readable security advisories.

Organizations that publish structured vulnerability and product-security information can use the CSAF field to point toward the appropriate provider metadata.

Many ordinary websites will not need this.

Do not add advanced fields simply because the generator offers them. A shorter accurate file is better than a complex file containing meaningless or outdated values.

security.txt Is Not a Bug Bounty Program

Publishing security.txt does not automatically create a bug bounty.

It does not obligate you to pay researchers, and it does not by itself define what testing is authorized.

If your organization offers rewards, describe the terms clearly in the linked disclosure or bounty policy.

If you do not offer rewards, you can still publish security.txt. The core purpose is to create a clear reporting channel.

security.txt Is Not a Security Control

Security.txt does not block attacks, patch software or prevent vulnerabilities.

It helps after someone finds a potential problem.

Your actual security still depends on controls such as secure development, authentication, access management, updates, monitoring, backups and incident response.

Think of security.txt as part of vulnerability disclosure operations rather than as a defensive barrier. If you publish an encryption key, generate any supporting tokens with a proper source such as the Random Hex String Generator.

How to Publish security.txt Correctly

Generate the file, download it and deploy it so the public URL resolves at:

/.well-known/security.txt

Serve the content as plain text.

Check that:

  1. The file loads without authentication.
  2. The URL returns the intended content.
  3. HTTPS works correctly.
  4. Contact methods are active.
  5. The Expires date is in the future.
  6. Policy and key URLs are live.
  7. The Canonical value points to the right file.

If your site uses a CDN, reverse proxy or application framework, verify the deployed response rather than assuming the source file is enough.

Should You Digitally Sign security.txt?

RFC 9116 supports digitally signed security.txt files.

A signature can help researchers verify authenticity, especially where an organization already maintains a trusted OpenPGP workflow.

However, signing adds maintenance responsibilities.

If you sign the file, make sure researchers can obtain and verify the correct key and that the signed file remains valid whenever the content changes.

For a small site without an established signing process, a correct HTTPS-hosted security.txt file is more useful than a broken or stale signature setup.

Common security.txt Mistakes

A common mistake is publishing the file at the wrong location.

Another is letting the Expires date pass without updating the file.

Other problems include inactive email addresses, HTTP links where HTTPS is required, a Policy URL that returns 404, a stale encryption key and duplicate files with conflicting information.

Do not publish placeholder values.

Also avoid treating security.txt as a substitute for a real disclosure policy when your organization needs detailed scope and testing rules.

Other root-level files worth reviewing at the same time are your robots.txt and llms.txt.

Related searches

security.txt generatorrfc 9116well-known security.txtsecurity txt filevulnerability disclosure filesecurity.txt expiressecurity.txt exampleresponsible disclosure contactsecurity.txt policy fieldsecurity.txt canonicalsecurity.txt validatorbug bounty contact file