How to stop bots on Shopify

Basic4 min readUpdated

GET /learn/implementation/stop-bots-on-shopify/ Accept text/html text/markdown

Short answer

On Shopify you cannot change servers or firewalls, so you work with store settings, apps and order handling. Keep spam protection on for forms, set purchase limits with an app or Shopify Functions, review risky orders with fraud analysis and Shopify Flow, cancel and restock bot orders, and keep products unpublished until launch. Shopify Plus stores can also schedule checkout bot protection for drops.

Shopify runs the servers, the CDN and the checkout for every store. You never patch a server, and you also lose the controls developers use elsewhere: no nginx rules, no WAF of your own, no code running on the checkout server. What you control is store settings, apps, how and when products are published, and what you do with orders after they arrive. Shopify changes features and plan limits, so confirm each setting in the Shopify Help Center before a big launch.

What does Shopify do about bots for you?

Several protections run without any setup:

  • Spam protection adds hCaptcha to contact, newsletter and comment forms, and, on stores that use legacy customer accounts, to the login, create account and password recovery pages. It is on by default, and you can check it under Online Store, Preferences, in the spam protection section. Leave it on unless you have a reason not to.
  • Shopify Payments assesses risk each time a customer submits checkout, and can block some high-risk attempts before an order exists. Fraud analysis can also block an IP address for a while when many orders or failed payments come from it in a short time, according to Shopify's fraud analysis help page.
  • Infrastructure protection, such as absorbing traffic floods, is Shopify's job and is not something you configure.

On Shopify Plus, you can also request checkout bot protection from Plus Support. Once it is active, you schedule a protection event of up to 60 minutes, choose up to 500 products or all products, and pick a reCAPTCHA or hCaptcha checkpoint that buyers pass before checkout. It works only on the Online Store sales channel, and Shopify describes it as a tool against auto-checkout bots, not against fraud.

How do you stop bots from buying limited products?

Set purchase limits. Apps in the Shopify App Store can cap quantity per order or per customer. Developers can write a cart and checkout validation function with Shopify Functions; Shopify's own example caps how many units of a product a customer can buy. A per-order cap does not stop one bot placing many orders, so pair it with order review.

Keep products hidden until launch. Leave the product as a draft or unpublished from the Online Store channel until release time. Once a product is published, bots can read its variant IDs from the storefront and add it to a cart directly, without loading the product page.

For high-demand drops, a raffle removes the advantage of speed, so the work moves to spotting duplicate entries. Do raffles stop bots? covers when that works, and how to stop bots from buying your products covers the wider playbook. Bots that hold stock in carts without paying are described in inventory hoarding bots.

How do you handle bot orders after they arrive?

Review before you fulfil. Fraud analysis gives eligible orders a low, medium or high risk recommendation. Shopify advises basing the decision on the recommendation, not on single indicators, and waiting for analysis to finish before fulfilment.

Automate the obvious cases with Shopify Flow. Its templates include "Cancel and restock high risk orders", which cancels, restocks, tags the order and customer and sends a notification. Shopify recommends the "Order risk analyzed" trigger for these workflows instead of "Order created", because analysis takes time. If you capture payments manually, the "Capture payment if order is not high fraud risk" template holds back high-risk orders before money moves.

For drops, check orders by hand as well. Signs of checkout bots:

  • Many orders within seconds of release.
  • Shipping addresses that differ only by spelling, such as "Apt 4" and "Apartment #4".
  • One card BIN, email pattern or phone number across many orders.
  • New customer accounts created minutes before the drop.

When you cancel, choose to restock the items and refund the payment, so the stock goes back on sale. A flood of small orders with declined payments is a different problem; see what card testing is and how to respond to it.

What about bot visits in your analytics?

Bots that only browse cost you clean data, because analytics tools count some bot sessions as visitors. How to identify and filter bot traffic in GA4 shows how to spot them. Fake customer accounts with random names usually come from signup bots; keep hCaptcha on the account pages, and delete the fake accounts from the customer list when a wave arrives. Kairal also has a guide to bot orders on Shopify.

Tools that help

StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking.

  • Shopify bot protection adds a scheduled checkout checkpoint for Shopify Plus stores during launches.
  • Shopify Flow automates cancelling, restocking and tagging high-risk orders, with ready-made risk templates.
  • Signifyd reviews orders for fraud and offers chargeback protection, a fit for stores with enough order volume to justify a paid fraud service.
  • Riskified provides order fraud screening with a chargeback guarantee for larger stores.

Common questions

How do I stop bot traffic on Shopify?

Bot visits that buy nothing mostly distort your analytics, because Shopify serves and pays for the traffic. Filter them out of reports, and spend your effort on bots that create accounts, submit forms, test cards or buy limited stock.

What is the best bot protection app for Shopify?

It depends on the problem. Purchase limit and launch apps help with drops, fraud apps help with card testing and risky orders, and spam apps help with fake signups. Apps run inside Shopify's limits and cannot filter traffic before it reaches your store, so check what an app can see and block.

Why am I getting fake orders on Shopify?

Many small orders with failed or mixed payment results usually point to card testing. Orders for limited items placed seconds after release, often with slight variations of one address, usually point to checkout bots. Card testing needs payment controls, and checkout bots need purchase limits and order review.