Bots that look like people, and how mettr tells them apart
A forged Chrome from a cloud network once made up two fifths of a day's visitors on one of our sites. The rules we learned from real traffic, and how mettr applies them.
· 4 min read
mettr began as a live dashboard built into three of our own sites. On one of them, an e-invoicing validator, a quiet day once showed far more visitors than it should have. Many were not people: a desktop Chrome, convincing in every header, coming from Huawei Cloud, two fifths of the day's "visitors".
A user agent list would not have caught it. Neither would a referrer check. What follows is what we learned, rule by rule, and how mettr applies each one to your site.
Keep the row, mark the verdict
The first lesson is not a rule but a habit: flag bots when they arrive, filter them when you read. Deleting suspicious requests at the door feels tidy, until a rule turns out to be wrong. A deleted row cannot be brought back.
So mettr keeps every event with its verdict, a reason (user_agent, hosting_network, automated) or none for a person, and the version of the rules that gave it. Every number on the dashboard leaves bots out; the rows stay. When a new kind of bot shows up, as a headless crawler on home internet addresses did on our sites in November, a rule is added and nothing real was lost on the way.
The bots that say so
Most bots are honest. Googlebot, Bingbot, GPTBot, ClaudeBot, Ahrefs and Semrush name themselves in their user agent, and so do the tools people script with: curl, python-requests, axios, Go's HTTP client, Scrapy. A device detector catches the long tail, and a pattern catches what it misses, such as Lightpanda, a headless browser built for scraping.
Honest crawlers are not noise, though. Which pages Googlebot reads, and how often GPTBot comes, is worth knowing. With the Laravel SDK, mettr records crawler visits from the server, names each crawler, checks it against its owner's network where that can be done, and shows them on panels of their own, apart from your visitors and outside your plan's events.
The bots that lie
The rest wear a browser's clothes. These are the signals that held up on real traffic:
- Data centre networks. People browse from home and mobile networks, not from AWS, Google Cloud, Azure, Hetzner, OVH, DigitalOcean, Huawei Cloud or Alibaba Cloud. A request from one of those networks is a server, whatever its user agent says. That rule alone removed the forged Chrome.
- Automation that admits it. Puppeteer, Playwright and Selenium set
navigator.webdriverin the browser they drive, headless or not. mettr's browser script sends that mark with the event, and the event is flagged. - Cloudflare's challenge token in the referrer. A visit whose referrer carries
__cf_chl_tkcame through Cloudflare's challenge page and was passed on, as scrapers are. - A browser with no user agent. A real browser always sends one. A server event may not (a queue job, a webhook), so mettr only asks it of the browser.
- Prefetches. A link prefetched on hover is not a visit, whether the browser or the framework fetched it. It is marked and left out.
The bots you only see afterwards
Some verdicts need to know what came next. The hardest bot we met loaded one page from a home internet address, with an ordinary browser, no referrer and no campaign, and was never seen again that day. One such visit looks like a person who followed a link from a chat app. A steady stream of them, each on a different page, does not.
mettr waits until a visitor's session has ended and then judges these lone landings: one page, no referrer, no campaign, nothing else from that visitor all day. One more signal clears them: the browser script sends a heartbeat while a tab stays open and visible, and a visitor who stayed on the page is a reader, whatever else is missing.
Not bots, but not visits either
Two more kinds of traffic would bend the numbers without being bots:
- 404s. Scanners probe dead addresses all day (
/wp-login.php,/.env). mettr counts a 404 as an error, never as a page view or as someone online, so a scan shows up where it belongs, on the errors panel. - Your own team. List your user ids or your addresses under the site's Staff settings, or name a gate in the Laravel SDK, and your own visits are left out of every number.
One person, one visitor
The last lesson is about people, not bots. Counting visitors by address alone folds an office, a university or a mobile carrier's shared address into one person. On one of our sites, a day had 201 different address and browser pairs but only 119 addresses.
mettr counts a visitor as the address and the browser together, hashed with a salt of the day that is deleted after eight days, so nothing about the person is kept and the same person is a new visitor tomorrow. How that works.
What you see
None of this needs setting up. Add the browser script or an SDK, and the dashboard counts people: bots are flagged as they arrive and left out of every tile, chart, list and alert. If you want to see what was left out, the crawlers have their own panels, and 404s their own list.
Rules like these are never finished. When a new kind of bot turns up on our sites, or on yours, write to [email protected]: the rule goes into mettr for everyone.