Add reCAPTCHA to your forms

Author
By Darío Rivera
Posted On in HTML

Websites that begin to have a high network traffic start experiencing spam in contact forms, comment boxes and any form that is easy to fill out on the website. It becomes really annoying to classify each message to obtain those that are not fake. That is why today we will talk about Google's CAPTCHA called reCAPTCHA.

Currently there are two current versions of reCAPTCHA which are v2 and v3. But what is really the difference between these versions and which one adapts to my needs?.

reCAPTCHA v2

This version of reCAPTCHA is currently the most widespread among users. It has two different options, one is the typical challenge "I'm not a robot" where you have to check a box with the indicated text. It is also one of the fastest integrations as it only requires a few lines of HTML.

reCaptcha V2

The second option is an invisible badge for the user. This method requires calling the API by clicking on a button which will activate a challenge to the user in case reCAPTCHA considers that there is suspicious traffic on the site. This challenge consists of selecting from a series of images, the sidewalks, poles, trucks or other identifiable object in each one.

reCAPTCHA v3

This latest version of reCAPTCHA was developed to avoid the friction caused to the user by version two. The main objective is not to interrupt the user in filling out the form in question. That is, the user will never see a challenge. Instead, the program will calculate a score based on the probability that the user is a robot or not. This score ranges from 0 to 1, with 1 being a "good interaction" and 0 a "robotic interaction".

In the following links you will find how to carry out each one of the implementations of reCAPTCHA.

- Implement reCAPTCHA v2 with checkbox


Acerca de Darío Rivera

Author

Application Architect at Elentra Corp . Quality developer and passionate learner with 10+ years of experience in web technologies. Creator of EasyHttp , an standard way to consume HTTP Clients.

LinkedIn Twitter Instagram

Sólo aquellos que han alcanzado el éxito saben que siempre estuvo a un paso del momento en que pensaron renunciar.