Simple Javascript CAPTCHA
May 2, 2007 32 Comments
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
Code Snippets and Samples
May 2, 2007 32 Comments
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
WOW thx :) very small )
This is a joke, right? math is the worst captcha idea ever.
Can you come up with your own solution please. So we can use the best solution.
great job
no maths is a great idea, it is common in use…
is there a demo of this in action? code does not seem complete.
not a bad thing for beginners.
Hey math random that to 2 nos.. this can be easily cracked since there is limited output sum.
Great, just what I needed at the moment, small and simple. Thx
Thanks for sharing that nice info.
its very simple but very help full gr8 man keep it up……
exactly what I needed. Thanks!
can we do captcha of images using javascript
good work
Another happy user here. Perfect for when you need captcha without PHP or ASP.
Not too good,This can be cracked easily.
Sweet :-)
Does anyone has a working form of this captcha?? please post the URL, thanks
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
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.
very simple nice !
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;
Extremely simple and interactive…! Great work…!
Godlike easly to crack this one thx to the c variable who is global.
Its good and easy but not complete as form is submitted even if the value shows false.
Pingback: Learning - What is CApTChA? | Manish Dariyani's Blog
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 .
Sure its easy to be cracked but if you change the variable names it will not be the common protection anymore.
Cool, thank you!
Pingback: 21 FREE CAPTCHA SOURCES
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…
Simplest n Best captcha..