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.

Considerations for bot protection

In addition to standard bot protection, you can activate a checkpoint challenge in your store's checkout process for the duration of your event. When checkpoint protection is activated, your customers are required to pass a reCAPTCHA challenge before they can proceed from their cart to the checkout page.

This option helps to control the size of your checkout queue. Only human buyers will be able to proceed to your checkout, so your checkout queue will grow at a normal rate and won't be slowed by bots. It does however slow down the checkout process for your customers by adding an additional step.

If you have a reCAPTCHA challenge set for another feature in addition to a checkpoint challenge in bot protection, then your customers are required to pass multiple challenges before checking out. To prevent this, you should deactivate challenges in your checkout if you activate a challenge in bot protection. Only one challenge should be active at a time.

Steps

  1. From your Shopify admin, go to Online store > Preferences.
  2. Uncheck Enable Google reCAPTCHA at checkout and Enable Google reCAPTCHA on contact forms.

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.

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. 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