TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How dare you trust the user agent for bot detection?

3 点作者 avastel大约 2 个月前

1 comment

avastel大约 2 个月前
Author here: I&#x27;ve been in the bot industry&#x2F;bot detection field for ~ 10 years. I frequently see strong opinion about bot detection on Reddit and HN, in particular why it doesn&#x27;t make sense for bot detection companies (I won&#x27;t name who, but you will guess), to treat you so differently based on your user agent, and why it shouldn&#x27;t matter when it comes to bot detection.<p>That&#x27;s why I wrote a blog post about the role of the user agent in bot detection. Of course, everyone knows that the user agent is fragile, that it is one of the first signals spoofed by attackers to bypass basic detection. However, it&#x27;s still really useful in a bot detection context. Detection engines should treat it a the identity claimed by the end user (potentially an attacker), not as the real identity. It should be used along with other fingerprinting signals to verify if the identity claimed in the user agent is consistent with the JS APIs observed, the canvas fingerprinting values and any types of proof of work&#x2F;red pill