WordPress OSINT, maintenance or security needs? Reach out!
TLDWP

Plugin: cf7-antispam (Used by 3,658 domains)

AntiSpam for Contact Form 7

👤 Erik

Are you unsatisfied with your current antispam solution for Contact Form 7? It might be using an ineffective method to combat the specific type of bot attacks you’re facing. Fortunately, I have a solution for you!
Antispam for Contact Form 7 is a simple yet highly effective plugin that protects your mailbox from bot flooding. Say goodbye to tedious configurations and captchas, which often lead to reduced conversions and inconvenience for genuine users. Our plugin utilizes a combination of on-page and off-page bot traps, along with an auto-learning mechanism powered by a statistical “Bayesian” spam filter called B8.
CF7-AntiSpam seamlessly integrates with Flamingo and enhances its functionality. When both plugins are installed, Flamingo gains additional controls, and an extra dashboard widget is enabled.

SETUP

Basic – Install and go! No configuration, keys, or registrations are required to activate the antispam protection. In this case, some protections, such as fingerprinting, language checks, and honeypots, will be enabled.
Advanced – For CF7A to properly analyze the email content using its dictionary, it needs to parse the input message field of your form. To notify the antispam to check this field, you’ll need to add a “marker” to each contact form on your website. Simply add ‘flamingo_message: “[your-message]”‘ in the additional settings panel of each contact form you want to secure. This process follows the same method used with Flamingo. While this step may seem tedious, it is required for advanced text statistical analysis. Without it, the B8 filter cannot be enabled.
GeoIP – (Optional) If you need to restrict which countries or languages can email you, you can enable this functionality. To enable GeoIP, you’ll need to agree to the GeoLite2 End User License Agreement and sign up for GeoLite2 Downloadable Databases. This will provide you with the required key to download the database. For detailed instructions, please refer to the dedicated section in the cf7-antispam plugin settings.

Antispam Available Tests

✅ Browser Fingerprinting
✅ Language checks (Geo-ip, http headers and browser)
✅ Honeypot
️🆕 Honeyform*
✅ Domain Name System Blackhole List (aka DNSBL)
✅ blocklists (with automatic ban after N failed attempts, user defined ip exclusion list)
✅ Hidden fields with encrypted unique hash
✅ Time elapsed (with min/max values)
✅ Prohibited words in message/email and user agent
✅ B8 statistical “Bayesian” spam filter
✅ Identity protection
✅ Webmail protection

Extends Flamingo and turns it into a spam manager!

With this plugin, you can now review emails and train B8 to identify spam and legitimate messages. This feature proves useful, especially during the initial stages when some spam emails may slip through.
Already using Flamingo? Even better! Just remember to add ‘flamingo_message: “[your-message]”‘ to the advanced settings (similar to other Flamingo labels) before activating the plugin. Alternatively, you can explore the advanced options and select “rebuild dictionary.”
Upon activating CF7A, all previously collected emails will be parsed, and B8 will learn and develop its vocabulary. This pre-trained algorithm gives you a head start. How cool is that?
Additional Notes:
– A new column has been added to the right side of the Flamingo inbound page, displaying the level of spaminess for each email.
– If you unban an email on the Flamingo “inbound” page, the corresponding IP will be removed from the blocklist. However, marking an email as spam will not blocklist the IP again.
– Before activating this plugin, please make sure to mark all spam emails as spam in the Flamingo inbound section. This auto-training process will help the B8 algorithm.
– If you receive a spam message, please avoid deleting it from the “ham” section. Instead, place it in the spam section to teach B8 how to differentiate between spam and legitimate messages.

B8 statistical “Bayesian” Filter

