FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » riddlecaptcha?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
riddlecaptcha? [message #164247] Fri, 14 January 2011 16:24 Go to next message
The Witcher is currently offline  The Witcher   United States
Messages: 675
Registered: May 2009
Location: USA
Karma: 3
Senior Member
http://cvs.prohost.org/index.php/Riddlecaptcha.plugin resads :
Usage
If enabled, users will see a mathcaptcha when trying to register or when posing anonymously (if enabled).

That's an error ...right?


"I'm a Witcher, I solve human problems; not always using a sword!"
Re: riddlecaptcha? [message #164248 is a reply to message #164247] Sat, 15 January 2011 03:02 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Yes, it looks like an error. Is this a riddle?
Re: riddlecaptcha? [message #164249 is a reply to message #164248] Sat, 15 January 2011 10:31 Go to previous messageGo to next message
The Witcher is currently offline  The Witcher   United States
Messages: 675
Registered: May 2009
Location: USA
Karma: 3
Senior Member
naudefj wrote on Fri, 14 January 2011 21:02
Yes, it looks like an error. Is this a riddle?


Well if you look at it, it almost could be!

<?php
// Initialize plugin.
plugin_add_hook('CAPTCHA', 'plugin_riddlecaptcha');

// Implement a simple riddle CAPTCHA.
function plugin_riddlecaptcha() {
	$riddles = array(
		array('Are you a spammer? (yes or no)', 'NO'),
		array('Are you human? (yes or no)', 'YES'),
		array('Do you hate spam? (yes or no)', 'YES'),
		array('Do you solve captchas for money? (yes or no)', 'NO'),
		array('Fire is... (hot or cold)', 'HOT'),
		array('Are you posing anonymously? (yes or no)', 'YES'),
		array('Ice is... (hot or cold)', 'COLD'),
		array('Enter the value of ten plus six', '16'), 
                array('Is this a mathcaptcha? (yes or no)', 'NO'),
		array('Enter the value of 5 plus seven', '12'),
		array('Please type the second word in this sentence.', 'TYPE'),
		array('What word is fourth in this sentence?', 'FOURTH')
	);

	return $riddles[ array_rand($riddles) ];
}

Laughing Laughing
OK, I fixed the wiki entry, but looking at this it appears that the same method could be used to limit anonymous posters or registrations to only people who would know certain things. For instance I encountered this while working on an installation for a local county.

So changing the questions to something that would generally be known to county residents but not so well known to outsiders would tend to limit registrations and anonymous posting to the counties residents.

This would by no means be foolproof but then nothing is.



"I'm a Witcher, I solve human problems; not always using a sword!"
Re: riddlecaptcha? [message #164253 is a reply to message #164249] Sun, 16 January 2011 08:14 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Yes, you can use it to ask for info that only your members will know, like your gang's secret code.

BTW, thanks for fixing the wiki.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Spoiler mod?
Next Topic: Plugin configuration
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Jun 26 12:22:35 GMT 2024

Total time taken to generate the page: 0.12787 seconds