| 开发者 | alimohajer |
|---|---|
| 更新时间 | 2026年10月16日 00:31 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
file_get_contents( 'http…' ), fopen) and a static scan of plugin code for curl and fsockopen..env, backups, fake PHP files) with a light static 404 page instead of loading WordPress. Your real files, redirects and short links are not affected. A backup of .htaccess is kept and restored automatically if the site returns a server error.DISABLE_WP_CRON to wp-config.php) and get a ready cron command for cPanel, CloudLinux, DirectAdmin, Plesk, WP-CLI, wget and curl, matched to your PHP version and your real path, with a sensible interval from 1 minute to 6 hours. The settings page also shows the last successful run, the last failed run and the next scheduled task./wp-content/plugins/niva-guard/ or install it from the Plugins screen.No. It does not connect to any external service. The only request it makes is to your own site (home URL), once, after it edits .htaccess or wp-config.php, to be sure the site still answers; if the site returns a server error the edit is rolled back. The connection log is stored only on your own site (database and a text file in the uploads folder).
Only if you turn the related option on and save the settings:
wp-content/mu-plugins/niva-guard-loader.php — "Load before other plugins", so no connection escapes the logger.wp-content/mu-plugins/niva-guard-heartbeat.php, niva-guard-fast-404.php — the server tools.404.html in the site root and a block between # BEGIN NIVA WP Guard and # END NIVA WP Guard in .htaccess — Fast 404. A backup of .htaccess is saved first and restored automatically if the site returns a server error afterwards.wp-config.php — only if you turn on "Disable the built-in WordPress cron": one marked line define( 'DISABLE_WP_CRON', true ); is added (and removed again when you turn the option off or deactivate the plugin). If the site returns a server error afterwards, the file is restored automatically.wp-content/uploads/niva-guard/ is created when the first connection is logged. If WordPress cannot write these files, the settings page shows download buttons and manual instructions instead.
Everything is removed when you deactivate or delete the plugin.
Blocking "license" or "plugin function" connections can lock a theme or stop SMS and orders from working. For licenses use "cache" instead of "block". The settings page warns you before you block these.
The logger, circuit breaker and Heartbeat control work everywhere. Fast 404 cannot edit .htaccess on Nginx; the settings page gives you the equivalent Nginx snippet instead.
All PHP, CSS and JavaScript files in the plugin are unminified and readable.