[WordPress] 外掛分享: AntiSpam for Contact Form 7

首頁外掛目錄 › AntiSpam for Contact Form 7
WordPress 外掛 AntiSpam for Contact Form 7 的封面圖片
10,000+
安裝啟用
★★★★
4.2/5 分(12 則評價)
47 天前
最後更新
40%
問題解決
WordPress 6.2+ PHP 7.4+ v0.7.4 上架:2021-05-23

內容簡介

您現在使用的防垃圾郵件插件效果不佳嗎?也許是因為它沒有使用正確的方法來阻止攻擊您的機器人,但我想我有一個解決方案!
「Contact Form 7防垃圾郵件插件」是一個免費的插件,可為Contact Form 7阻止機器人洪水般的郵件而不需要繁瑣的配置和驗證碼。
為了實現這一點,我們使用不同的頁面機器人捕捉和基於統計學的“貝葉斯”垃圾郵件過濾器B8的自動學習機制。
CF7-AntiSpam運作良好,並為Flamingo添加了一些功能。如果兩者都安裝了,Flamingo將獲得一些額外的控制,還可以啟用額外的儀表板小部件。
安裝設定

基本操作 - 安裝並立即使用!不需要配置/金鑰/註冊以獲取防垃圾郵件保護。在這種情況下,只能啟用一些保護措施,如指紋識別、語言檢查和蜜罐。
進階操作 - CF7A需要解析您表格的輸入信息字段,才能使用其字典正確分析郵件內容。
因此,您需要添加一個“標記”來“通知”防垃圾郵件檢查此字段(您需要為網站上的每個聯繫表單執行此操作)
所以,您需要為每個要安全保護的聯繫表單的每個附加設置面板添加“flamingo_message: '[your-message]'”。該方法與您使用Flamingo所用的方法相同。
我知道,這很煩人,但對於高級文本統計分析而言是必需的,沒有此B8過濾器將無法啟用。
GeoIP(可選)- 如果您需要限制哪些國家(或語言)可給您發送電子郵件,哪些不可,請啟用此功能。
為了啟用GeoIp,您需要同意GeoLite2最终用戶許可協議並註冊GeoLite2可下載的數據庫,這樣您就可以獲得所需的密鑰下載數據庫。
要了解更多信息,請閱讀CF7-AntiSpam插件設置的相關部分並按照步驟操作。

可用的防垃圾郵件測試

✅瀏覽器指紋識別
✅語言檢查(Geo-ip,http標頭和瀏覽器-跨檢查)
✅蜜罐
⚠️Honeyform
✅ DNS黑名單
✅黑名單(失敗嘗試N次後自動封禁,用戶自定義的ip排除列表)
✅加密唯一散列的隱藏字段
✅時間消逝(具有最小/最大值)
✅消息/電子郵件和用戶代理中的禁用詞
✅B8統計“貝葉斯”垃圾郵件過濾器
🆕身份保護

擴展Flamingo並將其轉換為垃圾郵件管理器!

這樣,您就可以審閱電子郵件並“教”B8什麼是垃圾郵件,什麼不是(如果有些垃圾郵件通過,這可能很有用)
而如果您已經使用Flamingo?那就更好了!但請記住,在啟用之前,請添加“flamingo_message:'[your-message]'”到高級設置中(就像您對其他flamingo標籤所做的那樣)。
啟用CF7A後,所有以前收集的郵件都將被解析,並且B8將學習並建立其詞彙表。這樣,您將開始使用預先訓練的演算法。超酷!
備註:
-在Flamingo入站頁面的右側,我添加了一個顯示郵件垃圾文​​字級別的新列
-如果您在Flamingo“入站”中取消封禁電子郵件,

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.7.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「AntiSpam for Contact Form 7」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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

dnsbl-1.uceprotect.net www.uceprotect.net license
dnsbl-2.uceprotect.net www.uceprotect.net license
dnsbl-3.uceprotect.net www.uceprotect.net license
dnsbl.sorbs.net sorbs.net license
zen.spamhaus.org spamhaus.org license
bl.spamcop.net spamcop.net license
b.barracudacentral.org barracudacentral.org privacy-policy
dnsbl.dronebl.org dronebl.org
all.spamrats.com spamrats.com tos
bl.ipv6.spameatingmonkey.net spameatingmonkey.net

Inspirations, links

Nikolai Tschacher incolumitas.com
Antoine Vastel fp-scanner/fp-collect
Niespodd niespodd
Thomas Breuss tbreuss
Domain Name System-based blackhole list wiki
dnsbl list wiki

延伸相關外掛

文章
Filter
Apply Filters
Mastodon