| 用途 | 按 UA 过滤请求来源类型 |
|---|---|
| 语法 | http.user_agent contains "..." |
常用示例
常用示例
http.user_agent contains "okhttp"
http.user_agent contains "python-requests"
http.user_agent matches "(?i)curl|wget"UA 可以伪造,仅作分类参考;结合源 IP 与频率一起看更客观。
http.user_agent 匹配客户端标识:区分是哪个客户端(App/浏览器/脚本)在访问、确认爬虫与 SDK 行为时用得到。
| 用途 | 按 UA 过滤请求来源类型 |
|---|---|
| 语法 | http.user_agent contains "..." |
http.user_agent contains "okhttp"
http.user_agent contains "python-requests"
http.user_agent matches "(?i)curl|wget"