Skip to content
Cloudflare Docs

Add a request header with the current bot score

The following request header transform rule adds a header named X-Bot-Score with the current bot score to the HTTP request:

Text in Expression Editor:

starts_with(http.request.uri.path, "/en/")

Selected operation under Modify request header: Set dynamic

Header name: X-Bot-Score

Value: to_string(cf.bot_management.score)