WP Captcha-Free

Description:

WP Captcha-Free blocks comment spam by using a combination of time-based hash (a.k.a. Time Based Tokens, TBT) and JavaScript (AJAX). When a comment is posted the plugin validates a hash based on time (and some other parameters). Comments posted via automated means will not have a hash or will have an expired hash and will be rejected. Unlike using a captcha, this does not place any burden on the commenter.

Additionally, WP Captcha-Free uses ajax to get the hash only when the form is submitted instead of adding it statically to the page (which is cached by caching plugins). This adds another layer of security and makes it compatible with caching plugins like WP-Cache.

Features:

  1. Blocks automated comment spam and ensures that your commenters are human.
  2. Works without inconveniencing visitors with CAPTCHAs, challenge questions, etc.
  3. The plugin requires no database access and adds almost zero overhead.
  4. The plugin works out of the box without any configuration or setup.
  5. Compatible with all cache plugins, including WP-Cache.
  6. Doesn’t require editing any .php files.

Installation:

Just download the .zip file and upload the file ‘captcha-free.php’ to your ‘/wp-content/plugins’ directory. Now login to the Wordpress administration area and activate it under the “Plugins” section. That’s it! WP Captcha-Free will start blocking comment spam behind the scenes.


Rating: 1 Star2 Stars3 Stars4 Stars5 Stars (16 votes, average: 3.75 out of 5) Loading ...
Size: 2.6 KB
Downloads: 986 [Download Now]

