工具与资源github.com
Curl-impersonate:可模拟主流浏览器指纹的特殊版 curl
Curl-impersonate: Special build of curl that can impersonate the major browsers
2022 — 2025,它一次次回到首页
黑点是上首页(≥ 50 分)的那次投稿,空心点是没冲上去的投稿,点越大分数越高。
导读
curl-impersonate 是 curl 的特殊构建版本,通过修改 TLS 指纹、HTTP/2 设置等细节,使 curl 的网络请求看起来像来自 Chrome、Firefox 等主流浏览器。它常用于绕过基于客户端指纹的反爬虫检测,2022 年和 2025 年两度登上 Hacker News 首页。
为什么经久不衰:反爬虫指纹检测近年愈演愈烈,这个工具提供了一种简单直接的应对方式,且持续维护更新,对爬虫开发和自动化测试仍有实用价值。
HN 评论精选
工具能解决反爬误伤问题,但浏览器指纹审查本质上是值得警惕的用户压迫。
我运行一个 MITM 代理用于广告拦截和通用过滤,最近注意到 CloudFlare 和其他“机器人防护”让我在越来越多的搜索结果网站中被拦截,所以这个工具对解决这个问题非常有用。不过我要提醒:在这个公司尤其敌视用户的时代,尤其是大型科技公司,分享这类东西要更加小心。被迫运行 JS 已经够糟了;基于其他特征对用户进行画像、实质上判定你是否使用“被批准的软件”,是我们应该坚决反抗的反乌托邦。我想起 Stallman 的《阅读的权利》,这是一个非常相关的警示故事。
userbinator查看英文原文
I run a MITM proxy for adblocking/general filtering and within the past little while I've noticed CloudFlare and other "bot protection" tends to get me blocked out of increasingly more sites I come across in search results, so this will be very useful for fixing that. However, I should caution that in this era of companies being particularly user-hostile and authoritarian, especially Big Tech, I would be more careful with sharing stuff like this. Being forced to run JS is bad enough; profiling users based on other traits, and essentially determining if they are using "approved" software, is a dystopia we should fight strongly against. Stallman's Right To Read comes to mind as a very relevant warning story.
建议模拟 ESR 版本而非普通发布版,否则指纹会随版本更新迅速过时。
>模拟 Firefox 95 你应该模拟 ESR 版本(比如 91)。正式发布渠道的版本大约每月更新一次,而且大家都开了自动更新。所以除非你保持更新,否则几个月后你的指纹就会非常显眼。而 ESR 在一年生命周期内保持同一版本,不会明显变化。虽然仍会有些显眼(大多数人不用 ESR),但至少有企业用户在用 ESR,可以融入其中。
gruez查看英文原文
>impersonate Firefox 95 you should really be impersonating an ESR version (eg. 91). Versions from the release channel is updated every month or so, and everyone has autoupdate enabled. Therefore unless you keep it up to date, your fingerprint is going to stick out like a sore thumb in a few months. On the other hand, ESR sticks to one version and shouldn't change significantly during its one year lifetime. It's still going to stick out to some extent (most people don't use ESR), but at least you have some enterprises who use ESR to blend into.
讽刺:这类指纹伪装技术可能反过来加剧对非主流浏览器的歧视。
太好了,等不及反爬防护因为我用 Firefox 而开始拒绝我了。
vincent-toups查看英文原文
Cool, can't wait for anti-bot protection to start rejecting me because I use firefox.
从市场份额角度看,模拟 Chrome 比模拟 Firefox 更不容易暴露。
考虑到相对的市场份额,模拟 Chrome 可能更合理。
jandrese查看英文原文
Given the relative market shares it might make more sense to impersonate Chrome.
历次讨论
同类还值得读
直接在浏览器中启动 Linux 内核
Boot a linux kernel right inside your browser.
Fabrice Bellard 的 JSLinux 页面,用 JavaScript 在浏览器里启动一个 Linux 内核,并提供一个可交互的终端环境。
工具与资源上首页 5 次 · 2011–2025bellard.orgHacker News 未公开功能与行为清单(2018)
A List of Hacker News's Undocumented Features and Behaviors (2018)
数据科学家 Max Woolf 整理的 Hacker News 未公开功能与行为清单,涵盖投票机制、排名算法、账号惩罚等社区运作细节。
工具与资源上首页 5 次 · 2019–2025github.comMapSCII:在终端中用盲文和 ASCII 渲染地图
MapSCII – Braille and ASCII map renderer for the console
MapSCII 是一个在命令行终端里渲染地图的开源工具,用盲文字符和 ASCII 字符把地理数据画成可交互浏览的字符地图。
工具与资源上首页 5 次 · 2017–2025github.com顶尖大学的免费在线课程
Free Online Courses from Top Universities
Open Culture 整理的一份免费在线课程合集,汇集了全球顶尖大学(如 MIT、斯坦福、耶鲁等)向公众开放的网络课程资源,涵盖音频、视频等多种形式。
工具与资源上首页 5 次 · 2010–2022openculture.com淘气字符串:容易引发用户输入问题的字符串清单
Naughty Strings: A list of strings likely to cause issues as user-input data
一个 GitHub 仓库,收录了大量容易让程序出问题的用户输入字符串,如特殊字符、emoji、SQL 注入片段、系统命令等,供开发者用于测试输入处理逻辑。
工具与资源上首页 4 次 · 2015–2020github.com