Protecting against bots

A strategy to protect your products from bots and unapproved resellers purchasing from your Shopify Online Store

Many merchants that sell collectors items, limited edition items, or other types of highly exclusive items are plagued by bots purchasing their products, and come to Locksmith for help:

Locksmith is NOT able to prevent bots and other unapproved resellers from purchasing from your store.

This is because direct-to-checkout links, which allow products to be purchased without even visiting the Online Store, exist within the Shopify platform, and it's not possible for apps to get involved with this layer.

Note: This also applies to merchants wanting to use Locksmith to give away free items to select customers. As soon as bots pick up on the presence of your free items, they may attempt to buy your entire stock, even if those items are protected by Locksmith.

While Locksmith itself cannot help here, there is a way you can prevent this from happening without the need for any apps.

The solution: discount codes

So the general strategy here is to set your products up so that the public price is something pretty high - a price high enough so that the bots will ignore it. Then, you'll use Shopify's Discount feature to create a discount to bring the price back down to the original price that you'd like to sell at.

Thankfully, Shopify allows you to create discounts that can only be used by specific "customer segments". More information on creating customer segments here.

So, for example, you could create a customer segment that's based on a specific customer tag:

And then give the customer segment a description name:

When setting up the discount code, use the "Customer eligibility" section to select the customer segment that can use this discount:

The result of this is that you now have an avenue to make sure that only the customers you designate have a pathway to purchase that is secured all the way to the completion of the sale.

You can absolutely use this strategy without further involvement with any apps, including Locksmith. The customers will simply use the product pages as normal, and enter the discount codes at checkout.

Again, the price they'll see here will be higher than what the customer is most likely expecting, so make sure you do everything you can to communicate with your customers about using the discount code. You can do this in the product description, in customer mailers, or when they contact you (more on that below).

That's it for the basic setup!

How Locksmith can help

Optionally, Locksmith can still help get your product pages to a place that helps direct your non-bot customers to the right place. Locksmith has features that will help hide the price and add-to-cart buttons so that the public facing price doesn't scare customers away that stumble onto your product pages. More information, and set up guide, on hiding the price and add to cart button here:

pageHiding product prices and/or the add to cart button

So basically, when set up correctly, your customers would see something like this when they land on your product pages:

Note: You have flexibility in what you want the link to say, and where it points your customers to.

Then, when signed in with an approved account, they will be able to add to cart and purchase.

Remember: Locksmith alone is not enough to prevent bots from purchasing the products out from under you - you'll need to combine this with the discount method outlined above.

For questions or help with setup, contact us via email at!

Last updated