Skip to content
  • Home
  • News
  • Products
    • Applications
      • GabEncodingTools
      • GabNetStats
      • GabScreenshot
      • GabCopyPaste
    • Libraries
      • GabKeyboardHook
    • Scripts and plugins
      • Counterize
      • Gab Captcha 2
      • IP Filter
      • gLastFM
      • Custom Registration Link
      • Libravatar
      • Gab Captcha
      • Vertical Admin Bar
      • xpq.py: a python script to query XML files using XPath queries
    • Contributions to the open-source community
  • Tips
    • Tutorial: How to produce valid Google +1 buttons
    • Tutorial: Load the Google +1 button asynchronously
    • A guide for WordPress plugins translators
    • Tutorial: Install Gnome Desktop and Gnome Display Manager on OpenBSD 4.8
    • Tutorial: Install Gnome Desktop and Gnome Display Manager on OpenBSD 4.7
    • Tutorial: Installing XFCE on OpenBSD 4.8
    • Tutorial: How to install OpenBSD 4.8, step by step
    • Tutorial: How I forced my laptop fan to spin under Linux
    • Tutorial: Extending XHTML with XML, XSLT, entities, CDATA sections and JavaScript
    • Tutorial: Reclaim disk space in Windows Seven, Windows 7 SP1 and Windows Server 2008 R2
    • Automatically reconnect to your VPN on Linux
    • Essential WordPress plugins
  • Downloads
    • Download applications
      • Download GabNetStats
      • Download GabScreenshot
      • Download GabEncodingTools
      • Download GabCopyPaste
    • Download libraries
      • Download GabKeyboardHook
    • Download scripts
      • Download Counterize
      • Download Gab Captcha 2
      • Download Custom Registration Link
      • Download IP Filter
      • Download gLastFM
      • Download Libravatar
      • Download Vertical Admin Bar
      • Download Gab Captcha 1
    • Download runtimes
      • Microsoft .NET Framework 1.1
      • Microsoft .NET Framework 2.0
      • Microsoft .NET Framework 3.5
      • Microsoft .NET Framework 4.0
      • Microsoft Visual C++ Redistributable Packages
      • Runtime VB6
  • Services
    • Translation, language testing and proofreading
  • Support
  • Forum
  • Donate
  • Cool links
  • Contact
  • About us

GabSoftware

spacer Open-source software, useful tips, and more

Gab Captcha 2 plugin for WordPress

spacer

GabSoftware proudly presents its captcha plugin for the comment section of WordPress blogs, Gab Captcha 2.

spacer

Gab Captcha 2 settings

Gab Captcha 2 is an efficient and simple captcha plugin for WordPress comments.

It adds an easy turing test before each comment form. The turing test consist in typing the characters that appear emphasized and red in a text field. The plugin will add an entry in your WordPress administration area to let you configure some options.

Gab Captcha 2 currently comes in two languages: English (default) and French. You are welcome to propose your own translation or to update existing ones, especially the English one as I am not a native English speaker.

Important notes

  1. This plugin requires Javascript to be able to post a comment.
  2. This plugin can automatically approve valid comments depending on your settings.
  3. This plugin requires PHP 5 to function.
spacer

Gab Captcha 2 in action

Installation

This section describes how to install the plugin and get it working.

1. Extract and upload the directory “gabcaptcha2″ and all its content to your ‘/wp-content/plugins/’ directory
2. Activate the plugin through the ‘Plugins’ menu in WordPress

Optional but recommended :
3. Change the options to fit your needs in the ‘Settings > Gab Captcha 2′ menu in your WordPress administration area
4. If you don’t want to receive an email after each spam has been catches:
4.1. Go to the ‘Settings > Discussion’ menu
4.1.1. Tick the following checkboxes:
“E-mail me whenever > Anyone posts a comment”
“Before a comment appears > An administrator must always approve the comment”
“Before a comment appears > Comment author must have a previously approved comment”
4.1.2. Uncheck the following checkbox:
“E-mail me whenever > A comment is held for moderation”
4.2. Go to the ‘Settings > Gab Captcha 2′ menu
4.2.1 Choose ‘yes’ for ‘Automatically approve comments who passed the test’

You will now receive an email only after a valid comment has been posted.

Uninstallation

To uninstall Gab Captcha, simple deactivate the plugin then remove the gabcaptch2 directory from your ‘/wp_content/plugins’ directory.

With Gab Captcha, spam should now be a thing of the past !

You can download Gab Captcha in the downloads section.

Frequently Asked Questions

Is Gab Captcha unbeatable by spambots?

Definitely not. But it stopped all my spam as of today (getting about 100 spams every single day).

Can I change some settings for Gab Captcha 2?

Yes. Go to the ‘Settings > Gab Captcha 2′ menu in your WordPress administration area.

Like what we do on our free time?

Make a donation!
Leave a comment