Originally created by Gary Robinson b8 is a statistical “Bayesian” spam filter implemented in PHP.
The B8 filter is a foundational example of Machine Learning (ML) for text classification, representing an early, yet powerful, statistical approach in Natural Language Processing (NLP). This approach precedes feature-weighting methods like TF-IDF, which in turn paved the way for modern deep learning architectures, such as Transformers and GPT.
The filter tells you whether a text is spam or not, using statistical text analysis. What it does is: you give b8 a text and it returns a value between 0 and 1, saying it’s ham when it’s near 0 and saying it’s spam when it’s near 1. See How does it work? for details about this.
To be able to distinguish spam and ham (non-spam), b8 first has to learn some spam and some ham texts. If it makes mistakes when classifying unknown texts or the result is not distinct enough, b8 can be told what the text actually is, getting better with each learned text.
This takes place on your own server without relying on third-party services.
More info: nasauber.de

Identity protection

To fully protect the forms, it may be necessary to enable a couple of additional controls, because bots use the public data of the website to spam on it.
– The first is user related and denies those who are not logged in the possibility of asking (sensitive) information about the user via wp-api and the protection for the xmlrpc exploit wordpress.
– The second one is the WordPress protection that will obfuscate sensitive WordPress and server data, adding some headers in order to enhance security against xss and so on.
Will be hidden the WordPress and WooCommerce version (wp_generator, woo_version), pingback (X-Pingback), server (nginx|apache|…) and php version (X-Powered-By), enabled xss protection headers (X-XSS-Protection), removes rest api link from header (but it will only continue to work if the link is not made public).

Mailbox Protection (Multiple Send)

Enhance email security by enabling the “Multiple Send” feature, which prevents consecutive email submissions to the user’s mailbox. This measure is effective in thwarting automated spam attempts and ensures a secure communication environment.

Security & Privacy: A Local-First Approach

AntiSpam for Contact Form 7 is built with your security and privacy as the top priority. Unlike many modern anti-spam solutions that rely on external cloud services or third-party subscriptions, our plugin is designed to run entirely on your own WordPress installation.

  • 100% Local Processing: All anti-spam logic, checks, and data processing are performed directly on your server. No data is ever sent to, or stored by, any external third-party service (including ours).
  • Not a Software as a Service (SaaS): This plugin is a standalone, self-contained software solution, not an interface to a paid or subscription-based external service. Once installed, it works autonomously.
  • Enhanced Security: Since there is no central server or external API endpoint to communicate with, your website is immune to potential risks associated with centralized services, such as Single Point of Failure or data breach risks.

You retain complete control and ownership over the security of your Contact Form 7 submissions.

Privacy Notices

AntiSpam for Contact Form 7 only processes the IP but doesn’t store any personal data directly from the user input. However, it creates a dictionary of spam and ham (non-spam) words in the WordPress database.
This dictionary is built from words found in the submitted messages, meaning it may contain words that were part of the user’s e-mail message or personal data. This data is “degenerated,” which means the words might be normalized or altered before being stored.
The sole purpose of this word collecting is to build a dictionary used for local, decentralized spam detection.

Support

Community support: via the support forums on wordpress.org
Bug reporting (preferred): file an issue on GitHub

Contribute

We love your input! We want to make contributing to this project as easy and transparent as possible, whether it’s:

  • Reporting a bug
  • Testing the plugin with different user agent and report fingerprinting failures
  • Discussing the current state, features, improvements
  • Submitting a fix or a new feature

We use GitHub to host code, to track issues and feature requests, as well as accept pull requests.
By contributing, you agree that your contributions will be licensed under its GPLv2 License.

My goal is to create an antispam that protects cf7 definitively without relying on external services. And free for everyone.
if you want to help me, GitHub is the right place 😉

copyright

AntiSpam for Contact Form 7, Copyright 2021 Codekraft Studio
AntiSpam for Contact Form 7 is distributed under the terms of the GNU GPL

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the LICENSE file for more details.

Resources

  • Contact Form 7 and Flamingo © 2021 Takayuki Miyoshi,LGPLv3 or later
  • B8 https://nasauber.de/opensource/b8/, © 2021 Tobias Leupold, LGPLv3 or later
  • GeoLite2 license
  • GeoIP2 PHP API GeoIP2-php
  • chart.js https://www.chartjs.org/, © 2021 Chart.js contributors, MIT
  • Sudden Shower in the Summer, Public domain, Wikimedia Commons https://commons.wikimedia.org/wiki/File:Sudden_Shower_in_the_Summer_(5759500422).jpg

