[WordPress] 外掛分享: SpamAnvil

WordPress 外掛 SpamAnvil 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「SpamAnvil」是 2026-02-13 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2026-02-22,距離現在已有 3 天。
  • 外掛最低要求 WordPress 5.8 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

aamato |

外掛標籤

AI | spam | comments | anti-spam | artificial intelligence |

內容簡介

<h3>Summary:</h3>
<ul>
<li>SpamAnvil 是一款免費、開源的 WordPress 反垃圾郵件外掛程式,利用人工智慧技術來阻擋評論垃圾郵件。</li>
<li>與 Akismet 不同,SpamAnvil 使用大規模語言模型 (LLMs) 理解評論並檢測最複雜的垃圾郵件。</li>
<li>適用於免費 AI 模型,保證隱私,支持多家 AI 提供者。</li>
</ul>

<h3>Questions and Answers:</h3>

<h4>Why should I choose SpamAnvil?</h4>
<p>SpamAnvil is 100% free with no hidden costs, smarter than rule-based filters, and understands context better. It works with free AI models and respects your privacy.</p>

<h4>What are some key features of SpamAnvil?</h4>
<p>Key features include AI-powered spam detection, intelligent heuristics engine, async background processing, smart IP blocking, encrypted API key storage, customizable AI prompts, and a statistics dashboard.</p>

<h4>How does SpamAnvil work against spam comments?</h4>
<p>When a visitor submits a comment, SpamAnvil checks for blocked IPs, runs a pre-analysis, and queues for AI analysis. If a comment is marked as spam by the AI, it gets blocked. Repeat offender IPs are also automatically blocked.</p>

<h4>What are some use cases for SpamAnvil?</h4>
<p>SpamAnvil is ideal for blogs receiving lots of spam comments, WooCommerce stores concerned about SEO, membership sites safeguarding community discussions, and multilingual sites needing AI support.</p>

原文外掛簡介

SpamAnvil is a free, open-source WordPress anti-spam plugin that uses artificial intelligence to block comment spam. Unlike Akismet (which requires a paid plan for commercial sites) or simple keyword-based filters, SpamAnvil leverages large language models (LLMs) to actually understand your comments and detect even the most sophisticated spam.
Traditional spam filters rely on static word lists and link counting. Spammers have evolved. SpamAnvil fights back with AI that understands context, intent, and language patterns – catching spam that looks legitimate and approving real comments that others would flag.
Why SpamAnvil?

100% Free – No premium tier, no subscription, no hidden costs. Bring your own API key (free options available).
Smarter Than Rules – AI understands context. A comment about “buying a new home” won’t be flagged just because it contains “buy”.
Works With Free AI Models – Use OpenRouter’s free Llama models for $0 cost, or connect premium models for maximum accuracy.
Privacy-First – Your data stays between you and your chosen AI provider. IP addresses are stored as irreversible SHA-256 hashes. GDPR/LGPD compliant by design.
No Cloud Lock-in – Choose from 6+ AI providers. Switch anytime. Your anti-spam, your rules.

Supported AI Providers

OpenAI (GPT-4o-mini, GPT-4o, etc.)
Anthropic Claude (Claude Sonnet, Haiku, etc.)
Google Gemini (Gemini 2.0 Flash, Pro, etc.)
OpenRouter (100+ models, including FREE ones)
Featherless.ai (Open-source models)
Any OpenAI-compatible API (LM Studio, Ollama via proxy, vLLM, etc.)

Key Features

AI-Powered Spam Detection – Each comment is analyzed by an LLM that scores it 0-100 for spam probability
Intelligent Heuristics Engine – Pre-analyzes comments with regex patterns, spam word detection, URL counting, and prompt injection detection to catch obvious spam without API calls
Async Background Processing – Comments are queued and processed via WP-Cron so your site stays fast
Smart IP Blocking – Automatically blocks repeat offenders with escalating ban durations (24h, 48h, 96h…)
Automatic Retry with Backoff – Failed API calls retry up to 3 times with exponential delays
Encrypted API Key Storage – AES-256-CBC encryption for all stored API keys. Optional wp-config.php constants for maximum security
Statistics Dashboard – Track how many comments were checked, how much spam was caught, API usage and errors
Full Evaluation Logs – See the AI’s reasoning for every comment scored, with provider, model, response time, and score
Customizable AI Prompts – Full control over what the AI is instructed to do
Fallback Provider – Configure a backup AI so spam checking never stops
Prompt Injection Defense – Multi-layered protection prevents attackers from manipulating the AI through crafted comments
Configurable Spam Threshold – Slide between aggressive (catch more spam) and permissive (fewer false positives)
Moderator Bypass – Trusted users skip spam checking entirely

How It Works

A visitor submits a comment
SpamAnvil checks if the IP is blocked from previous spam attempts
The heuristic engine runs a quick pre-analysis (URL count, spam words, suspicious patterns)
If the heuristic score is very high, the comment is instantly marked as spam – no API call needed
Otherwise, the comment is queued for AI analysis (or processed immediately in sync mode)
The AI analyzes the comment in context (post title, author info, heuristic data) and returns a spam score
Comments scoring above your threshold are marked as spam; clean comments are auto-approved
Repeat offender IPs are automatically blocked with escalating durations

Use Cases

Blogs receiving hundreds of spam comments per day
WooCommerce stores where comment spam affects SEO and credibility
Membership sites that need to protect community discussions
Multilingual sites – AI understands comments in any language, unlike keyword-based filters
High-traffic sites – Async processing handles any volume without slowing down your site
Sites tired of Akismet – Free alternative with no cloud dependency and full data control

