Want to prevent spam registrations and bot attacks on your WordPress site? Adding CAPTCHA to your registration and login forms is an effective solution.
This guide will show you how to easily implement CAPTCHA using the User Registration & Membership plugin, which supports reCAPTCHA v2, reCAPTCHA v3, hCaptcha, Cloudflare Turnstile, and Math CAPTCHA.
Say goodbye to spam – let’s secure your site in minutes!
What is CAPTCHA? Why Add it to the Registration and Login Forms?
CAPTCHA, which stands for “Completely Automated Public Turing test to tell Computers and Humans Apart,” is a tool to distinguish humans from bots.
It analyzes user interactions, and its functionality varies by type. Popular CAPTCHA options include:
reCAPTCHA v2: Users tick a checkbox or solve image challenges to prove they’re human.

reCAPTCHA v3: Works in the background, analyzing user behavior and generating a score to determine if the user is human.

hCaptcha: Similar to reCAPTCHA but prioritizes user privacy by not selling data to third parties.

Math CAPTCHA: Asks users to solve a simple math problem before submitting the form—no third-party account or external service required.
By adding CAPTCHA to registration and login forms, you can:
- Block spam registrations, ensuring only genuine users sign up.
- Prevent bots from spamming comments and reviews.
- Protect user accounts from malicious login attempts.
Given all these benefits, it’s wise to place CAPTCHAs in registration and login forms.
Why This Actually Stops Bots
Spam registrations aren’t done by hand – they’re done by scripts that fill out and submit your form hundreds or thousands of times a minute.
Those scripts can read and fill in ordinary form fields easily, but they can’t (cheaply) do the specific thing a CAPTCHA asks: solve a visual puzzle, pass a behavior-based risk check, or answer a question generated on the spot. Every CAPTCHA type above adds one of those checkpoints.
That’s also why CAPTCHA isn’t a silver bullet on its own—pairing it with the strong-password and admin-approval settings covered elsewhere on this blog gives you layered protection instead of relying on one checkpoint.
How to Add CAPTCHA to WordPress Registration & Login Form?
A good WordPress registration plugin, like User Registration & Membership, offers multiple CAPTCHA options to suit your needs and audience preferences.

It’s a brilliant registration form builder plugin with multiple CAPTCHA options. Also, its drag-and-drop interface makes it easy to build registration forms with as many custom fields as you wish.
While at it, we’ll also show you how to create a custom registration form to add the CAPTCHA.
Step 1: Install and Activate the User Registration & Membership Plugin
First, you must install and activate the free User Registration & Membership plugin on your website.
To do this, log into your WordPress dashboard and open Plugins >> Add New. Please search for the plugin and click the Install Now button once it appears in the search results.

After that, Activate the plugin.

You’ll now see a welcome page that lets you either Skip to Dashboard, Get Started to set up the plugin or Create a First Form directly.

No matter which path you decide to take, make sure you’ve turned on the Membership option.
If you continue the setup process, you’ll see the Anyone can register option in the General tab. It’s turned on by default, so keep it as it is and hit Next to proceed with the rest of the setup.

If you’ve already exited from the welcome page to the dashboard, open Settings >> General. Here, tick the checkbox for Anyone can register and click Save Changes.

This step is essential because only when you enable user registration, your users be able to access the registration form in the frontend and register themselves.
Once you’ve done that, you can move on to the next step.
Step 2: Create a New User Registration & Membership Form
Now, navigate to User Registration & Membership >> Add New to create a new form. Now, you can use the pre-built form templates or create a new one from scratch.
Proceed on by giving your form a clear name.

You’ll find all the required fields for a custom registration form on the left. To add these fields to the form on the right, you just need to drag and drop them.
Thus, you can add any other field you need to the form.
Here’s a complete guide to creating a user registration form in WordPress using the User Registration & Membership plugin.
When the form is ready, click Create Form or Publish form. And there you have it! A simple registration form in a few quick steps.
Step 3: Generate Site and Secret Keys for CAPTCHA
With the form created, it’s time to add the CAPTCHA. To do this, go to User Registration & Membership >> Settings >> Captcha.