Contibutions

Mirek Długosz – #30 fixes a crash that occurred when analysing flamingo metadata
MeliEve – #42 Fix “internal_server_error” when message is empty
MeliEve – #61 Handle deferrer script loading
Zodiac1978 – #67 Remove warning for unsafe email configuration w/o protection
JohnHooks – #66 Readme + plugin env
sdellenb – #66 Fix $reason parameter for calling cf7a_ban_by_ip

Special thanks

This project is tested with BrowserStack. Browserstack

MaxMind GeoIP2

This plugin on demand can enable GeoLite2 created by MaxMind, available from https://www.maxmind.com
While enabled you may have to mention it in the privacy policy of your site, depending on the law regulating privacy in your state!
* GeoIP2 databases GeoLite2 Country

DNSBL servers privacy policies

Inspirations, links

DomainExposuresHeadersLast Checked
m*n*-*a*a*h*n.de (WP 7.0.1) A Jul 14, 2026
m*t*e*c*e*.com (WP 7.0.1) F Jul 14, 2026
m*t*u*f*n*t*i.com (WP 7.0.1) F Jul 14, 2026
n*c*n*c.com F Jul 14, 2026
s*o*e*a*i.com F Jul 14, 2026
r*c*a*m*i*e*h*r*p*.com F Jul 14, 2026
t*a*a*x*e*r*.com (WP 6.9.4) F Jul 14, 2026
s*o*-*i*i*o*y*g*.com (WP 7.0.1) F Jul 14, 2026
h*s*i*a*t*u*k*r*s*.hu F Jul 14, 2026
r*l*a*l*p*o*e*t*e*.com (WP 7.0.1) F Jul 14, 2026
c*c*i*g*n*u*t*i*s.com (WP 7.0.1) F Jul 14, 2026
b*d*w*r*i*.com (WP 7.0.1) F Jul 14, 2026
u*e*i*n*t*.com F Jul 14, 2026
b*d*p*r*o*l*b*.com (WP 6.8.5) F Jul 14, 2026
z*r*t*l*r.com (WP 7.0.1) F Jul 14, 2026
n*g*r*n*i*g.com F Jul 14, 2026
y*k*m*p*o*t*b*e*o*e*s.com C Jul 14, 2026
t*a*t*r*r*y.com (WP 6.6.5) F Jul 14, 2026
g*t*w*y*i*i*a*.nl (WP 6.9.4) B Jul 14, 2026
d*s*o*.it (WP 7.0) F Jul 14, 2026
r*r*t*t*v*.ru F Jul 14, 2026
r*l*t*o*s*m*d*c*l*s.com F Jul 14, 2026
e*c*a*s*r*l*a.com (WP 7.0.1) F Jul 14, 2026
l*k*l.c*.il F Jul 14, 2026
d*m*d*y*v*v*l*b.fr (WP 7.0.1) D Jul 14, 2026
z*b*z*1*e*.com (WP 6.3.8) F Jul 14, 2026
d*t*o*e*e*t*i*i*a*.com (WP 6.8.2) F Jul 14, 2026
n*c*a*k*t*a*s*o*t.com F Jul 14, 2026
e*v*a*.com F Jul 14, 2026
a*t*s*l*s*h*l*e*l*e*e*u*g.de (WP 7.0.1) F Jul 14, 2026
j*f*a*l*d.com (WP 7.0.1) F Jul 14, 2026
e*t*d*o*r*l*.c*m.ar (WP 7.0.1) F Jul 14, 2026
b*o*c*n*t*.c*.uk (WP 6.7.5) D Jul 14, 2026
j*e*o*y.com (WP 6.9.4) D Jul 14, 2026
m*s*e*m*n*c*n*r*c*o*s*l*.com (WP 6.9.4) B Jul 14, 2026
d*n*e*.dk (WP 7.0.1) F Jul 14, 2026
b*c*b*y*w*n*o*c*e*n*n*.com F Jul 14, 2026
b*c*b*y*c*r*r*p*i*g.com F Jul 14, 2026
r*i*e*s*h*i*t.com (WP 7.0.1) F Jul 14, 2026
r*i*-*v*o.com (WP 7.0.1) F Jul 14, 2026
m*s*e*d*s*r*.com C Jul 14, 2026
f*c*r*m*c*.fr F Jul 14, 2026
b*b*y*a*o*s*d*l*a*d*r*l*.com F Jul 14, 2026
a*d*t*v*s*e*s.com F Jul 14, 2026
a*d*t*v*-*l*s*e*.com F Jul 14, 2026
a*d*t*v*g*a*s*s.com F Jul 14, 2026
a*d*t*v*e*e*e*r.com F Jul 14, 2026
a*d*t*v*-*p*c*.com F Jul 14, 2026
t*a*s*a*g*r*.com (WP 7.0.1) F Jul 14, 2026
d*r*k.com (WP 7.0.1) F Jul 14, 2026
e*t*l*c*n*n*r*.com (WP 7.0.1) F Jul 14, 2026
c*i*v*l*a*o.net C Jul 14, 2026
z*n*c*q*i*e.com (WP 6.7.5) C Jul 14, 2026
f*y*t*i*a*n.se (WP 7.0.1) F Jul 14, 2026
m*s*i*l*n*i*l*a*d*a*l*m*v*r*.com C Jul 14, 2026
r*g*l*r*n*.com C Jul 14, 2026
a*f*b*e*r*k*.com (WP 6.5.8) F Jul 14, 2026
r*g*i*r*r*u*.com (WP 7.0.1) F Jul 14, 2026
r*g*i*r*v*r*n*.com (WP 7.0.1) F Jul 14, 2026
s*a*t*f*.com (WP 7.0.1) F Jul 14, 2026
h*a*t*c*r*-*o*s.com (WP 7.0.1) F Jul 14, 2026
e*t*t*c*-*q*i*i*r*u*.com (WP 7.0.1) F Jul 14, 2026
d*v*n*e*r*h*y*s*e*t*a*s.com (WP 7.0.1) F Jul 14, 2026
a*e*i*r*s*l*w*r*u*.com (WP 6.9.4) F Jul 14, 2026
s*u*d*h*l*r*v*e*.com F Jul 14, 2026
t*i*e*c*o*l.com (WP 6.9.4) F Jul 14, 2026
z*e*i*u*l.com (WP 6.4.8) F Jul 14, 2026
i*n*v*n*e*p*i*e.com (WP 7.0.1) F Jul 14, 2026
x*s*e*w*r*.com (WP 7.0.1) F Jul 14, 2026
k*e*i*g*.com (WP 7.0.1) F Jul 14, 2026
o*p*o*a*o*.com (WP 7.0.1) F Jul 14, 2026
j*s*c*r*s.com F Jul 14, 2026
a*e*i*a*r*o*i*g*n*g*t*e*i*c.com (WP 6.7) F Jul 14, 2026
a*e*i*a*r*y*l*i*h*c*o*l.com (WP 7.0.1) F Jul 14, 2026
m*s*-*f*.org F Jul 14, 2026
r*a*e*t*.com F Jul 14, 2026
a*a*s*i*e*l*t*i*g.com F Jul 14, 2026
r*a*e*t*t*v*s*a.com F Jul 14, 2026
k*c*c*.com (WP 7.0.1) F Jul 14, 2026
v*e*e*a*e*t*n.at (WP 7.0.1) F Jul 14, 2026
a*e*i*a*l*a*n*n*c*n*e*.com (WP 7.0.1) F Jul 14, 2026
a*e*i*a*g*y*u*e*m.com A Jul 14, 2026
a*e*i*a*f*n*n*i*l*.com (WP 7.0.1) F Jul 14, 2026
c*c*a*e*r*n*a*i*.com F Jul 14, 2026
c*c*a*e*r*n*a*o*t.com F Jul 14, 2026
c*c*a*e*-*o*e*s.com (WP 7.0.1) F Jul 14, 2026
i*m*t*s*.de (WP 6.9.4) F Jul 14, 2026
b*u*o*h*.de (WP 6.8.2) F Jul 13, 2026
h*a*c*m*d*c*l*o*u*i*n*.com (WP 7.0.1) F Jul 13, 2026
h*a*c*m*c*e*t*v*.com F Jul 13, 2026
d*g*t*l*r*a*.c*m.au F Jul 13, 2026
k*r*w*a*l*n*.com F Jul 13, 2026
z*o*s*i*l*b*l*i*r*t*b*e*o*e*s.com C Jul 13, 2026
t*a*i*i*.com (WP 7.0.1) F Jul 13, 2026
t*a*e*i*h*a*.com (WP 7.0.1) F Jul 13, 2026
m*i*.ir (WP 7.0.1) F Jul 13, 2026
e*q*e.com (WP 6.9.4) F Jul 13, 2026
q*i*k*a*e.ch F Jul 13, 2026
r*a*i*g*o*l*a*l*r*p*i*.com C Jul 13, 2026
r*a*i*g*o*l*a*l*m*v*r*.com C Jul 13, 2026

