cf.waf.content_scan.obj_types
cf.waf.content_scan.obj_typesArray<String>文件类型的数组,按请求中检测到内容对象的顺序排列。
如果 Cloudflare 无法确定某个内容对象的文件类型,obj_types 数组中对应的值将为 application/octet-stream。
需要启用了恶意上传检测的 Cloudflare Enterprise 计划。
用法示例:
# Check if requests to a specific endpoint contain content objects other than PDFs
any(cf.waf.content_scan.obj_types[*] != "application/pdf") and http.request.uri.path eq "/upload"类别:
- Request