Create a contact form with Google ReCaptcha

Blank 27/3/2018 18:41 - 27/3/2018 18:41
Editing Content Integrations

Google reCAPTCHA is designed to establish that a computer user is human, normally in order to protect websites from bots.

Adding a Google reCAPTCHA to your contact form should reduce the number of SPAM messages submitted.

To use Google reCAPTCHA, you will need to install the application in your site. This will protect any contact forms on the site with the reCAPTCHA.

1 Install the reCaptcha application in your site.

2 Next you will need to create a Google reCAPTCHA instance in a Google account. Please note this requires you to have a Google account.

Click on this link to start - (https://www.google.com/recaptcha/admin)

3 Once the reCAPTCHA instance is set up, copy the site key and secret key to use in Kademi's reCaptcha application settings.

4 Back in Kademi, go to Website Manager, then Websites, select your site and click on the app settings tab, then find the reCaptcha application.

5 Open the settings, and paste the site key and the secret key, select a minimum confidence score, and Save the settings.

The minimum confidence score lets you set the value that the reCAPTCHA must return for you to accept the submission. reCAPTCHA will rank traffic and interactions based on a score of 0.0 to 1.0, with 1.0 being a good interaction and scores closer to 0.0 indicating a good likelihood that the traffic was generated by bots.

Once the keys are assigned, the key will link to Google and protect your website.

The next step is to add a contact form for the reCAPTCHA to protect if you don't already have one.

6 Install KContactUs in your site if it isn't already installed.

7 You can add the Contact form to a new web page, or use the Contact form template and link it to your site.

8 You can configure the settings for the contact form by going to Website Manager, then Apps, and finding the Contact Us settings.

  • Notifications group: The administrator group to receive email notifications of contact requests - this is the person who will receive the notification so you can respond to a profile user or request.
  • Contacts group: The group to add new contacts to - this is where users who enter their details on the contact form from your website will be added to that defined group you assign.
  • Group Email Limit: The maximum number of administrators to receive notifications. This limit is to guard against accidentally disclosing private information. Do not increase it unless explicitly required.

9 Test your contact form by submitting it as a test user.

You should see a message that the form is protected by reCAPTCHA.