MethylBlue
  1. Filelight
  2. Codeine
  3. Wocka
  4. Blog
  5. Detritus
  6. Home
RSS

Simple WordPress Captcha Plugin

I got fed up clearing out the moderation queue every day, so I adapted one of the botcheck plugins for WordPress to be much simpler in terms of code size, because that was a fun project, and I had time to spare.

It asks, “Are you a spam-bot?”, and the user has to type ‘no’.

I think this is both amusing and capable, although very easy to bypass, but I’d be interested to see if any bot authors bother.

To install:

  • View the source code
  • Paste the code into notepad and save the file as ’simple_captcha.php’
  • Upload that file to your ‘wp-content/plugins’ directory
  • Activate the ‘Simple Captcha’ plugin from the WordPress Plugins control panel.

3 Responses

  1. Hi, i’ve installed your plugin, but after activating it, i get a lot of errors saying, for example when i try to log out:

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/vandenieuwenhof/nl/blog/wp-content/plugins/simple_captcha.php:75) in /var/www/vandenieuwenhof/nl/blog/wp-login.php on line 12
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/vandenieuwenhof/nl/blog/wp-content/plugins/simple_captcha.php:75) in /var/www/vandenieuwenhof/nl/blog/wp-includes/pluggable.php on line 325

    I use the Bloody Gray theme from: http://www.adityanaik.com/projects/themes/bloody-gray-theme/

    Jeroen van de Nieuwenhof
  2. The plugin must be generating a warning. When it is initialised. What PHP version are you using? Can you send me the full html output you get?

    Max Howell
  3. [...] today I was using Methylblue’s Simple Captcha. It had worked very well for a long time, but over the past couple of weeks I have began to receive [...]

    Steph’s Blog ∙ Info

Leave a Reply