Sucuri<\/a>. The same will block bad traffic from landing on your website and stops unwarranted access.<\/p>\nOne more solution is implementing a secondary layer of password protection on the WordPress login and registration pages. But the issue with this method is you need to share that second password with every user. This would not scale for huge multi-author blogs or membership sites.<\/p>\n
CAPTCHA offers a simpler alternative to such solutions. It uses AI technologies from Google to identify genuine visitors and offer CAPTCHA challenges to doubtful users.<\/p>\n
Default vs. Custom WordPress Login and Registration Form<\/h3>\n
The default WordPress login and registration form offer a fundamental collection of features.<\/p>\n
The login page enables users to easily access your website’s backend as per their relevant user roles and permissions.<\/p>\n
With the help of the default WordPress registration form, visitors can make an account on your website. After they are registered, they can log in to the backend of your website and carry out precise tasks permitted by their user function.<\/p>\n
Plenty of website owners wish to tailor the default WordPress login and registration page using their personal styles, logos, etc. They use several plugins to make up their own custom login and registration page to substitute the default ones.<\/p>\n
The following section covers how to add captcha whether you use the default pages or custom pages.<\/p>\n
You will be made familiar with the ways to set up reCAPTCHA for default and custom login and registration pages present in WordPress.<\/p>\n
Now let’s start on how to add reCAPTCHA in the default WordPress login and the registration form.<\/p>\n
How to add reCAPTCHA to Default WordPress Login and Registration Form:<\/p>\n
<\/p>\n
Firstly, you have to install and activate the Advanced noCAPTCHA & reCAPTCHA (v2 & V3) plugin.<\/p>\n
After this plugin gets activated, follow the below path:<\/p>\n
Settings > Advanced noCAPTCHA & Invisible CAPTCHA page available within our admin panel<\/p>\n
Now WordPress will land you on the general settings page of the plugin.<\/p>\n
From here on, you have to select a Google reCAPTCHA version and find out reCAPTCHA API keys to allow the service on your website.<\/p>\n
It is recommended to use v2 since it is believed that v3 is not so stable, at least not yet!<\/p>\n
To get those API keys, visit the reCAPTCHA website, and then click on the ‘Admin Console<\/strong>‘ button.<\/p>\nIn the subsequent screen, Google will request to sign in to your account. After you have successfully logged in, you will observe the ‘Register a new site<\/strong>‘ page.<\/p>\nAs a first step, enter the name of your website in the Label field. Now, choose a reCAPTCHA type. It is up to you to select reCAPTCHA v2 ‘I’m not a robot’ named checkbox.<\/p>\n
Now, you have to mention your domain name within the Domains section. Ascertain that your domain name is devoid of ‘https:\/\/www<\/strong>.’<\/p>\nThe Owners section displays your email address as well as allows you to add a new owner.<\/p>\n
Once done, you have to check the box beside ‘Accept the reCAPTCHA Terms of Service<\/strong>.’ It is optional to check the ‘Send alerts to owners<\/strong>‘ box to get email alerts regarding doubtful traffic or captcha misconfiguration occurring on your site.<\/p>\nAfter this is done, click on the ‘Submit’ button.<\/p>\n
Now, you will notice a success message and the site and secret keys that can be used on your website.<\/p>\n
As a next step, open your WordPress dashboard and follow the below path:<\/p>\n
Settings >Advanced noCAPTCHA & Invisible CAPTCHA page<\/pre>\nThis allows you to set up Google reCAPTCHA.<\/p>\n
After you are landed on the plugin settings page, select the Google reCAPTCHA version. Because we have already registered our website for Google reCAPTCHA v2 ‘I’m not a robot,’ it is necessary to choose that option from the dropdown menu.<\/p>\n
Now enter the site key and secret key given by Google reCAPTCHA before.<\/p>\n
In the next step, you will find the ‘Enabled Forms<\/strong>‘ option. You need to check the box besides the forms wherein you wish to enable the Google reCAPTCHA. In this step, select the Login Form and Registration Form.<\/p>\nOnce done, you have to scroll down the page to check other options. When done with selecting options, click on the ‘Save Changes’ button present at the bottom.<\/p>\n
Now you have successfully included reCAPTCHA in the default WordPress login and registration form. If you want to preview it, you can open up your WordPress login URL inside your browser. For instance: www.website.com\/wp-login.php.<\/p>\n
If you wish to review the reCAPTCHA on the registration form, click on the Register link underneath the login form. Once done, the WordPress registration form would open, and also you can observe how reCAPTCHA functions.<\/p>\n
Set-Up of reCAPTCHA in Custom WordPress Login and Registration Form:<\/h4>\n
The custom login and registration forms of WordPress provide new user-friendly membership possibilities to visitors of your website.<\/p>\n
Firstly, you can enable users to either register or login into your website directly from the frontend. As a result, it enhances the user experience and allows you to retain the same design experience throughout the website.<\/p>\n
Subsequently, it allows you to include your website logo and personalize the registration and login page according to your preference.<\/p>\n
Making a custom WordPress login form and user registration form is quite simple using the intuitive WordPress form plugin named WPForms. This plug is the most user-friendly and being utilized by 2+ million websites.<\/p>\n
For getting started, you need to install and activate the WPForms plugin over your WordPress site.<\/p>\n
To create the custom WordPress user registration form, switch to at least the WPForms Pro plan.<\/p>\n
Once activated, you have to open ‘Settings<\/strong>‘ from ‘WPForms<\/strong>.’ This will let you enter your WPForms license key. Actually, you will receive this key from your account area present on the WPForms website.<\/p>\nOnce this is done, click on the reCAPTCHA option available at the upper part to organize reCAPTCHA for your customized WordPress forms. As the first step, select a reCAPTCHA type.<\/p>\n
Because we have already selected v2 before, now we will select reCAPTCHA v3 in this step. However, the recommended option is still v2.<\/p>\n
Now you will observe the secret key field and the site key field. For obtaining such keys, register your website on the Google reCAPTCHA website.<\/p>\n
Now open the Google reCAPTCHA website and click on the Admin Console button present at the uppermost right corner.<\/p>\n
Now Google will inquire you to sign in to the account. After that, you will notice the ‘Register a new site<\/strong>‘ page.<\/p>\nNow mention your website name and then choose the reCAPTCHA v3 option from the reCAPTCHA type option.<\/p>\n
In the next step, mention your domain name but make sure it is without https:\/\/www.<\/p>\n
Suppose you wish to add one more Gmail user in the form of the owner of the reCAPTCHA. After that, you could add the email address within the Owners section.<\/p>\n
Now accept the ReCaptcha terms of service. It is also possible to check the box beside the ‘Send alerts to owners’ option to receive notification emails from Google regarding mistrustful traffic over your site.<\/p>\n
After that is one, you need to click on the Submit button.<\/p>\n
Now Google will display a success message accompanied by the site key and the secret key to supplement reCAPTCHA to your website.<\/p>\n
By now, you possess the Google reCAPTCHA API keys. Follow the below path<\/p>\n
WPForms > Settings ? reCAPTCHA<\/pre>\nThe reCAPTCHA page will open up in your WordPress dashboard.<\/p>\n
In the settings page of the WPForms reCAPTCHA, mention the site key and secret key. Now save your settings.<\/p>\n
After successfully adding the reCAPTCHA on WPForms, it is easy to enable the reCAPTCHA within the user registration form, your custom login form, or any forms created using WPForms.<\/p>\n
Now let’s make a custom WordPress registration form.<\/p>\n
Open ‘Addons’ page from ‘WPForms’. Now find out ‘User Registration Addon’ and then click on ‘Install Addon.’<\/p>\n
WPForms will now download and set up the addon. After that, you will observe the User Registration Addon’s status to be ‘Active.’ This indicates that you are now ready to include a fresh user registration form.<\/p>\n
Now follow the bellow path to start the WPForms Builder:<\/p>\n