Idéematic
EN
Discuss your projectContact usContact
Web development

CAPTCHA: are there any alternatives?

IdéematicUpdated on 8 min read
CAPTCHA: are there any alternatives?
Contents
  1. What is a CAPTCHA?
  2. What are the limitations of reCAPTCHA?
  3. 4 alternatives to reCAPTCHA: pros and cons
  4. 3 WordPress CAPTCHA plugins to protect your website
  5. Conclusion
  6. Frequently asked questions

The scale of cyberattacks against businesses has never been more worrying. The Hiscox report states that 53% of French companies with fewer than 10 employees have suffered a cyberattack (data.gouv.fr, the French government’s open-data portal, in French). The consequences are serious, with financial losses that can run to several hundred thousand euros. To protect themselves from cybercriminals and their increasingly sophisticated methods, websites need to filter out spam with CAPTCHAs. These “traditional” solutions are still in use, but they are increasingly vulnerable to new technologies such as machine learning. Are there alternative tools or methods that offer better security?

1. What is a CAPTCHA?

CAPTCHA stands for “Completely Automated Public Turing test to tell Computers and Humans Apart”. This Turing test is a security measure for websites that want to protect their users from spam or hacking attempts. Users answer a challenge made up of a random series of distorted numbers and/or letters. In principle, a robot cannot make out these images (Google).

Google has its own security system called reCAPTCHA, which is already in its third version. Before that, users had to recognise words (version 1), then traffic lights or parts of vehicles in a grid of nine images (version 2). The challenge was triggered whenever the user’s activity looked suspicious: regularly deleting cookies, heavy or unusual traffic, using a VPN (virtual private network) and so on.

With its third version, reCAPTCHA no longer interrupts users during their visit. It gives them a score based on their behaviour in the software, using an analysis based on artificial intelligence (Mailchimp). A score of 1 means a good-quality interaction, while 0 indicates a bot. Between these two extremes, the CAPTCHA gives a score with one or two decimal places. These results are based on specific actions chosen by the site’s administrators, such as “send a friend request”.

Developers not only decide which web pages the test runs on, they can also set the criteria that trigger it. All it takes is including specific functions in the code, such as function onSubmit(token) or grecaptcha.execute (Google documentation).

2. What are the limitations of reCAPTCHA?

Despite its progress, reCAPTCHA version 3 quickly reaches its limits, as do other CAPTCHA tests. Hackers exploit security flaws, solutions based on APIs (application programming interfaces) and advances in artificial intelligence (AI). Broadly speaking, the problems with CAPTCHAs fall into three main areas.

Privacy issues caused by data collection

Collecting personal information to decide whether a visitor is a human or a bot raises privacy issues. This information includes the user’s IP address and screenshots of their browser window (Friendly Captcha). Google applies one privacy policy to all its services, but none specific to its security tests. This lack of transparency risks penalties for failing to comply with the EU’s General Data Protection Regulation (GDPR).

Bots that keep adapting through automation and machine learning

As with any remedy, defences inevitably breed resistance. In this case, bots are becoming ever better at getting past CAPTCHA tests. Paradoxically, the tests are becoming harder and harder for humans. Image recognition or audio tests in English shut out visually impaired visitors and those who don’t speak English. Reading and copying a series of letters or a specific word is difficult for people with dyslexia.

Robots, meanwhile, use advances in machine learning to solve CAPTCHAs. Convolutional neural networks (CNNs) identify images, while optical character recognition (OCR) tools solve text. Browser automation tools such as Selenium or Puppeteer simulate human behaviour (Octoparse).

According to a 2023 study, researchers from the University of California and the University of Zurich showed that machines outperform humans. Bots are more than 85% accurate, whereas humans range from 50% to 85%. Bots also solve the tests faster.

A poorer user experience due to repeated tests

Website owners are free to impose extra checks on the users they consider most at risk, based on reCAPTCHA data. But this practice can arbitrarily exclude some visitors because their behaviour is judged too automated, or multiply the number of tests.

This is especially true when users browse the site or app without Google’s tracking (with a VPN or a tracker blocker). Without data collected through cookies, CAPTCHA challenges appear more often and disrupt the experience (Friendly Captcha). The frustration is all the greater because solving these tests takes from 10 seconds for images to 30 seconds for audio (DataDome, in French).

If something goes wrong, users may give up on their purchase or on filling in an online form because their data has been lost. The conversion rate of your website or application takes a major hit.

3. 4 alternatives to reCAPTCHA: pros and cons

Given reCAPTCHA’s limitations, there are many alternatives for protecting your site against bots or cyberattacks. Each has its pros and cons, but they all stand out for being unobtrusive or automating their processes.

reCAPTCHA alternatives at a glance
SolutionStrengthsLimitations
HoneypotFree, invisible, easy to codeBypassed by advanced bots; can trap screen reader users
Advanced bot protectionAI that analyses every request, customisable rulesHigh cost
Web application firewall (WAF)Blocks SQL injection, DDoS and XSS attacks; GDPR-compliantPowerless against sophisticated bots; static rules
Multi-factor authenticationEasy and inexpensive to set upRequires users’ consent; does not protect against DDoS or scraping

