Title: Invisible Anti Spam for Contact Form 7 (Simple No-Bot)
Author: lilaeamedia
Published: <strong>2017 年 5 月 4 日</strong>
Last modified: 2020 年 1 月 12 日

---

搜索插件

![](https://ps.w.org/simple-no-bot/assets/banner-772x250.png?rev=1650896)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/simple-no-bot/assets/icon-128x128.png?rev=1650704)

# Invisible Anti Spam for Contact Form 7 (Simple No-Bot)

 作者：[lilaeamedia](https://profiles.wordpress.org/lilaeamedia/)

[下载](https://downloads.wordpress.org/plugin/simple-no-bot.2.2.5.zip)

 * [详情](https://cn.wordpress.org/plugins/simple-no-bot/#description)
 * [评价](https://cn.wordpress.org/plugins/simple-no-bot/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/simple-no-bot/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/simple-no-bot/#developers)

 [支持](https://wordpress.org/support/plugin/simple-no-bot/)

## 描述

Simple No-Bot uses javascript to detect if Contact Form 7 is being submitted by 
a spam bot.

We wrote this when clients were reporting hundreds of bogus contact forms were getting
past Honeypot, but did not want to add a captcha that would impact conversions.

This lightweight script has been extremely effective for eliminating spam messages
from Contact Form 7 (and other forms) submissions. It does not pretend to be a complete
anti spam solution.

### IMPORTANT

SNB REJECTS SUBMISSIONS UNLESS THE USER INTERACTS WITH THE FORM. In earlier versions
of SNB, the submit button was disabled until this threshold was met. You can now
set this option in wp-config.php (see below).

In most cases it will be enabled after the user starts typing in the first field.
It has not broken your form.

Please report any feedback and false negatives/positives on our support form at 
http://www.lilaeamedia.com/contact/ before posting a crappy review. Thanks.

### New! Improved!

You can now hook Simple No Bot into any form. The filter below will return TRUE 
if bots are detected.

    ```
    $is_spam = FALSE; // you can use whatever flag is being used by your plugin. 
    $is_spam = apply_filters( 'snb_test_spam', $is_spam );
    ```

We have added additional analysis to detect pesky bots that can mimic browsers and
run scripts.

SNB now keeps a list of IPs as they are flagged as spam and automatically fails 
them. The oldest IPs are pruned when it reaches 100 (or SNB_MAX_SPAM_IPS, see below).
You can pass ?snb_flush=true as Admin to flush all spam IPs.

You can disable the submit button until the event threshold is reached by adding
the following flag to wp-config.php:

    ```
    define( 'SNB_DISABLE_SUBMIT', TRUE );
    ```

Other configurable options:

    ```
    define( 'SNB_SPAM_THRESHOLD', 2 ); // maximum score before being considered spam
    define( 'SNB_MIN_EVENTS', 2 ); // minimum number of events required to fetch token
    define( 'SNB_BLOCK_SPAM_IPS', TRUE ); // use IP blocking on hard fails
    define( 'SNB_SPAM_IP_LIFESPAN', 60 * 60 * 24 * 30 ); // time before spam ips expire - default 30 days
    define( 'SNB_MAX_SPAM_IPS', 100 ); // max number of IPs to store before rotating
    define( 'SNB_SESSION_LIFESPAN', 60 * 30 ); // time token is valid to send message - default 30 minutes<h3>Support</h3>
    ```

Please report any feedback and false negatives/positives on our support form at 
http://www.lilaeamedia.com/contact/

(c)2019 Lilaea Media

## 安装

 1. To install from the Plugins repository:
 2.  * In the WordPress Admin, go to “Plugins > Add New.”
     * Type “simple no-bot” in the “Search” box and click “Search Plugins.”
     * Locate “Simple No-Bot Captcha Alternative for Contact Form 7” in the list and
       click “Install Now.”
 3. To install manually:
 4.  * Download the IntelliWidget plugin from https://wordpress.org/plugins/simple-
       no-bot/
     * In the WordPress Admin, go to “Plugins > Add New.”
     * Click the “Upload” link at the top of the page.
     * Browse for the zip file, select and click “Install.”
 5. In the WordPress Admin, go to “Plugins > Installed Plugins.” Locate “Simple No-
    Bot Captcha Alternative for Contact Form 7” in the list and click “Activate.”

## 常见问题

  Why not just use Recaptcha 3?

Google is great and all, but with every recaptcha, font, map or tag you use, you
are passing each visitor’s usage information to Google and strengthening their control
over the web.

  How does it work?

The browser automatically generates data from input events and passes it to the 
server via XHR. The server generates a unique token,
 stores a session in a transient
record and returns token to the browser. The browser then injects a new input field
to WPCF7 form that contains token. When form is submitted, SNB rejects the form 
if no corresponding transient exists (among other things).

  Does it work without Javascript

No. Contact forms will fail if Javascript is not enabled.

  Does it require cookies?

Not currently. We may add more behavioral analysis if the latest generation of JS-
empowered bots continues to proliferate.

## 评价

![](https://secure.gravatar.com/avatar/85abfd5afcc4dd65459a7942d80d95b6ec72985105e07f520060a8fd98cdec2d?
s=60&d=retro&r=g)

### 󠀁[Not worked in contact form 7](https://wordpress.org/support/topic/not-worked-in-contact-form-7/)󠁿

 [Heena](https://profiles.wordpress.org/heena1/) 2019 年 3 月 11 日 1 回复

Not worked.

![](https://secure.gravatar.com/avatar/f5eb60bf17632689c37cf8ad9537a2d1d6f75980f4b0f12809ef82a503717900?
s=60&d=retro&r=g)

### 󠀁[Broke my contact form](https://wordpress.org/support/topic/broke-my-contact-form/)󠁿

 [garrettw](https://profiles.wordpress.org/garrettw/) 2017 年 9 月 21 日

After I installed this, no test message I tried to send myself would go through.
Every attempt was met with the orange-border error message, indicating a spam fail.
My comment blacklist was empty, so that couldn’t have been the cause. Plus, the 
same message worked fine after disabling this plugin. Besides, Contact Form 7 added
nonce verification in version 3.1, so I guess I shouldn’t need this anyway.

![](https://secure.gravatar.com/avatar/bfe855c0e66fe3da07575178dcbc3f9b6b0b91d535b92306c2424e6ce3ead730?
s=60&d=retro&r=g)

### 󠀁[Spam Stopper!](https://wordpress.org/support/topic/spam-stopper-2/)󠁿

 [springerstudios](https://profiles.wordpress.org/springerstudios/) 2017 年 5 月
9 日

At some point, honeypot stopped filtering spam on our client sites. We installed
this and the bogus emails stopped. Highly recommended. Thanks Lilaea Media!

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/simple-no-bot/reviews/)

## 贡献者及开发者

「Invisible Anti Spam for Contact Form 7 (Simple No-Bot)」是开源软件。 以下人员对
此插件做出了贡献。

贡献者

 *   [ lilaeamedia ](https://profiles.wordpress.org/lilaeamedia/)

[帮助将「Invisible Anti Spam for Contact Form 7 (Simple No-Bot)」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/simple-no-bot)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/simple-no-bot/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/simple-no-bot/)，或通过[RSS](https://plugins.trac.wordpress.org/log/simple-no-bot/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/simple-no-bot/)。

## 更新日志

2.2.4 More super secret Turing tweaks.
 2.2.0 Removed the hash comparison and added
super secret Turing device. 2.1.5 Disabling the submit button before user interaction
is now optional. Reduced minimum events to 2. 2.1.3 Added general plugin support.
Strenghened hashing and XHR protocol. Added spam IP list. Added debug log. 1.0.5
Simplified validation 1.0.2 Change wp nonce functions to wpcf7 nonce functions 1.0
Initial release

## 额外信息

 *  版本 **2.2.5**
 *  最后更新：**6 年前**
 *  活跃安装数量 **200+**
 *  WordPress 版本 ** 5.2 或更高版本 **
 *  已测试的最高版本为 **5.3.21**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-no-bot/)
 * 标签
 * [bot blocker](https://cn.wordpress.org/plugins/tags/bot-blocker/)[contact form 7](https://cn.wordpress.org/plugins/tags/contact-form-7/)
   [invisible reCaptcha](https://cn.wordpress.org/plugins/tags/invisible-recaptcha/)
   [spam blocker](https://cn.wordpress.org/plugins/tags/spam-blocker/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-no-bot/advanced/)

## 评级

 2.3 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/simple-no-bot/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/simple-no-bot/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/simple-no-bot/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/simple-no-bot/reviews/?filter=2)
 *  [  2 条 1 星评价     ](https://wordpress.org/support/plugin/simple-no-bot/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/simple-no-bot/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/simple-no-bot/reviews/)

## 贡献者

 *   [ lilaeamedia ](https://profiles.wordpress.org/lilaeamedia/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/simple-no-bot/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DE4W9KW7HQJNA)