Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Gab Captcha 2

Gab Captcha 2 is a simple captcha plugin for fighting spam in WordPress comments.


  • Corrected a Javascript issue in IE8


  • Added an option for legacy themes compatibility. Legacy themes often do not use the comment_form() function that brings several actions and filters. Check this option if the captcha doesn't appear since update 1.0.15. The only action used will be "comment_form" and JavaScript will be used compulsory.


  • Better handling of captcha insertion, should be compatible with more themes
  • JavaScript is now optional (but recommended) to use the captcha, that is configurable in the options. Default setting: use JavaScript.
  • On failure to provide a valid solution, the page is scrolled to the fieldset of the captcha
  • On failure to provide a valid solution, the captcha field is autofocused
  • On failure to provide a valid solution, the commment data is now sanitized using wp_kses_data()
  • Simplified a little JavaScript code
  • Corrected translations


  • Logged in users can post comments again now (oops)


  • Option to block spam before it is inserted into the database (default is: insert, like the previous version)
  • Corrected the "required" attribute of checkbox fields
  • Updated the description in readme.txt (this file)
  • Code cleaning
  • Bugs fixed


  • Performance tweaks
  • Use DOM methods to add the captcha instead of element.innerHTML: can now be used on XHTML websites served as application/xhtml+xml
  • Corrected the display bug when the credits are displayed as text
  • Code cleaning
  • Administration page improved
  • WordPress 3.3 support


  • Fixed the checkbox that was not saved in the options (thanks to Hans!)
  • No longer use a file to get back the comment after failure
  • Better escaping thanks to esc_js()
  • Code cleaning
  • Moved the code outside the main class inside the class
  • Corrected the visibility of some main class functions


  • This is a maintenance release
  • Bug fixed: Captcha field length was hard-coded to "4", ignoring the corresponding option. Now fixed. Thanks to Billy Willoughby for reporting this!
  • Renamed the PHP functions outside the class and the Javascript functions so that they all begin with the "gabcaptcha2_" prefix to avoid conflicts.
  • Updated French translation. Waiting for the Russian translation.


  • New administration page
  • Only two options in the WordPress options table now
  • Bugs fixed
  • Updated French translation


  • Bugs fixed
  • Translation issues fixed
  • If the URL field is not found, try with other fields


  • Bugs fixed


  • Russian translation added (thanks!)


  • Fixed some translation issues
  • Updated the Readme file


  • After an invalid solution is provided, automatically scrolls to the comment area so that the user knows he failed.


  • Fixed the appearance of message "You are posting too quickly. Slow down!" when a valid solution has been provided.


  • Fixed the appearance of message "Dupplicate comment detected" after retrying to post a comment with a valid solution.
  • Comments are no longer moved to the spam folder.


  • Use a class now
  • Use the standard WordPress translation system using .po and .mo files. You can contribute your translation using Poedit.
  • Use the recommended way to insert CSS in WordPress
  • Function reorganisation
  • Code cleaning


  • Added choice for 3 methods of generation: Standard (most compatible but average security), CSS (improved security, compatible with CSS-capable browsers), and CSS 3 (better security but only compatible with CSS3-compliant browsers)
  • Corrected a bug in CSS 3 method: the indices of :nth-child() were not shifted, leading to the CSS 3 method to be unusable previously
  • Corrected some translations


  • Corrected captcha random generation issue
  • Improved performance a little.
  • Added option for CSS3 only captcha solution (but keep in mind that only CSS3-enabled browsers will be compatible!)
  • Corrected invalid value for CSS property problem


  • Initial public version

Requires: 3.0.0 or higher
Compatible up to: 3.3.0
Last Updated: 5 years ago
Active Installs: 1,000+


1 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
100,1,1 100,3,3