DXM and Web Content Management
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Personalization and Targeting Knowledge Base

How can I prevent spam coming from my forms?


How can I prevent spam coming from my forms?


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:
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:



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

rtaImage (1).png

rtaImage (2).png

Labels (2)
Version history
Revision #:
1 of 1
Last update:
‎04-22-2019 12:02 PM
Updated by:
Looking for more?
Ask in Discussions

Peer-to-peer support  and answers on developing CMS templates, modifying privacy scripts or building integrations.

Digital Experience Management

Find answers and ask questions on content management, personalization and targeting.

Digital Quality Management

Find answers and ask questions on WCAG and SEO quality management.

Digital Governance

Find answers and ask questions on consent and monitoring solutions.