Message Filter for Contact Form 7


Do you receive spams every day? have you installed a dozen plugins and you still get spammed? Well this may be the solution to your problem.
This plugin filters messages submitted from contact form 7. You can decide to either filter messages based on restricted words found in the content of the message or filter based on the email of the person submitting the form.
Filters will be extended to other contact form plugins with time.

Supported Plugins

  1. Contact form 7
  2. WPForms

Note: This is just an extension. This plugin is not affiliated with or endorsed by Contact Form 7 or WPForms.

Pro Features

Upgrade to the pro version from the Account submenu page to have access the following features:
1. Unlimited words and emails: Add as many words and emails as you want
2. Month Reports: Receive monthly spam reports directly to your email
3. Spam Suggestion: Receive suggestions for new spam words and emails
4. Blacklist/Whitelist forms: Decide which forms to validate or not to validate
5. CSV Upload: Upload CSV with spam words/emails
6. Add custom filters: Create your own custom filters


We may collect ONLY the following information, if accepted by the site administrator:
– The messages blocked by the plugin and
– Words added to the plugin as spam
This is used solely for the purpose of making improvements to the plugin.

In addition to the above, Freemius, a third party plugin used to manage plugin licences may also collect additional information, if the site administrator accepts.

How to Contribute

The source codes can be downloaded here GitHub


  • Dashboard
  • Blocked messages
  • Options


  1. Download the plugin
  2. Install and activate
  3. Open CF7 Form Filter from your admin menu
  4. Go to Options and fill your restricted words and/or emails
  5. You can decide to activate the words filter and/or email filter
  6. Save and wait for someone to submit


24, Abril de 2024
The Lite version worked great for keeping out most of the SPAM, phishing, and other breaches to our inbox. But I upgraded to the Pro version to block some additional SPAM that had started hitting us hard. I was getting emails from gmail and other accounts that had a lot of periods in the username area, like I added .a. .b. .c. and so on to the filter, and it is now blocking them quite efficiently. Thank you for creating this filter for CF7! It works great, easy to use, and the price for the Pro Version is great!
21, Agostu de 2023
Iv’e tried several plugins to stop spam but they still got through. This one actually works!
21, Marzu de 2023 2 replies
Since employing this plugin. The human spam has gone. Thank you. would a great idea to have option to block spam on convert kit or fluent form submit also and offer as premium.
16, Xineru de 2023
Been building sites with cf7 for 4 years, and recaptcha gets only part of the job done, honey pot gets only part of it done, and hcaptcha (for me) was a disaster because legit lead forms weren’t getting through. I was at a loss as to how to fill the gap. 95% of my spam still getting through was coming from digital marketers, and I wondered — why isn’t there a simple plugin that would filter out lead forms based on certain keywords? This plugin for some reason was hard to find, but fits the bill. I’m honestly surprised it doesn’t have at least a million users. If those using CF7 knew about it… it would. Honestly a no-brainer, one of those that is such common sense that you feel stupid you didn’t think of a lot earlier. Has lots of potential.
Read all 13 reviews

Contributors & Developers

“Message Filter for Contact Form 7” is open source software. The following people have contributed to this plugin.



  • Add ability to enable or disable filter modifiers in the new tag UI


  • Fix values from checkboxes and select fields not showing when viewing a blocked message
  • Fixes to the new tag UI


  • Updated the frequency charts.
  • Fixes to the new tag UI: Assign different colors to different types of filters.
  • You can now create your own custom filters.
  • Added 8 new filter modifiers: startsWith, endsWith, startsWithExcluding, endsWithExcluding, contains, containsExcluding, containsExcludingEnd and containsExcludingStart


  • Make visible columns persistent across different browsers/sessions.
  • Minor fixes to the new tag UI.

  • Fix wrong values on yearly statistics graph.


  • New tag UI. This new UI will enable you to easily make changes to a single filter.
  • You can now select & modify the words you want to import from a CSV file.
  • Fix January 2024 showing at the beginning of the 1 year statistics graph
  • Fix filters being case sensitive.
  • Update Freemius

  • Remove Black Friday notice


  • Fix Flamingo saving blocked messages


  • Update Freemius
  • Add Black Friday coupon


  • Update WordPressTools library


  • Fix bug with the [emoji] filter.
  • Updated the graphs on the dashboard
  • Added monthly email report feature


  • Fix bug with the CF7 Conditional Fields Plugin.
  • Add Ability to select the forms to validate or not to validate (Blacklist/Whitelist).


  • Fix bug when adding a custom field on the WPForm settings page.
  • Fix text fields not checked for spam.


  • Fix bug when selecting multiple messages. Sometimes the delete button disappears when selecting multiple messages.


  • Fix bug when deleting multiple messages


  • Add the ability to mark a message as not spam


  • Fix disappearing fields on save


  • Upgrade guide updated


  • Fix migrations not running on upgrade


  • Add support for WPForms
  • Add premium plugin


  • Fix emoji in filter not working
  • Add [emoji] filter
  • Add option to show a success message if a spam is found.
  • Fix single line text filters not working


  • Fix wrong filter name on the filters page


  • Add [japanesse] [hiragana] [katakana] and [kanji] filters
  • Compatibility with WordPress 6.0


  • Add tests
  • Compatibility with WordPress 5.9
  • Update min php version to 5.6


  • Escape HTML tags in message content


  • Add compatibility with WordPress 5.8


  • Fix bug when filter sees words separated with space as two words
  • Fix filter not working for words like “.online”


  • Add auto-clear messages function
  • Move log file to uploads folder
  • Grouped blocked messages per form
  • Bug fixes


  • Fix bug with some messages with links bypassing the checks


  • Add option to filter other text fields
  • Update [link] filter to filter urls without protocols
  • Other Bug Fixes


  • Add custom error messages
  • Add ability to filter messages containing links using [link] keyword
  • Bug Fixes


  • Fix unicode characters not displaying in all messages page


  • Refactored Codes
  • New dashboard UI