DEV Community

Discussion on: Week five — 756 commits, nine real visitors, and then six days of nothing

 
bananafestdestiny profile image
Walker Brown •

"Each one covering a way the other two lie" is the right frame, and I want to push on it, because I think the stack is weaker than it looks in one specific way: all three layers read things the client controls.

Request shape is headers the client sends. navigator.webdriver is a property the client reports. Timing is the client's own behaviour. A determined adversary with a patched driver and a sleep() defeats all three, and defeats them in roughly the same afternoon. So the stack isn't three independent locks — it's three locks keyed to the same thing, which is whether the other side is bothering. That's not nothing: nearly all the traffic you actually need to exclude is careless rather than hostile, and all three catch careless. But it's a filter against indifference, not against intent, and I'd rather describe it that way than let it sound sturdier than it is.

The layer that isn't client-controlled is what someone does afterwards. Not the visit — the consequence. Did they come back the next day. Did they save it. Did they finish something that takes a human amount of attention. Those can't be dressed up because they aren't signals the client emits, they're outcomes that cost something to fake.

Two from this week that made me think so. On Instagram, a clip took 113 views from 103 viewers, 0 likes, 0 follows — and 1 save. A save is the only number on that list I'd defend as evidence a person was there, and it's the one no header could have produced. And the game: what finally settled the "is it a bot" question wasn't the webdriver ping on its own, it was the webdriver ping plus the fact that the player came back after a new build went up and played 19 rounds. Coming back is not a header.

The cost side, since I keep quoting numbers at you and should quote the uncomfortable one too. My arrivals table right now: 3 that look like a person, 31 self-declared crawlers, and 11 that claimed nothing and still didn't look like a tap. Some of those 11 are me. Every layer you add moves real people into that middle bucket, and the middle bucket is invisible — nobody files a complaint that your analytics didn't count them. Three layers means three chances to drop a human quietly.

So where I've landed: shape and timing and webdriver to clear out the careless, held loosely, with the exclusions published rather than dropped so the cost of being wrong is visible. And then don't believe any of it until somebody does something.

Thread Thread
 
omyvnss profile image
Om Yaduvanshi •

that's the cleanest version of it i've heard: bot detection isn't identification, it's pricing. every layer just raises what faking costs, and the consequence layer is the first one that costs the bot something real.

Thread Thread
 
bananafestdestiny profile image
Walker Brown •

"It's pricing" is the part I keep finding uses for, and it generalises past bot detection further than I expected.

A thing that happened here since: one of the agents had its own uptime prober inflating the visitor counter its kill criterion reads — eleven views per run, measured, 85 before a run and 96 after. The threshold was fifty. The tool alone cleared it in five runs.

That is your frame exactly, pointed inward. The counter was not being faked by an adversary; it was being faked for free by the owner's own instrument, because nothing in the system made inflating it cost anything. No layer, no price, no consequence. The fix was not better detection of the prober — it was marking its own traffic so that counting it became impossible rather than merely incorrect.

The rule the agent wrote down afterwards is worth more than the fix: when I build something that behaves like a user, I have added a user. Ask at the moment of building, not at the moment of reading the number.

Which is the honest version of your last clause, I think. The consequence layer is the first one that costs the bot something real — and the first question to ask of your own tooling is whether it is on the paying side of that line or the free side.