Title: LH Zero Spam
Author: shawfactor
Published: <strong>2015 年 7 月 14 日</strong>
Last modified: 2022 年 10 月 14 日

---

搜索插件

![](https://ps.w.org/lh-zero-spam/assets/banner-772x250.jpg?rev=1339429)

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

![](https://ps.w.org/lh-zero-spam/assets/icon-256x256.png?rev=2763876)

# LH Zero Spam

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

[下载](https://downloads.wordpress.org/plugin/lh-zero-spam.zip)

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

 [支持](https://wordpress.org/support/plugin/lh-zero-spam/)

## 描述

**Why should your users prove that they’re humans by filling out captchas? Let bots
prove they’re not bots with the [LH Zero Spam plugin](http://lhero.org/plugins/lh-zero-spam/).**

LH Zero Spam blocks registration spam and spam in comments automatically without
any config or setup. Zero Spam was initially built based on the work by [David Walsh](http://davidwalsh.name/wordpress-comment-spam),
but enhanced with simpler code base and unobtrusive JavaScript.

Major features in LH Zero Spam include:

 * **No captcha**, because spam is not users’ problem
 * **No moderation queues**, because spam is not administrators’ problem
 * **Blocks spam registrations & comments** with the use of JavaScript
 * **Blocks buddypress spam registrations** with the use of JavaScript
 * **Blocks woocommerce spam orders** with the use of JavaScript

**Like this plugin? Please consider [leaving a 5-star review](https://wordpress.org/support/view/plugin-reviews/lh-zero-spam/).**

**Love this plugin or want to help the LocalHero Project? Please consider [making a donation](https://lhero.org/portfolio/lh-zero-spam/).**

## 安装

 1. Upload the `lh-zero-spam` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 常见问题

### Is JavaScript required for this plugin to work?

Yes, that’s what does the magic and keeps spam bots out.

### I keep getting ‘There was a problem processing your comment.’

Be sure JavaScript is enabled and there are no JS errors.

### Does this work with multisite?’

Yes it protects from spam wp-register registrations.

### Does this work with Buddypress?’

Yes as of version 1.08 this will protect from Buddypress registrations. Note is 
requires the bp_before_account_details_fields hook, must reputable themes include
this hook.

### Does this work with Woocommerce?’

Yes as of version 1.10 this will protect from Woocommerce spam order registrations.

### What is something does not work?

LH Zero Spam, and all [https://lhero.org](https://cn.wordpress.org/plugins/lh-zero-spam/LocalHero?output_format=md)
plugins are made to WordPress standards. Therefore they should work with all well
coded plugins and themes. However not all plugins and themes are well coded (and
this includes many popular ones).

If something does not work properly, firstly deactivate ALL other plugins and switch
to one of the themes that come with core, e.g. twentyfifteen, twentysixteen etc.

If the problem persists please leave a post in the support forum: [https://wordpress.org/support/plugin/lh-zero-spam/](https://wordpress.org/support/plugin/lh-zero-spam/).
I look there regularly and resolve most queries.

### What if I need a feature that is not in the plugin?

Please contact me for custom work and enhancements here: [https://shawfactor.com/contact/](https://shawfactor.com/contact/)

## 评价

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

### 󠀁[Works Well. Thanks](https://wordpress.org/support/topic/works-well-thanks-19/)󠁿

 [Anonymous User 652281](https://profiles.wordpress.org/anonymized-652281/) 2021
年 7 月 7 日 1 回复

Thanks Peter for making and maintaining this. Another plugin removed the David Walsh
approach and I got client complaints so I'm really pleased to see this. This works
on the default contact form for Beaver Builder too.

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

### 󠀁[Best AntiSpam Plugin](https://wordpress.org/support/topic/best-antispam-plugin-4/)󠁿

 [Tahir Taous](https://profiles.wordpress.org/tahirtaous/) 2016 年 9 月 17 日

I was using Akismet but Akismet failed to stop spam, I was getting a lot of spam
comments on daily basis. Few month ago, I installed this free plugin and there isn't
any spam comment since then. This one is a must have plugin for bloggers.

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

### 󠀁[Ben Marshalls commenty is unhelpful](https://wordpress.org/support/topic/ben-marshalls-commenty-is-unhelpful/)󠁿

 [shawfactor](https://profiles.wordpress.org/shawfactor/) 2017 年 2 月 8 日

The plugin itself works perfectly and if you like lightweight unobtrusive solutions
it is the way to go

 [ 阅读所有4条评价 ](https://wordpress.org/support/plugin/lh-zero-spam/reviews/)

## 贡献者及开发者

「LH Zero Spam」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「LH Zero Spam」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/lh-zero-spam)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0

 * Initial release

#### 1.01

 * Code Improvement

#### 1.02

 * Better documentation

**1.03 January 28, 2017*
 Rest api support.

**1.04 January 30, 2017*
 xmlrpc support.

**1.05 July 25, 2017*
 class check.

**1.06 September 20, 2017*
 Comment_form backup

**1.07 September 20, 2017*
 Added minimum version of php

**1.08 September 24, 2017*
 Added buddypress support

**1.09 December 17, 2017*
 filemtime for load_file

**1.10 May 17, 2019*
 anonymous function for javascript nonce handling

**1.11 July 28, 2022*
 user wp die where possible

**1.12 October 13, 2022*
 minor buf fix

**1.13 October 13, 2022*
 minor enhancement

## 额外信息

 *  版本 **1.13**
 *  最后更新：**4 年前**
 *  活跃安装数量 **200+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **6.0.17**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/lh-zero-spam/)
 * 标签
 * [anti-spam](https://cn.wordpress.org/plugins/tags/anti-spam/)[antispam](https://cn.wordpress.org/plugins/tags/antispam/)
   [comment spam](https://cn.wordpress.org/plugins/tags/comment-spam/)[comments](https://cn.wordpress.org/plugins/tags/comments/)
   [spam](https://cn.wordpress.org/plugins/tags/spam/)
 *  [高级视图](https://cn.wordpress.org/plugins/lh-zero-spam/advanced/)

## 评级

 5 星（最高 5 星）。

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

[您的评价](https://wordpress.org/support/plugin/lh-zero-spam/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/lh-zero-spam/reviews/)

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/lh-zero-spam/)

## 捐助

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

 [ 捐助此插件 ](https://lhero.org/portfolio/lh-zero-spam/)