<!-- Generated from zh/llms-txt-webflow/index.html. The canonical document is the HTML page. -->

- [ 首页 ](/zh/) 
/
- Webflow            
# Webflow 上的 `llms.txt`

Webflow 在其 SEO 设置中提供了专门的 llms.txt 上传功能。边缘代理现在只是原生设置无法覆盖的情况下的备用方案。

最近更新: 2026年10月29日

本页内容

- [ 简短回答 ](#answer)
- [ 上传文件 ](#upload)
- [ 需要了解的限制 ](#limits)
- [ 备用方案：边缘代理 ](#worker)
- [ 应避免的内容 ](#avoid)
- [ 常见问题 ](#faq)             
## 简短回答

Webflow 于 2025 年 7 月 23 日宣布支持 llms.txt。你在网站的 SEO 设置中上传自己的文件，发布后
Webflow 会在你的自定义域名根路径提供它。Webflow 不会为你编写内容：你上传的文件就是它提供的文件。

## 上传文件

- 先使用 [生成器](/zh/generator/)（它会读取 Webflow
发布的站点地图）编写文件，加以整理，然后用
[验证器](/zh/validator/) 检查。 
- 在 Webflow 中，打开 **Site settings** > **SEO** > **LLMs.txt**。 
- 点击 **Upload file** 并选择你的 `llms.txt`。 
- 点击 **Save changes**，然后发布网站。 
- 打开 `https://yourdomain.com/llms.txt` 确认已发布的版本。   
## 需要了解的限制

- 文件必须采用 UTF-8 编码，且小于 100 KB。 
- 它只会发布到你的自定义域名，而不会发布到 Webflow 预发布（staging）域名。请在生产 URL 上测试。 
- 它是静态上传的文件。当你添加或停用关键页面时，请上传新版本；没有任何机制会自动为你更新它。     
示例

100 KB 绰绰有余

我们的大小基准测试发现，真实文件的中位数约为 14
KB，因此这一限制很少成为约束。如果你的文件超出限制，请更严格地筛选内容，而不是拆分文件：请参阅
真实的 llms.txt 文件有多大 。

## 备用方案：边缘代理（Cloudflare Worker）

仅在原生设置不适用时才使用代理，例如需要动态生成文件，或提供 `/docs/llms.txt`
等路径级文件。当你的 DNS 托管在 Cloudflare 上且已启用代理时，路由到该单一路径的 Worker 会响应它，并将其他所有请求传递给
Webflow：
worker.js    复制     

```
// Cloudflare Worker: serves /llms.txt in front of your Webflow site.
// Requires your domain's DNS to be on Cloudflare with the proxy enabled.
const LLMS_TXT = `# Your site

> One-sentence factual description of your site.

## Main pages

- [Services](https://yourdomain.com/services): what you offer.
- [Pricing](https://yourdomain.com/pricing): plans and rates.
- [Contact](https://yourdomain.com/contact): how to reach you.
`;

export default {
async fetch(request) {
const url = new URL(request.url);
if (url.pathname === '/llms.txt') {
return new Response(LLMS_TXT, {
headers: { 'content-type': 'text/plain; charset=utf-8' },
});
}
return fetch(request); // everything else passes through to Webflow
},
};
```

不要在同一路径上同时运行代理和原生上传：Worker 会遮蔽你在 Webflow
中管理的文件，两份副本也会逐渐不一致。

## 应避免的内容

- **一个托管在资源上的副本。** Webflow 的资产 CDN 上的文件并不在你的根目录；查找常规路径的工具会找不到它。 
- **一个经过设计、包含该内容的页面。** 该提案要求以文本形式提供纯 Markdown，而不是一个
HTML 页面。   
## 常见问题

### llms.txt 会提升我的 Webflow 网站在 Google 中的排名吗？

不会，Google 已表示不使用该文件。它的价值面向 AI 助手、智能体和开发者工具；请参阅
[llms.txt 与 SEO](/zh/llms-txt-seo/).

### 代理会拖慢我的网站吗？

仅限单一路径的 Workers
路由不会为其他请求运行，因此网站的其余部分不受影响。既然已有原生上传功能，大多数网站都不需要它。

## 来源

- [ Webflow 帮助中心，将 llms.txt 文件上传到你的网站 ](https://help.webflow.com/hc/en-us/articles/43240104183315-Upload-an-llms-txt-file-to-your-site)
- [ Webflow 更新，推出 llms.txt（2025 年 7 月 23 日） ](https://webflow.com/updates/introducing-llmstxt)
- [ llmstxt.org，社区提案 ](https://llmstxt.org/)