Security
SpamAnvil follows WordPress security best practices throughout:

AES-256-CBC encrypted API key storage
wp-config.php constant support for API keys (never touch the database)
Nonce verification on all forms and AJAX requests
Capability checks on all admin actions
Prepared SQL statements on every database query
Output escaping on all rendered content
Prompt injection defense: boundary tags, system prompt hardening, heuristic injection detection, strict JSON validation, temperature 0

Languages

English (default)
Translation-ready (.pot file included)

Third-Party Services
SpamAnvil sends comment data (content, author name, email, and URL) to external AI services for spam analysis. The specific service used depends on your configuration. No data is sent until you configure and enable a provider.

OpenAI — https://openai.com — Terms of Use — Privacy Policy
Anthropic (Claude) — https://www.anthropic.com — Terms of Service — Privacy Policy
Google Gemini — https://ai.google.dev — Terms of Service — Privacy Policy
OpenRouter — https://openrouter.ai — Terms of Service — Privacy Policy
Featherless.ai — https://featherless.ai — Terms of Service — Privacy Policy

When using the “Generic OpenAI-Compatible” option, data is sent to the URL you configure. You are responsible for ensuring compliance with the privacy policies of your chosen service.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「SpamAnvil」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.9 | 1.1.0 | 1.1.1 | 1.1.2 | 1.1.3 | 1.1.4 | 1.1.5 | 1.1.6 | 1.1.7 | 1.1.8 | 1.1.9 | 1.2.0 | 1.2.1 | 1.2.2 | 1.2.3 | 1.2.4 | 1.2.5 | 1.2.6 | 1.2.7 | trunk |

延伸相關外掛(你可能也想知道)

  • Akismet Anti-spam: Spam Protection 》Akismet會檢查您的評論和聯繫表單提交,將它們與全球垃圾郵件數據庫進行比對,以防止站點發佈惡意內容。您可以在部落格的“評論”管理畫面中檢查評論垃圾郵件的...。
  • Antispam Bee 》用 Antispam Bee 保障你的 WordPress 博客或網站免受評論垃圾郵件的困擾。這個外掛可以有效地阻止垃圾評論和引用,不需要驗證碼,也不會將個人信息發送給第三...。
  • Spam protection, Honeypot, Anti-Spam by CleanTalk 》Forms spam filter, Plugin extends spam protection for Gravity Forms. It filters spam submissions for each form created with Gravity Forms., MemberP...。
  • Disable Comments 》Disable Comments Plugin 是一個供管理員完全關閉網站評論功能的工具。我們的外掛程式可以全域性地關閉所有文章、頁面和附件的評論功能,移除所有相關的功能...。
  • Comments – wpDiscuz 》wpDiscuz是一個具有自訂評論表單和欄位的AJAX即時評論系統,旨在加強WordPress原生評論功能。速度超快且具有數十種功能,是Disqus和Jetpack Comments的最佳替...。
  • Gravatar Enhanced – Avatars, Profiles, and Privacy 》Gravatar Enhanced為您的網站增加了一些很酷的功能:, , 復古風格(生成的)Gravatar, 啟用Hovercards, 向在您的網站上評論但沒有Gravatar的人發送定制的Gravat...。
  • Disqus Comment System 》Disqus 是網路上最受歡迎的評論系統,被數百萬的出版商信任,以增加讀者參與度、成長觀眾及流量、以及賺取內容。Disqus 協助各種尺寸的出版商直接與其觀眾互...。
  • Throws SPAM Away 》這個外掛的開發旨在打擊海外的評論垃圾郵件,目前以下的篩選器被用來判定垃圾郵件。, ・日語篩選(是否包含日語),  只有留言中包含日語字符才能被發布,沒...。
  • Subscribe to Comments 》Subscribe to Comments是一個強大的 WordPress 外掛,讓留言者可以訂閱文章回覆的電子郵件通知。此外掛還包括一個完整的訂閱管理工具,使留言者可以取消訂閱...。
  • Cookies for Comments 》這個外掛將會在你的部落格 HTML 的原始碼中新增一個樣式表或圖片。當瀏覽器讀取該樣式表或圖片時,會放置一個 Cookie。如果有使用者在這之後留下評論,該 Coo...。
  • Disable Comments 》此外掛完全禁用網站前端和後端的評論功能:, * 隱藏現有評論, * 在前端關閉評論, * 禁用評論、引用通告和Ping的支援, * 重新導向任何試圖訪問評論頁面的使用...。
  • Native PHP Sessions 》 , WordPress 核心不使用 PHP sessions,但有時您的使用案例、外掛或佈景主題可能需要使用它們。, 此外掛實現了 PHP 的原生 session handlers,後台由 WordPr...。
  • Subscribe To Comments Reloaded 》Subscribe to Comments Reloaded 是一個功能強大的外掛,讓留言者可以訂閱後續評論的電子郵件通知。此外掛還包括一個完整的訂閱管理器,讓留言者可以取消訂閱...。
  • Post-Plugin Library 》Post-Plugin Library 是一個共享代碼庫,並沒有獨立的功能,必須安裝它才能為 Similar Posts、Recent Posts、Random Posts、Popular Posts 和 Recent Comment...。
  • One Click Close Comments 》使用者可以從文章管理頁面(‘編輯文章’)及頁面管理頁面(‘編輯頁面’)中,對於他們有足夠權限進行更改的文章關閉或開啟評論(基本上是管...。

文章
Filter
Apply Filters
Mastodon