# Web crawler

Also called: crawler, spider, search engine bot, web spider

A web crawler is a program that fetches web pages automatically and follows the links it finds to discover more, usually to build a search index. Googlebot and Bingbot are the best-known examples, and AI companies run crawlers of their own.

## How it is calculated

A crawler starts from known URLs, such as sitemaps and links found earlier, fetches each page, extracts its links and queues the new ones. Before fetching from a site it reads `robots.txt` to see which paths it may visit, and it paces its requests so it does not overload the server.

Crawlers identify themselves with a token in the user agent, and the larger operators publish IP ranges or support reverse DNS so you can verify them. Most fetch the HTML and do not run your analytics script. Googlebot does render pages, but analytics tools filter its known user agent, so crawls of either kind show up in server logs rather than in a script-based dashboard.

## Example

Your server log for one day has 46,000 requests. 12,000 come from user agents naming Googlebot, Bingbot, GPTBot and an SEO tool's crawler. Your analytics dashboard shows 9,500 pageviews from 3,100 visitors that day: the crawler requests are not in it, and should not be.

## Common mistakes

- Comparing server log hits with analytics pageviews. Logs include crawlers, assets and failed requests. Analytics counts people whose browser ran the script.
- Assuming every crawler is a search engine. SEO tools, AI companies, archives and link previewers all crawl, for different reasons.
- Blocking a crawler by user agent alone. A scraper can claim to be Googlebot. Verify by IP range or reverse DNS before trusting or blocking.

## How CrispStats shows it

CrispStats keeps crawlers out of your visitor numbers: the script does not run in automated browsers, and the collector drops requests from self-identified bots, HTTP clients and verified bots, with a stricter level available in settings. AI crawlers are the exception that gets its own report: when your site reports their hits from its edge, the AI page shows them by bot, operator and purpose. Search engine crawlers such as Googlebot are not reported.

## Related terms

- [Bot traffic](/glossary/bot-traffic)
- [AI crawler](/glossary/ai-crawler)
- [robots.txt](/glossary/robots-txt)
- [User agent](/glossary/user-agent)
- [Pageview](/glossary/pageview)
