Skip to the content
Start free

Web scraping

Web scraping is the automated copying of content or data from web pages by a program, usually so it can be stored, analysed, reused or fed into another system such as an AI model. Search engines, price comparison sites, researchers and AI companies all scrape. So do spammers. The method is the same; what makes it fair or harmful is what is taken, how, and what is done with it.

What is web scraping? #

A scraper is a program that requests a page, reads the HTML it gets back, and pulls out the parts it wants: prices, product names, articles, reviews, contact details. Some scrapers only read raw HTML. Others run a full browser so they can see content built by JavaScript. Each request arrives at your server like a visit, with a user agent string and an IP address.

Crawling and scraping overlap. Crawling is about finding pages by following links. Scraping is about taking what is on them. A search crawler does both, but stores pages to build an index and sends people back to you. A scraper may send no one.

Who scrapes websites? #

  • Search engines. Googlebot and Bingbot fetch and store pages to rank them.
  • AI training crawlers. OpenAI says on its crawler page that GPTBot collects content that may be used to train its foundation models. These are training crawlers.
  • Open datasets. Common Crawl says its corpus holds petabytes of data collected since 2008, free to access. Its bot is CCBot.
  • Live fetchers. Some bots fetch a page only when a person asks an assistant a question. OpenAI says that for ChatGPT-User, because a user starts the action, robots.txt rules may not apply. See live fetcher.
  • Rivals and price monitors. Shops scrape each other’s prices and stock.
  • Spammers. They copy whole pages to republish elsewhere, or harvest email addresses.

There are 2 sides. First, your copied text can turn up on other sites. Google’s spam policies treat scraped content as spam when sites republish other people’s pages without adding original value, reproduce feeds with no unique benefit, or exist only to compile content. Even lightly rewording copied text, such as swapping in synonyms, counts. That gives Google a reason to prefer the original. It also helps to have a clear canonical tag and to be found first.

Second, heavy scraping costs you. Scrapers use server time, slow pages for real people and can eat into crawl budget on big sites. Bad bots also fill analytics with false visits; see bot traffic in analytics.

Why does it matter for AI answers? #

AI assistants learn from scraped pages and quote from fetched ones. That is a trade. If you block every AI bot, assistants may know less about you and quote you less. If you allow them, your words may train models without a visit back. Google, for example, gives a separate token: its crawler page says Google-Extended controls use of content for training Gemini models and for grounding, and does not affect inclusion or ranking in Google Search. The choice is weighed up in should I block AI crawlers?

How do you control it? #

The main tool is robots.txt. Its standard, RFC 9309 (September 2022), sets out how crawlers should read it. It also says plainly that these rules are not a form of access authorisation. Polite bots obey. Rude scrapers ignore it. So you need layers:

  1. Ask. Use robots.txt groups per bot name. Crawlers match the name without caring about case, and fall back to the * group if none fits.
  2. Check. Anyone can fake a user agent. Google warns that the user agent string can be spoofed, and publishes IP ranges and hostnames to check against. OpenAI publishes IP lists for its bots too. See verified bots and reverse DNS bot checks.
  3. Slow down. Rate limiting caps how fast one address can fetch.
  4. Block. A web application firewall can stop known bad patterns.

It depends on what is taken. This is general information, not legal advice.

  • Personal data. The ICO, in its response on scraping to train generative AI, says legitimate interests is the only lawful basis available for that use, calls it a high-risk, invisible processing activity, and says many controllers are not meeting their basic transparency duties. See UK GDPR.
  • Copyright. Section 29A of the Copyright, Designs and Patents Act 1988 allows copies for text and data analysis, but only with lawful access and for non-commercial research. Commercial copying is not covered by it.

Common mistakes #

  • Trusting robots.txt as a lock. It is a request, not a wall.
  • Blocking by user agent alone. Fakes pass, and real bots can be caught by mistake.
  • Blocking search bots while aiming at scrapers. One wrong line can drop you from Google.
  • Counting scrapers as visitors. Your traffic looks bigger than it is.
  • Treating every AI bot the same. Training, search and live fetch bots do different jobs.

A worked example #

A small UK shop sees 9,000 requests in a night from a bot calling itself Googlebot, all to product pages.

  1. It checks 3 of the IPs with our Verify AI Bot tool and a reverse DNS lookup. None ends in googlebot.com. It is a fake.
  2. Its server logs show the same 2 network blocks, so it adds a rate limit for them.
  3. It keeps Googlebot, Bingbot and OAI-SearchBot allowed, and decides on GPTBot as a business choice.
  4. It checks the robots.txt file with our Robots.txt Checker to be sure no search bot is blocked.

How to check it #

  1. Run the AI Bot Checker to list which bots your file lets in.
  2. Find out if your pages are in Common Crawl with the Common Crawl Checker.
  3. Look up a suspect address with the Website IP lookup.
  4. In URSY Pro, the Scraper and flood detector and Fake bot detector watch this for you. Read the bot profiles on our bots pages.

Questions #

Can I stop all scraping? #

No. You can make it slower, harder and easier to spot.

Does blocking AI bots hurt my Google ranking? #

Blocking Google-Extended does not, Google says. Blocking Googlebot would.

Sources #

Updated 24 November 2026 by URSY.

Cite this page: Web scraping. URSY. Updated 24 November 2026. https://ursy.com/wiki/web-scraping/ · Section links

Tools for this

All 871 wiki entries, A to Z →