Linux 软件免费装
Banner图

Codo Security.txt

开发者 cododigital
更新时间 2026年11月16日 16:19
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

security well-known security.txt rfc 9116 vulnerability disclosure

下载

详情介绍:

A security.txt file is a small text file at /.well-known/security.txt that tells security researchers who to contact about a vulnerability on your site. It is standardised as RFC 9116. Without one, a report may never reach you. Codo Security.txt serves the file from your WordPress settings. There is nothing to upload and no rewrite rules to flush. What it does What it does not do Built and maintained by Codo Digital.

安装:

  1. Install and activate the plugin.
  2. Go to Settings > Security.txt.
  3. Enter at least one contact and an expiry date, tick "Publish" and save.
  4. Use "Check delivery now" to confirm your web server serves the file.

升级注意事项:

1.0.0 First release.

常见问题:

Where is the file served?

At https://your-site.example/.well-known/security.txt, and at /security.txt unless you turn the legacy location off.

The file returns a 404

Your web server is probably answering /.well-known/ itself instead of passing the request to WordPress. NGINX: make sure no location ~ /\. rule denies dotfiles before WordPress sees the request. A rule like this keeps .well-known working: location ^~ /.well-known/ { try_files $uri /index.php?$args; } Apache: the standard WordPress .htaccess already passes unknown paths to index.php. If you have a rule that blocks dotfiles, add an exception for .well-known: RewriteRule ^\.well-known/ - [L] Some hosts and CDNs also cache 404s. Purge the cache after you publish.

A real security.txt file exists on my server

Your web server serves a real file in preference to WordPress, so the settings here are ignored. The plugin warns you on its settings page and in Site Health. Delete the file.

Does it work on multisite?

Yes. Each site has its own settings. On a subdirectory network only the main site can publish the file, because every site shares one host.

Why is an expired file still served?

So researchers can still find your contact details. The plugin warns you loudly until you renew it.

Why does it say my expiry is too far away?

RFC 9116 recommends an expiry less than a year ahead, so that the file is reviewed regularly. A later date is accepted with a warning.

Can I turn it off without deleting the settings?

Untick "Publish", or define CODO_SECURITY_TXT_DISABLE as true in wp-config.php.

Does it send data anywhere?

No. See "External services" below.

更新日志:

1.0.0