Create custom rules
- Understand whether Cloudflare proxies your traffic: Depending on the nature of your traffic, you may have access to different fields for your load balancing rules. For more details, see .
Navigate to Traffic > Load Balancing.
From the Load Balancer workflow, click Custom Rules.
Click Create Custom Rule.
Enter the value to match. When the field is an ordered list, Value is a drop-down list. Otherwise, Value is a text input.
[Optional] To create a compound expression using logical operators, click And or Or.
(Optional) Click Add another override.
After you create your rule, click Save and Deploy or Save as Draft.
Click Next and review your changes.
This example routes certain content requests from our webserver to a different origin pool.
When incoming requests match:
|URI Query String||contains|