After facing an onslaught of user registration spam, Ryan looked to a modern CAPTCHA that balanced protection against bots with maintaining a good user experience.
Craft 5
Recently, CraftQuest experienced a high volume of of spam sign-ups for user accounts. I wanted to prevent bots from creating these accounts and creating a mess, so I decided to add a CAPTCHA to the registration form for CraftQuest.
However, I am very careful about the sign-up experience for CraftQuest, in order to make sure it is as simple as possible. For example, I don’t do email verification because it adds to much friction to the process to get someone on a video and learning.
But I also don’t want there to be a flood of registration spam. So, I needed a way to thread the needle of this goal without harming the user experience and ease of sign-up for my training customers.
The CAPTCHA solution I chose was the least disruptive as possible. But before we get into that, let’s look at a very briefly history of CAPTCHAs and what the options are.
We will explore the different types of CAPTCHAs over the years, as well as how to implement the Cloudflare Turnstile CAPTCHA on a Craft CMS project user registration.