42 Comments

  1. dave
    Posted February 21, 2008 at 6:52 pm | Permalink

    Ok cool deal

  2. Posted February 25, 2008 at 10:03 am | Permalink

    Grabbed the plugin and testing it on a new site now. Using the latest version of WP. SHall give you a shout should i run across any problems.

    Regards
    Off-it

  3. Posted March 1, 2008 at 12:26 am | Permalink

    I wonder how you can assume a result made by computer-generated computations (using JavaScript) ensures a comment is written by a humain being. All your plugin does is to ensure one uses a browser to post a comment. Say I develop a Firefox plugin to spam your blog. Your plugin won’t be able to stop it.

    Moreover, what happens if a visitor has deactivated JavaScript in his browser? What would happen if the user is behind a proxy server? I guess visitors won’t be able to comment in both cases…

  4. iDope
    Posted March 1, 2008 at 12:57 am | Permalink

    You are right about the first part. Yes, someone can use a browser to spam. But do spammers do that? Won’t it considerably slow them down? No plugin is foolproof. Spam and anti-spam tech evolves constantly. For *now* this works.

    Yes, it clearly does require JavaScript. But, about 94% users have JavaScript enabled as of Jan 2007 (source: http://www.w3schools.com/browsers/browsers_stats.asp). That number is likely more now if you notice the trend. For me its a choice between using a captcha and inconveniencing 100% of my visitors or <6%.

    No, proxies don’t matter (unless the proxy filters out JS).

    BTW, thanks for your comments. If you have any suggestions please do let me know.

  5. Dean
    Posted March 2, 2008 at 5:33 am | Permalink

    It looks like you got your idea and the name of your plugin from WP-SpamFree. Also you have copied most of the text in the bullet points of your description from that plugin as well-almost word for word. You need to be careful because that is a DMCA violation. With GPL you have to give attribution for code,but you can’t copy marketing text or descriptions.

  6. iDope
    Posted March 2, 2008 at 11:33 am | Permalink

    > It looks like you got your idea and the name
    > of your plugin from WP-SpamFree. Also you have
    > copied most of the text in the bullet points
    > of your description from that plugin as
    > well-almost word for word.

    Not true, in fact I first saw WP-SpamFree after I had completed the plugin and was writing a description (not very good at documentation, I was looking what other similar plugins had written). After reading WP-SpamFree’s feature list I couldn’t write mine another way since both plugins essentially offer the same advantages. But you are right, that’s a terrible thing to do in the age of DMCA (though I am not a US citizen :) ) and I’ll reword my feature list in the next update.

    The idea is not really the same either. My plugin uses time-based hash (generated on the server side) and JavaScript (AJAX) while WP-SpamFree uses JavaScript and cookies. If you look at the code I am sure you’ll find no similarities there either.

    Anyways, thanks for looking at my plugin and I hope you’ll still give it a try. Criticism (constructive or otherwise) is always welcome :) .

  7. zoz
    Posted March 7, 2008 at 2:19 am | Permalink

    Nice plugin :)

  8. Samuel
    Posted March 8, 2008 at 7:30 pm | Permalink

    Hi!

    Your plugin is very promising, but it doesnt work together with Better Comments Manager.

    Could do you make your plugin compatible with it? (maybe make some check about if the user is logged, and if logged no need to make hash check).

  9. kakiyomi
    Posted March 9, 2008 at 1:59 am | Permalink

    oh thx 4 plugin

  10. Posted March 10, 2008 at 9:09 am | Permalink

    Hi there, I’d love to use your plugin but unfortunately it stopped all comments from comming in. Once the user clicks “submit comment” it says “please wait…” and nothing happens. The theme we are using is wp-magazine.com

    thanks!

  11. iDope
    Posted March 10, 2008 at 9:36 am | Permalink

    Hi Sandra,

    Thanks for letting me know. Can you enable the plugin on your blog for a little while so I can see what’s going on?

  12. Posted March 10, 2008 at 12:30 pm | Permalink

    Hi,

    I had not uploaded the .php file right into the plugin directory. Ooops! IT works now and it’s a beauty! Thank you soooooo much!

  13. Posted March 21, 2008 at 5:51 pm | Permalink

    Hi There,

    I installed the plugin and noticed that my comment spam levels dropped to zero. This is great! However, I tried to post a comment on one of my posts, in response to some elses comment, and noticed that the form would not sumbit. When I clicked on the “Post Comment” button, it turned into a “Please wait” and then just stopped. The comment never got posted. I tried several times with the same result. When I de-activated the plugin I could post comments again.

    Any idea what might be causing this? Anyone else experienced a similar issue?

    Thanks,
    Stephen

  14. iDope
    Posted March 21, 2008 at 10:41 pm | Permalink

    Stephen,
    You may have uploaded the captcha-free.php file to a sub-directory of your plugins folder. Please upload captcha-free.php directly to /wp-content/plugins folder. Let me know if this works for you.

  15. Nick R
    Posted March 27, 2008 at 3:32 am | Permalink

    New to blogging and gutted to have spam comments - got my hopes up that I had some readers! When I found your plugin via Wordpress the hopes have gone up again. I will let you know if there are any issues. Thanks for your time and know how.

  16. Adrian
    Posted April 2, 2008 at 7:22 am | Permalink

    Would be cool to see this work on the user registration form.

    thanks.

  17. Marco
    Posted April 10, 2008 at 3:46 am | Permalink

    Stephen,

    I bet you are running WP 2.5
    I had captcha free running on 2.3.?
    After upgrading to 2.5 i had the same as you. I gues captcha-free doesnt work on 2.5

  18. Frank Zondo
    Posted April 11, 2008 at 2:32 pm | Permalink

    Thanks for a great plug-in!

  19. nogu
    Posted April 19, 2008 at 12:59 pm | Permalink

    nice work

  20. S
    Posted April 22, 2008 at 7:48 am | Permalink

    Hi,

    I keep getting the error: Invalid Data: Please go back and try again.

    I figure it has to do with the code below, but I can’t seem to make it work. It does work for some visitors but not others.
    // Validate the hash
    add_action(’preprocess_comment’, ‘cf_comment_post’);
    function cf_comment_post($commentdata) {
    // Ignore trackbacks
    if($commentdata[’comment_type’]!=’trackback’) {
    // Calculate the timehash that is valid now
    $timehash=timehash($commentdata[’comment_post_ID’],time());
    // Calculate the timehash that was valid 1 hour back to give some cushion
    $timehash_old=timehash($commentdata[’comment_post_ID’],time()-3600);
    if($_POST[’captchafree’]!=$timehash && $_POST[’captchafree’]!=$timehash_old)
    wp_die(’Invalid Data: Please go back and try again.’);
    }
    return $commentdata;
    }

  21. Posted April 22, 2008 at 11:49 am | Permalink

    Maybe you can update your entry/plugin to show if/make it wordpress 2.5 compatible.

  22. Jason
    Posted April 25, 2008 at 12:16 pm | Permalink

    Simple suggestion for future updates: the tag containing “Spam protection by WP Captcha-Free” should have an id attribute.

    Anyway, nice plugin. Seems to be working well for me.

  23. Posted April 29, 2008 at 11:24 am | Permalink

    I installed this the other day, and it’s fabulous. I’m getting more comments than I was with the often faulty, always irritating captcha software I was using before. Just one thing, though. People who use AOL’s browser are getting an error when they try to post: Invalid data. Please go back and try again. Any thoughts I can pass along to them, or are they SOL?

  24. Fox
    Posted May 2, 2008 at 4:24 pm | Permalink

    Thanks. This is great.

  25. lala
    Posted May 4, 2008 at 11:22 am | Permalink

    really great :)

  26. Posted May 5, 2008 at 5:20 pm | Permalink

    hi there .thanks for plugin:

    Does anybody know if tis script is compatible with Wordpress 2.5.1?

    Thanks in advance for any help on this!

    best regards

  27. iDope
    Posted May 7, 2008 at 3:38 am | Permalink

    WP Captcha-Free is not compatible with Wordpress 2.5, yet.

  28. Adhi Yudho
    Posted May 10, 2008 at 1:58 pm | Permalink

    Thankyou.. i will try this plugins.. :)

  29. Posted May 10, 2008 at 1:59 pm | Permalink

    @iDope, yes .. true.. :( i’m not read your las comment… sorry.. but i will wait your next version… :)

  30. Hello Dudes
    Posted May 12, 2008 at 12:37 pm | Permalink

    So this doesn’t seem to work anymore.. I don’t see the captcha and it’s not asking me to confirm any image….

  31. Kevin
    Posted May 13, 2008 at 10:44 pm | Permalink

    great idea and work! thanks

  32. Martin
    Posted May 14, 2008 at 5:24 am | Permalink

    Is there any img verification for posting?

  33. iDope
    Posted May 14, 2008 at 5:40 am | Permalink

    The aim of this plugin is not having to use image verification.

  34. BaBy RoDrI
    Posted May 30, 2008 at 9:16 pm | Permalink

    Mmmm…. que mal ya no funciona en Wordpress 2.5 :(

  35. Thomas
    Posted June 17, 2008 at 6:17 am | Permalink

    When people try commenting on my Wordpress MU site all it does now after you click submit comment is to change that button to “Please wait”. So no new comments can be added.

    100% spam free though :)

  36. Webspider
    Posted June 20, 2008 at 11:00 am | Permalink

    Work in new version WP ?

  37. Amiro
    Posted June 28, 2008 at 7:37 am | Permalink

    Work PERFECT !

  38. iDope
    Posted July 8, 2008 at 9:49 am | Permalink

    @Thomas: Please make sure you copy the “captcha-free.php” file directly to the wordpress plugins folder and not to a subfolder.

  39. Philix
    Posted August 1, 2008 at 4:20 am | Permalink

    This is a great plugin

  40. Jason
    Posted August 7, 2008 at 7:51 pm | Permalink

    Wordpress: 2.6
    Theme: Redie 3.0 by Steve Arun

    I have installed your plug-in and I get the following message after I try and comment on a post:

    Invalid Data: Please go back and try again.

    I have it disabled currently but would love to give it some use… spam bots are so annoying…

    Thanks!

  41. iDope
    Posted August 8, 2008 at 3:34 am | Permalink

    @Jason: Are you sure you copied the captcha-free.php file to /wp-content/plugins directly and not to a sub-folder?

  42. Posted August 8, 2008 at 11:57 am | Permalink

    @iDope: Thanks for the quick response. Yes I am sure that captcha-free.php is in /wp-content/plugins and not a subdirectory. I am assuming you are considering the wordpress directory the root? I deleted and just now redownloaded from this page and uploaded. Still nothing though. I get the same error.

    permissions are 644 so I don’t think that is any issue. there isn’t any modifications to the template code that needs to be done, is there? (As I do not have a default template)

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

Spam protection by WP Captcha-Free