Title: ScraperGuard &#8211; AI Scraper Blocker
Author: KNEET
Published: <strong>2026 年 3 月 14 日</strong>
Last modified: 2026 年 3 月 14 日

---

搜尋外掛

![](https://s.w.org/plugins/geopattern-icon/scraperguard.svg)

# ScraperGuard – AI Scraper Blocker

 由 [KNEET](https://profiles.wordpress.org/kneet/) 開發

[下載](https://downloads.wordpress.org/plugin/scraperguard.1.0.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/scraperguard/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/scraperguard/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/scraperguard/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/scraperguard/#developers)

 [技術支援](https://wordpress.org/support/plugin/scraperguard/)

## 外掛說明

ScraperGuard helps you block known AI scrapers (often called “good bots”) by matching
their User-Agent string.

You can:

 * Select specific bots to block, or block all known bots.
 * Add your own custom User-Agent substrings (one per line).
 * Block via Apache `.htaccess` (fast, before WordPress loads) **or** via WordPress-
   level blocking (can show basic stats).

Important notes:

 * This plugin can block “good bots” that identify themselves. It cannot stop “bad
   bots” that ignore rules and/or spoof User-Agents. For that you may need additional
   security measures (WAF, rate limiting, bot protection).
 * `.htaccess` blocking works on Apache hosting only, and requires a writable `.
   htaccess` file.
 * WordPress-level blocking only affects requests that reach WordPress (it won’t
   block direct hits to static files unless they route through WordPress).
 * Country blocking (geo blocking) can use a country header (fast) or an IP lookup(
   works without Cloudflare but is slower).

The settings page is under **Tools  ScraperGuard**.

### External Services

This plugin can optionally connect to third-party IP geolocation services to determine
the visitor’s country for country-based blocking. This feature is **disabled by 
default** and only activates when you explicitly enable “Country blocking” in the
settings.

**When country blocking is enabled and the “Country detection method” is set to “
Auto” or “IP lookup”:**

 * **Service used**: The plugin uses either ipwho.is or ipapi.co (configurable in
   settings)
 * **Data sent**: The visitor’s IP address is sent to the selected service
 * **When data is sent**: Only when a request is received and no country header 
   is available from your server/proxy
 * **Purpose**: To determine the visitor’s country code (ISO-2) for geo-blocking
 * **Caching**: Results are cached locally for 24 hours by default (configurable
   1-168 hours) to minimize requests
 * **Privacy**: IP addresses are sent to external services. Ensure compliance with
   your privacy policy and local regulations.

**ipwho.is (default provider):**
 * Service provider: ipwho.is * Privacy policy:
https://ipwho.is/ * Terms of service: https://ipwho.is/ * No API key required

**ipapi.co (alternative provider):**
 * Service provider: ipapi.co * Privacy policy:
https://ipapi.co/privacy/ * Terms of service: https://ipapi.co/terms/ * No API key
required for basic usage

**Important**: If you keep the “Country detection method” set to “Header only” (
the default), or if you don’t enable country blocking at all, no data is sent to
external services.

## 安裝方式

 1. Upload the folder `scraperguard` to your `/wp-content/plugins/` directory.
 2. Activate the plugin in WordPress.
 3. Go to **Tools  ScraperGuard**.
 4. Choose which bots you want to block (or “block all known bots”).
 5. Pick your blocking method:
 6.  * Enable Apache `.htaccess` blocking (fastest) if your host supports it, and/or
     * Enable WordPress-level blocking (for basic stats).

## 常見問題集

### Can I block all AI scrapers at once?

Yes. Enable “Block all known AI/archiver bots”.

### Will this stop malicious bots?

Not reliably. “Bad bots” may ignore robots.txt and can spoof User-Agent strings.
Consider a WAF, rate limiting, login protection, and server-side security rules.

### Can I block whole countries?

Sometimes. The plugin supports optional country blocking at WordPress level. For
best results, set “Country detection method” to “Auto” or “IP lookup”. Note that
IP lookup needs outbound HTTPS from your server and may have privacy implications.

### Does `.htaccess` mode work on every host?

No. It requires Apache + `AllowOverride` + a writable `.htaccess`. On Nginx, `.htaccess`
is ignored; use WordPress-level blocking or configure your server rules manually.

### Why don’t the stats include `.htaccess` blocks?

Because `.htaccess` blocks requests before WordPress runs. WordPress cannot count
requests it never sees. Use your server logs for that.

### Can I see traffic / blocks in a graph?

The plugin includes a simple “last 14 days” bar overview and a small table for WordPress-
level blocks. For accurate totals (including `.htaccess` blocks), use server logs
or analytics.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈ScraperGuard – AI Scraper Blocker〉的開發相關工作。

參與者

 *   [ KNEET ](https://profiles.wordpress.org/kneet/)

[將〈ScraperGuard – AI Scraper Blocker〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/scraperguard)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/scraperguard/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/scraperguard/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/scraperguard/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/scraperguard/)。

## 變更記錄

#### 1.0.0

 * Initial release.

## 中繼資料

 *  版本 **1.0.0**
 *  最後更新 **3 個月前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 5.8 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.4**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/scraperguard/)
 * 標籤:
 * [AI](https://tw.wordpress.org/plugins/tags/ai/)[bots](https://tw.wordpress.org/plugins/tags/bots/)
   [htaccess](https://tw.wordpress.org/plugins/tags/htaccess/)[scraper](https://tw.wordpress.org/plugins/tags/scraper/)
   [user agent](https://tw.wordpress.org/plugins/tags/user-agent/)
 *  [進階檢視](https://tw.wordpress.org/plugins/scraperguard/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/scraperguard/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/scraperguard/reviews/)

## 參與者

 *   [ KNEET ](https://profiles.wordpress.org/kneet/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/scraperguard/)