Protect your store from bots

You can activate bot protection to prevent product inventories from primarily being sold to auto-checkout bots. Activating bot protection prevents bots from purchasing your products and ensures that your customers can make purchases.

Schedule bot protection

Schedule bot protection to activate at the same time as your flash sale. Because bot protection lasts a maximum of 60 minutes and only one protected period can be scheduled at a time, activating bot protection early might result in protection ending before the sale ends.

Schedules for bot protection must be 15 minutes apart or greater. After a scheduled period of bot protection has ended, you can't schedule any new periods that start fewer than 15 minutes later.

Your scheduled event begins at the time you select according to your store’s time zone, not your browser's time zone.

When you schedule bot protection, you can choose to protect all published products, or you can select up to 50 individual products that you want to protect.

Steps:

  1. From your Shopify admin, go to Settings > Bot protection.
  2. Click Schedule protection.
  3. Enter a title, date, start time, and duration.
  4. Check Stop known bots from auto-completing checkouts.
  5. Optional: If you want to use a checkpoint challenge for the duration of your event, then check Require that all customers solve a checkpoint challenge before completing checkout.
  6. In the Products section, select whether you want to protect all published products or only specific products. If you choose to protect specific products, then use the Search Protect products field to add your products to the list of protected products. You can add a maximum of 50 individual products.
  7. Click Submit.

Your storefront will be protected from bot checkouts for the duration you've configured.

Customize the checkpoint page

You can customize the look of your checkpoint page by editing your theme code.

Steps

  1. From your Shopify admin, go to Online Store > Themes.
  2. Click Actions > Edit code.
  3. If this is your first time customizing the checkpoint page, then create a checkpoint template by doing the following:
    1. Click Add a new template.
    2. Select checkpoint.
  4. In the Templates section, click checkpoint.liquid.
  5. Make changes to the template code.
  6. Click Save.

You can preview your custom checkout page by creating a new event and clicking Preview what your customers will see.

Deactivate bot protection

Bot protection deactivates automatically when the scheduled time ends. If enough customers have already purchased from your store, you can manually deactivate bot protection. To determine this, you need to track your order volume and decide whether you want to disable bot protection.

Steps:

  1. From your Shopify admin, go to Settings > Bot protection.
  2. Click on the active event.
  3. Click Deactivate.

Limitations

  • Only one protected flash sale can be scheduled at a time.
  • The maximum duration for bot protection is 60 minutes.
  • Schedules for bot protection must be 15 minutes apart or greater. After a scheduled period of bot protection has ended, you can't schedule any new periods that start fewer than 15 minutes later.
  • The bot protection feature is available for the Online Store sales channel only. Bot protection for other sales channels or for Storefront API is not supported.

Ready to start selling with Shopify?

Try it free