Available fields and functions (3)
Last updated Aug 25, 2026
Filter expressions
A URL rewrite rule filter expression (that is, the expression that defines which incoming requests match the rule) can include the following fields:
cf.edge.server_ipcf.edge.server_portcf.edge.client_portcf.edge.client_tcpcf.edge.l4.delivery_ratecf.hostname.metadatacf.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_zonehttp.cookiehttp.hosthttp.refererhttp.request.accepted_languageshttp.request.cookieshttp.request.headershttp.request.headers.*http.request.methodhttp.request.timestamp.sechttp.request.timestamp.msechttp.request.full_urihttp.request.urihttp.request.uri.*http.request.versionraw.http.request.full_uriraw.http.request.headersraw.http.request.headers.*raw.http.request.uriraw.http.request.uri.*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_codesslcf.worker.upstream_zone
Refer to Fields for reference information on these fields.
Important
- To obtain the value of an HTTP request header using the
http.request.headersfield, specify the header name in lowercase. For example, to get the first value of theAccept-Encodingrequest header in an expression, use:http.request.headers["accept-encoding"][0]. - Use the
to_string()function to get the string representation of a non-string value like an Integer value.
For information on the available functions, refer to Functions.
Rewrite expressions
A rewrite expression (that is, the expression that defines the dynamic URL rewrite to perform) can only include the following fields:
http.request.uri.*http.request.headers.*http.request.accepted_languages
Refer to the Fields reference for more information on these fields.
The concat(), regex_replace(), and wildcard_replace() functions can appear only once in a rewrite expression. Additionally, you cannot nest the regex_replace() and wildcard_replace() functions.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/rules/transform/url-rewrite/reference/fields-functions/#page","headline":"Available fields and functions","description":"Available fields and functions for URL rewrite rules.","url":"https://developers.cloudflare.com/rules/transform/url-rewrite/reference/fields-functions/","inLanguage":"en","image":"https://developers.cloudflare.com/rules/transform/url-rewrite/reference/fields-functions/og.png?v=7fefbbb932af71a1","dateModified":"2026-08-25","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Configurable parameters for URL rewrite rules. title: URL rewrite parameters image: https://developers.cloudflare.com/rules/transform/url-rewrite/reference/parameters/og.png?v=7f52e9740c26f8de
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/rules/llms.txt
Use this file to discover all available pages before exploring further.
Docs