How to guide:
Amazon has recently introduced a new feature called "Buy for Me" that's changing the landscape of e-commerce. While it offers convenience for shoppers, it poses new challenges for online store owners, especially those running Shopify stores. In this article, we'll explain what this feature is and how you can protect your store from Amazon's AI shopping bot.
Amazon's "Buy for Me" is an AI-powered shopping agent built into the Amazon Shopping app that helps customers purchase products from external brand websites when those items aren't available directly on Amazon. The feature uses advanced AI technology to browse websites, gather product information, and complete purchases on behalf of users—all without leaving the Amazon app.
AmazonBuyForMe) visits your website automaticallyThis feature is currently in beta and available to select U.S. customers on both iOS and Android devices. Amazon states that no commission is charged during the beta phase, but the long-term implications for e-commerce businesses remain uncertain.
While the "Buy for Me" feature may seem beneficial for reaching more customers, there are several reasons why Shopify store owners might want to block it:
⚠️ Disclaimer: The following technical instructions should be implemented by a qualified developer or Shopify expert. Modifying your store's robots.txt file can affect how search engines and other services interact with your website. We assume no liability for any issues that may arise from implementing these changes. Always test changes thoroughly and consider backing up your theme before making modifications.
The Amazon "Buy for Me" bot identifies itself with the user agent string AmazonBuyForMe.
Like most legitimate bots, it respects the robots.txt protocol, which means you can block it by customizing
your store's robots.txt.liquid template file.
Shopify stores use a Liquid template file to generate their robots.txt. Here's how to create and edit it:
robots.txt.liquid
First, you need to include Shopify's default robots.txt rules. This is important because it maintains
Shopify's SEO best practices while allowing you to add custom rules. Add this code to your new
robots.txt.liquid file:
{% for group in robots.default_groups %}
{{- group.user_agent -}}
{% for rule in group.rules %}
{{- rule -}}
{% endfor %}
{%- if group.sitemap != blank -%}
{{ group.sitemap }}
{%- endif -%}
{% endfor %}
This Liquid code outputs all of Shopify's default robots.txt rules, which include proper directives for Google, Bing, and other search engines. It's strongly recommended to always include this code to maintain SEO best practices.
Now, add your custom rule after the default groups to block the Amazon "Buy for Me" bot:
{% for group in robots.default_groups %}
{{- group.user_agent -}}
{% for rule in group.rules %}
{{- rule -}}
{% endfor %}
{%- if group.sitemap != blank -%}
{{ group.sitemap }}
{%- endif -%}
{% endfor %}
# Block Amazon Buy for Me bot
User-agent: AmazonBuyForMe
Disallow: /
The Disallow: / directive tells the AmazonBuyForMe bot that it's not allowed
to access any pages on your site.
Amazon isn't the only company developing AI shopping agents. You can block multiple bots by adding additional rules after the default groups:
{% for group in robots.default_groups %}
{{- group.user_agent -}}
{% for rule in group.rules %}
{{- rule -}}
{% endfor %}
{%- if group.sitemap != blank -%}
{{ group.sitemap }}
{%- endif -%}
{% endfor %}
# Block AI shopping agents
User-agent: AmazonBuyForMe
Disallow: /
User-agent: GPTBot
Disallow: /
User-agent: Claude-Web
Disallow: /
After adding your custom rules:
https://yourstore.myshopify.com/robots.txt to verify your changesAmazon's "Buy for Me" feature represents a significant shift in how customers shop online. While it offers convenience for consumers, it also introduces new challenges for e-commerce store owners who want to maintain direct relationships with their customers and protect their business data.
By following the steps outlined in this guide, you can block Amazon's AI shopping bot from accessing your Shopify store. Whether you choose to block the bot entirely or selectively restrict its access, the choice is yours to make based on your business strategy.
As AI-powered shopping continues to evolve, staying informed and proactive about protecting your online store becomes increasingly important. Keep an eye on new developments in this space and adjust your strategy accordingly.