Comments

  • spacer
    Taylor
    April 18th, 2011 at 8:21 PM
    Reply | Visitor

    I just installed GC2. I notice that if a user enters the characters incorrectly, sends, then enters the characters properly, GC2 reports “You just said that.” on a page that has no links to return to the post. It also does not post the comment even though the characters used were correct.

  • spacer
    Thunacrab
    April 19th, 2011 at 9:11 AM
    Reply | Visitor

    @ Taylor:

    I am having this problem too. I love this script otherwise. Hopefully the author will tweak the code to fix this. I’d hate for someone on my blog to write a really long comment then lose all their text because of this bug.

  • spacer
    Gabriel Hautclocq
    April 19th, 2011 at 11:22 PM
    Reply | Staff

    @Taylor and Thunacrab:

    You are correct, it’s the WordPress duplicate comment checker who is responsible of this message. I will try to find a solution to this problem because you are right to say that it is not a desirable behavior. Maybe it’s just an option to turn off in WordPress. Or maybe it’s the behavior of GC2 that I’ll have to change: when you don’t enter the correct code, a comment is inserted to the database into the spam folder. Posting the same comment with the correct code will thus trigger the WordPress duplicate comment alert. A new version should be released soon to address this issue spacer

  • spacer
    Laura
    April 19th, 2011 at 11:59 PM
    Reply | Visitor

    I tried to install on my new WP blog today, receive the following fatal error when I try to activate it.

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in wp-content/plugins/gab-captcha-2/gabcaptcha2.php on line 86 …. ????

  • spacer
    Gabriel Hautclocq
    April 20th, 2011 at 10:59 PM
    Reply | Staff

    @Laura:

    I don’t have this error, neither the other two persons who posted a comment. That must be a transfer error. Can you try to re-upload the latest version?

    Also, the plugin uses a class, which requires PHP 5. Do you have a PHP4 server ? If yes, see if you can activate PHP 5.

  • spacer
    Gabriel Hautclocq
    April 20th, 2011 at 11:42 PM
    Reply | Staff

    @Taylor and Thunacrab:

    Version 1.0.5 should correct the problem. Please note that the comments which didn’t passed the test are no longer stored in the spam folder: they are deleted.

    Also note that for if you provide a valid solution too quickly after your first failure, you will have a WordPress message “you are posting too quickly”. That’s the WordPress anti-flood system. I will address this issue on the next version.

  • spacer
    Gilbert
    April 22nd, 2011 at 5:08 AM
    Reply | Visitor

    How do I translate your Captcha to German?
    What files do I need to change? And what name to those need?

    Thanks!
    Gilbert.

    • spacer
      Gabriel Hautclocq
      April 22nd, 2011 at 4:34 PM
      Reply | Staff

      Hi Gilbert, thanks for your proposition!

      To translate Gab Captcha 2, proceed as follow:

      Download Poedit (www.poedit.net/download.php)
      Install it
      Fill in your name, email address, etc. This will define you as the German translator

      Copy the file lang/default.po under the name “gabcaptcha2-de.po”
      Open the file “gabcaptcha2-de.po” with Poedit (using “File>open”)
      Go to “Catalog>Settings” and change “Language” to “German”. Leave “Country” empty. You can change “Team” and “Team’s email address” to your team’s informations.
      Translate and save (“Save catalog”)
      Send me the file “gabcaptcha2-de.po” and “gabcaptcha2-de.mo” if there’s one

      I will then include your translation in the next version of Gab Captcha 2 very soon.

  • spacer
    Thunacrab
    April 22nd, 2011 at 2:38 PM
    Reply | Visitor

    Gabriel,

    The update fixed the problem thanks!

    I have one little idea/recommendation for your plugin though… Upon failing the captcha, the page reloads at the top, unlike when you pass the captcha, it auto scrolls down to your comment at the bottom. I think it would be a good idea to scroll down to the “you fail” text if the captcha is failed, just in case someone posts, then navigates away from the page thinking their comment got posted.

    Just an idea. Love the plugin, thanks.

    • spacer
      Gabriel Hautclocq
      April 22nd, 2011 at 4:36 PM
      Reply | Staff

      Hi Thunacrab,

      That’s a good idea, however I don’t know if I will be able to do that without touching to the WordPress core files… I’ll check if that’s possible. I’m glad the new version fixed the previous issue.

    • spacer
      Gabriel Hautclocq
      April 27th, 2011 at 11:42 AM
      Reply | Staff

      Version 1.0.7 will scroll to the comment area in case an invalid solution has been provided. Try it out spacer

  • spacer
    Thunacrab
    April 29th, 2011 at 2:57 AM
    Reply | Visitor

    Gabriel,

    I just updated, and tried an intentional failure… Everything is working perfectly.

    Thanks for the update!

  • spacer
    Gabriel Hautclocq
    April 29th, 2011 at 3:01 AM
    Reply | Staff

    Nice! You are welcome spacer

  • spacer
    Thunacrab
    April 29th, 2011 at 3:03 AM
    Reply | Visitor

    By the way, I can’t tell you how great this captcha has been for simplifying comment moderation. I used to approve comments individually so my blog doesn’t fill up with a bunch of spam, but that method is tedious and bad for the people who actually make real comments… people expect to see their post right after they make it.

    Not many people read my blog, it is just a little personal place to post my thought, but I was still getting at least ten spams a day.

    Since GabCaptcha, not one spam has slipped though.

    Great job man. I’ll recommend this to anyone with spam problems. I tried about five other captchas before settling on yours. In my opinion, it is the best lightweight spam solution currently out.

  • spacer
    Gabriel Hautclocq
    April 29th, 2011 at 3:09 AM
    Reply | Staff

    I know what you mean, I was approving comments manually too before I developed Gab Captcha 2, and that was a little frustrating for the users and time-consuming for me. I get about 100 spams every single day so that was nice not to have to check which comment is from a real user.

    The spam comments that I receive are quite cleverly designed, they congratulate the blog owner so that the owner may not recognize the spam, but a link to a commercial website (generally not legal) was always included. Sometimes it was not possible to guess with the link alone. So I saved myself from a lot of hassles with Gab Captcha 2 spacer

  • spacer
    Thunacrab
    April 29th, 2011 at 3:15 AM
    Reply | Visitor

    Haha, yeah! Clever and congratulatory spam is almost like a horoscope: Generalized, and just vague enough to be universally applicable to most blog content.

  • spacer
    Gabriel Hautclocq
    May 3rd, 2011 at 12:12 AM
    Reply | Staff

    @Thunacrab: Understood and done spacer

  • gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.