Cloudflare Docs
Rules
Rules
Edit this page
Report an issue with this page
Log into the Cloudflare dashboard
Set theme to dark (⇧+D)

Add an HTTP request header with the current bot score

The following HTTP request header modification rule adds a header named X-Bot-Score with the current bot score to the 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)