Opens in a new tab

OpenCart / Extensions

How to prevent SPAM on the OpenCart platform

How to stop fake registrations and SPAM in an OpenCart store with Google reCAPTCHA: setup, keys in Google Cloud and common problems.

Fake registrations and SPAM sent through contact forms are among the most common problems in OpenCart stores. They are caused by automated bots that load the server and pollute the customer database. The simplest protection is a correctly configured Google reCAPTCHA module.

Bots

create fake accounts and send SPAM

reCAPTCHA v3

protection without clicking “I’m not a robot”

10.000

free assessments per month in Google Cloud

Q1 2026

old keys without a Google Cloud project no longer work

OpenCart spam protection
Protecting OpenCart store forms against bots.

Why are bots a problem?

Bots running automated scripts:

  • register fake user accounts
  • send SPAM through contact forms and reviews
  • load the server with mass requests
  • reduce customer trust and distort analytics data

Google reCAPTCHA analyses visitor behaviour and stops suspicious scripts from submitting a form, without making it harder for real customers to buy.

Setting up Google reCAPTCHA in OpenCart

  1. Get the keys In the Google reCAPTCHA console, create a key for the store domain (we recommend reCAPTCHA v3 or v2 “I’m not a robot”) and save the Site Key and Secret Key.
  2. Update the module In the admin panel, open Extensions → Extensions → Captcha and check that the Google reCAPTCHA module is up to date.
  3. Enter the keys Click Edit, enable the module and enter the Site Key and Secret Key.
  4. Choose the forms In the Pages tab, choose which forms are protected. Don’t overdo it: overly strict protection can flag a real customer as SPAM.
  5. Enable it in the store In System → Settings → your store → Option tab, select Google reCAPTCHA under Captcha.
  6. Test it Create a test account, send a message through the form and check that everything works.
Google reCAPTCHA v3
Google reCAPTCHA v3 works in the background, with no extra clicks for the customer.

reCAPTCHA in Google Cloud

Google has moved classic reCAPTCHA keys into Google Cloud projects. The automatic migration started at the end of 2025 and was completed in the first quarter of 2026; since then, keys without a Google Cloud project no longer have API access. Existing keys on the site keep working without code changes.

Note: the first 10,000 assessments per month are free. If the store exceeds this limit and billing is not enabled in the Google Cloud project, reCAPTCHA returns an error for new requests. For larger stores, check usage and billing settings.

Common problems and solutions

ProblemSolution
“Invalid Site Key” or “Invalid Secret Key” errorCheck both keys and the domain in the reCAPTCHA console.
reCAPTCHA does not appear on the formCheck that the module is enabled in Extensions → Captcha and selected in the store settings (Option tab).
Does not work with the store themeCheck the theme’s compatibility with the module, or give us a call.

Having trouble with SPAM?

We review your OpenCart store’s protection, update reCAPTCHA and set up the keys in Google Cloud.

Send an enquiry →All OpenCart solutions

Source: Google Cloud – reCAPTCHA Classic to reCAPTCHA Enterprise migration overview. Updated 3 Nov 2026.

Need help?

Let’s talk
about your project.

We answer your questions and suggest the next step.

Write to us →