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

Home » FUDforum » How To » riddlecaptcha?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: riddlecaptcha? [message #164249 is a reply to message #164248] Sat, 15 January 2011 10:31 Go to previous messageGo to previous message
The Witcher is currently offline  The Witcher   United States
Messages: 675
Registered: May 2009
Location: USA
Karma:
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!"
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Spoiler mod?
Next Topic: Plugin configuration
Goto Forum:
  

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

Current Time: Fri Nov 22 18:21:17 GMT 2024

Total time taken to generate the page: 0.06129 seconds