Most of my Umami visitors were one scraper: how to spot it and filter it out
When visitors jump and nothing else does, open the Languages, Screens and Countries panels and look at the time on site. A scraper that drives a real browser runs your tracking script like any reader, so Umami counts it, but it looks the same on every visit. On Rubric, my daily tech news edition, Umami counted 3,587 visitors from 3 to 10 November, against 488 in the eight days before. 3,307 of them were one scraper, or one fleet of them. Without it the count is 280.
What gave it away
Each of these is one panel in Umami, or one metrics call:
- All 3,307 sent the language
zh-CN. - 3,296 of them ran Chrome on a laptop, split almost evenly between Windows 10 (1,662) and macOS (1,620).
- They reported more than 500 different screen sizes, such as 1386x1281 and 1262x1171, and all but one size was seen three times or fewer. Real readers bunch up on a few sizes. Among my other visitors, 1920x1080 alone accounts for 71 of the 280.
- 2,491 of them came from five cities: Hong Kong 740, Singapore 602, Beijing 561, Mexico City 295 and Santa Clara 293.
- Of their 3,513 visits, 3,415 were one page long, and all of them together lasted 125 seconds. The 280 other visitors stayed 7,414 seconds.
- Eight visits came with a referrer, and none fired one of the site’s events.
Umami’s reports show the browser family and not the user agent string, so I can’t name the tool. It has to be a real browser, because a plain HTTP crawler never runs the tracking script.
It grew over the week: 59 visits on 3 November, 486 on the 7th, and about 1,120 a day on the 9th and 10th.
What it was reading
It took one page per visit, and its two most-viewed pages were /account/sign-in/ (783 views) and /account/ (246). Every story page linked to them with its own return address, so a crawler that follows links saw a new URL each time.
A crawler on the sign-in page looks like an attack, so I checked the server on 8 November. Nobody had ever requested a sign-in link by email, and the rate limiter had no rows. It was following links and nothing more.
Take it out of the numbers
Umami’s filters accept an operator in front of the value, and neq. means “is not”:
GET /api/websites/<website-id>/stats?startAt=<ms>&endAt=<ms>&language=neq.zh-CN
{"visitors": 280, "visits": 297, "pageviews": 363, "bounces": 248, "totaltime": 7414}
The same parameter works on the metrics call. Without the prefix, language=zh-CN returns only the scraper, which is how I got the figures above.
The filter also removes real readers whose browser is set to Chinese. Here that costs little. The week before the scraper arrived, 93 visitors sent zh-CN, and they looked automated too: Linux, 1920x1080, one page each, 167 seconds between them.
My weekly read of the site now gives both figures, the total and the count without the scraper. The second one went down, from 395 visitors to 280, in a week when the total went up seven times.