Security will never be obsolete on WordPress, because the threat is always present and ready to do damage. I know that many of you have already set up some preventive measures, and it's good.

To help you strengthen your security, I will teach you in this tutorial to put the Captcha code on the login and registration page of your WordPress blog with the plug-in Better WordPress reCaptcha ».

How to install and configure the plugin

« Better WordPress reCaptcha Is a plugin available on WordPress.org, so you can install it from your dashboard or download it under Zip file format.

better-wordpress-plugin-recaptcha-table-debord

After installing and activating the plugin, a new menu " BWP reCapt »Will be added to the left side menu of the dashboard. Click on it to access the settings page.

BWP-menu-wordpress-table-to-edge

What you need to do now is retrieve a key from API on Google.

Once you're on Google's page, sign up by clicking on the link " Sign up Now ". I hope you already have a google account, otherwise you will need to create one.

recaptchat-entry-sign-up-button

After clicking on the button Sign Up Now ", you must provide the domain of your WordPress blog right away " Domain ».

recording-and-a-field

Please note: : you can register multiple domains, just separate them with a comma.
On the new page you will see all the other websites registered for reCaptcha.

list-of-site-registered

To retrieve a key, you must click on the address of the website for which you want to activate the reCaptcha functionality.

Rendering-of-the-century

Copy the public key public Key And the private key Private Key ". And return to the dashboard on the plugin settings page, then paste these different data on the corresponding fields.

SETTINGS-plugin-cle-public-and-private

The "Plugin Functionnality" section.

Now is the time to activate the locations where the captcha codes will be displayed. Check the location of your choice: comments « Comments form »Login page« login form "Or the registration page" Registration form ».

You can also hide the capcha code for registered users, for users who can perform a particular task, and finally if they already have a fixed number of approved comments.

plugin-option-manage

The section "reCaptcha for comment form"

Options offer the implementation of captcha code on the comment form. These options allow you to:

  • Modify the location where the Captcha code is displayed, before or after the comment text box.
  • The action to take when a code is invalid
  • The text to display in case of error

recaptcha-parameter-comment

You should know that this plugin is compatible with the plugin Akismet et Contact Form 7. The following sections allow you to take an action when a captcha code is not correct in the comments form (hold in the queue for example).

For the plugin « Contact Form 7 You can add an additional captcha field on your forms, to secure them, adding a precise shortcode.

Akismet integration-contact-form-7

You can now view your registration, login, and comments pages to see how the Captcha code looks.

connection-demo-reCaptcha

Please note: : I have the impression that the plugin is not displayed on the comments, when Disqus is activated. So if you want to display the Captcha code in the comments, you need to disable Disqus.

That's all for this tutorial on adding a Captcha code to secure a WordPress blog. If you liked this tutorial, share it with your friends on your favorite social networks.