Spam is a big problem across the web. It can appear in your comments on your blog posts and also can appear in forms sent from your website.
In this article I will go through a very simple step to add the (Are you robot?) Google reCaptcha to contact form 7 in WordPress so that you can minimise contact form spam. The aspect that I like most about this particular Google offering is that it makes it hard for bots but easy for legitimate customers to use.
1. Register your website/blog for Google reCaptcha
You will first need a free Google account to access this service. Once you have your account go to this Google page and register your new website/blog. You will then be presented with your site key (public) and your site key (private). Make a note of both of these keys and proceed to the next step.
2. Copy the site key and secret key into the Contact form 7 plugin
If you haven’t already installed the Contact form 7 plugin install it now. Then go to Contact > Integration and press configure keys. Add the two keys then press save.
3. Add the reCaptcha shortcode to the contact form
The last step in the process is to add the reCaptcha shortcode to the individual form. This needs to be put into brackets [recaptcha]. The form-tag does support other options for example if you want a smaller size of widget use size:compact. If you want a darker theme for the widget choose theme:dark
By taking this simple security precaution I have eliminated spam enquiries for many customers freeing up their time to concentrate on legitimate enquiries.
In the next Blog I will show you other steps you can take to reduce the volume of spam coming into your inbox.