File size: 789 Bytes
d086025
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Domains file format

`--domains` reads a plain text file, one hostname per line. Everything not listed
is forwarded untouched at full speed.

```text
# Comments start with '#'. Blank lines are ignored.

# discord.com      matches discord.com and every subdomain
# =discord.com     matches discord.com only
# *.discord.com    same as discord.com

discord.com
=twitter.com
```

Matching rules:

- A bare name such as `discord.com` matches `discord.com` and all subdomains
  (`cdn.discord.com`, `a.b.discord.com`).
- A name prefixed with `=` matches only that exact host.
- `*.example.com` and `.example.com` behave the same as a bare `example.com`.
- Matching is case-insensitive and ignores a trailing dot on the queried host.

Example: [domains.example.txt](assets/domains.example.txt).