Google reCaptcha helps to protect the website against spam and bot submissions. It is mainly applied to login, registration, contact us, and add comment forms.
There are 2 versions of Google reCaptcha –
- v2 – User needs to select images based on the question.
- v3 – This is an invisible type of captcha.
In this tutorial, I show how you can add google recpatcha v2 to your form with validation in the CodeIgniter 4 project.