Outils GitHub Pages

Gratuit Générateur & validateur security.txt

Générez et validez des fichiers security.txt selon la RFC 9116 avec guide d'hébergement.

Chargement de l'outil...

Qu'est-ce que Générateur & validateur security.txt ?

security.txt is a simple text file published at /.well-known/security.txt that tells security researchers how to contact you about vulnerabilities. It is defined by RFC 9116 and supported by Google, GitHub, and major vulnerability disclosure platforms. The file contains a Contact field (URL or email), an Expires date, and optional fields for Canonical, Encryption, Policy, Acknowledgments, and Hiring.

Réponse rapide

security.txt is a file at /.well-known/security.txt that tells security researchers how to report vulnerabilities to you. At minimum, include a Contact field (URL or email) and an Expires date. Renew the file before it expires to keep your vulnerability disclosure channel active.

Limites

  • security.txt is a proposed standard (RFC 9116), not a W3C Recommendation. Some organizations are not yet aware of it, and automated scanner adoption varies by region and industry.
  • The file must be served over HTTPS without redirects. Some static hosting platforms (including GitHub Pages) may redirect /.well-known/ paths or serve them with unexpected content types.
  • security.txt alone does not create a vulnerability disclosure program or bug bounty. It only tells researchers where to report — you still need an internal process to handle incoming reports.

Comment utiliser cet outil

  1. In Generate mode: fill in your contact URL or email, set an expiration date, and add any optional fields.
  2. In Validate mode: paste an existing security.txt file to check it against the RFC 9116 specification.
  3. Deploy the file to /.well-known/security.txt on your domain and serve it over HTTPS.

A quoi il sert

  • Create a vulnerability disclosure contact for an open-source project site.
  • Validate an existing security.txt before deploying it to a production domain.
  • Ensure the Expires date is not in the past and the Contact field uses a valid URL or email format.

Cas d'usage

Exemples concrets

Exemple

Security contact page for a SaaS site

A SaaS company creates a security.txt with a dedicated security@ email and a link to their vulnerability disclosure policy page. The file is placed in the /.well-known/ directory and served over HTTPS.

Exemple

Open-source static site

An open-source tool site hosted on GitHub Pages adds a security.txt with a link to their GitHub Security Advisories page. The file includes Preferred-Languages and an Encryption key for PGP-encrypted reports.

Erreurs frequentes

  • Placing security.txt at the site root instead of /.well-known/security.txt — the /.well-known/ path is required by RFC 9116.
  • Letting the Expires date pass without renewal — automated scanners ignore expired security.txt files.
  • Serving the file over HTTP instead of HTTPS — the file must be accessible over HTTPS without redirects.

Vérification

  1. Visit https://yourdomain.com/.well-known/security.txt in a browser and confirm it loads directly over HTTPS without redirects.
  2. Use curl -I https://yourdomain.com/.well-known/security.txt to verify the Content-Type is text/plain and the response status is 200.

FAQ

Questions sur Générateur & validateur security.txt

Where exactly should I place the security.txt file?

Place it at /.well-known/security.txt — the full URL should be https://yourdomain.com/.well-known/security.txt. For GitHub Pages, create a .well-known directory in your published site root and place security.txt inside it. The file must be served directly, not redirected.

How often should I renew the Expires date?

RFC 9116 recommends setting the Expires date no more than 12 months from the current date. Set a calendar reminder to renew it before it expires. Automated scanners and bug bounty platforms ignore expired security.txt files, which defeats the purpose of having one.

Can I have more than one Contact field?

Yes. RFC 9116 allows multiple Contact fields. This is useful when you have separate security and abuse contacts, or when you want to list both a web form URL and a backup email address. List contacts in order of preference.

Outils lies

Autres outils outils github pages

A essayer aussi

A essayer aussi