Resources

How to Stop Bots From Scraping a Retail Website

November 24, 2026

Spot scraper bots, compare the defenses, and block them before they reach your store, with a section for Shopify.

How to stop bots from scraping a retail website
Written by: 
Team Nostra
Bot Protection & Data Quality

In this blog

Book a Free Demo

Updated November 24, 2026. By Team Nostra.

How do you stop bots from scraping a retail website?

You cannot stop scraping with robots.txt or IP blocks alone. Modern scrapers ignore robots.txt, rotate IP addresses and imitate real browsers. To stop them, detect automated behavior before the request reaches your site, then rate-limit, challenge or block it. Keep search engines and the crawlers you want verified and allowed.

This guide applies to any retail website, whatever platform it runs on. A separate section covers Shopify. For the competitive side, such as rivals tracking your prices, read our guide to stopping competitor price scraping on Shopify.

What is web scraping, and why do retailers get targeted?

Scraping is the automated collection of content from your site: prices, stock levels, product descriptions, images and reviews. Retail sites are attractive targets because that data changes often and has direct commercial value. Competitors and price-tracking services use it to match prices. Resellers watch stock on limited items. Content copiers lift descriptions and images.

The costs add up quietly. Scrapers use server capacity your real shoppers need, especially during peaks. They inflate sessions and pull down your reported conversion rate. And they can hand rivals your pricing and promotion plans as soon as you publish them.

How can you tell if bots are scraping your site?

  • Repeated requests across your catalog. One source walks product or collection pages in order, often faster than a person could read them.
  • Requests with no page assets. A real browser loads images, fonts and scripts. Many scrapers request only the HTML or data endpoints.
  • Traffic from hosting providers. Large volumes from data center networks, rather than consumer internet providers, deserve a closer look.
  • Your changes appear elsewhere fast. Your price or stock changes show up on competitor sites or marketplaces shortly after you make them.
  • Analytics and logs disagree. Server or CDN logs show requests that never appear in analytics. That is expected for bots that do not run your analytics tag, so use the logs to find them. The difference between the two totals is not a measure of how much scraping you have.

Which scraping defenses work, and which do not?

Each defense raises the cost of scraping in a different way. None is enough on its own, so combine them and judge each one by what it does to real shoppers.

Scraping defenses for retail websites: what each one stops and what it costs shoppers
DefenseWhat it stopsWhat it missesEffect on real shoppers
robots.txt rulesCrawlers that choose to follow your rulesScrapers that ignore them. Google says other crawlers might not obey robots.txt.None
IP and country blocksSimple scripts from one address or hosting rangeScrapers that rotate residential IPsCan block real shoppers on shared networks, VPNs or mobile carriers
Rate limitsHigh-volume crawls of product, search and price endpointsSlow, distributed scraping that stays under the limitLow, if limits are set per endpoint and tested
CAPTCHA and challengesBasic bots on the pages where you add themBots that solve or bypass challengesHigh if used on browsing pages, so keep them for risky actions
Behavioral bot detection at the edgeScrapers that look like browsers but move through the site like machinesDepends on the vendor and how it is tuned, so start in monitor modeLow when good bots and real visitors are verified and let through
Exposing less dataScrapers collecting fields you do not need to publishAnything you must show shoppers, such as public pricesNone, if you remove only what shoppers do not use

Google's robots.txt documentation says robots.txt is not a way to keep a page out of Google, and that crawlers other than respectable ones might not obey it. Treat robots.txt as a set of instructions for well-behaved bots, not as a lock.

How do you block scrapers without hurting real shoppers or SEO?

  1. Decide what you want crawled. List the bots you want, such as search engines and the AI assistants you want citing your products. Our guide to good bots and bad bots covers how to tell them apart.
  2. Protect the endpoints scrapers use most. These are usually product, collection, search and price or stock data endpoints. Apply per-endpoint rate limits there rather than one site-wide limit.
  3. Detect behavior, not just identity. Score requests on how they move through the site, how often they arrive and whether they act like a browser. Do not rely on user-agent strings or single IP addresses.
  4. Challenge before you block. Send suspicious requests a challenge, and save outright blocks for traffic you are confident about. Keep CAPTCHA off normal browsing pages.
  5. Filter at the edge. Stopping scrapers before they reach your servers protects capacity and keeps them out of your analytics. An app that runs after the page loads cannot do that.
  6. Monitor and tune. Review blocked traffic against orders and support tickets every month, so real shoppers are never caught.

How do you stop scraping on a Shopify store?

Shopify gives every store a baseline. It routes every storefront request through Cloudflare, with a web application firewall and DDoS protection. Visitors who look automated may see a verification challenge, and hCaptcha protects contact forms, comment forms and customer account pages by default (Shopify). What Shopify does not give you is fine control over which automated visitors may browse your product and collection pages.

  • Edit robots.txt the supported way. Shopify lets you customize robots.txt with a robots.txt.liquid template. It recommends Liquid edits over replacing the file, and warns that crawlers are not guaranteed to follow the rules (Shopify robots.txt guide). Use it to guide good crawlers, not to stop scrapers.
  • Remember the data endpoints. Shopify's Ajax Product API returns a product's prices, variants and availability as JSON from /products/{handle}.js. Scrapers can read the same structured data your theme uses, so include those paths when you monitor and rate-limit.
  • Add a layer in front of the storefront. Shopify App Store apps run inside your store. An edge layer filters requests before they reach Shopify. Our guide to stopping bot traffic on Shopify compares the options.

Which tools stop scraping on retail websites?

Bot management platforms differ mainly in where they run and how they detect automation. Our Cloudflare vs Akamai vs DataDome vs Nostra comparison sets out each vendor's deployment model, platform support, pricing model and detection approach, from its own documentation. For a wider view of ecommerce bot defenses, see ecommerce bot protection.

Nostra Edge Protect filters malicious bots, including scrapers, at the edge, before they reach your site. It uses behavioral classification, so scrapers that rotate residential IPs and imitate real browsers can still be identified, while legitimate crawlers like Googlebot are allowlisted. Setup is a DNS-level change with no code.

Frequently asked questions

Can robots.txt stop bots from scraping my website?

No. robots.txt is a set of instructions that well-behaved crawlers choose to follow. Google says other crawlers might not obey it, and that robots.txt is not a way to keep a page out of Google. Scrapers that ignore it need detection and blocking at the edge or server.

Is blocking IP addresses enough to stop scrapers?

Rarely. IP blocks stop simple scripts, but many scrapers rotate through residential IP addresses. Broad IP or country blocks can also stop real shoppers on shared networks, VPNs or mobile carriers. Use behavior-based detection instead.

Will blocking scrapers hurt my SEO?

Not if you verify and allow the crawlers you want, such as Googlebot and other search engines. Check your rules after any change, so good bots can still reach your product and collection pages.

How do I know if my product prices are being scraped?

Look for repeated requests across your catalog from the same sources, requests that skip images and scripts, heavy traffic from hosting providers, and your price changes appearing on competitor sites soon after you make them. Your server or CDN logs show these patterns best.

Should I use CAPTCHA to stop scraping?

Use it sparingly. CAPTCHA can slow basic bots on pages such as login and signup, but on browsing pages it gets in the way of real shoppers, and some bots can solve or bypass it. Behavioral detection at the edge is better for catalog pages.

How do I stop scrapers on a Shopify store?

Keep Shopify's built-in protections on and use robots.txt.liquid to guide good crawlers. Include structured data paths such as /products/{handle}.js in your monitoring, and add a layer in front of the storefront that detects and filters scrapers before they reach Shopify.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.