DEV Community

Cover image for Let's Build a CAPTCHA Generator with Node.js

Let's Build a CAPTCHA Generator with Node.js

Andrew Healey on November 11, 2019

CAPTCHAs are not accessible and in some cases not even effective but there's a lot to be learned by generating our own! Find the source code for t...
Collapse
 
lawrencejohnson profile image
Lawrence

Just so you know, Recaptcha is both free and super easy to implement (there are flexible ways to both have a lot of it automated or to be able to control how it works quite specifically). Invisible Recaptcha is especially nice since most (humans) never even notice it.

Collapse
 
healeycodes profile image
Andrew Healey

My favorite twist on CAPTCHAs is lichess.org's Chess CAPTCHA where you have to solve a chess puzzle β™ŸοΈ

Collapse
 
lawrencejohnson profile image
Lawrence
Collapse
 
presto412 profile image
Priyansh Jain

No intentions to self-promote, but I wrote a python and subsequently a js script to crack a captcha I had encountered once. Here's the article!

Collapse
 
healeycodes profile image
Andrew Healey

Awesome! Thanks for sharing.

Collapse
 
alexmenor profile image
Alex Menor

If the client stores somewhere in memory the text to verify against, wouldn't be possible for a bot to get it somehow?

Collapse
 
healeycodes profile image
Andrew Healey

This API is designed to be used by another backend service and inserted into a template. That backend service should then store the validation string against the user’s session object.

Let me know if that doesn’t make sense!

Collapse
 
alexmenor profile image
Alex Menor

It does now. Thanks!