Blog / How the internet works /
Bot traffic and AI crawlers: what server logs show
Open your analytics and you’ll see people. Open your server logs and you’ll see everyone else.
Analytics tools mostly run in the browser, and most bots don’t run browser scripts, so they stay invisible. Server logs record every request to your server, human or not. That makes them the best place to answer questions like: which AI crawlers visit my site, how often, and which pages do they want?
You don’t need to be a developer to read them. This post shows what a log line contains, what to look for and what to do next.
What a log line looks like
Most web servers write a line per request. Here’s an invented example, in the common format:
203.0.113.45 - - [12/Feb/2026:09:14:22 +0000] "GET /blog/phone-batteries/ HTTP/1.1" 200 18342 "-" "Mozilla/5.0 (compatible; GPTBot/1.2; +https://openai.com/gptbot)"
Reading left to right:
- IP address: who (or what) asked. Here, a placeholder address.
- Timestamp: when.
- Request: the method (GET) and the page asked for.
- Status code: 200 means success, 301 a redirect, 404 not found, 403 forbidden, 429 too many requests, 500 a server error.
- Size: bytes returned.
- Referrer: where the request came from (“-” means none).
- User agent: the name the visitor gives itself. This is how you tell crawlers apart.
If you use shared hosting, your control panel often offers “raw access logs” to download. With some platforms (such as Shopify) you don’t get server logs, and a CDN like Cloudflare may offer its own analytics instead.
Who you’ll find in there
Roughly, bots fall into groups:
- Search engine crawlers: Googlebot, Bingbot. You want these.
- AI crawlers: GPTBot and OAI-SearchBot (OpenAI), ClaudeBot (Anthropic), PerplexityBot, Applebot, and others. Some collect content to train models; some fetch pages to answer a user’s question live.
- SEO and monitoring tools: crawlers from SEO platforms, uptime monitors.
- Social and chat preview bots: the fetchers that build link previews when someone shares your URL. See link previews: how WhatsApp and X build them.
- Scrapers and bad bots: hunting for content, login pages, vulnerable plugins or product prices. Many pretend to be Googlebot or a normal browser.
For a plain description of good versus bad ones, there’s bad bots vs good bots, and for the traffic picture overall, bots are now a huge share of web traffic.
Five questions your logs can answer
1. Which AI crawlers are visiting?
Search the log for known user-agent names and count requests per bot. A quick command on a downloaded file, if you’re comfortable with a terminal:
grep -i -E "gptbot|claudebot|perplexitybot|oai-searchbot" access.log | wc -l
You’ll get a rough count. Bot names change and new ones appear, so also look at the most frequent user agents overall and see what you don’t recognise.
2. Which pages do they want?
Group requests by URL. Search engines usually spread across the site; some scrapers go straight to one section, a product catalogue or an XML sitemap. If a bot hammers pages you’d never expect (search result pages, filters, old URLs), that’s worth knowing.
3. Are they getting what you think they’re getting?
Look at the status codes next to each bot. Lots of 403s or 429s means your firewall or rate limiter is blocking them, which may be on purpose or may be an accident. Lots of 404s means they’re following old links. Lots of 301 chains means redirects need tidying. And a 200 with a tiny response size can mean they got a challenge page, not your content.
4. Is that really Googlebot?
Anyone can type “Googlebot” into a user agent. To verify, take the IP address and do a reverse DNS lookup, then confirm the hostname forward-resolves to the same IP; real Google crawler addresses resolve to google.com or googlebot.com hostnames. Google also publishes lists of its crawler IP ranges, and Bing offers similar verification for its bot. Fakes can usually be blocked at the firewall without harming your search presence.
5. Is a bot slowing my site down?
If your host reports spikes in load or bandwidth, sort the logs by requests per minute. A single aggressive crawler can look like a traffic surge. A short-term rate limit or a robots.txt Crawl-delay (not honoured by Google, but respected by some others) can help, and so can a CDN’s bot controls.
Why this matters for a site owner
- Cost and speed. Bot traffic uses bandwidth and server power. On cheap hosting it can show up as slowness or surprise bills.
- Clean data. If you know how much of your traffic is non-human, your numbers stop confusing you. See spam sign-ups, bot traffic and fake referrals in GA4.
- Content decisions. Whether you allow AI crawlers is your call. It involves trade-offs between visibility in AI answers and control of how your work is used. I’ve set out both sides in blocking AI crawlers: should you?.
- Security. Bots probing for
wp-login.php,xmlrpc.phpor.envfiles are often looking for weaknesses. Seeing them reminds you to keep software updated and logins protected.
What you can do about it
- Decide your policy. Which crawlers do you welcome, which do you want to limit? Write it down.
- Express it in robots.txt. Well-behaved bots honour it. Remember it’s a request, not a lock.
- Enforce it where it matters. For bots that ignore robots.txt, use your firewall, CDN or host’s bot controls. See bot protection on the edge.
- Don’t block search crawlers by accident. After any security or CDN change, check that Googlebot still gets 200s. Blocking it silently is a classic way to lose traffic.
- Re-check periodically. Bots change. A monthly glance at your top user agents is enough.
I covered the practical reading side in server logs for SEO and who’s visiting in AI crawlers in your logs: who’s visiting and why.
Common mistakes
- Trusting the user agent alone. It’s a label anyone can fake.
- Blocking by guesswork. Check what a bot actually does before banning it.
- Treating all bots as bad. Search and preview bots are how people find and share you.
- Ignoring the logs entirely because analytics “looks fine”.
Key takeaways
- Analytics hides most bots; server logs show all of them.
- Read the user agent, the URL and the status code, then group by bot.
- Verify claims of “Googlebot” by IP, not by name.
- Decide a policy, put it in robots.txt, and enforce it at the firewall where needed.
Related reading
- Bots are now a huge share of web traffic: what that means
- Bad bots vs good bots
- Bot protection on the edge
If you can get raw logs from your host, download one day’s worth and count your top five user agents. It takes ten minutes, and you’ll learn something about your site that no dashboard shows.