跳转到内容
搜索文档

重写表达式

最后更新 查看 MarkdownAgent 设置

为 HTTP DDoS 攻击防护托管规则集设置重写表达式,以定义敏感度级别操作调整的特定范围。

例如,您可以为不同的请求 URI 路径设置不同的敏感度级别:对于 URI 路径 A 设置为中等 (medium) 敏感度级别,对于 URI 路径 B 设置为低 (low) 敏感度级别。

可用的表达式字段

您可以在重写表达式中使用以下字段:

  • cf.bot_management.ja3_hash
  • cf.bot_management.ja4
  • cf.client.bot
  • cf.tls_cipher
  • cf.tls_client_auth.cert_verified
  • cf.tls_version
  • cf.verified_bot_category
  • http.cookie
  • http.host
  • http.referer
  • http.request.headers
  • http.request.headers.names
  • http.request.headers.truncated
  • http.request.headers.values
  • http.request.uri
  • http.request.uri.path
  • http.request.uri.path.extension
  • http.request.uri.query
  • http.request.full_uri
  • http.request.method
  • http.request.version
  • http.request.cookies
  • http.user_agent
  • http.x_forwarded_for
  • ip.src
  • ip.src.asnum
  • ip.src.continent
  • ip.src.country
  • ip.src.is_in_european_union
  • ssl

有关更多信息,请参阅 Rules 语言文档中的字段参考 (Fields reference)

这篇文档对您有帮助吗?