To stop bots buying limited products on Shopify, put the rule where Shopify enforces it: at checkout. A checkout bot never opens your product page, so a hidden button, a countdown or a quantity box capped in theme code never runs for it. Shopify’s own settings narrow the gap, and a captcha check that checkout enforces narrows it further.
What does a checkout bot do on a Shopify store?
Three things, in order. It watches for the product, puts it in a cart, and checks out.
Shopify’s own guide to bot types describes two of them. A restock bot “Scrapes inventory information, automatically purchases products upon restock” and looks for live URLs that have not been made public yet. A checkout bot “Automatically purchases products and inflates checkout queue time”.
None of the three steps needs your theme. An Online Store answers a documented request, /products/{product-handle}.js, with the product’s variants and whether each one is available, so a script can keep asking until the answer changes. Adding to cart is a second documented request, POST /cart/add.js, which takes a variant ID and a quantity. A cart permalink is shorter still: a URL of the form /cart/{variant_id}:{quantity} that, in Shopify’s words, takes the buyer “directly to a store cart or checkout with a pre-loaded cart”. We covered those links in our write-up of cart permalinks and the newer /buy format.
After that the bot completes checkout from a saved name, address and card, with no typing.
Which of those steps can a merchant block?
Not the watching. Product data is public by design once the product is published. Shopify’s flash sale guide says what publishing means: “When you publish products to your online store with inventory available, customers are able to complete a checkout with those products. While some theme modifications can hide Add to cart actions, these shouldn’t be relied on to stop customers from purchasing.” Its advice is to preview a drop with separate preview products, not the ones that will be on sale.
The cart and the checkout are different. Shopify runs both, so a rule that Shopify itself applies there reaches the bot whichever route it took.
What does Shopify already include?
Cloudflare sits in front of every store with no setup. hCaptcha is on by default too, but look at where. Under Online Store > Preferences, in the Spam protection section, the two switches are “Enable hCaptcha on contact and comment forms” and “Enable hCaptcha on login, create account, and password recovery pages”. Forms and account pages. Add to cart is not on the list.
The add-to-cart limit is the setting worth changing. Go to Settings > Checkout, find Advanced preferences, and open Add-to-cart limit. It is active by default, and for a store with fewer than 250 sales the recommended value is 50, which does little for a drop of 200 units. Lower it before the release and put it back afterwards, because it applies to every product in the store. Two gaps remain. The limit counts each variant separately, so a limit of one still lets a single cart hold one of every size. And it caps a cart, not a buyer: fifty orders of one unit each pass straight through.
The flash sale guide also suggests capturing payments manually for the event, so you can review orders before payment completes and before anything ships.
Shopify Plus has one more. Bot protection adds a checkpoint challenge, reCAPTCHA or hCaptcha, for a scheduled window. Plus Support has to activate it, and after that it lives under Settings > Bot protection. The limits are tight: one event at a time, 60 minutes at most, up to 500 named products or the whole store, and the Online Store channel only.
Where can a human check go that a bot cannot skip?
Outside that scheduled window on Plus, none of those settings puts a human check on the product itself. The add-to-cart limit counts units. It does not ask who is adding them.
An app can put the check there and make it hold, through a cart and checkout validation Function, which the admin lists as a checkout rule under Settings > Checkout. Shopify runs the rule on its side, and the Function reference says that covers “express checkouts, such as Shop Pay, PayPal, Google Pay, and Apple Pay”. An App Store app built on Functions works on the Basic plan and up. Our post on cart validation Functions has the developer detail.
What does Cartcha do on a protected product?
Cartcha, our captcha gate for Shopify products, is the app we built to do this, so read what follows as a maker’s description.
You choose which products are protected, and everything else adds to cart as normal. On a protected product a captcha check 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.
Checkout then refuses a protected item that was never verified. That refusal is a validation Function on Shopify’s side, so it applies to the bot that posted straight to the cart and never saw the page. Buy it now and express wallet buttons skip Add to cart, so Cartcha removes them on protected products.
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. Every new order is then checked again and tagged for review or cancelled, whichever policy you picked.
It has limits. A captcha raises the cost of every attempt, and some buyers will pay it: paid solving services exist, and so do patient resellers with a browser. Cartcha limits what one solve can buy, which is not the same as a limit per customer. It covers the Online Store only. A product also published to the Shop channel is sold there without the check, so Cartcha flags it and you take the product off that channel.
In November 2026 the listing shows 19 US dollars a month plus usage charges, with a 5-day free trial.
Some rules are specific to one shop: members first, one per customer tag, a different limit per market. That is a custom validation Function on top, which needs Plus according to Shopify’s plan table, and it is the kind of work we take on as Shopify development.
How would we stop bots buying limited products on Shopify?
Start with what Shopify gives you. Lower the add-to-cart limit for the day, tease the drop with a preview product, and switch to manual capture so you can look at orders before anything ships.
Then put a captcha check on the drop products themselves, enforced at checkout, so a request that skips your theme is refused when it gets there.
Leave theme-only fixes out of the plan, because the first request that skips the theme skips them too.
We built Cartcha for that last step. It puts a captcha check on the products you choose and has Shopify’s checkout refuse any protected item that skipped it. The listing is here: Cartcha on the Shopify App Store.