webzod
account

Serve security.txt from /.well-known/ on WordPress

hygiene.security_txt.legacy_location · effort: minutes

Why it matters

RFC 9116 puts the file at /.well-known/security.txt and keeps /security.txt only for older setups. Researchers and tools look in the standard place first.

The fix

  1. Create a .well-known folder in the web root (the folder that contains wp-content) and copy security.txt into it. If a plugin generates the file, open its settings and enable the standard location.
  2. Open https://example.com/.well-known/security.txt to confirm.

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.