Rules language

Last updated Apr 16, 2026 The Cloudflare Rules language is a flexible and intuitive specification for building rule expressions. Based on the widely known Wireshark display filters ↗︎, the Rules language allows you to precisely target HTTP requests with a syntax and semantics familiar to security engineers.

Refer to the following pages for more information about the available language elements:

Was this helpful?

YesNo

On this page

Rules language - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/ruleset-engine/rules-language/#page","headline":"Rules language","description":"Write rule expressions using the Cloudflare Rules language.","url":"https://developers.cloudflare.com/ruleset-engine/rules-language/","inLanguage":"en","image":"https://developers.cloudflare.com/ruleset-engine/rules-language/og.png?v=61c2bc5f3d7253c1","dateModified":"2026-04-16","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: Migrate from Page Rules to modern Cloudflare Rules alternatives. title: Page Rules migration guide image: https://developers.cloudflare.com/rules/reference/page-rules-migration/og.png?v=222e17aa1267d01c


Skip to content

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.