Top 50 Plugins

Plugin Count
elementor 1,773,066
contact-form-7 1,754,699
elementor-pro 1,053,398
woocommerce 816,868
revslider 609,950
jetpack 456,151
js_composer 420,819
wp-rocket 341,566
essential-addons-for-elementor-lite 265,266
complianz-gdpr 257,980
gravityforms 257,686
google-site-kit 232,621
cookie-law-info 228,902
instagram-feed 225,266
sitepress-multilingual-cms 210,874
header-footer-elementor 207,407
google-analytics-for-wordpress 206,188
bluehost-wordpress-plugin 192,588
elementskit-lite 180,622
gutenberg 167,311
cookie-notice 149,235
litespeed-cache 143,547
gtranslate 125,193
wpforms-lite 124,272
the-events-calendar 122,579
astra-sites 113,631
gutenberg-core 113,508
popup-maker 110,000
woocommerce-payments 109,709
tablepress 102,202
honeypot 97,891
astra-addon 93,947
wp-smushit 91,090
duracelltomi-google-tag-manager 90,451
coblocks 89,789
layerslider 89,525
all-in-one-seo-pack 89,300
bb-plugin 87,066
akismet 85,166
premium-addons-for-elementor 84,433
ml-slider 83,034
cleantalk-spam-protect 82,813
mailchimp-for-wp 82,012
megamenu 80,374
woocommerce-gateway-stripe 79,700
jet-engine 77,827
fusion-builder 77,281
ewww-image-optimizer 76,638
wp-pagenavi 76,523
smart-slider-3 76,327

Top 50 Themes

Theme Count
hello-elementor 621,543
Divi 497,327
astra 415,116
flatsome 137,795
Avada 121,363
generatepress 114,678
oceanwp 80,569
pub 79,286
kadence 78,818
enfold 68,928
salient 65,362
twentyseventeen 54,403
bb-theme 53,484
betheme 52,451
twentytwentyfour 52,191
blocksy 51,007
cocoon-master 49,241
dt-the7 45,528
twentytwentyfive 44,925
woodmart 42,693
h4 39,561
neve 38,220
Avada-Child-Theme 36,954
gox 36,252
bridge 31,437
twentytwentyone 30,343
lightning 29,939
twentytwenty 28,835
swell 27,982
bricks 26,516
Impreza 26,104
Newspaper 24,234
twentytwentythree 22,139
epik-redesign 19,181
twentytwentytwo 18,831
uncode 18,592
twentysixteen 17,623
pro 17,621
sydney 16,585
storefront 16,374
Total 14,410
hello-theme-child-master 14,004
factory-templates-4 13,730
themify-ultra 12,971
extendable 12,866
hestia 12,599
yootheme 12,547
yith-wonder 12,223
porto 11,980
twentyfifteen 11,835