Under the CAPTCHA option, you’ll see that the plugin offers five types of CAPTCHAs: reCAPTCHA v2, reCAPTCHA v3, hCaptcha, Cloudflare Turnstile, and Math CAPTCHA.
reCAPTCHA, hCaptcha, and Cloudflare Turnstile all need a Site Key and Secret Key from their respective service before you can activate them. Math CAPTCHA is the one exception—it works out of the box with no external account and no keys, so if that’s the option you want, skip ahead to section D below.
In this section, we will show you how to get a site and secret keys for all the CAPTCHA types available with User Registration & Membership. You can use any one of them:
A. reCAPTCHA Site Key and Secret Key
First, click on the dropdown icon of reCAPTCHA v2. You’ll see the options to enable reCAPTCHA v2 and place to enter the site and secret keys.

So, visit the official Google reCAPTCHA page.

Click the v3 Admin Console menu in the header and log into your Google account.
After that, you’ll be taken to the Create page to register a new site. This should be the site where you want to integrate the CAPTCHAs.

Type your website’s name in the Label and choose the reCAPTCHA type between v2 and v3.

Choosing v2 comes with 3 more options:
- “I’m not a robot” Checkbox
- Invisible reCAPTCHA badge
- reCAPTCHA Android
After choosing the type of reCAPTCHA, add your site’s domain, accept the reCAPTCHA Terms of Service and click on the Submit button.

That’s it! Your site is now registered for Google reCAPTCHA.
All that’s left to do is copy the Site Key and Secret Key for later use.

You’ll need them to integrate the CAPTCHA into your forms.
B. hCaptcha Site Key and Secret Key
Similar to reCAPTCHA, go to the official hCaptcha page. Next, open the sign-up page by pressing the Sign Up button.

hCaptcha offers several types of plans to companies and individuals. For now, choose the free service for your website.
Then, create a new account and get your Site Key and Secret Key.

C. Cloudflare Turnstile Site Key and Secret Key
For the Cloudflare Turnstile site key and secret key, visit its official website and sign up for free using your email address.

Now, navigate to Turnstile >> Add widget.

Next, enter your website’s Widget name and Domain and hit the Create button.

You’ll now get the Site Key and Secret Key from Cloudflare Turnstile.

Copy and keep them safe.
D. Math CAPTCHA (No Site or Secret Key Needed)
Unlike the three methods above, Math CAPTCHA doesn’t rely on an external service – there’s no site to register and no keys to copy. It’s a built-in Custom Captcha field in User Registration & Membership, and it’s been part of the plugin since version 4.1.0 – a mature, well-tested option rather than something new.
Here’s how to add it to your registration form:
- Open your registration form in the Form Builder.
- Drag the Custom Captcha field from the field panel onto your form, in the position you want it to appear (most sites place it directly above the submit button).
- Click the field to open its settings, and use the Select Format dropdown to choose Math. This is the default, and the plugin automatically generates a new random calculation (addition, subtraction, or multiplication) for every form load – you don’t write the questions yourself.
- Prefer an icon-based challenge instead of arithmetic? Switch Select Format to Image, and choose which icon group you want to use.
- Save the form.
Because Math CAPTCHA is added directly to the form rather than switched on in Settings, you can skip Step 4 below if this is the method you’re using – go straight to Step 5 to make sure the field is visible on your published form, and repeat the same field-adding process on your login form if you want it there too (Step 6’s toggle is built for the key-based methods, not this one).
Google reCAPTCHA and Cloudflare Turnstile are sometimes slow or blocked outright in certain regions (China is the most commonly reported case).
If part of your audience is in a region like that, Math CAPTCHA is worth using instead—it runs entirely on your own server, so there’s no external service that can be blocked or throttled.
Step 4: Enable reCAPTCHA v2, v3, hCaptcha or Cloudflare Turnstile
Using Math CAPTCHA? You can skip this step entirely—it only applies to the three key-based methods above. Jump to Step 5.
Now that you have the keys, go back to your WordPress dashboard >> User Registration & Membership>> Settings >> Captcha.
Based on your preference for CAPTCHA, please enable it and paste the site and secret keys.
reCAPTCHA v2
If you’re adding reCAPTCHA v2, paste the Site Key and Secret Key you generated for reCAPTCHA v2.

You can also make the CAPTCHA invisible. Finally, hit the Save Changes at the bottom.
reCAPTCHA v3
If you want to add reCAPTCHA v3 to your form, enable reCAPTCHA v3 and paste the Site Key and Secret Key. Then, set the Threshold score for validating requests.