Honeypots

A honeypot invites the robot to fill in a form field that human users cannot see. The field is hidden with CSS or JavaScript (DEV). If both fields (visible and hidden) are filled in, the bot is detected and cannot go any further.

This solution is free, easy to code and able to stop simple bots. However, hackers quickly figure out the defence and get around it with a few lines of code. And if a user relies on screen reader software or disables CSS, they may fill in the honeypot without realising it.

Advanced bot protection

A tool such as DataDome (in French) is a more sophisticated solution than a honeypot. It relies on artificial intelligence and machine learning to recognise bots more accurately. The API is installed with the NuGet package, then closely analyses every request to spot automated ones. When it finds one, it asks that user to pass a CAPTCHA test.

Thanks to its premium performance, this kind of tool is better at telling robots from human users. Site owners can customise their rules to fine-tune their traffic further. However, these services come at a significant cost, amounting to several thousand dollars a month.

Web application firewalls (WAF)

A web application firewall (WAF) acts as a filter between the user and the web server, monitoring HTTP or HTTPS traffic. It protects APIs and web applications against threats such as (Cyber Management School, in French):

  • SQL injection attacks;
  • DDoS attacks;
  • XSS vulnerabilities;
  • HTTP request smuggling;
  • and more.

In general, a firewall is enough to protect you from certain attacks while complying with the GDPR. However, it is powerless against more sophisticated bots. It also relies too heavily on static rules based on IP addresses.

Multi-factor authentication (MFA)

Multi-factor authentication (MFA) verifies users’ identity using several authentication factors. These fall into three groups (Cloudflare):

  • Something the user knows: a password, PIN, national insurance number, answer to a secret question, etc.
  • Something they have: a USB token, a smartphone (receiving a one-time code), a smart card, etc.
  • Something they are: eye, voice or face recognition, etc.

This solution is easy and inexpensive to set up. However, it requires users’ consent and does not protect against some attacks, such as DDoS (distributed denial of service) or scraping.

4. 3 WordPress CAPTCHA plugins to protect your website

Beyond security software, there are anti-spam plugins for the WordPress content management system (CMS). They come in free or paid versions, and they are ready-made, easy-to-use solutions. The three main ones are:

  • Akismet. This protection plugin is the most popular, because it is installed by default when you build a site on WordPress. It offers no CAPTCHA, but analyses every comment to block possible spam. It is free for personal blogs but paid for e-commerce sites. It is also not very effective against sophisticated bots.
  • CleanTalk. This plugin protects your most popular forms, as well as login and comment areas. Thanks to its algorithm, it works automatically with no intervention needed. By analysing user interactions, it gives each user a risk score to decide whether to block them. Despite its automation, it is not fully customisable (ID Design, in French).
  • Antispam Bee. According to the French site Codeur (in French), this plugin is used by more than 400,000 sites. Web developers like it because its settings panel is very intuitive, letting them choose which security features to enable. However, this protection tool only moderates comments, not the other areas targeted by hackers.

5. Conclusion

With the rise of artificial intelligence and increasingly sophisticated bots, CAPTCHAs are becoming less and less effective. Google’s tool also runs into problems such as consent for data collection and a negative impact on the user experience. Alternatives such as honeypots or web application firewalls exist to adapt your defences to modern threats. But these solutions are not foolproof, and the right one depends on the level of security you need.

That is why the best weapon remains vigilance and monitoring of your websites and web applications.

Frequently asked questions

What is a CAPTCHA?

A test that tells a human from a robot (“Completely Automated Public Turing test to tell Computers and Humans Apart”): copying distorted characters, recognising images or, with reCAPTCHA v3, receiving a score calculated from your behaviour.

What are the alternatives to reCAPTCHA?

Honeypots (a hidden field that traps robots), advanced bot protection, web application firewalls (WAF) and multi-factor authentication. On WordPress, plugins such as Akismet, CleanTalk and Antispam Bee.

Is there a GDPR-compliant alternative to reCAPTCHA?

Yes: a honeypot or a WAF does not collect personal data about the visitor. There are also CAPTCHAs designed to limit data collection, such as Friendly Captcha.

Why is reCAPTCHA a problem?

It collects personal data (IP address, behaviour) without a dedicated privacy policy, bots are getting better at solving it thanks to AI, and its repeated tests get in users’ way, especially people who are visually impaired or have dyslexia.

Which solution should you choose to protect a form?

It depends on the level of risk: a honeypot is enough against simple bots, a WAF protects against common attacks, and advanced bot protection targets sophisticated bots. Combining several protections is the safest option.

Further reading

In the same category

All articles

Build your custom application

At Idéematic, we apply technical best practices to build high-performing, secure custom software and applications.

Contact us nowContact us