Skip to content
Firewall
Visit Firewall on GitHub
Set theme to dark (⇧+D)

Custom Rules (Beta)

Custom Rules allow you to protect your website and your APIs from malicious or excessive incoming traffic.

You can use Custom Rules in the Firewall app to define the following rule types:

  • Rate Limiting Rules - Check for excessive incoming traffic and apply mitigation actions.

  • Custom Firewall rules - Control incoming traffic by filtering requests. You can block or challenge incoming requests according to rules you define.

Custom Rules are built upon the ruleset engine which you can use to define rules and actions in several Cloudflare products. Custom Rules are deployed to the http_request_firewall_custom Phase ruleset.