跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

GridXFlex Captcha Security

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

GridXFlex Captcha Security

作者:Grid X Flex
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

GridXFlex Captcha Security adds a self-hosted image CAPTCHA, backed by a silent honeypot layer, to your site’s Login, Registration, Lost Password, and Comments forms.

Everything is generated on your own server using PHP’s built-in GD library. No requests are ever sent to a third-party service, no API keys are required, and no personal data is stored beyond a short-lived, one-time-use security token.

Features

  • Self-hosted image CAPTCHA (GD-generated, delivered inline as a base64 image — no extra HTTP request)
  • Silent honeypot field on every protected form, on by default
  • Per-form protection toggles: Login, Registration, Lost Password, Comments
  • Configurable character type (alphanumeric / letters / numbers), letter case, and length (3–6 characters)
  • Option to hide the comment captcha for logged-in users
  • One-time-use challenge tokens — each code can be attempted exactly once, then it’s gone
  • No PHP sessions, no cookies set by this plugin, no external requests, no tracking

Why no PHP sessions?

Older captcha plugins commonly call session_start() on every front-end request, even on pages that never show a captcha. That has a real performance cost, breaks under object-cache or load-balanced PHP-FPM pools without sticky sessions, and is incompatible with full-page caching. GridXFlex Captcha Security stores each challenge as a short-lived WordPress transient, keyed by a random token embedded in the form. The token is just a lookup key — the actual secret (a hash of the code) stays server-side — so it remains safe even on a cached page, and each challenge is deleted the instant it’s checked, pass or fail.

屏幕截图

Settings screen under Settings → GridXFlex Captcha.
Settings screen under Settings → GridXFlex Captcha.
The image CAPTCHA as it appears on the login form.
The image CAPTCHA as it appears on the login form.

安装

  1. Upload the gridxflex-captcha-security folder to /wp-content/plugins/.
  2. Activate the plugin through the “Plugins” screen in WordPress.
  3. Go to Settings → GridXFlex Captcha to choose which forms are protected and adjust the captcha’s appearance.

常见问题

Does this plugin transmit any data externally?

No. Code generation, image rendering, and verification all happen on your own server using PHP’s built-in GD library. Nothing is sent to any third-party API or service.

Why doesn’t this use PHP sessions?

For compatibility with page caching and load-balanced hosting. Instead of $_SESSION, each challenge is stored as a short-lived WordPress transient keyed by a random token embedded in the form. This works identically behind full-page cache and across load-balanced PHP-FPM pools without sticky sessions, and every challenge is automatically deleted after a single use.

What is the honeypot layer?

A hidden form field that’s invisible to human visitors but often auto-filled by simple bots. If it’s filled in, the submission is rejected the same way a wrong CAPTCHA code would be — no separate “bot detected” message is ever shown, so automated scripts can’t learn which check they failed.

Does this require an API key?

No. This version doesn’t use any third-party CAPTCHA provider.

Does the plugin work if my host doesn’t have the GD PHP extension?

Yes. If GD isn’t available, the image challenge is automatically skipped — protected forms keep working normally, they just fall back to honeypot-only protection instead of erroring out. You’ll see an admin notice explaining this; it clears itself automatically as soon as GD is enabled, no need to reactivate the plugin.

Does the captcha add any visible branding to my site?

An HTML comment — <!-- Powered By GridXFlex WordPress Plugins --> — is placed next to the captcha markup wherever it renders (login, registration, lost password, comments). It isn’t visible in the page as displayed, only in page source.

What happens if someone gets the comment captcha wrong?

They’re redirected back to the same post with an inline error message, and their typed name, email, URL, and comment text are restored — nothing is lost and they don’t leave the page. Login, Registration, and Lost Password show their errors the same way, inline on the same page, using WordPress core’s own error-display mechanism for those forms.

评价

此插件暂无评价。

贡献者及开发者

「GridXFlex Captcha Security」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • Grid X Flex

帮助将「GridXFlex Captcha Security」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

1.0.0

  • Initial release: image CAPTCHA + honeypot for Login, Registration, Lost Password, and Comments forms.
  • Graceful fallback when the GD extension is unavailable: protected forms keep working via the honeypot layer alone instead of erroring; the admin notice re-checks live and clears itself once GD is enabled, no reactivation needed.

额外信息

  • 版本 1.0.0
  • 最后更新:4 周前
  • 活跃安装数量 不到10
  • WordPress 版本 5.7 或更高版本
  • 已测试的最高版本为 7.1.1
  • PHP 版本 7.4 或更高版本
  • 语言
    English (US)
  • 标签
    captchacommentsloginsecurityspam
  • 高级视图

评级

尚未提交反馈。

您的评价

查看全部评论

贡献者

  • Grid X Flex

支持

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

查看支持论坛

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 周边商品 ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗
The WordPress® trademark is the intellectual property of the WordPress Foundation.