How to add reCaptcha plugin to WordPress site
It is recommended practice to secure your forms with reCaptcha plugin. Plugin will stop almost all bots and spam comments. You can set up reCaptcha to contact forms, comments and WP login.
One good plugin is Advanced Google reCAPTCHA.
How to install ReCaptcha Integration for WordPress plugin
You can install the plugin from WordPress control panel or with WP CLI tool.
Install with WordPress control panel
- Go to WordPress control panel > Plugins > Add New.
- Search Advanced Google reCAPTCHA and click Install Now.
- After the installation you can activate the plugin by clicking Activate.
Install and activate with WP CLI tool
Simply run this command: wp plugin install advanced-google-recaptcha --activate
How to setup the plugin
Google reCaptcha requires Site key and Secret key before you can use it. You can create the keys in Googles service.
When you get the keys, put those in the settings (Settings > Advanced Google reCAPTCHA). On the settings page, you can also change the plugin's settings to your liking.
Now your WP login page, for example, is secured with I'm not a robot check box or in reCAPTCHA v3, the reCAPTCHA logo is displayed in the bottom right bar of the page when the page is protected.