reCAPTCHA alternative for PrestaShop, with nothing to click

What reCAPTCHA asks of your customers, and how to stop the same robots on PrestaShop with an invisible trap and a silent captcha.

reCAPTCHA alternative for PrestaShop, with nothing to click
Quick answer

reCAPTCHA is free up to 10,000 assessments a month, but it goes through Google and sets a cookie. Easy Secure Login stops spam robots with a hidden field that only robots fill in and a check on how long the form took to fill in, with no tick box or image, from the free version.

VideoVideo in French

Sécurité PrestaShop : anti-robots, double authentification, clé d'accès | Easy Secure Login

The Gekkode YouTube channel publishes more videos about AI and code.

Subscribe to support the channel

reCAPTCHA, Google’s captcha, is often the “I’m not a robot” box, sometimes followed by one more test. On a shop, it interrupts the customer at the worst moment: when they want to sign in, create an account or write to customer service.

Easy Secure Login offers an alternative to reCAPTCHA on PrestaShop. Its invisible trap stops the same robots without making customers click anything, and it is free on sign-in and account creation.

What reCAPTCHA is, exactly

reCAPTCHA is Google’s anti-robot service. Its versions page describes three. Version 2 shows the “I’m not a robot” box, then either lets the visitor through or sets a test to prove they are human. Its invisible variant shows only a badge, and by default only the most suspicious visitors have a test to pass. Version 3 asks the visitor nothing and returns a score, which your site uses to decide, for example, to ask for one more check.

The Google Cloud FAQ announces 10,000 free assessments a month. The same FAQ says that reCAPTCHA sets a cookie classed as necessary, _GRECAPTCHA, in the visitor’s browser, which it uses to assess risk. It also advises sites to mention this abuse prevention in their privacy information.

For a shop, that makes three constraints. The version 2 test asks customers for one more gesture. Every check goes through Google, which receives information about the visitor’s browser. And the keys are created and managed at Google.

What gives a spam robot away

A spam robot does not wander round the shop. It sends its answers straight to the form without displaying the page, and starts again in a loop: fake accounts, adverts in the contact form, addresses signed up to the newsletter. Two details give it away. It fills in fields that nobody sees, and it sends the form without having opened it.

Easy Secure Login’s robot trap watches for those two signs. Every protected form gets a hidden field, with a name specific to your shop: visitors do not see it, but the robot, which reads the code of the page, fills it in like the others. When the page opens, the module also hands the form a token that notes the time, like the ticket taken at the entrance of a car park. A robot that has not opened the page has none. When the form is sent, the shop refuses it if the hidden field is filled in, if the token is missing or if the form goes out too fast.

On the test shop, a robot that sends the contact form without having opened it receives the message “We could not check your request. Please reload the page and try again.”, and the module notes the incident:

The shop's contact page with the red error message “Nous n'avons pas pu vérifier votre demande. Rechargez la page et réessayez.”
The message a robot sees, with no hint of what gave it away (screenshots of the French interface).

The module’s log files these refusals under the “Robots stopped” filter, with the form that was targeted:

The module's activity log filtered on stopped robots: contact requests, password requests, newsletter sign-ups and automatic sign-in attempts
Each stopped robot is noted with the form it was aiming at.

A customer in a hurry is not penalised. The minimum delay between opening the form and sending it can be set to 2, 3 or 5 seconds, and the module’s card specifies that a faster person is never refused: their form goes out by itself at the end of the delay.

Set the trap up

As soon as the module is installed, the trap protects sign-in and account creation. The “Blocks and robots” tab lists the protected forms with, for each one, a switch and the number of robots stopped over thirty days.

The “Robots on the forms” card with six forms: account creation, customer sign-in, contact, forgotten password, newsletter and team sign-in
Six forms, four of them reserved for the Pro plan.

Account creation and customer sign-in are free. Contact, forgotten password, newsletter and team sign-in need the Pro plan, at €2 a month or €19.20 a year.

Under “Fine settings”, a trial period spots robots without stopping them, so you can check for a few days that no genuine customer is bothered.

The “Robots on the forms” card with its fine settings: minimum time of 2, 3 or 5 seconds and trial period
The minimum delay and the trial period are set in the fine settings.

Robots that open the page

The trap stops robots that send the form without displaying the page. A more elaborate robot drives a real browser and fills in the form like a person, and the trap does not see it. For that case, the module adds Cloudflare’s invisible captcha, free too, which examines the browser itself. The Turnstile tutorial covers each step.

No captcha is enough on its own. The OWASP guide, from a foundation that publishes security advice for websites, notes that tools and services exist to get around them, and advises requiring them only for risky sign-ins. An invisible trap, a silent captcha and a block on passwords tried at random complement each other, and the overview of PrestaShop shop security presents them together.

If a reCAPTCHA module is already installed

Two captchas on the same form duplicate each other, and the customer goes through both. Keep just one per form. If your theme or another module already adds its captcha to one of them, switch that form off in the module’s “Blocks and robots” tab. Its own fields have names of their own, so they do not get mixed up with another captcha’s.

What to remember

  • reCAPTCHA is free up to 10,000 assessments a month, but it goes through Google and sets a cookie.
  • A spam robot sends the form without opening it and fills in fields that nobody sees: Easy Secure Login’s trap watches for those two signs.
  • Customers see no box or image, and a customer in a hurry is never refused.
  • The trap is free on sign-in and account creation, and needs the Pro plan on the other forms.
  • Cloudflare’s invisible captcha is added for robots that open the page.

The Easy Secure Login page offers the module’s ZIP and compares the Free and Pro plans. The module works from PrestaShop 1.7.6 to 9.x.

Common errors

Trial period left running During the trial, the trap spots robots without stopping them. After a few days with no customer bothered, switch the trial off.
Minimum delay too long The module holds the form until the chosen delay (2, 3 or 5 seconds). A customer who fills it in quickly therefore waits, so keep the delay short on sign-in.
The trap alone against a robot that displays the page The trap stops robots that send the form without opening the page. If fake accounts still get through, add Cloudflare's invisible captcha.

PrestaShopSécurité

Damien Flandrin Web developer since 2010, creator of Gekkode and Email Impact. Every article is tested on a real project before publication. Contact
Newsletter

New tests, tutorials and projects, by e-mail.

Reproducible tests, versioned code, dated results. Never any spam.