The available fields when setting an HTTP request header value using an expression are the following:
cf.bot_management.*cf.client.botcf.colo.codecf.verified_bot_categorycf.edge.server_ipcf.edge.server_portcf.edge.client_portcf.edge.client_tcpcf.edge.l4.delivery_ratecf.hostname.metadatacf.llm.prompt.custom_topic_categoriescf.llm.prompt.detectedcf.llm.prompt.injection_scorecf.llm.prompt.pii_categoriescf.llm.prompt.pii_detectedcf.llm.prompt.token_countcf.llm.prompt.unsafe_topic_categoriescf.llm.prompt.unsafe_topic_detectedcf.zone.namecf.random_seedcf.ray_idcf.timings.client_quic_rtt_mseccf.timings.client_tcp_rtt_mseccf.tls_versioncf.tls_ciphercf.tls_client_hello_lengthcf.tls_client_randomcf.tls_client_extensions_sha1cf.tls_client_extensions_sha1_lecf.tls_client_ciphers_sha1cf.tls_client_auth.*cf.worker.upstream_zonecf.fraud.email_riskhttp.cookiehttp.hosthttp.refererhttp.request.accepted_languageshttp.request.cookieshttp.request.headershttp.request.headers.*http.request.methodhttp.request.body.formhttp.request.body.form.*http.request.body.multiparthttp.request.body.multipart.*http.request.body.rawhttp.request.body.sizehttp.request.body.truncatedhttp.request.timestamp.sechttp.request.timestamp.msechttp.request.full_urihttp.request.urihttp.request.uri.*http.request.versionraw.http.request.full_uriraw.http.request.uriraw.http.request.uri.*raw.http.request.headersraw.http.request.headers.*http.user_agenthttp.x_forwarded_forip.srcip.src.latip.src.lonip.src.asnumip.src.cityip.src.countryip.src.continentip.src.metro_codeip.src.postal_codeip.src.regionip.src.region_codeip.src.is_in_european_unionip.src.subdivision_1_iso_codeip.src.subdivision_2_iso_codesslhttp.request.jwt.claimshttp.request.jwt.claims.*cf.fraud_detection.disposable_emailcf.sequence.current_opcf.sequence.msec_since_opcf.sequence.previous_opscf.waf.auth_detectedcf.waf.credential_check.*cf.waf.scorecf.waf.score.*cf.appsec.request.failed_detections
Refer to Fields for reference information on these fields.
For information on the available functions, refer to Functions.
Use format_date() to format http.request.timestamp.sec as UTC text. This function is available on all plans without an additional entitlement. You can set a timestamp header and calculate a signature from the same timestamp in one rule.
The HMAC functions and sign_sigv4_hmac_sha256() are available on Pro, Business, and Enterprise plans.
The following limits apply to each header value expression:
| Function | Maximum calls |
|---|---|
concat() |
3 |
encode_hex() |
4 |
format_date() |
4 |
Each of hmac_md5(), hmac_sha1(), hmac_sha256(), and hmac_sha512() |
5 |
sign_sigv4_hmac_sha256() |
1 |
Signing and hash functions accept a narrower set of fields than the complete header rewrite field list. Supported inputs include request headers, the method, URI fields, and http.request.timestamp.sec. Do not pass http.host or request body fields to these functions. For storage signing, put the expected origin hostname in the canonical request as a literal.
For complete expressions, refer to Sign requests to private S3 and GCS buckets.