Denylist, allowlist and rewrites
Three pages hold your own rules: Denylist, Allowlist and Rewrites. Each list takes up to 1,000 entries. You can switch off an entry without deleting it.
Rule syntax
Section titled “Rule syntax”Denylist and allowlist entries are domain patterns:
| Pattern | Matches | Does not match |
|---|---|---|
example.com |
example.com and every name under it (ads.example.com, a.b.example.com) |
notexample.com |
=example.com |
exactly example.com |
www.example.com |
*.example.com |
names under example.com (ads.example.com) |
example.com itself |
A bare pattern (a pattern with no = or *. prefix) matches the name and
its subdomains. The reason is that the resolver checks the queried name and
then each parent. For example, it checks ads.example.com against
ads.example.com, then example.com, then com.
Denylist
Section titled “Denylist”The denylist blocks the names you list, for every device on the profile.
The block answer carries EDE (Extended DNS Error) 17 and the extra text
denylist: <pattern>. On the Logs page, you can add a name to the
denylist with one click.
Allowlist
Section titled “Allowlist”The allowlist lets the names you list through, even when a blocklist, a parental category or service, or a security list otherwise blocks them. Use it sparingly, for false positives (names blocked by mistake). opdns does not check an allowlisted domain for malware or phishing. SafeSearch and YouTube restricted mode still apply to allowlisted names.
Rewrites
Section titled “Rewrites”A rewrite answers a name with records that you choose, instead of resolving it:
| Type | Value | Use |
|---|---|---|
A |
an IPv4 address | point nas.home.example at 192.168.1.20 |
AAAA |
an IPv6 address | the same for IPv6 |
CNAME |
another name | alias one name to another |
TXT |
text | verification records on a private name |
The name of a rewrite is exact (nas.home.example) or a wildcard
(*.home.example). A wildcard matches every name under home.example, but
not home.example itself. The resolver checks rewrites first, before the
allowlist. An exact name wins over a wildcard. The most specific wildcard
wins over a broader one.
The list starts with the highest precedence. The first match decides:
- Rewrites
- Allowlist
- Denylist
- Security lists
- Parental controls
- Blocklists
There is one exception: SafeSearch and YouTube restricted mode also apply to allowlisted names. Operator-level blocks come before all of these. Policy order gives the full rules.