How to add Google reCAPTCHA in WordPress Login and Registration Form
reCAPTCHA in WordPress login and registration forms is a response test which confirms whether the user is human or not. reCAPTCHA helps prevent automated bots from submitting spam or malicious content to your form, ensuring that only real users can interact with it.
In this tutorial, we will learn how to add Google reCAPTCHA in WordPress Login and Registration Forms.
Navigating to the reCAPTCHA Configuration Page
Go to the “Global Settings” from the RegistrationMagic menu in your WordPress dashboard.
Drill into “Security” settings from the “Global Settings” page.
You are now on the “Security” settings page to configure reCAPTCHA. Check the checkbox beside the “Enable reCaptcha” setting.
This will reveal the option to select your reCAPTCHA version and add its keys. Please read Google’s reCAPTCHA documentation on how to get your reCAPTCHA keys to use in the settings of RegistrationMagic.
Once you have selected your reCAPTCHA version and added its keys, just click on the “Save” button to save the settings.
reCAPTCHA on the Frontend
reCAPTCHA added from the “Global Settings” will automatically display it on your registration form. To illustrate, check the screenshot below which has the “I’m not a robot” statement embedded with a checkbox beside it.
reCAPTCHA on the Login Form
Enabling reCAPTCHA from the “Global Settings” will only show reCAPTCHA automatically on the registration and contact forms but not on the login form. To show it on the login form, additional settings need to be configured.
By default, the login form is configured to show reCAPTCHA on 3 failed login attempts. If you need the reCAPTCHA to be visible on the login form always, then you need to visit the login form’s “Dashboard” and access the “Validation & Security” settings.
In the “Validation & Security” settings, make sure “Display reCAPTCHA after failed login attempts?” setting is enabled and set “No. of attempts” to “0”. This will ensure reCAPTCHA remains visible on the login form all the time.
This concludes our tutorial on adding Google reCAPTCHA in WordPress Login and Registration Forms.
RegistrationMagic Editorial Staff (rmagic) is a team of WordPress registration experts and major contributor to the development of RegistrationMagic - WordPress User Registration Plugin.
Tampoco consigo ver el captcha en el formulario de registro creado. He entrado las claves de Google, pero no funciona. Alguien sabe como resolver el problema ?
w
2 years ago
i want the text or letter challenge reCAPTCHA can you please suggest how to enable it in the register for i don’t want google reCAPTCHA. please advice how to do it
Right now we only have support for Google reCaptcha. We will plan on adding other reCaptcha options in the future.
Marcel Klee
3 years ago
Unfortunately, my rmagic form (Registration form) does not work for me after entering the V3-ReCaptcha passwords (Site Key / Secret Key). The following error message appears: The reCAPTCHA response provided was incorrect. Please re-try.
What could be the reason – what can I do?
best regards Marcel
We support both V2 and V3 reCaptcha versions. You must have or can generate the required entities like Site Key and Secret Key to make it work.
Mitchell
5 years ago
Hello Registrationmagic.
I activated recaptcha v2 visible checkbox with registrationmagic premium. When I preview my Registrationform I see the Recaptcha below. But when I am logout and go to the registrationform, the Recaptcha is not been shown. Do you have any tips to solve this problem?
As well the form is saying: ”To use embed code X-Frame-Options must be set to ‘ALLOWALL’ on server or must be unset”. What does that mean and where can I do that?
You need to configure “Site Key” and “Secret Key” here: RegistrationMagic > global settings > security > enable reCaptcha to show the reCaptcha on the required form(s).
While we do not have a video for this yet, our team will be more than happy to provide you any required instructions in detail. Feel free to post here any questions or specific information you are looking for. Alternatively, you may also raise a ticket with us.
Consulta, no logro que aparezca el captcha en el formulario, agregue ambas claves y nada, cual puede ser el motivo?
Hi Danial,
Could you please create a support ticket from here – https://registrationmagic.com/technical-support/
Our tech support team will look into the issue.
Tampoco consigo ver el captcha en el formulario de registro creado. He entrado las claves de Google, pero no funciona. Alguien sabe como resolver el problema ?
i want the text or letter challenge reCAPTCHA can you please suggest how to enable it in the register for i don’t want google reCAPTCHA. please advice how to do it
Hi w,
Right now we only have support for Google reCaptcha. We will plan on adding other reCaptcha options in the future.
Unfortunately, my rmagic form (Registration form) does not work for me after entering the V3-ReCaptcha passwords (Site Key / Secret Key). The following error message appears: The reCAPTCHA response provided was incorrect. Please re-try.
What could be the reason – what can I do?
best regards Marcel
We would require further details from you in order to analyze the reported issue. Please raise a ticket here to provide you with a speedy resolution.
Be sure that the Rechatcha versión (2 or 3) is the same on the security page that in the Google Recaptcha keys generation
do you only support V2? can I enable V3 instead?
We support both V2 and V3 reCaptcha versions. You must have or can generate the required entities like Site Key and Secret Key to make it work.
Hello Registrationmagic.
I activated recaptcha v2 visible checkbox with registrationmagic premium. When I preview my Registrationform I see the Recaptcha below. But when I am logout and go to the registrationform, the Recaptcha is not been shown. Do you have any tips to solve this problem?
As well the form is saying: ”To use embed code X-Frame-Options must be set to ‘ALLOWALL’ on server or must be unset”. What does that mean and where can I do that?
I thank you very much.
Kindly raise a ticket at our support portal here: https://metagauss.com/help-and-support/ in order to allow us assist you.
is it automatically add the reCaptcha in the form or i have to put a code or something?
You need to configure “Site Key” and “Secret Key” here: RegistrationMagic > global settings > security > enable reCaptcha to show the reCaptcha on the required form(s).
So I did…. and captcha doesn’t appear
Hi Michel,
Could you please create a support ticket from here – https://registrationmagic.com/help-support/
Our support team will look into the issue.
Do you have any video of that? I’d love to find out
more details.
While we do not have a video for this yet, our team will be more than happy to provide you any required instructions in detail. Feel free to post here any questions or specific information you are looking for. Alternatively, you may also raise a ticket with us.