
MDL Spam Filter
v1.0.2Monday Digital Lab · 2026年7月22日 上架
Stop contact form spam before it reaches your inbox — spam keywords, hidden bot traps and optional AI. Works with Contact Form 7, WPForms and more.
- 正在使用
- 10+
- 评分
- 暂无
- 累计下载
- 1,460
- 最近更新
- 2026年11月24日
截图






Stop contact form spam before it reaches your inbox. MDL Spam Filter is a lightweight anti-spam plugin for Contact Form 7, WPForms, Gravity Forms, Elementor forms, and almost any other contact form. It uses spam keywords, hidden bot traps, a limit on how fast and how often one visitor can send, a language filter, and optional AI (Anthropic Claude, OpenAI GPT, or another AI service you choose). No CAPTCHA, nothing extra for your visitors to do, and nothing is saved or emailed until a message passes the check.
How it protects you
MDL Spam Filter checks every message sent through your forms before your form plugin handles it. When a message is spam, it is stopped: no email goes out — not the “new message” email to you, and not any automatic reply to the visitor — and nothing is saved in your form plugin. You decide whether blocked messages are kept in this plugin’s own private log.
There is nothing to set up per form. It checks any form that asks for an email address, and recognises Contact Form 7, WPForms, Gravity Forms, Ninja Forms and Elementor forms even without an email field. Simple HTML forms and forms that send without reloading the page work too. Check all forms, or only the ones you choose.
How a message is checked
The quickest checks run first, so most spam is stopped before anything costly happens:
- Is it a contact form? Only form messages are checked. WooCommerce checkout and account pages, user registration, login, and password reset are never checked or blocked.
- Allow list — senders you trust are always let through.
- Block list — senders you have blocked are stopped at once.
- Bot trap — a hidden field that only bots fill in.
- Minimum time — stops forms sent faster than a person could fill them in.
- Submission limit — stops one visitor sending too many messages in a minute.
- Language guard — blocks the languages or alphabets you choose, and words disguised with look-alike letters.
- Keywords — the built-in spam list plus your own words.
- AI — an optional extra check by the AI service you choose.
Steps 2–7 are instant and free. Only steps 8–9 read the message itself, and AI always runs last.
What happens to spam. Messages caught by keywords or AI can wait in the Review queue for your decision (on by default) instead of being deleted. Obvious bots (steps 3–7) are always blocked straight away. Either way, you choose what the sender sees:
- Quietly drop it — the form shows its normal thank-you message, so bots get no clue.
- Show a blocked message — the form shows a clear “flagged as spam” message.
Keywords
- 200+ built-in spam keywords in groups (medicines, SEO offers, scams, gambling, and more) — turn them on or off one by one, by group, or all at once.
- Add as many of your own words and phrases as you like.
- Pause or remove any keyword without losing it.
- Advanced: use patterns (regular expressions) by wrapping a keyword in slashes, like /pattern/. A broken pattern is simply skipped.
- Each keyword shows how many messages it has blocked, so you can spot the ones that never match.
AI detection (optional, uses your own API key)
- Works with Anthropic (Claude), OpenAI, or another AI service that works like OpenAI, using your own API key. Keywords alone need no API key.
- The AI is asked for a simple yes-or-no spam answer, so results are clear.
- Your own AI rules: keep the built-in rules, write your own, or use both. A “Draft rules with AI” helper and ready-made templates for common types of business write the rules for you from a short description.
- If the AI service is down, keywords check the message instead, so spam doesn’t slip through (when using AI only; on by default).
- For extra safety, API keys can be kept in your site’s wp-config.php file instead of the database, and they are never included in a settings export.
Review queue
- On by default: messages caught by keywords or AI wait for your decision before your form plugin saves them or any email is sent. The visitor still sees the form’s normal thank-you message.
- Look at the message, then Accept it (it is emailed to the site admin) or Block it (it is deleted and recorded in the Filter Log).
- Learn from spam: one-click Allow sender / Block sender, and an “add keyword” box that turns a typical spam phrase into a keyword.
- Optional email when a message is held.
Language guard and sender lists
- Optional language guard: block the alphabets you choose (Cyrillic, Chinese, Arabic, and more), or allow only the ones you choose. It always catches words disguised with look-alike letters. Accented languages such as French or German are never affected.
- Allow list and block list by email address, website domain, or IP address — with a one-click “Block sender” link on every Filter Log and Review row.
Log, privacy and clean-up
- Optional private log of blocked messages, kept by this plugin only — never saved in your form plugin or email log.
- Visitors’ real IP addresses are never stored.
- Search and filter the log by date and reason, delete entries, and export it as a spreadsheet (CSV).
- Automatic clean-up: log and review entries older than the number of days you choose (default 90, 0 = keep forever) are deleted once a day, so a wave of spam can’t fill up your database.
- Activity Log: who changed settings and keywords, imports and exports, clean-ups, AI tests and AI errors — kept 90 days by default.
- Fields that look like passwords, card numbers, or other secrets are never sent to an AI service and never stored in the log.
Email notifications
- One place for every email: set a main address (the site admin email if left empty), turn each email on or off, and give any email its own addresses.
- A “Send test email” button to check delivery.
- Optional email when the AI service has a problem (wrong key, no credit, service down) — at most one per problem every 10 minutes.
- Optional weekly digest: spam blocked, how it was caught, top senders, and messages waiting for review.
Dashboard and reports
- A dashboard for the last 7, 30 or 90 days: a daily chart of blocked spam, the change since the previous period, your busiest day, messages waiting for review, how spam was caught, and the top spam senders and targeted pages — click any of them to see the matching log entries.
- A System health card shows whether each part of the plugin is working, with a link to fix anything that needs attention.
- A setup checklist, one-click report export (CSV), and a “spam blocked” counter in the WordPress At a Glance box.
Easy to use
- Its own MDL Spam Filter menu, settings grouped into clear sections, and page-specific help in the WordPress Help tab.
- A warning on every page when protection is off; follows your admin colour scheme.
- Accessible: works with the keyboard and screen readers, and respects reduced-motion settings.
- Copy your settings to another site with Import/Export (API keys are never included), or copy just your keywords.
External Services
This plugin connects to third-party AI services only when AI detection is enabled, or when an admin uses the optional “Generate rules with AI” assistant on the settings page. Keyword-only mode with the assistant unused contacts no external service.
Anthropic (Claude API)
Used to classify submission text as spam or genuine when the AI provider is set to Anthropic, and to draft custom detection rules when an admin uses the “Generate rules with AI” assistant.
- What is sent: the text content of the contact form submission and your API key, sent to the endpoint at the time a submission is scanned; and, only when an admin clicks “Generate rules with AI”, the business description that admin types into the assistant.
- Endpoint: https://api.anthropic.com/v1/messages
- Terms of Service: https://www.anthropic.com/legal/commercial-terms
- Privacy Policy: https://www.anthropic.com/legal/privacy
OpenAI (Chat Completions API)
Used to classify submission text as spam or genuine when the AI provider is set to OpenAI, and to draft custom detection rules when an admin uses the “Generate rules with AI” assistant.
- What is sent: the text content of the contact form submission and your API key, sent to the endpoint at the time a submission is scanned; and, only when an admin clicks “Generate rules with AI”, the business description that admin types into the assistant.
- Endpoint: https://api.openai.com/v1/chat/completions
- Terms of Use: https://openai.com/policies/terms-of-use
- Privacy Policy: https://openai.com/policies/privacy-policy
Custom provider (optional)
If you set the AI provider to “Custom”, submission text and your API key are sent to the OpenAI-compatible endpoint URL you enter in the settings — and, only when an admin clicks “Generate rules with AI”, the business description that admin types into the assistant. The endpoint must be an https:// URL that is not a private or loopback address (an http:// endpoint can be enabled with the mdlsf_allow_insecure_custom_endpoint filter for a trusted local model). No request is made unless you configure this. Because the endpoint is supplied by you, review the terms and privacy policy of whichever provider you point it at (for example OpenRouter, Groq, Together AI, or a self-hosted model).
Deactivation feedback (optional)
When you deactivate the plugin from the Plugins screen, a short popup asks why. Answering is optional: “Skip & Deactivate” is always available, nothing is sent unless you click “Submit & Deactivate”, and the plugin deactivates either way.
- What is sent: the reason you pick, the comment you type (if any), the plugin version, the WordPress version and your site language. Your email address is included only if you tick “You may contact me” and enter it. No site URL, IP address or user name is included in the message.
- How it is sent: as an email from your own site (using WordPress’s wp_mail) to lab@mondaydigital.com. Like any email from your site, the sender address in the email headers shows your site’s domain.
- Switch it off:
add_filter( 'mdlsf_feedback_enabled', '__return_false' ); - Monday Digital Lab privacy policy: https://mondaydigital.com/privacy-policy/