[WordPress] 外掛分享: Bot Storm Radar

首頁 › 外掛目錄 › Bot Storm Radar
WordPress 外掛 Bot Storm Radar 的封面圖片
全新外掛
安裝啟用
—
尚無評分
剛更新
最後更新
—
問題解決
WordPress 6.0+ PHP 7.4+ v0.8.1 上架:2026-10-11

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.8.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Bot Storm Radar」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Bot attacks no longer come from one address. They come as swarms of thousands of addresses that each make one or two requests, so a tool that judges visitors one by one sees nothing wrong. Bot Storm Radar watches the crowd instead.
Every minute it counts how many different addresses visited, how many made only one request, how many loaded a stylesheet or a script the way a real browser does, and how evenly the browser names are spread. It turns that into a storm score, learns what normal traffic looks like on your site, and tells you in plain words whether a bot storm is running right now and why.
It also protects. It refuses requests for files only scanners ask for before WordPress builds a page, and a single address that keeps probing or asking for missing pages can be banned for a while. Address bans start in observe mode, where they are listed and nobody is refused, until you switch them on.
The radar

Swarm metrics every minute. Single-hit ratio, asset ratio, user-agent evenness, error pressure and endpoint concentration, combined into one storm score and gated by traffic volume.
Learned baseline. Over the first seven days the plugin learns the site’s normal number of distinct addresses per minute and its normal asset ratio, and shows them beside each threshold.
Storm states. Calm, warning, storm and cooling. Every transition is logged with the numbers that caused it and an explanation in words.
Alerts by plain-text email on warning, storm and all-clear.
Good-bot verification. DuckDuckBot is verified against its published address list. Googlebot, Bingbot, Applebot and Yandex are verified by reverse DNS plus forward confirmation once you switch on the Search bot check; until then their claims are counted as not checked and never banned. A user agent alone proves nothing.
The real visitor address behind a proxy. A forwarding header is believed only when the request arrived through Cloudflare, a local proxy or a proxy you declare. A spoofed X-Forwarded-For from an ordinary client is ignored.
Radar screen with the current state, the last 24 hours per minute, top classes, top keys, bot claims and the storm timeline, plus a dashboard widget.

The radar observes and reports. It never blocks a swarm. On a quiet site the numbers stay near zero and the state stays calm.
The protection

Refused early. The refusal runs as soon as WordPress has loaded its plugins, before the theme, the query or any page is built, and reads its rules from one stored option without an extra database query.
Probe refusal, on by default. A 403 for .env and other dot-files, copies of PHP files, configuration and log files, backups and dumps, other applications’ admin paths and .php files that do not exist. Files your web server serves itself never reach it.
Address bans, observe mode first. An address that sends 3 probes in 10 minutes or asks for 20 missing pages in a minute is banned for an hour, and for a day on a repeat. Administrators (for a day after they last used wp-admin), verified search bots, Cloudflare and declared proxies and a never-ban list are never banned.
Bans tab with every ban, its evidence and an Unban button, the bans that would have happened in observe mode, and search-bot claims waiting for verification.
A dry run over your own logs. wp bot-storm-radar replay --gate shows what would have been refused in your access logs before you switch bans on.

Also

Reads web-server access logs (nginx or Apache combined format) as separate sources from WP-CLI, for traffic that never reaches WordPress.
WooCommerce request classes (cart, checkout, wc-ajax) when WooCommerce is active.
Counters live in the persistent object cache or in APCu, with a transient fallback. One of the first two is strongly recommended.
Page cache check. On Check now, and once a day if you switch it on, it requests a few of your own public pages and says in plain words whether a cache really answers them, which pages it does not store, and which cookies take a visitor out of the cache. It changes no cache or CDN setting and needs no credentials.

External services
The plugin ships with two public address lists and uses them as they are. It makes no HTTP request to an outside service unless you ask it to. Usage reports, described at the end of this section, are one such case and are off by default. For the lists, switch on Address lists on the Settings tab to download both lists once a day from WordPress cron, or click Download address lists now. A download sends nothing about your visitors. Like any HTTP request, it shows the service your server’s IP address and a user agent.

Cloudflare address ranges, from https://www.cloudflare.com/ips-v4 and https://www.cloudflare.com/ips-v6. The plugin needs them to tell a request that really came through Cloudflare from one that only claims to. The request carries the WordPress default user agent, which names your site’s address. The bundled copy is used until the first download and whenever a download fails. The service is provided by Cloudflare, see its terms and privacy policy.
DuckDuckBot address list, from https://duckduckgo.com/duckduckbot.json. The plugin needs it to verify visitors that claim to be DuckDuckBot. The request carries the user agent BotStormRadar/ followed by the plugin version. The bundled copy is used until the first download and whenever a download fails. The service is provided by DuckDuckGo, see its terms and privacy policy.

