| 开发者 | phpwarden |
|---|---|
| 更新时间 | 2026年11月30日 09:52 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
phpwarden-wp/1.4.0).home_url()).fpm-fcgi).remote_updates: false, a fixed value telling the service that this plugin never accepts actions from it.usage, four lists of names (no content) used to mark findings that are likely not reachable on your site. They are: registered shortcodes and blocks that appear in published posts, pages or widgets (up to 2,000 recent published posts are read on your site to find them), registered REST API namespaces, and registered AJAX action names, plus the number of posts read. At most 300 names per list.accounts, cron and integrity, the result of the daily tamper check: the login names, user IDs and registration dates of administrator accounts (no e-mail addresses); the names of scheduled tasks, and which of them carry PHP code or a long encoded string in their arguments (the arguments themselves are not sent); and for each changed or unexpected PHP file its path, which check found it (official checksum, recorded baseline or the uploads rule), and the names of any well-known backdoor patterns seen in it, plus a per-component summary (version, number of files, date of the baseline). At most 100 files. File contents are never sent.Authorization header to identify your project. No e-mail addresses, passwords, post content, visitor data, file contents or secrets are sent, and no user accounts unless you turn on the optional tamper check (administrator login names only). The plugin loads no external assets and contains no tracking.
Tamper check (optional, off by default)
A separate checkbox on Settings > phpwarden, unchecked by default, and only active while the main consent box is also checked.
Once a day, in short background steps run by WP-Cron, the site itself:
wp phpwarden integrity --accept) records the current files as the new baseline. Turning the check off removes everything it stored.
Configuration in wp-config.php
define( 'PHPWARDEN_TOKEN', 'your-project-token' );
define( 'PHPWARDEN_API', 'https://app.phpwarden.io' );
Constants take precedence over the settings page and make the corresponding field read-only.
WP-CLI
wp phpwarden activate --consent # stores the token, records consent, sends a report
wp phpwarden sync # sends a report now (only if consent is given)
wp phpwarden status
wp phpwarden disable # withdraws consent; nothing more is sent
wp phpwarden integrity [--enable] [--send] # runs the tamper check now and prints the result
wp phpwarden integrity --accept # after checking the changes: record the current files
wp phpwarden integrity --disable # turns the tamper check off and removes its data
Multisite
The plugin can be network-activated. It reports once for the whole network, from the network's main site, listing all installed plugins and themes. A plugin counts as active when it is network-active or active on the main site; plugins active only on other sites of the network are reported as inactive. Settings are on the main site (Settings > phpwarden) and require a network administrator.
Yes. The plugin only collects the inventory; matching and ranking happen in your phpwarden dashboard.
No. This plugin is not a firewall or malware scanner. It tells you which installed components have vulnerabilities that are being exploited in the wild, so you know what to update first. Keep your firewall or scanner.
No. The plugin only sends the report described above. It never installs, updates, activates or deactivates anything, never creates or changes user accounts, and never runs instructions from the service. You make every change yourself, in WordPress.
In the WordPress options table, or in wp-config.php if you define PHPWARDEN_TOKEN. The settings page only ever shows its last four characters.
Nothing on your site changes. The error is shown in the status box and the plugin tries again at the next scheduled report.
No. Reports are sent in the background by WP-Cron, not during visitor page loads, and the plugin adds nothing to the front end.
All plugin options (token, settings, status) and its scheduled events.
wp phpwarden integrity command.wp phpwarden activate <token> --consent). This includes sites with the token set in wp-config.php.wp phpwarden disable to withdraw consent; wp phpwarden status shows the consent state.