> ## Documentation Index
> Fetch the complete documentation index at: https://docs.2024921.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Webmention

> 外站引用收集、来源校验与后台管理

Webmention 让外部站点在引用你的文章时主动通知本博客。前端在文章页声明 Webmention 端点，接收流程会抓取来源页并验证它确实链接到本站文章。

## 端点

```http theme={null}
POST /api/webmention
GET  /api/webmention?target=/posts/article-slug/
```

请求体采用标准 Webmention 表单：

```text theme={null}
source=https://example.com/my-post
target=https://www.2024921.xyz/posts/article-slug/
```

## 校验与存储

| 步骤 | 行为 |
| - | - |
| 目标校验 | `target` 必须解析到本站已有文章 |
| 来源抓取 | 抓取 `source`（超时 / 大小 / 只接受 HTML） |
| 链接校验 | 来源页必须确实包含指向 `target` 的链接 |
| 入库 | 记录来源、标题、作者、摘要、状态与时间 |
| 展示 | 文章详情页显示引用列表 |

来源页事后撤链不会自动删除已有记录；请到后台「引用管理」手动删除。

相关页面：[文章接口](/posts) · [安全设计](/security-overview) · [API 总览](/api-overview)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.