Moving from lsp-mode in GNU Emacs to Eglot

Moving from lsp-mode in GNU Emacs to Eglot

从 GNU Emacs 的 lsp-mode 迁移至 Eglot

You’re using a tool with a too-generic User-Agent. You’re probably reading this page because you’ve attempted to access some part of my blog (Wandering Thoughts) or CSpace, the wiki thing it’s part of. 你正在使用的工具拥有一个过于通用的 User-Agent。你之所以看到这个页面,可能是因为你试图访问我的博客(Wandering Thoughts)或其所属的 wiki 系统 CSpace 的某个部分。

Unfortunately, whatever you’re using to do so has a HTTP User-Agent header value that is too generic or otherwise excessively suspicious. Unfortunately, as of early 2025 there’s a plague of high volume crawlers (apparently in part to gather data for LLM training) that behave like this. 遗憾的是,你所使用的工具其 HTTP User-Agent 请求头的值过于通用,或者显得过于可疑。不幸的是,自 2025 年初以来,大量高频爬虫(显然部分是为了收集大语言模型训练数据)泛滥成灾,它们的行为正是如此。

To reduce the load on Wandering Thoughts I’m experimenting with (attempting to) block all of them, and you’ve run into this. All HTTP User-Agent headers should clearly identify what they are, and for non-browser user agents, they should identify not just the software involved but also who specifically is using that software. 为了减轻 Wandering Thoughts 的服务器负载,我正在尝试屏蔽所有此类请求,而你恰好触发了这一机制。所有的 HTTP User-Agent 请求头都应明确标识其身份;对于非浏览器类的用户代理,它们不仅应标明所使用的软件,还应标明具体的使用者。

An extremely generic value such as “Go-http-client/1.1” is not something that I consider acceptable any more. One specific thing is that if your HTTP User-Agent header contains an explicit marker that you are only ‘compatible’ with what your User-Agent suggests, you must include an explicit, real URL that describes your activities or the software. 像 “Go-http-client/1.1” 这样极其通用的值,我已不再接受。特别需要指出的是,如果你的 HTTP User-Agent 请求头中包含明确的“兼容”(compatible)标记,你必须提供一个真实且明确的 URL,用以说明你的活动或软件信息。

A minimal HTTP User-Agent such as ‘Mozilla/5.0 (compatible; mysoftware)’ is not acceptable. 像 ‘Mozilla/5.0 (compatible; mysoftware)’ 这样极简的 HTTP User-Agent 是不被接受的。

Chris Siebenmann, 2026-04-18 Chris Siebenmann,2026 年 4 月 18 日