Simple Javascript CAPTCHA

Simple CAPTCHA using Javascript. The page collecting the form information should collect from forms only. eg. in ASP: request.forms(“name”)

Click here to download the code: BotBoot1.html

32 Responses to Simple Javascript CAPTCHA

  1. kt2k says:

    WOW thx :) very small )

  2. Danny says:

    This is a joke, right? math is the worst captcha idea ever.

  3. Atishay says:

    no maths is a great idea, it is common in use…

  4. laura says:

    is there a demo of this in action? code does not seem complete.

  5. fakhre says:

    not a bad thing for beginners.

  6. Pomme says:

    Hey math random that to 2 nos.. this can be easily cracked since there is limited output sum.

  7. Henning says:

    Great, just what I needed at the moment, small and simple. Thx

  8. Ahsan says:

    Thanks for sharing that nice info.

  9. Soham says:

    its very simple but very help full gr8 man keep it up……

  10. jm says:

    exactly what I needed. Thanks!

  11. prakash says:

    can we do captcha of images using javascript

  12. rjs says:

    good work

  13. phprogue says:

    Another happy user here. Perfect for when you need captcha without PHP or ASP.

  14. Shashank says:

    Not too good,This can be cracked easily.

  15. Sharjeel says:

    Sweet :-)

  16. alan says:

    Does anyone has a working form of this captcha?? please post the URL, thanks

  17. jefrey says:

    muito bom trabalho, mas com alguns probleminhas:
    # eu não conseguir fazer com que se o resultado fosse true ele redirecionar para outra página. eu tentava, mas não acontecia nada
    # quando o resultado das variáveis é true ou false, eu queria q não aparecesse isso. tipo assim:

    if (form.BotBootInput.value==”a + b”)
    window.location = “exemplo.html”;
    else
    alert=(“Você errou! Tente novamente.”)”;

    mas não consigo incorporar o código

  18. mewomic says:

    Terrible for security. This is so extremely easy to bypass, people stick to SERVER SIDE security methods. With this you can disable JavaScript in your browser and you’ve basically bypassed the thing.

  19. Atif Kamal says:

    very simple nice !

  20. rsvvsr says:

    best captcha ever…..
    nice work..
    who so ever say that it can be cracked easily , just think about this one

    var a = Math.ceil(Math.random() * 100);
    var b = Math.ceil(Math.random() * 100);
    var c = a + b;

  21. Ahsan says:

    Extremely simple and interactive…! Great work…!

  22. manlachance says:

    Godlike easly to crack this one thx to the c variable who is global.

  23. Avinash Kabra says:

    Its good and easy but not complete as form is submitted even if the value shows false.

  24. Pingback: Learning - What is CApTChA? | Manish Dariyani's Blog

  25. Surajit says:

    This is a best captcha example. But instead of text numbers, one could use images of numbers.
    Randomizing the numbers, the answer should be also randomized .

  26. Sure its easy to be cracked but if you change the variable names it will not be the common protection anymore.

  27. ckck31 says:

    Cool, thank you!

  28. Pingback: 21 FREE CAPTCHA SOURCES

  29. Ali Zaidi says:

    More secure version..

    Source…

    (function ($) {
    $.fn.essentialCaptcha = function () {
    var a = Math.ceil(Math.random() * 10),
    b = Math.ceil(Math.random() * 10),
    span = $(‘What is ‘+ a + ‘ + ‘ + b +’?:’),
    textbox = $(”),
    isHuman = function () {
    return a + b === parseInt(textbox.val());;
    },
    reset = function () {
    a = Math.ceil(Math.random() * 10);
    b = Math.ceil(Math.random() * 10);
    span = span.html(‘What is ‘ + a + ‘ + ‘ + b + ‘? ‘);
    textbox.val(”);
    };
    this.prepend(textbox);
    this.prepend(span);
    return {
    isHuman: isHuman,
    reset: reset
    };
    };
    })(jQuery);

    Html…

    usage…

    var captcha=$(“#Captcha”).essentialCaptcha();

    be intelligent after each wrong answer reset again….

    if (!captcha.isHuman()) {
    displayErrorInfo(“Please answer question correctly.”);
    captcha.reset();
    return false;
    }
    Happy coding…

  30. Ashish says:

    Simplest n Best captcha..

Leave a reply to Ali Zaidi Cancel reply