bbPress Plugin Browser »

Clickcha (0.3)

Download

Version: 0.3

Last Updated: 2009-6-18

Requires bbPress Version: 1.0 alpha 5 or higher

Compatible up to: 1.0 alpha 6

Author Homepage »

Plugin Homepage »

Donate to this plugin »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(4)

Your Rating

Author: iDope

Clickcha is a unique CAPTCHA system that more secure than traditional text based CAPTCHAs yet easier to use. Clickcha will replace the submit button with an image based CAPTCHA that requires a single click to solve and post the form.

Click here to see Clickcha in action.

Features

  1. The simplest CAPTCHA out there - solved in one click - no typing required.
  2. Every Clickcha puzzle is unique.
  3. New challenging (for bots) puzzle types regularly added.
  4. Adds almost zero overhead.
  5. Works out of the box without any setup or editing .php files.

How It Works

Clickcha generates image based CAPTCHAs which require the user to click the image in a particular area to solve the puzzle. Clickcha is more secure than traditional text based CAPTCHAs which can be read via OCR software.

Feedback

Please let me know what you think about the plugin and any suggestions you may have. If you use the plugin please rate it. If it doesn't work for you do let me know so I can fix it.


  1. I see a stray wp_die in there, you'll have to replace it with bb_die

    Thank you for porting your plugin from WordPress, I wish more authors did that.

    Posted: 3 years ago #
  2. Thanks for letting me know. I have fixed it.

    It was barely any work porting it to bbPress, except bbPress doesn't have as many hooks so I had to use a more generalized hook 'bb_init'.

    Posted: 3 years ago #
  3. If someone loads a captcha image multiple times, the circle with the correct answer stays in the same place. I suggest using urls that expire immediately after use to prevent spam bots from exploiting this "feature".

    Also, couldn't someone use one captcha over and over?

    Posted: 3 years ago #
  4. If someone loads a captcha image multiple times, the circle with the correct answer stays in the same place.

    Yes, currently that does happen. Gonna change that behavior soon.

    Also, couldn't someone use one captcha over and over?

    No, the Captcha expires when the solution (correct or incorrect) is submitted for verification.

    Thanks for the feedback Nightgunner5!

    Posted: 3 years ago #
  5. Thanks for plugin. Strange thing, but I can't vote for it.

    Posted: 3 years ago #
  6. mentatseb

    Member

    Hi, is there an alternative way to get the API key? My server security admin disabled the file_get_contents() function:

    Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration

    Thanks!

    Posted: 3 years ago #
  7. http://api.clickcha.com/getkeys?url=FORUMADDRESS&email=you@example.com

    Copy that down because you'll never be able to use the same url and email to get a key again.

    Posted: 3 years ago #
  8. A quick question: is it supposed to change the button for "Reply" when posting replies to forum posts? (If so, how, because it hasn't on my site).

    thanks

    Posted: 2 years ago #
  9. It works out of the box with bbPress 1.0.2 - and it works great!

    Posted: 2 years ago #
  10. loungelizard777

    Member

    I've installed Clickcha but when I try to test-register I get this error message ... Anyone knows what I have to do to get this working? The other two worthy bbPress Antispam plugins were useless, Russian spammers went through them like hot steel through butter. But Clickcha seems to prevent them.

    Here's the error:

    Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /nfs/c02/h09/mnt/24512/domains/forums.hexagonstar.com/html/my-plugins/clickcha/clickcha.php on line 158
    
    Warning: file_get_contents(http://api.clickcha.com/verify?key=hmx_tP7lT5Q&token=fXCMzDsCwqpUqQ4hlcJXdGKvAeDGUj5A9WYVq2W3qSbIXrwV5YQUKR8BBogSgImelOHFPNo__adGEpRj9SjgdQ&private_key=XQUwSq6dNVA&x=139&y=42) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /nfs/c02/h09/mnt/24512/domains/forums.hexagonstar.com/html/my-plugins/clickcha/clickcha.php on line 158
    
    Warning: Cannot modify header information - headers already sent by (output started at /nfs/c02/h09/mnt/24512/domains/forums.hexagonstar.com/html/my-plugins/clickcha/clickcha.php:158) in /nfs/c02/h09/mnt/24512/domains/forums.hexagonstar.com/html/bb-includes/functions.bb-core.php on line 1101
    Posted: 2 years ago #
  11. deko

    Member

    I discovered Clickcha yesterday. Seems to be working well so far. Would be nice if there was a developer forum or programmer's reference. This has a lot of potential as a comment spam prevention tool.

    The problem I had with Clickcha was that it broke my CSS and caused the page to fail HTML validation. Here's how I fixed it:

    1) Go to your wp-content/plugins directory and edit clickcha.php (about line 155) Remove all style directives--that is, everything between (and including) the <style> tags. Paste it in notepad for now--you'll want it later.

    2) remove the <noscript> and small> tags (and anything in between) that appear near the javascript code within the clickcha_comment_form function. Below is how my clickcha_comment_form function looks after editing.

    Note the /* <![CDATA[ */ ... /* ]]> */ addition. This tells HTML validator to ignore the script.

    function clickcha_comment_form($post_id) {
    	$public_key = get_option('clickcha-public-key');
    	$help_text = get_option('clickcha-help-text');
    	if(empty($public_key)) {
    		echo "<div id='message' class='error fade'><p>Clickcha is not yet active. Please enter Clickcha API keys in settings.</p></div>";
    	}
    	// Bypass clickcha for logged-in user (except 'subscriber')
    	else if(!current_user_can('level_1')){ ?>
    
    	<input type="hidden" name="clickcha_token" id="clickchatoken" value=""></input>
    	<?php echo $help_text; ?>
    	<input type="image" name="clickcha" id="clickcha" alt="" src=""></input>
    
    	<script type="text/javascript">
    	/* <![CDATA[ */
    		function clickcha_token(token) {
    			document.getElementById('clickchatoken').value = token;
    			document.getElementById('clickcha').src = 'http://api.clickcha.com/challenge?key=<?php echo $public_key; ?>&token=' + token;
    		}
    		function clickcha_get_token() {
    			var e = document.createElement('script');
    			e.src = 'http://api.clickcha.com/token?output=json&key=<?php echo $public_key; ?>&rnd=' + Math.random();
    			e.type= 'text/javascript';
    			document.getElementsByTagName('head')[0].appendChild(e);
    		}
    		clickcha_get_token();
    		// Firefox's bfcache workaround
    		window.onpageshow = function(e) {if(e.persisted) clickcha_get_token();};
    	/* ]]> */
    	</script>
    <?php
    	}
    }

    3) Edit your stylesheet and put in what you took out of clickcha.php:

    here's how it looks in my stylesheet:

    #clickcha input {
    	height: 100px;
    	width: 200px;
    	border: 0;
    	margin: 0;
    	padding: 0;
    	display: block;
    }
    
    #submit { display: none; }
    #commentform input [type="submit"] { display: none; }
    #commentform button [type="submit"] { display: none; }
    #commentform span.submit { display: none; }

    Clickcha is working, my CSS looks like it should, and the page validates as XHTML 1.0 Transitional.

    Posted: 2 years ago #
  12. The idea is awesome, I like that it's very fast and it doesn't torture the user with indecipherable words, but I think it's not very difficult to make a bot that can crack it, especially if there are not may different types of puzzles.

    However, as long as it's not well-known and well-spread, it's safe, mostly because no one takes the time to build a bot for it.

    Posted: 2 years ago #
  13. suffern

    Member

    I only want this to work on the registration form. How can I edit the code so it doesn't show up when posting new topics?

    Or could we get an update where this is an option in the admin section?

    Great work by the way. Appreciate your effort.

    Posted: 2 years ago #
  14. Why this wont work with the latest version?

    Posted: 1 year ago #
  15. Thank you for this plugin

    Posted: 1 year ago #
  16. Great plugin, thanks for this.

    Posted: 1 year ago #
  17. Great!

    Posted: 9 months ago #

RSS feed for this topic

Add a Comment

You must log in to post.