跳到内容

ScraperGuard – AI Scraper Blocker

v1.0.0

KNEET · 2026年3月14日 上架

Block “good bots” (AI scrapers) by User-Agent. Optional Apache .htaccess rules and WordPress-level blocking with basic stats.

正在使用
10 以下
评分
暂无
累计下载
518
最近更新
2026年3月14日
需要 WordPress 5.8+已测试到 6.9.12PHP 7.4+

贡献者

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.

Plums

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

导航

说明

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

© 2026 Plums