Here, the default is 0.4, meaning users who get 4 out of 10 total scores are validated as genuine users. You can increase the Threshold score to ensure a strict user evaluation.
hCaptcha
Next, for hCaptcha, enable HCaptcha and paste the keys you generated from your hCaptcha account.

Cloudflare Turnstile
Similarly, if you want to add Cloudflare Turnstile, enable it and paste the site and secret keys.

Don’t forget to Save Changes at the end.
Note: You can enable all five CAPTCHAs and use anyone in the registration and login form later.
Troubleshooting: If You’re Also Running Another CAPTCHA Plugin
If you have a separate CAPTCHA-enabled plugin active elsewhere on your site (a contact form plugin with its own reCAPTCHA, for example), you may see duplicate CAPTCHA widgets or a conflict between the two. Look for a Force Captcha option in Settings >> Captcha, which overrides other plugins’ CAPTCHAs and enforces this plugin’s CAPTCHA consistently across your site instead.
Let’s proceed to add them to your registration and login forms.
Step 5: Enable CAPTCHA in the Registration Form
Just integrating reCAPTCHA with User Registration & Membership isn’t enough. You still need to enable CAPTCHA support for the registration form on your WordPress website.
So, open the custom registration form you created earlier and go to its Form Setting. Scroll down the General tab to see the Enable Captcha Support option.

Toggle it and choose the configured captcha. Next, click Update form at the top of the builder.
Note: If you enable all five CAPTCHAs, you’ll see all the options in the dropdown. Meanwhile, we have only enabled reCAPTCHA v2, so this option is only displayed in the image above.
Your registration form will now display CAPTCHA depending on the type of CAPTCHA you’ve enabled in the previous steps.
Step 6: Enable CAPTCHA in Login Form
Since User Registration & Membership already comes with an in-built login form, you don’t have to create another one from scratch.
Simply navigate to User Registration & Membership >> All Forms and open the Login Forms.

Next, go to User Registration & Membership >> Settings and open the Login Options under the General tab.

Here, tick the Enable Captcha checkbox and save the changes. This should add the CAPTCHA verification to your site’s login form.
Frequently Asked Questions About Adding CAPTCHA to WordPress Forms
Which CAPTCHA type should I use?
If you want the most battle-tested, widely trusted option, go with reCAPTCHA v2 or v3 – it’s what most site owners default to. If you’d rather not send visitor data to Google, hCaptcha or Cloudflare Turnstile are strong privacy-focused alternatives. If you want something that works instantly with zero external accounts, zero API keys, and zero risk of being blocked in any region, Math CAPTCHA is the simplest choice.
Is CAPTCHA a paid feature?
reCAPTCHA v2, reCAPTCHA v3, hCaptcha, and Cloudflare Turnstile are all available in the free version of User Registration & Membership. Math CAPTCHA (the Custom Captcha field) is a Pro feature.
Will adding CAPTCHA slow down my site?
reCAPTCHA, hCaptcha, and Cloudflare Turnstile all load a small script from an external service, which adds a minor amount of load time – generally not noticeable to visitors. Math CAPTCHA has no external dependency at all, so it adds effectively no load time since everything runs on your own server.
Do I need to know how to code to set this up?
No. Every method in this guide is handled through the plugin’s settings and form builder – no code required. If you’d rather build CAPTCHA support entirely from scratch with your own PHP, that’s a separate, developer-focused path outside the scope of this guide.
What if reCAPTCHA or Cloudflare Turnstile is blocked for some of my visitors?
Both services are occasionally slow or inaccessible in certain regions. If that’s a concern for your audience, Math CAPTCHA is the safest fallback since it doesn’t depend on an external service that could be blocked.
Can I use more than one CAPTCHA type at the same time?
You can enable multiple CAPTCHA types in Settings >> Captcha, but each individual form uses just one at a time – you’ll pick the active type from the dropdown when you enable CAPTCHA support on that specific form.
Wrapping Up
We hope you have mastered adding CAPTCHA to your WordPress registration and login form using the User Registration & Membership plugin.
With its five CAPTCHA options, you can significantly reduce spam registrations and bot attacks.
Moreover, you can also use this incredible plugin to enable strong passwords, assign user roles at registration, require email verification before login, and let admins approve users after registration.
Learn more about User Registration & Membership through our blog, where we’ve covered its various features and how you can implement them for your site.
Also, follow us on X (formerly Twitter) and Facebook to stay updated.