Conghao97's picture tcftrees's picture
ProgramGen release
d086025
|
Raw History Blame Contribute Delete
789 Bytes

Domains file format

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

# 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.