MennaKearns
Crownpeak (Retired)

How can I prevent spam coming from my forms?

Question

How can I prevent spam coming from my forms?

Answer

Users can protect themselves from spam and abuse by configuring a reCAPTCHA on their forms.  Google offers a simple solution for this problem. 
To start using reCAPTCHA, you need to sign up for an API key pair for your site:
https://www.google.com/recaptcha/admin
 
1) Add the following code in the <head></head> of your site:

<script src="https://www.google.com/recaptcha/api.js" async defer></script>

2) Add 

<div class="g-recaptcha" data-sitekey="xxxxxxxxxxxxx"></div>

to your form (this usually is displayed right before the Submit button), where data-sitekey is the key you received when you set up.

The end result will be the reCAPTCHA as shown here:

 

rtaImage.png

In addition, the WCO form builder has the ability to create a reCAPTCHA field:

rtaImage (1).png

rtaImage (2).png

Labels (1)

Can't find what you are looking for?

Find Answers

Search our DXM Forum to find answers to questions asked by other DXM users.

Ask a Question

No luck? Ask a question. Our Product and Support teams are monitoring the Forum and typically respond within 48 hours.

Ask a Question