How to Prevent Bots from Adding Products to Your E-Commerce Cart

Bots are automated software programs that look at (crawl) websites for information. Most commonly, search engine bots from Google will be doing this to find new pages and add them to their search index. However, there are many other bots, both good and bad, that can cause problems with your online store. One of these situations is when bots keep adding products to a shopping cart, causing cart abandonment rates to increase significantly.

Bots that are crawling your online store and adding products to the cart can have various impacts for both store owners and visiting consumers. Here are some of the main issues that can arise:

Reduced conversion metrics

When bots are adding products to a shopping cart without completing the checkout (which they never do), this dilutes the conversion rate for the store, as it's telling you that a lesser percentage of visitors are completing checkout, when really, the majority of these visitors or at least a big portion are not real human visitors at all.

Wasted advertising

Advertising campaigns are used to attract visitors to a site and optimisation is often carried out to encourage conversions (sales). When bots are in the mix, these resources can be wasted on visitors that aren't human. However, with the likes of Google Ads, they will have algorithms in place to prevent bots from clicking ads, which mitigates resource wastage.

Denial of inventory

Often when visitors add a product to their shopping cart in an online store, the store can hold that product for a certain period of time so that other visitors cannot purchase it. This gives visitors time to browse around and add further products, securing them in their cart for checkout and preventing others from purchasing them so that the visitor doesn't lose out. However, when bots do this, they are denying inventory to other human visitors, which can hurt sales, particularly when there is limited inventory. Sometimes competitors can commission bots to do this on purpose. If your online store does not use inventory management, or you allow back ordering, this is not so much of an issue. However, if you have strict inventory management and only want to allow sales for products you have in stock and you allow the visitors cart to secure it, this can cause issues when bots are in the mix.

How can we prevent bots from adding products to their shopping carts?

There are a few techniques that can be used to prevent bots from adding products to their cart.

Robots.txt directives

Robots.txt is a file that can sit on any site that will tell bots what to look at and what to stay away from. This method will only work for good bots that obey these directives. Bad bots will often ignore them.

CAPTCHAs

CAPTCHAs are a double edged swords, as they can prevent legitimate bots like Google from crawling your site. They can also cause additional friction to human users that may leave your site if the CAPTCHAs are too difficult. Adding these in the right place at the right time and using them sparingly is recommended. However, they can be an effective tool in blocking bots in certain situations.

IP Blocking

Retailers can block IP addresses or ranges of IP addresses that are know to be associated with bot activity. This will prevent them from accessing the online store entirely. Care must be taken not to block IP addresses from legitimate sources.

Machine learning firewalls

Putting your online store behind a firewall that has machine learning capabilities in the area of bot detection and prevention can be an effective tool. These firewalls often come with a monthly subscription and you will need to route and/or migrate your domain's DNS through the firewall. A qualified agent can set this up for you with minimal to no down-time for your site. There may also be other effective tools within the firewall platform that you can benefit from.

Machine learning firewalls will often track visitor session activity (visits and clicks) to identify patterns and then limit the rate in which they can reach the site or block them entirely, automatically, based on pattern recognition.

In conclusion, a combination of the above techniques can help prevent bots from adding products to the cart of online stores, helping to ensure only genuine visitors are able to access the website.

menu