函数原型
func isValidPage(resp response) bool
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
isValidPage 函数用于验证给定的网页是否有效,通过检查 HTTP 响应的特定特征和与已知404页面的相似度
func isValidPage(resp response) bool
| 参数名称 | 参数类型 | 参数介绍 |
|---|---|---|
| resp | response | 用于发出HTTP请求和缓存响应的HTTP客户端。 |
name: leak-yaml-backup-default
transport: http
rules:
zip:
request:
path: /a.zip
headers:
Range: bytes=0-8096
expression: response.body.bstartsWith(b'PK\x03\x04') && !response.content_type.icontains("html") && isValidPage(response)
expression: zip()
Was this page helpful?
