---
description: Learn about custom load balancing rules in this guide.
title: Custom load balancing rules
image: https://developers.cloudflare.com/og-docs.png
---

[Skip to content](#main-content)

> Documentation Index  
> Fetch the complete documentation index at: https://developers.cloudflare.com/learning-paths/llms.txt  
> Use this file to discover all available pages before exploring further.

# Custom load balancing rules

Last updated Aug 24, 2026|Copy as Markdown|[View as Markdown](https://e8aee267.previews.developers.cloudflare.com/learning-paths/load-balancing/planning/custom-rules/index.md)|[Agent setup](https://e8aee267.previews.developers.cloudflare.com/agent-setup/)

Custom load balancing rules let you customize the behavior of your load balancer based on the characteristics of a request.

For example, you can use URL-based routing, or create a rule that selects a pool based on the URI path of an HTTP request.

For more details, refer to [Custom load balancing rules](https://e8aee267.previews.developers.cloudflare.com/load-balancing/additional-options/load-balancing-rules/).

Was this helpful?

YesNo

## On this page

[![](https://e8aee267.previews.developers.cloudflare.com/_astro/logo.te5VL_aD.svg)Docs](https://e8aee267.previews.developers.cloudflare.com/)

```json
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/learning-paths/load-balancing/planning/custom-rules/#page","headline":"Custom load balancing rules · Cloudflare Learning Paths","description":"Learn about custom load balancing rules in this guide.","url":"https://developers.cloudflare.com/learning-paths/load-balancing/planning/custom-rules/","inLanguage":"en","image":"https://developers.cloudflare.com/og-docs.png","dateModified":"2026-08-24","publisher":{"@type":"Organization","name":"Cloudflare","url":"https://www.cloudflare.com/"},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
```
