What is bot traffic?
Short answer
Bot traffic is any visit, request or action on a website or app that software makes instead of a person. It includes search engine crawlers and uptime monitors as well as scrapers, spam bots, fake ad clicks and bots that attack logins or checkouts. Some of it is wanted. The rest skews analytics, raises costs and enables fraud.
Where bot traffic shows up depends on how the bot works. A script that only downloads HTML appears in your server and CDN logs but never in a JavaScript analytics tool, because it never runs the tag. A bot that drives a full browser runs the tag and appears as sessions, ad clicks, signups or orders. To see all of it you need both sources.
What causes bot traffic?
Someone points automation at a site because the site has something they want:
- Search engine crawlers and SEO tools index your pages so others can find them.
- Uptime monitors, price trackers and stock checkers fetch the same pages again and again.
- Scrapers copy prices, listings, articles and contact data, and AI crawlers collect text for models.
- Credential stuffing bots try stolen passwords, and vulnerability scanners look for weak spots.
- Scalper bots buy limited stock, and card testing bots try stolen cards with small payments.
- Click bots drain ad budgets, and spam bots fill forms and comments.
Part of your bot traffic is your own: test suites, monitoring, staging crawls and partner integrations. Label it first so it does not hide the rest.
Is bot traffic bad?
Some of it is the cost of being online. Blocking search crawlers takes you out of search results. How much of your traffic is bots varies widely by industry, as public estimates of bot traffic show. The harmful part costs money in four ways. It distorts analytics, so conversion rates and A/B tests mislead you. It adds load and bandwidth, which you pay for. It wastes ad spend when bots click paid ads, which is click fraud. And at login and checkout it turns into account takeover and payment fraud.
How do you spot bot traffic on a website?
In analytics, look for patterns no real audience produces:
- A spike of sessions from one city, one network or one referrer, with no campaign behind it
- Sessions with zero engagement time and one page view, all landing on the same URL
- Screen resolutions, browser versions or languages that do not match your usual audience
- Traffic arriving at fixed intervals, such as every 10 minutes through the night
GA4 removes traffic from known bots, identified through Google research and the IAB list, and bots that never run JavaScript never reach it. What still shows up in your reports is mostly bots that run your tag and that GA4 does not recognise. Identifying bot traffic in GA4 covers filters and segments, and Kairal has a guide on cleaning bot traffic out of Google Analytics.
In server logs, look at request rates and at what clients fail to load. These commands work on a standard combined-format nginx or Apache log:
# Requests per IP, top 20
awk '{print $1}' access.log | sort | uniq -c | sort -rn | head -20
# IPs that request pages but never load CSS or JavaScript
grep -vE '\.(css|js|png|jpe?g|svg|woff2?)' access.log | awk '{print $1}' | sort -u > page_ips.txt
grep -E '\.(css|js)' access.log | awk '{print $1}' | sort -u > asset_ips.txt
comm -23 page_ips.txt asset_ips.txt | head -50The second check only works if your origin serves the CSS and JavaScript. If a CDN serves them, run it on the CDN logs.
Other signs in logs: requests for /wp-login.php or /.env on a site that has neither, hundreds of IPs sending the same user agent to the same login URL, and user agents that claim to be Googlebot from IPs that fail Google's verification.
Bot traffic vs human traffic: what is different?
People arrive from somewhere, such as a search, a link or an email, and wander. They load images and scripts, scroll at uneven speeds, pause and make typing mistakes. Their device, timezone and language agree with each other and with their IP location.
Bots go straight to the target URL, often with no referrer. They repeat the same path with machine timing. Many come from cloud hosting IP ranges, and the better ones route through home IP addresses but give themselves away with details that contradict each other, such as a Chrome user agent on a connection whose TLS handshake matches a scripting library. How to detect bot traffic turns these differences into checks you can run.
Common questions
Does GA4 filter out bot traffic?
Partly. GA4 removes known bots and spiders using Google research and the IAB/ABC International Spiders and Bots List. You cannot turn this off or see how much it removed, and bots that hide their identity are still counted.
What is AI bot traffic?
It is traffic from AI crawlers that collect pages for model training or AI search, and from AI agents that browse sites for a user. The large AI operators publish their crawler names, so this traffic is easier to label than bots that pretend to be browsers.
Is bot traffic illegal?
Sending automated requests to a public website is not illegal in itself. Specific uses can be, such as unauthorised access to accounts or fake clicks that defraud advertisers. The rules depend on the country and the contract, and this is not legal advice.