[WordPress] 外掛分享: Bottle

首頁外掛目錄 › Bottle
30+
安裝啟用
尚無評分
8 天前
最後更新
問題解決
WordPress 6.7+ PHP 7.4+ v0.3.6 上架:2026-03-12

內容簡介

Bottle 是一款用於減少伺服器負載的機器人限流外掛,透過對 HTTP 請求進行多項檢查,當檢測到過多的請求時,會對會話或 IP 進行限流,確保網站對合法使用者的可用性。

【主要功能】
• 限制每個 IP 的會話數量
• 限制每個會話的請求速率
• 限制每個 IP 的請求速率
• 檢查機器人身份的驗證
• 限制特定網站區域的請求
• 排除特定 URL 或 IP 的處理

外掛標籤

開發者團隊

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

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

原文外掛簡介

Bottle is a bot throttling plugin. It consists of a set of tools that can be used to reduce server load when excessive bot requests are made to a website.
It works by performing a variety of checks on each HTTP request made to WordPress, and throttling sessions or IPs when thresholds are exceeded. These include:

Too many sessions per IP. Since some bots don’t bother with cookies, Bottle sets a JWT session cookie for each request. If a single IP address creates too many new sessions within a given timeframe, it is likely a bot, and will be throttled.

Too many requests per session. Bottle calculates a request rate for each session. Bots that exceed that rate will be throttled.

Too many requests per IP. Bottle calculates a request rate per IP. For bots that don’t process cookies (and therefore sessions), this can throttle abusive IPs.

Too many requests per bot. Bottle calculates a request rate per bot (based on user agent reported). Since malicious bots forge user agents, this should be combined with other throttling mechanisms.

Bot verification check. Bottle checks bots such as Google, Bing, Meta, etc. against authoritative lists of IP addresses, when possible. Bottle allows for a higher verified bot rate than non-verified rate with the idea that verified bots are likely better behaved.

Overall request rate. Bottle can throttle specific sections of a website that are being abused by bots. (For instance, the courses catalog.) This is useful when a large website is being scraped by a bot network with rotating IPs.

Excessive 404s. If bots are scanning a website, or are misconfigured, excessive 404s can be time-consuming for WordPress to process. Bottle can either throttle all 404 requests, or can block 404s for static files (i.e. images) only.

Exclusions. Bottle can exclude certain URLs, IP addresses, or infrastructure (such as Stripe and Pingdom) from processing to prevent false positives.

When a client is throttled, Bottle can outright throttle it with a 429 response, or can serve a JavaScript-based cryptographic puzzle. If a client is legitimate, it will automatically compute the puzzle’s solution and submit it to the server for verification. (No user input is required.) After it has proven its human-ness, Bottle will permit that user entry to the site. At the moment, some bots, but not all, will solve these puzzles.
When a throttle condition is reached, Bottle terminates WordPress processing, which substantially reduces server load when under attack. Throttles end automatically at the end of their respective measurement windows.
Bottle is not a firewall and will not block or sanitize malicious attacks. However, since such attacks are typically performed in large quantities, Bottle can be effective at slowing such attacks and reducing server load, keeping the website operational for legitimate users.
Overall, Bottle is a set of tools designed to reduce server load with minimal disruption to real users.

延伸相關外掛

文章
Filter
Mastodon