Title: Math Captcha for Gravity Forms
Author: codedbyabir
Published: <strong>2026 年 7 月 1 日</strong>
Last modified: 2026 年 7 月 1 日

---

搜索插件

![](https://ps.w.org/math-captcha-for-gravity-forms/assets/banner-772x250.jpg?rev
=3593139)

![](https://ps.w.org/math-captcha-for-gravity-forms/assets/icon-128x128.png?rev=
3593139)

# Math Captcha for Gravity Forms

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

[下载](https://downloads.wordpress.org/plugin/math-captcha-for-gravity-forms.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/math-captcha-for-gravity-forms/#description)
 * [评价](https://cn.wordpress.org/plugins/math-captcha-for-gravity-forms/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/math-captcha-for-gravity-forms/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/math-captcha-for-gravity-forms/#developers)

 [支持](https://wordpress.org/support/plugin/math-captcha-for-gravity-forms/)

## 描述

Math Captcha for Gravity Forms adds a basic “what is X + Y” challenge to any Gravity
Forms form, helping block automated spam submissions without relying on third-party
CAPTCHA services, external API calls, or client-side JavaScript.

**How it works**

 1. Add three fields to your Gravity Forms form:
 2.  * A **Number** (or Hidden) field with Admin Label `num1`
     * A **Number** (or Hidden) field with Admin Label `num2`
     * A **Number** field with Admin Label `math_answer`, where the visitor types their
       answer
 3. Add an **HTML** field containing the placeholder `{math_question}` wherever you
    want the question text to appear.
 4. The plugin fills `num1` and `num2` with random numbers on each page load, replaces`{
    math_question}` with the rendered question, and validates `math_answer` server-
    side on submit.

The same numbers persist across a failed-validation reload, so the question a visitor
sees always matches what’s being validated.

**Why server-side?**

No JavaScript means no scripts to block, no client-side bypass, and no impact on
page-load performance.

This plugin is independently developed and is not affiliated with, endorsed by, 
or sponsored by Rocketgenius, Inc. or Gravity Forms.

## 屏幕截图

[[

[[

## 安装

 1. Upload the `math-captcha-for-gravity-forms` folder to `/wp-content/plugins/`, or
    install directly through the WordPress plugin screen.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Make sure Gravity Forms is installed and active — this plugin does nothing without
    it.
 4. Edit the form(s) you want to protect and add the three fields described above (
    Admin Labels `num1`, `num2`, `math_answer`) plus an HTML field containing `{math_question}`.

## 常见问题

### Does this work without Gravity Forms?

No. This plugin only adds functionality on top of Gravity Forms and does nothing
if Gravity Forms is not installed and active. You’ll see an admin notice if it’s
missing.

### Does this send any data to external services?

No. All number generation and validation happens entirely server-side, on your own
site.

### Can I style the question text?

Yes — the question is wrapped in a `<strong>` tag inside your HTML field, so you
can wrap it with your own markup/CSS in the HTML field content.

### What happens if I don’t add the math_answer field?

The plugin checks for all three fields (`num1`, `num2`, `math_answer`) by Admin 
Label. If any are missing from a given form, validation is skipped silently for 
that form, so it won’t break forms that aren’t using the captcha.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Math Captcha for Gravity Forms」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Math Captcha for Gravity Forms」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/math-captcha-for-gravity-forms)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**3 周前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.3 或更高版本 **
 *  已测试的最高版本为 **7.0.2**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/math-captcha-for-gravity-forms/)
 * 标签
 * [captcha](https://cn.wordpress.org/plugins/tags/captcha/)[forms](https://cn.wordpress.org/plugins/tags/forms/)
   [gravity forms](https://cn.wordpress.org/plugins/tags/gravity-forms/)[math captcha](https://cn.wordpress.org/plugins/tags/math-captcha/)
   [spam protection](https://cn.wordpress.org/plugins/tags/spam-protection/)
 *  [高级视图](https://cn.wordpress.org/plugins/math-captcha-for-gravity-forms/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/math-captcha-for-gravity-forms/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/math-captcha-for-gravity-forms/reviews/)

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/math-captcha-for-gravity-forms/)