The DNS check of search bots is off by default as well. Switch on Search bot check on the Settings tab to verify visitors that claim to be Googlebot, Bingbot, Applebot or Yandex: the plugin then asks your server’s own DNS resolver for the host name of such an address, and looks that host name up to confirm it points back to the same address. Whether your resolver answers from its cache or asks other DNS servers, which then see the address, depends on your server’s configuration. With the check off, no lookup is made and those visitors are never banned. The same lookups run once when you ask for them on the command line with wp bot-storm-radar replay --gate --verify-bots.
The page cache check talks only to your own site. When you click Check now on the Radar tab, and once a day if you switch on Page cache check on the Settings tab (off by default), it requests your home page, shop, one product, one category and one post the way WordPress’s own loopback requests do, sends back any cookies those pages set, and keeps the result in your database with cookie names only, never their values.
Usage reports are off unless you switch them on. The plugin asks on its own page until you answer, and the switch is Usage reports on the Settings tab. If you say yes, it sends at most one report a day from WordPress cron (two tries under one install ID are at least 20 hours apart, whether or not the first arrived; a new yes starts a new ID), and one more each time you click Send a report now or run wp bot-storm-radar telemetry send, to https://prowoos.com/wp-json/prowoos-telemetry/v1/report, a service run by ProWoos, the plugin’s author, so that storms can be compared across sites and the default thresholds tuned from real ones. Before a yes nothing is sent, and the counts and storm summaries in a report cover only the time after your yes. A report holds only:

a random install ID made when you say yes, never your site address or name, and the plugin’s name;
versions (this plugin, WordPress, PHP), which build of the plugin runs, and environment facts: where the counters live, whether an object cache, a page cache, WooCommerce, multisite or a declared proxy is present, whether an undeclared proxy is suspected, how many log sources there are, and the last page cache verdict;
the detection settings (thresholds, timing, the limits and length of address bans, ban mode, probe refusal, whether the address list downloads, the search bot check and the daily page cache check are on) and the learned baseline as it stands, which was learned from earlier traffic;
counts since the last report that arrived, a day at most and never from before your yes: minutes recorded, requests, warning and storm minutes, 5xx and slow responses, requests refused by the web server and by the gate, bans and would-be bans (each counted up to 200), how many hours the counts cover and how many storm summaries follow; also the bans lifted by hand since then, which is not cut to a day;
for each storm that started and finished after your yes: whether it was seen on the site or in a log, when it started, to the minute, how long it lasted in storm and until calm, how long it took to peak, its peak minute in numbers (score; how many distinct addresses, networks and user-agent strings, as counts; how many addresses loaded pages and how many ran the beacon; requests; the ratios; volume against the baseline and the volume gate; each signal’s share; the request class the concentration signal points at (the busiest among search, login, REST, cart, checkout, missing pages and the like, never ordinary pages or assets)), totals over the storm, requests per request class (a class added by your own code counts as “other”), search-bot claims by outcome, and how it ended (highest rung, ban mode, whether error pressure alone triggered it, re-triggers, how many minute rows the summary is built from and whether it was cut short).

It never holds visitor addresses, user-agent strings, URLs or paths, your site address, emails, or the names of cookies, sources and log files. The request carries the user agent BotStormRadar/ followed by the plugin version, not the WordPress default, which would name your site. Like any HTTP request, it shows the service your server’s IP address; the service keeps it for one hour in hashed form for a rate limit and does not store it with the report, and its web server records the request in its access log, as it does any other. While the reports are on, the Settings tab shows the report as it would be sent, and wp bot-storm-radar telemetry show prints it; wp bot-storm-radar telemetry status, on, off, send and delete do from the command line what the Settings tab does. Switching the reports off stops them and deletes the install ID on your site, after which the plugin can no longer ask for a deletion, so the reports already sent stay until the service deletes them by itself. Delete my data, available while the reports are on, switches them off and also has the service delete everything it stored for that ID; if the service does not confirm, the plugin repeats the request once a day for each install ID still waiting, 30 times at most, and each request carries only that old install ID, the plugin’s name and the word that asks for the deletion, under the same user agent. Deactivating the plugin stops that too, and uninstalling makes no request. The service deletes an install’s reports 365 days after its last report. See the ProWoos terms and privacy policy.

延伸相關外掛

文章
Filter
Mastodon