psilandia

Pasi Savolainen

This is my site. It's ordered mainly in a 'directory' fashion. To navigate, use:

Specifics about me.

CAPTCHA plugin for blosxom

Today's piece of code is a CAPTCHA plugin for blosxom. This one is based on ASCII art (there already is one that generates images) generating 'figlet' program.

You can see the effect by using the 'Post Comment' button below.

Things of note are that you will need to have 'figlet' installed, or alternatively just use the venerable BSD 'banner' program. Second thing is that you should configure wbcaptcha to be loaded before writeback (or other writeback -acting plugin, like wbnotify). So if your writeback is called '1writeback', call wbcaptcha '05wbcaptcha'.

The story.html setup can be tricky unless you use interpolate_fancy, with which it really isn't. Here is sample story.html for wbcaptcha. Look for things having wbcaptcha. Best of all, read documentation for plugin with 'perldoc wbcaptcha'.

You can download wbcaptcha - 2004-10-11 here.

Please note that this plugin only affects incoming comments/writebacks, not trackbacks. For more information please look at blosxom spam prevention wiki page.

I recently pondered wbcaptcha security in a short piece, it may be of interest.

Edit 2004-10-18: Bill Ward made his captcha plugin available.

Edit 2005-8-25: Warning about trackbacks and spam prevention link.

(4¼ years ago) | /code/misc/wbcaptcha | Comments 6

Comments:

Nov 2004 d.w. Yay!
Awesome, just awesome. I was getting up to 200 comment spams a day before I installed this, now I'm not getting any. Thank you!
Dec 2004 beau
I'm having a little trouble getting this going on my blog; for starters I have my writeback form for my writeback plugin in a foot.writeback rather than a story.writeback. But I'm sure I'll puzzle it out. Rock on!
Dec 2004 beau
I'm looking at the source of this page before actually hitting the post button, and there's nothing subtle about when figlet works :) I've tweaked your sample to account for the differences in our set up; for instance, the form post now points to the $fn.writeback instead of the $fn.html#addcomment you use. Everything looks good except $wbcaptcha::image doesn't actually get me anything. All poitners appreciated.
Dec 2004 beau
The problem was the path to figlet; my figlet was installed in my user space on my webhost. Once I tweaked that path life was sweet. Kudos to Pasi for this wonderful plugin.
Dec 2004 Kyle Thanks
Just wanted to throw my thanks in, too. I had turned off comments on my weblog a couple of months ago because of the spam problem, and your plugin has allowed me to turn them back on.
Oct 2006 Tim ASCII Captcha
Hi, This is great! I also recently completed an ASCII captcha program. <a href="http://www.thephppro.com/products/captcha/">tppCaptcha</a> requires no libraries or external programs - not even figlet! I had not seen anyone else with an ASCII captcha until today! This is great! - Tim
Check HTML and CSS Validity. RSS feed Rendertime: insert_rendertime_time_heres