Skip to content
Cloudflare Docs

About

Cloudflare Firewall Rules is a flexible and intuitive framework for filtering HTTP requests. It gives you fine-grained control over which requests reach your applications, proactively inspecting incoming site traffic and automatically responding to threats.

Deprecation notice

Cloudflare Firewall Rules has been deprecated. Cloudflare has moved existing firewall rules to WAF custom rules. For more information on this change, refer to the upgrade guide.

In a firewall rule you define an expression that tells Cloudflare what to look for in a request, and specify the appropriate action to take when those conditions are met. Expressions can reference IP lists - groups of IP addresses that you can reference collectively by name.

To write firewall rule expressions, use the Rules language, a powerful expression language inspired in the Wireshark Display Filter language.