Plugin này chưa được cập nhật với 3 phiên bản mới nhất của WordPress. Nó có thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress mới nhất.

Conditional CAPTCHA

Mô tả

This plugin has two modes – basic and Akismet-enhanced.

Basic mode: the plugin will serve a CAPTCHA to all commenters that aren’t logged in and don’t have a previously approved comment. Repeat commenters will never see a CAPTCHA.

Akismet-enhanced mode (recommended): the plugin will serve a CAPTCHA only if Akismet identifies a comment as spam (much less frequently than the basic mode). Just install an activate Akismet to enable this mode.

Note that a CAPTCHA will only appear after a comment is submitted. When a commenter is served a CAPTCHA:

  • If they fail, then the comment will be automatically discarded or trashed (and won’t clutter up your spam queue).
  • If they pass, it will be allowed into the spam queue (or approved, if you so choose). This means that any false positives from Akismet will be easily identified without you having to trawl through all the spam comments manually.

Most genuine commenters will be able to comment on your site hassle-free, without ever seeing a CAPTCHA.

The default CAPTCHA is a simple text-based test. There is also the option to use reCAPTCHA if you want something more robust (free API key required). You can also style the CAPTCHA page to fit with your own WordPress theme.

If you come across any bugs or have suggestions, please use the plugin support forum or email me. I can’t fix it if I don’t know it’s broken! Please check the FAQs for common issues.

Thanks to the following people for contributing translations of this plugin: Belorussian – Marcis G, Brazilian Portuguese – Stefano, Czech – Ted, Danish – Jesper, Dutch – Rene, Estonian – Itransition, Finnish – Jani, French – Laurent, German – Jochen, Hindi – Outshine Solutions, Hungarian – Gyula, Italian – Gianni, Lithuanian – Mantas, Polish – Pawel, Romanian – Lotus, Russian – Ivanka, Spanish – Reinventia, Swedish – Hugo, Turkish – Tony, Ukranian – Ivanka. Some of these translations are a bit out of date – updates welcome!

Cài đặt

  1. Upload the wp-conditional-captcha folder to the /wp-content/plugins/ directory (or use the WordPress auto-install feature)
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. The settings for the plugin can be accessed from the Plugins administration menu.

Hỏi đáp

I’ve installed it, now how do I check that it works?

You can try posting a spammy comment on your blog (make sure you’re logged out) to check that it works, and to see what it looks like. Posting a comment with viagra-test-123 in the author/name field will always get it flagged by Akismet. If you are using basic mode, make sure you use a name and email that have not got a previously approved comment.

Does this plugin work with other comment form modification plugins, or with themes that use Javascript to handle comment submission?

Conditional CAPTCHA relies on WordPress’ native form handling procedures. This means it will not work with plugins or themes that generate and process their own comment forms. Such plugins include WP AJAX Edit Comments, tdo-miniforms, Backtype and Contact Form 7. If comment submissions on your site are processed using AJAX, then the plugin will not work.

How long does the commenter have to complete the CAPTCHA?

There is a time limit of 10 minutes for the CAPTCHA to be submitted, otherwise it will be ignored even if it is correct.

What does the option to disable Akismet’s comment history do?

Akismet stores a history for all comments on your site. It records whether or not it flagged the comment as spam, and any changes that you or other administrators make to the comment’s status afterwards. This history is never deleted, and (in my view) just bloats your WordPress database without being at all useful. Selecting this option will prevent Akismet from storing comment histories. Note that this is feature is somewhat experimental, and not endorsed by the folks who wrote Akismet.

Didn’t you say before that the plugin works with TypePad Antispam?

Yes, but not any more. The TypePad Antispam plugin hasn’t been updated in over 4 years, and is not compatible with the latest version of WordPress.

Đánh giá

