跳到内容

NetShield – Request Blocker

v1.0.0

Behnam Moradi · 2026年5月11日 上架

Scans and blocks unreachable or unwanted external HTTP requests to dramatically optimize WordPress loading speed on restricted networks.

正在使用
10 以下
评分
暂无
累计下载
364
最近更新
2026年5月11日
需要 WordPress 6.0+已测试到 6.9.12PHP 8.1+

贡献者

NetShield – Request Blocker helps WordPress administrators identify and block external HTTP requests that the server cannot reach due to network restrictions, firewalls, or internet access limitations.

On restricted or internal networks, WordPress and plugins often make dozens of outbound HTTP requests on every page load (to Google Fonts, CDNs, analytics services, etc.). When those endpoints are unreachable, each request stalls and waits for a timeout — silently slowing your site down.

NetShield solves this by:

  1. Scanning a curated list of common external endpoints using the WordPress HTTP API.
  2. Identifying which ones are unreachable from your server.
  3. Blocking future requests to those endpoints via WordPress’s pre_http_request filter — so they never wait for a timeout again.

Key Features

  • On-demand network scanner — test 27 common external endpoints (WordPress.org, Google APIs, CDNs, social platforms, analytics).
  • Selective blocking — choose which unreachable addresses to block; toggle any entry on/off without deleting it.
  • Manual entries — add any domain, URL, or IP address to the block list manually.
  • Context-aware rules — block requests only on the admin side, only on the frontend, or both.
  • Bulk actions — enable, disable, or delete multiple entries at once.
  • Graphical settings page — modern, tab-based admin UI with real-time stats, toast notifications, and toggle switches.
  • Master switch — enable or disable the plugin’s blocking functionality instantly without deactivating it.
  • Auto-block on scan — optionally mark all unreachable URLs as blocked automatically after each scan.
  • Transient caching — blocked URL lists are cached in WordPress transients for optimal performance.
  • Clean uninstall — all data (database table, options, transients, capabilities) is removed on plugin deletion.

Use Cases

  • WordPress sites hosted on intranets or servers with restricted outbound internet access.
  • Development environments behind corporate firewalls.
  • Any WordPress site where external HTTP request timeouts are causing slow admin or frontend load times.

Technical Details

  • Uses WordPress pre_http_request filter for zero-overhead blocking (no request is even initiated).
  • Custom database table (wp_nsb_blocked_urls) for storing and managing blocked entries.
  • REST API endpoints (/wp-json/netshield/v1/) for all admin UI interactions.
  • PHP 8.1+ with strict typing, readonly DTOs, and backed enums.
  • No external dependencies — no Composer required, built-in PSR-4 autoloader.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums