Re: Integrated captcha?

"Alex Teslik" <[email protected]> Sat, 6 Sep 2008 08:07:09 -0700
Newsgroups gmane.mail.majordomo.majordomo2.devel
Message-ID <[email protected]>
On Fri, 5 Sep 2008 22:38:36 -0700, Alex Teslik wrote
> Bump.
> 
> But seriously, any pointers on how to do this would be appreciated. 
> MJ2 is a little complex and the Right Way isn't immediately apparent 
> after much digging.
> 
> Thanks,
> Alex

A couple of people have asked off-list about captcha - sorry I didn't give more details about that. 
Basically captcha is the test to differentiate humans from machines. Its usually an image with some 
text obscured by lines, dots, and other digital mess. As humans, we can easily differentiate the text 
and type in the correct answer as to what we're seeing. Its not fool proof, but it requires so much 
more work on the part of the spammer to get it right that it severely cuts down on automated 
subscription spam.

Thanks to Sean for the link to this nice example:

http://www.fordeabbey.co.uk/pages/contact_us.php

Luckily, a great captcha module is already implemented and ready to go on CPAN:

http://search.cpan.org/~unrtst/Authen-Captcha-1.023/Captcha.pm

I took a look at mj_wwwusr, but where to put the hooks was not clear. There is a lot of parsing and 
passing around objects, so I wasn't quite sure where the subscription form check and add is 
happening - or if I should be putting anything in mj_wwwusr at all really by the time I finished 
reading the code. The html form part is pretty trivial in the subscription template. I just need a push 
in the right direction on where to put the hook for the subscription form (and thus the captcha) 
check.

Thanks for any assistance!

Thanks,
Alex