Web crawler

A web crawler is a program that automatically visits web pages, follows their links and downloads their content, used to build search indexes and, increasingly, to collect training data for AI.

A crawler, also called a spider or bot, starts from a list of web addresses known as seeds. It downloads each page, finds the links in it, adds the new addresses to a queue called the crawl frontier, and repeats. Because the web is too large to fetch in full, crawlers follow policies on which pages to visit first, how often to revisit them and how hard to hit any one server. WebCrawler, described in a 1994 paper, built the first publicly available full-text index of a subset of the web.

Politeness has been part of crawling from the start. Crawlers can overload servers, so site owners use the robots.txt file to say which areas bots should avoid, and well-run crawlers space out their requests. Each crawler announces itself with a user agent name, which is how site owners tell them apart. That system depends on trust: a bot can lie about its name, which is why Common Crawl publishes the network addresses its crawler uses so sites can check claimed visits.

AI has changed who crawls and why. Common Crawl, a non-profit, has been collecting web data since 2008 and makes petabytes of it freely available; the FineWeb training set for language models, for example, was built from 96 of its snapshots. AI companies also run their own crawlers. OpenAI, for example, separates GPTBot, which gathers training data, from OAI-SearchBot, which powers search in ChatGPT, and ChatGPT-User, which fetches pages when a user asks.

Publishers increasingly see AI crawlers as taking content without sending readers back. On July 1, 2025 the network company Cloudflare announced it would block AI crawlers by default unless they pay, and published estimates suggesting AI services send far fewer visitors back than traditional search. For site owners, the practical choices are which crawlers to allow, which to block in robots.txt and which to block at the network level.

Common questions

What is the difference between a web crawler and a web scraper?

A crawler discovers and fetches pages by following links across a site or the web. A scraper extracts specific data from pages, such as prices or names. Crawling is often the first step of scraping, but crawlers that build search indexes do not need to extract particular fields.

What is an AI crawler?

An AI crawler is a bot that collects web content for AI purposes, such as training models or feeding AI search answers. Examples include OpenAI's GPTBot and Common Crawl's CCBot, whose data is widely used for training.

How do I stop AI crawlers from accessing my website?

List their user agent names in robots.txt with a Disallow rule, using the names published by each company. Because robots.txt is voluntary, many sites also use network-level blocking from their hosting or security provider for crawlers that ignore it.

Do web crawlers follow robots.txt?

Reputable search and AI crawlers say they do, and Common Crawl tells site owners to block its crawler through robots.txt. Compliance is voluntary, though, and some bots ignore the file or disguise their identity.

Finding more

Search for "web crawler how it works", "AI crawler user agents" or "block AI bots". Reliable sources include the crawler documentation that AI companies and Common Crawl publish, the robots.txt standard RFC 9309, and network operators' published traffic research. Third-party lists of crawler names change often, so check them against each company's own page.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.