[pmwiki-users] Experimental captcha recipe

Patrick R. Michaud pmichaud at pobox.com
Tue May 8 13:37:22 CDT 2007


On Tue, May 08, 2007 at 11:30:43AM -0400, Sandy wrote:
> Patrick R. Michaud wrote:
> 
> > The captcha code allows captchas to be simply displayed as text,
> > instead of as a graphic.  In fact, this is the default, unless
> > $EnableCaptchaImage is set.  One can also use {$CaptchaValue}
> > in the markup.
> > 
> > It's also possible to configure the image's alt= tag to contain
> > the captcha value.... but this somewhat defeats the purpose of
> > having a captcha.  :-)
> > 
> 
> What about "type the string in backwards" or "type only the letters"? 

"Type the string in backwards":

    $FmtPV['$CaptchaReverse'] = "strrev(\$GLOBALS['CaptchaValue'])";

Similarly, one could create a $CaptchaAddLetters to obscure by
adding random letters to the phrase.

> Next layer, randomly select which method to use.

This can be done in wiki markup.  :-)

Pm



More information about the pmwiki-users mailing list