A web crawler is a program that systematically browses and indexes web pages by following links from page to page, typically used to discover and catalog content across a site or the broader web. Search engines use crawlers to build their indexes, and AI companies increasingly use crawlers to gather training and retrieval data.
Crawlers differ from targeted scrapers in scope: a scraper usually extracts specific data from known pages, while a crawler's job is discovery, finding pages it doesn't already know about by following links outward.
A well-behaved crawler checks a site's robots.txt file before crawling and skips any paths it disallows, though RFC 9309 states that these rules are not a form of access authorization and are not a substitute for real security measures.