# Proxy Router Routing Rules: Direct, Block and Presets

> For AI tools: this is the Markdown copy of https://xproxy.io/document/proxy-router-routing. Every XProxy guide has one at its URL + `.md`; the index of all guides is https://xproxy.io/llms.txt.

Choose which sites skip the proxy or are blocked, for all devices or one. Block presets for ads and telemetry, and how to save proxy data.

Routing rules decide which sites skip the proxy and which are blocked, for all devices or for one. The main reason to use them is to **save proxy data**: heavy traffic that does not need a proxy goes out directly. Everything else keeps going through the device's proxy.

**You need:** the dashboard open and at least one device with a proxy ([Devices](https://xproxy.io/document/proxy-router-devices)).

## Go direct and Block

- **Go direct**: the site is reached from the router's own internet connection instead of the proxy. The site sees **your real IP**, not the proxy's.
- **Block**: the connection is dropped. The app on the device sees a failed connection.

**Step 1: Open Routing**

Click **Routing** in the menu. Two boxes sit side by side: **Go direct** and **Block**. The **Save &amp; apply** button stays grey until you change something. The grey text under the boxes lists what you can type.

> These rules apply to every device that has a proxy. Devices without a proxy are not affected.

**Step 2: Type your rules**

Type one rule per line, for example `analytics.example.com` in **Block**. A line that starts with `#` is a note and does nothing. The router checks every line while you type: a line it does not accept gets a red message under the box, and nothing is saved while one is red.

> Everything that matches no rule goes through the device’s proxy.

**Step 3: Save and apply**

Click **Save &amp; apply**. You read **Rules applied. The proxy service restarted for every device: connections pause for a few seconds.** Devices with a proxy stay protected during the restart: they are offline, not direct.

> Every save restarts the proxy service for all devices. Change several things, then save once.

### What can I type in a rule?

| Line | What it matches |
| --- | --- |
| `example.com` | The site and all its subdomains. |
| `*.example.com` | The subdomains of the site. |
| `https://example.com/page` | A URL: only the domain counts, because the path is encrypted. A note tells you the path was ignored. |
| `1.2.3.4` | One IP address. |
| `10.0.0.0/8` | A whole network. |
| `domain:example.com` | Same as the plain site name. |
| `full:www.example.com` | Exactly this name, no subdomains. |
| `keyword:tracker` | Any name that contains the word. |
| `regexp:^ads[0-9]+\.example\.com$` | A pattern, for experts. |
| `geosite:category-ads-all` | A ready-made group of sites. The group must exist on the router. |
| `geoip:us` | A group of addresses by country. The group must exist on the router. |
| `# a note` | A comment. Ignored. |

**A “direct” rule that matches every site is refused.** That includes `0.0.0.0/0`, any network larger than /8, a pattern that matches everything and a one-letter keyword. It would show your real IP everywhere.

### In what order are rules checked?

1. The device's own rules (in its panel, see [Rules for one device](#per-device)).
2. The router-wide **Go direct** and **Block** lists on this page.
3. The block presets you turned on.
4. Everything else goes through the device's proxy.

The first rule that matches wins.

**FakeDNS and IP rules.** A device on FakeDNS (the default) is seen by the router by site name, not by address, so a rule written as an IP address, a network or `geoip:` may not match its connections. Name rules always do. This is safe: the traffic simply stays on the proxy. Use name rules, or set that device's DNS to **DoH via proxy** (see [DNS mode](https://xproxy.io/document/proxy-router-devices#dns-mode)).

## Block presets

Presets are ready-made block lists. All three are **off** until you turn them on, and they apply to every device with a proxy.

| Preset | What it blocks | Good to know |
| --- | --- | --- |
| **Ads and trackers** | Blocks ad and tracking networks. | Blocks only what the list holds. If the list is missing from the router, the preset says **Not available** and blocks nothing: update the router. |
| **Anti-fraud scripts** | Blocks device-fingerprint and bot-detection vendors (30 domains). | **Blocking these does not hide the device.** Sites then decide without their data and often ask for more checks or decline payments. Turn on only if you know you need it. |
| **OS telemetry** | Blocks the diagnostics uploads of Windows, Android/Firebase, Xiaomi, Samsung and Apple (52 domains). | Push messages, updates and connectivity checks are never blocked. |

The **Memory** line shows how much memory the router has free. Each device that has its own rules runs its own copy of the lists, so many presets and many rules use memory. If the router runs low, a yellow warning appears: turn on fewer presets or remove rules. Click **Save &amp; apply** after changing a preset.

## Rules for one device

One device needs an exception? Open it on [Devices](https://xproxy.io/document/proxy-router-devices) and scroll to **Routing rules for this device**. It is the same editor, for that device only.

- They are checked **before** the router-wide rules, and they stay with the device (by its hardware address) when its IP changes.
- Click **Save &amp; apply** in the panel. Empty boxes and no presets remove the device's rules.
- If the router does not know the device's hardware address yet, the panel says so. Wait until the device has been seen on the network.

## Save proxy data with Go direct

Mobile and other metered proxies charge or limit data. Heavy traffic that does not need a proxy can leave through the router's own connection with a **Go direct** rule.

| Heavy traffic | Example domains |
| --- | --- |
| **Operating system updates** | windowsupdate.com, delivery.mp.microsoft.com, swcdn.apple.com, swscan.apple.com |
| **Browser and Android updates, downloads** | dl.google.com, gvt1.com |
| **App store pictures** | mzstatic.com (icons and screenshots, not the store login) |
| **Video and streaming media** | the media domain of your streaming service, never its account or login domain |
| **Big downloads** | the file host you download from |

**A direct site sees your real IP, and links your devices.** Every device that uses the rule shows the same IP to that site. So never send direct the site or app whose account you manage, or its login, payment and anti-fraud domains. Use Go direct only for heavy traffic from services that have nothing to do with your accounts.

How to find the heavy sites: on [Devices](https://xproxy.io/document/proxy-router-devices) the **Traffic** column shows which device uses the most. Then turn on **Record connections** in [Logs](https://xproxy.io/document/proxy-router-logs#connections), filter by that device and see which sites repeat while it downloads. Turn the log off again afterwards.

## FAQ

### Do my devices go offline when I save?

For a few seconds: the proxy service restarts. Devices with a proxy stay protected during that time. They are offline, not direct.

### The router got slow after I turned on presets

Look at the **Memory** line, then turn off presets you do not need or remove rules.

### My IP rule does not match a device

The device is on FakeDNS, so the router sees names, not addresses. Use name rules, or set that device's DNS to DoH via proxy.

### “Some lines were not accepted; nothing was changed.”

Read the red message under the box: it names the line and the reason. Fix or remove that line and save again.

## What next?

See what the router blocked and which sites your devices opened.

[Logs →](https://xproxy.io/document/proxy-router-logs) [Protection →](https://xproxy.io/document/proxy-router-protection)

---

Source: https://xproxy.io/document/proxy-router-routing
