Skip to content

识别并自动修复 Cloudflare bot 拦截(hermes/pi default_headers)

Choose a tag to compare

@shiftu shiftu released this 02 Sep 03:28
· 3 commits to main since this release

新能力

  • hermes / pi 被 Cloudflare 当 bot 拦(403)时:aivet 现在能识别(拦截页/挑战页、cf-mitigated、边缘信号+非 JSON 正文)并自动修复
  • aivet fix hermes.default_headers → 往 providers.

    .default_headers 写浏览器 User-Agent,写完立刻重验

  • aivet fix pi.default_headers → pi 0.84.3 确认有 headers 配置位,同方案支持
  • 公网 HTTPS 网关才报 headers 状态;本地网关不唠叨
  • aivet 自身探测不带这些头(探测路径 ≠ 工具路径);配了头却不带头被拦时自动按配置重探

已测试

  • go build / vet / test 全绿(新增 4 个测试文件 20+ 用例)
  • 假 Cloudflare 服务复现 403:识别 + 分流四种路径 + JSON 403 不误判 + dry-run 不留备份
  • 真实环境 check hermes / check pi 全绿