webzod
account

Fix repeated or insecure fields in security.txt

hygiene.security_txt.invalid_field · effort: minutes

Why it matters

Expires and Preferred-Languages may appear only once, and links to your policy, encryption key or acknowledgements page must use https. A file that breaks these rules can be rejected or misread by tools.

The fix

  1. Keep a single Expires line and a single Preferred-Languages line. Join several languages in one line, separated by commas.
  2. Change every web link (Policy, Encryption, Acknowledgments, Hiring, Canonical, and web Contact values) from http:// to https://.
text
Contact: mailto:security@example.com
Expires: 2026-12-31T23:59:59Z
Preferred-Languages: en, de
Policy: https://example.com/security-policy

The examples use example.com. Replace it with your own domain.

Read the documentation (opens in a new tab)

Scan your domain to see whether this applies to you.