Shopify Captcha on Add to Cart: What Makes It Hold

Shopify has no built-in captcha on the Add to cart button. Its hCaptcha covers contact, newsletter and comment forms and the customer account pages, not the product page. A captcha on Add to cart comes from an app, and it only holds if checkout also refuses a protected product that never passed it.

Where does Shopify’s built-in captcha run?

On forms and account pages. Shopify’s page on store preferences says hCaptcha is activated by default on every store. The two switches for it sit under Online Store > Preferences, in the Spam protection section, and they are labelled “Enable hCaptcha on contact and comment forms” and “Enable hCaptcha on login, create account, and password recovery pages”. The first group takes in newsletter signup forms as well. On contact and comment forms, every submission gets a challenge the visitor does not see, and one judged suspicious is redirected to a puzzle or a checkbox.

Shopify runs two more checks.

Cloudflare sits in front of every store. Shopify’s guide to dealing with bots says a visitor whose behaviour looks automated, or who connects through a VPN, can be asked to verify the connection before going further. There is nothing to configure.

The other is for Shopify Plus only. Bot protection adds a checkpoint challenge, reCAPTCHA or hCaptcha, for a window you schedule. Plus Support activates the feature, and after that you schedule events under Settings > Bot protection. An event lasts 60 minutes at most, covers up to 500 products or everything you have published, and applies to the Online Store channel only.

That is a scheduled hour on one plan. The Add to cart button on a Basic store, or on a Plus store once the hour is up, has no captcha of its own.

Why does a captcha in the theme not hold?

Because Add to cart is a request, and the button is only one way to send it.

Shopify documents the request in its Cart API reference: POST /cart/add.js, carrying a variant ID and a quantity. Your theme’s button sends it. So can a script that has never loaded your product page. Our walk through what a checkout bot does on a Shopify store has the longer version.

A captcha added in theme code beside the button decides whether that button can be pressed. The cart behind it accepts the same request as before, solved puzzle or not, because nothing on Shopify’s side knows the puzzle exists.

The page itself has a second way out. Shopify’s accelerated checkout buttons sit beside Add to cart: the unbranded Buy it now button, and wallet buttons such as Shop Pay, Apple Pay, Google Pay and PayPal. Shopify’s page says a customer who clicks Buy it now skips the cart and goes to checkout.

What makes a check hold at checkout?

Two parts that know about each other. One runs on the product page and records that this shopper passed. The other runs on Shopify’s side and refuses the product when that record is missing.

Shopify gives apps one place for the second part. The Cart and Checkout Validation Function reference (API version 2026-10 in November 2026) says: “To validate a cart and checkout, server-side, you can only use the Cart and Checkout Validation Function API.” The same page says validation covers “express checkouts, such as Shop Pay, PayPal, Google Pay, and Apple Pay”.

In the admin a validation Function shows up as a checkout rule. Go to Settings > Checkout and find the Checkout rules section. Shopify’s plan table lists public apps built on Functions as available on the Basic plan or higher, so this route does not need Plus.

The record of a pass needs limits of its own. If one solved captcha were good for any quantity, or for a second order, a bot would solve it once and reuse it, so the pass has to be tied to what was bought and used up when the order is placed. Developers can read how the rule side is written in our post on cart validation Functions.

How do you add a captcha to Add to cart on Shopify?

With an app that has both parts. Cartcha, our captcha gate for Shopify products, is the one we built, so read what follows as a maker describing its own app.

Setup happens in the admin, with no theme code to edit.

  1. Install Cartcha and check its app embed is on. It installs as an app embed on an Online Store theme, and Shopify leaves app embeds deactivated after an install until they are activated in the theme editor, under Theme settings > App embeds.
  2. Choose the products to protect. Only those are gated, and everything else in the store adds to cart as normal.
  3. Pick the order policy. Every new order is checked again after it is placed, and one that fails is either tagged for review or cancelled. Tagging is the default.
  4. Open Settings > Checkout and look at the Checkout rules section. Shopify’s instruction for any validation app is to configure and activate its rule there. The same screen has an option, “Block checkout if app experiences a problem”, which decides whether orders still go through when a rule errors.

On a protected product, a captcha check then runs beside the Add to cart button and holds the button until it passes. For almost every real shopper it clears on its own, with nothing to click.

A request that skipped the page is stopped later: checkout refuses a protected item that was never verified. That refusal is the validation Function, running on Shopify’s side. Cartcha also removes the Buy it now and express wallet buttons on protected products, because those skip Add to cart.

A pass is for that product and the quantity it was solved for, and the order uses it up. One solve cannot be stretched to fifty units or reused on a second order.

One switch pauses all protection at once, with no products to set up again afterwards.

In November 2026 the listing shows 19 US dollars a month plus usage charges, with a 5-day free trial. The usage charge is counted in what the listing calls Challenge grants: the first 5,000 are free, and each one after that is 0.01 US dollars.

What does a captcha check not do?

It does not stop every bot. A captcha raises the cost of each attempt, and some buyers pay it: paid solving services exist, and so do patient resellers with a browser.

It limits what one solve can buy, which is not the same as a limit per customer.

It covers the Online Store. A product that is also published to the Shop channel is sold there without the check, so Cartcha flags it and you take the product off that channel.

Some rules belong to one shop: members first, one unit per customer tag, a different allowance per market. That is a custom validation Function on top, which Shopify’s plan table limits to Plus, and it is work we take on as Shopify development.

Which setup would we use for a drop?

Shopify’s own settings stay on. Both hCaptcha switches guard the forms and account pages, which is a separate job from the product. On Plus, schedule bot protection for the release hour as well.

Then put a captcha check on the drop products themselves, with checkout refusing anything that skipped it, so the check does not depend on which route a buyer took to the cart. Leave a theme-only captcha out of the plan, since the first request that goes around the theme goes around it.

We built Cartcha for that step. It runs a captcha check beside Add to cart on the products you choose, and Shopify’s checkout refuses a protected item that never passed it. The listing is here: Cartcha on the Shopify App Store.

Need this built properly?

Get in touch

Hack the planet!