30 Tháng Tư, 2018
I’ve been using this plugin for a few years. No problems whatsoever. I am pleased with the functionality of the plugin. Very pleased. Well done.
3 Tháng Chín, 2016
Akismet already blocked 99% of spam, but the fact that I could review these comments made me nervous. What if a real comment was hiding in those 10.348 blocked comments? I had real FOMO because of this Akismet feature. Your plugin made me do a happy dance just now!
3 Tháng Chín, 2016 1 reply
Easy to setup and works great! Human commenters never see the Captcha so it’s unobtrusive. So far no spam has made it through. Have it running in “Akismet-enhanced mode” and it’s blocked hundreds of spambot comments in just a couple of days. The plugin displays a brief blocked spam count on the admin dashboard to let you know how well it’s working.
Đọc tất cả 34 đánh giá

Người đóng góp & Lập trình viên

“Conditional CAPTCHA” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

“Conditional CAPTCHA” đã được dịch qua 5 ngôn ngữ. Cảm ơn những người tham gia dịch vì đóng góp của họ.

Dịch “Conditional CAPTCHA” sang ngôn ngữ của bạn.

Muốn tham gia phát triển?

Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.

Nhật ký thay đổi


  • Drop support for reCAPTCHA v1 API which has been shut down.


  • Fix handling of array inputs that other plugins might inject into the comment form.


  • Add support for the new No CAPTCHA ReCAPTCHA


  • Fix PHP warnings on CAPTCHA page when other plugins have injected arrayed content into the contact form.


  • Allow line breaks in custom prompt message.
  • Add a “Try Again” button for failed CAPTCHAs, instead of telling users to go back in their browser.


  • Add CSRF protection to settings page.


  • Revert all the changes made in version 3.5. It breaks way too many things.


  • Changed logic to give priority to WordPress’ built-in discussion options (especially moderation keywords/blacklist).


  • Added HTTPS compatibility for ReCAPTCHA.


  • Bugfix: make sure that WordPress can set commenter cookies when a CAPTCHA is completed correctly.


  • Added a basic mode. The plugin no longer needs Akismet in order to work!


  • Added some options to tweaks Akismet’s behaviour: prevent history and prevent checking comments from logged-in users
  • Fix to ensure that XML-RPC requests are not intercepted
  • Introduced some compatibility checking


  • Don’t intercept comments submitted via AJAX.


  • Add workaround for a bug in the latest version of Akismet, where comments from administrators can be flagged as spam.


  • Added the option to customise the CAPTCHA prompt text.
  • Minor tweaks to the settings page.


  • Performance improvement to reduce size of plugin options
  • Tweaked settings page to be more user friendly


  • Minor changes to the behaviour of the plugin, as a result of changes in the latest version of Akismet.


  • Bugfix: settings page Javascript caused errors when using jQuery < 1.6


  • Added the option to leave comments for unsuccessful CAPTCHAs in the spam queue (provided the pass action something different)
  • Bugfix: Options from previous versions of the plugin were not being properly upgraded


  • Bugfix: Admin page Javascript was not compatible with jQuery >1.5.2


  • Bugfix: Use blog character set instead of defaulting to UTF-8
  • Better preview of CAPTCHA page
  • Added basic validation of reCAPTCHA API keys
  • Minor usability improvements


  • Bugfix: don’t mangle Unicode characters when submitting a CAPTCHA. Thanks to Mantas for pointing this out.


  • Updated to fix issue with Akismet version 2.5.0 and WordPress 3.0.3 when set to trash failed comments


  • Added the ability to customise the appearance and language of reCAPTCHA


  • Ensure that passed CAPTCHAs are reported as false positives to Akismet/TypePad Antispam. Thanks to Kevin for the suggestion.
  • Added the option to place passed comments in the moderation queue


  • Added support for non-js reCAPTCHA
  • Updated reCAPTCHA API interface
  • Modified upgrade routine because of changes to plugin update handling in WordPress 3.1


  • Added the ability to preview the CAPTCHA page from within the administration interface
  • Minor performance optimisations
  • Raised minimum WordPress version to 2.8


  • Bugfix: don’t intercept spammy pingbacks and trackbacks. Thanks to Kevin for reporting this.