Linux 软件免费装
Banner图

NIVA Guard

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

标签

performance 404 http notices heartbeat

下载

2.6.4

详情介绍:

See and control every outgoing connection of your WordPress plugins and themes. Log each connection with its timing, block ads and promotional notices, cache license checks instead of cutting them off, skip unreachable hosts automatically, turn WP-Cron into a real server cron, and answer scanner probes with a fast static 404. Many plugins and themes call home on every page load or in the dashboard: advertising feeds, news widgets, license checks, update checks, usage tracking. On a slow or filtered network (some hosting regions cannot reach many foreign servers at all) each of those calls can wait 5 to 15 seconds and slow down the whole site. NIVA Guard shows which plugin connects to which address and how much time it costs, then lets you decide for each connection: leave it, block it, or (for licenses) cache the answer. Nothing is blocked by default: every switch is off until you turn it on. Connections Dashboard and admin clean-up Server tools (each one is optional and off until you enable it) Privacy and safety Source code and issue tracker: https://github.com/Ali-MR-23/niva-guard == Installation ==
  1. Upload the plugin to /wp-content/plugins/niva-guard/ or install it from the Plugins screen.
  2. Activate it. Nothing is written outside the plugin folder at this point.
  3. Open Settings → NIVA Guard, review the options and save.
  4. Browse the site and the dashboard for a few minutes so connections are recorded, then open the Known connections tab and review the list. For licenses use Cache instead of Block.
  5. Optional: turn on Load before other plugins so no plugin can connect before the logger starts.

屏幕截图:

  • Known connections: the built-in list with type, impact on speed and a block or cache switch for each item.
  • Dashboard clean-up: widgets, admin menu items and promotional notices.
  • Server tools: Heartbeat control, Fast 404 and the WordPress cron with a ready server command.
  • Automatic circuit breaker: skipped hosts and their status.
  • Deep tracking: direct PHP connections and the static scan of plugin code.

升级注意事项:

2.6.4 The log folder is renamed to niva-guard; your log and settings are kept. If you use the early loader or Fast 404, they are refreshed automatically. 2.6.3 The generated 404.html is simplified (no script). Use "Regenerate 404.html" to refresh an existing file. 2.6.2 The interface is shown in English until a translation for your language is available on translate.wordpress.org. Settings are kept. 2.6.1 Security hardening of the notice keyword filter. Settings are kept. 2.6.0 The plugin folder is now niva-guard. Deactivate the old niva-wp-guard copy first; your settings are shared. 2.5.1 Small fixes and a more complete cron card. Settings are kept. 2.4.1 Internal names changed to a unique prefix. Your settings are migrated automatically; deactivate any old "NIVA HTTP Guard" copy first.

常见问题:

Does the plugin send any data to another server?

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).

Which files does it create outside its own 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.
The log folder 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.

Can blocking a connection break something?

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.

Does it work on Nginx?

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.

Where is the human-readable source?

All PHP, CSS and JavaScript files in the plugin are unminified and readable.