SpamAnvil – AI Anti-Spam & Comment Spam Protection
SpamAnvil is a free, open-source WordPress anti-spam plugin — and a genuine Akismet alternative — 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. It layers a honeypot, a time trap and per-IP rate limiting in front of the AI, so obvious bots are blocked for free. 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? Set up in about a minute – Activation opens a wizard that asks for one API key and verifies it before saving. Nothing is stored unless the test passes. 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”. Defense in Depth – Honeypot, time trap, per-IP rate limit and heuristics block obvious bots for free, so the AI is only spent on the subtle cases. Open Mode – Because the filtering is invisible and automatic, you can drop the usual barriers (name/email, login, moderation) and get more real comments – even anonymous ones – without opening the door to spam. Works With Free AI Models – Use OpenRouter’s free 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 salted, keyed hashes (HMAC-SHA-256), not recoverable without your site’s secret. 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.) A Swiss-Army-Knife of Defenses SpamAnvil layers several spam defenses so cheap, invisible filters catch obvious bots for free and the AI only handles the subtle cases. Every layer is optional and runs before any paid API call: Honeypot – A hidden field bots fill but humans never see. Instant, free block. Time trap – Comments submitted faster than a human could type are flagged. Tamper-proof (signed) and fails open, so it never blocks a real visitor. Per-IP rate limit – Throttles comment floods from a single IP before they even reach the database. Heuristics engine – Regex/statistical pre-analysis (URLs, spam words, gambling/SEO author names, language mismatch, prompt-injection patterns) that auto-spams the obvious cases with no API call. AI verdict – An LLM scores the rest 0-100 in context. Key Features AI-Powered Spam Detection – Each comment is analyzed by an LLM that scores it 0-100 for spam probability. Works with reasoning models (their thinking is parsed correctly). Layered Bot Defense – Honeypot, time trap and per-IP rate limiting block obvious bots for free, before any AI call. Model Picker – Browse and search each provider’s live model list right from the settings page (OpenAI, OpenRouter, Featherless). OpenRouter shows a “free” badge and context size. “Open Mode” – One toggle removes WordPress comment friction (no required name/email, no login, no moderation hold) so leaving a real, even anonymous, comment is effortless. Comments appear instantly and spam is removed in the background. Verdict Cache – Identical repeated spam reuses a recent AI verdict instead of calling the API again, cutting cost during floods. Intelligent Heuristics Engine – Pre-analyzes comments 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… capped at 30 days). Automatic Retry with Backoff – Failed API calls retry with exponential delays; a real “Test Connection” verifies actual classification, not just the HTTP status. Encrypted API Key Storage – Authenticated AES-256-GCM encryption, or wp-config.php constants for maximum security. Statistics Dashboard & Logs – Track spam caught by each layer, API usage and errors, with the AI’s reasoning for every comment. An admin warning surfaces silent failures (no provider, or a backlog of failed items). Customizable AI Prompts, Fallback Providers, Prompt-Injection Defense, Configurable Threshold, Moderator Bypass. How It Works A visitor submits a comment. Rate limit – too many comments from this IP too fast? Throttled with an HTTP 429 (before anything is stored). IP block – is the IP already banned for repeat spam? Blocked. Form traps – was the hidden honeypot filled, or the comment submitted implausibly fast? Marked as spam instantly, no API call. Heuristics – a quick regex/statistical pre-analysis; obvious spam is auto-marked with no API call. Otherwise the comment is queued for AI analysis (or processed immediately in sync mode). Identical repeated content reuses a cached verdict. The AI analyzes the comment in context (post title, author info, heuristic data) and returns a spam score. Comments above your threshold are marked spam; clean comments are auto-approved. Repeat-offender IPs are escalated. With Open Mode on, comments publish instantly and any spam is removed in the background instead of being held for moderation. 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: Authenticated AES-256-GCM encrypted API key storage wp-config.php constant support for API keys (never touch the database) Configurable trusted IP header (default REMOTE_ADDR) so a forged X-Forwarded-For cannot bypass IP blocking or rate limiting 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 around the comment body AND commenter metadata, system prompt hardening, heuristic injection detection (body and author fields), strict JSON validation, deterministic settings 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.
Top keywords
- ai23×1.97%
- spam22×1.89%
- api14×1.20%
- comment14×1.20%
- comments13×1.12%
- ip8×0.69%
- models7×0.60%
- obvious7×0.60%
- spamanvil7×0.60%
- data6×0.52%
- openrouter6×0.52%
- privacy6×0.52%
Sucuri Security – Auditing, Malware Scanner and Security Hardening
At Sucuri, we are dedicated to keeping your website safe and secure. With a focus on protection and monitoring, we offer solutions that help you stay ahead of potential threats for your WordPress site. Our services include everything from malware detection to performance optimization, all designed to give you peace of mind. We understand the importance of your online presence and are here to support you every step of the way. Join us, and let’s work together to ensure your website remains secure and resilient. The Sucuri Security Monitoring Plugin is designed to safeguard your WordPress site with ease and reliability. Our plugin offers a range of essential security features, including: Security Activity Auditing: Keep track of every security-related event within your WordPress environment. File Integrity Monitoring: Detect unauthorized changes to your files and protect your site from potential vulnerabilities. Remote Malware Scanning: Regularly scan your site for malware with our remote scanner to ensure it’s clean and secure. Blocklist Monitoring: Receive alerts if your site is blocklisted by any major services, allowing for quick resolution. Security Hardening: Implement recommended security practices to fortify your site against threats. Post-Hack Security Actions: If the worst happens, our plugin helps you recover your site easily. With Sucuri, you can focus on what matters most—growing your website—while we handle the security. Our feature set provides a clear view of your site’s status, making it easy to manage, monitor and take action. Contributors & Maintenance Notice Our dedicated team of engineers and security analysts is continually working to enhance the Sucuri Security Monitoring Plugin. We provide regular updates, address bugs, and actively incorporate user feedback to ensure your WordPress site maintains its highest security stance. Our growth roadmap underscores our commitment to keeping you protected against emerging threats. To support you further, we offer a variety of resources, including prompt responses for the forum, our website’s various content types, and an extensive knowledge base. Our content is designed to help you maximize your plugin feature usage and benefits with the support you need. If you want to be ahead of possible threats and keep up-to-date with Plugin updates, subscribe to our content here. Introducing the Sucuri Firewall + WordPress Security Plugin We’re excited to introduce the Sucuri Firewall + WordPress Security Plugin, designed for those who seek advanced protection for their WordPress sites. Building upon our trusted free plugin, this premium offering provides a robust suite of features to ensure comprehensive security and peace of mind. Key features include: * Web Application Firewall (WAF): Protect your site from malicious traffic with our powerful firewall solution. * Brute Force Protection: Safeguard your site against unauthorized login attempts. * Brute Force Audit & Reporting: Gain insights into login attempts with detailed auditing and reporting. * DDoS Mitigation: Maintain site availability even during targeted attacks. * Core Vulnerabilities Scanning: Identify and address security weaknesses in WordPress core files. * Plugins Vulnerability Scanning: Ensure your installed plugins are secure and up to date. * Themes Vulnerability Scanning: Protect your site by scanning for vulnerabilities in installed themes. * PHP Vulnerability Scanning: Detect and address potential security issues in your PHP environment. With the Sucuri Firewall + WordPress Security Plugin, you benefit from the expertise and dedication of our team, committed to keeping your digital assets secure. Experience the next level of protection and support, and enjoy the peace of mind that comes with knowing your site is in good hands.