| 1 |
|
| 2 |
########################### |
| 3 |
# Allowlist # |
| 4 |
########################### |
| 5 |
|
| 6 |
## Rules for allowing queries based on name, one per line |
| 7 |
## |
| 8 |
## Example of valid patterns: |
| 9 |
## |
| 10 |
## ads.* | matches anything with an "ads." prefix |
| 11 |
## *.example.com | matches example.com and all names within that zone such as www.example.com |
| 12 |
## example.com | identical to the above |
| 13 |
## =example.com | allows example.com but not *.example.com |
| 14 |
## [a-z0-9\-_]*.example.com | allows *.example.com but not example.com |
| 15 |
## *sex* | matches any name containing that substring |
| 16 |
## ads[0-9]* | matches "ads" followed by a digit and anything else |
| 17 |
## ads*.example* | *, ? and [] can be used anywhere, but prefixes/suffixes are faster |
| 18 |
|
| 19 |
|
| 20 |
# That one may be blocked due to 'tracker' being in the name. |
| 21 |
tracker.debian.org |
| 22 |
|
| 23 |
# That one may be blocked due to 'ads' being in the name. |
| 24 |
# However, blocking it prevents all sponsored links from the Google |
| 25 |
# search engine from being opened. |
| 26 |
googleadservices.com |
| 27 |
|
| 28 |
|
| 29 |
## Time-based rules |
| 30 |
|
| 31 |
# *.youtube.* @time-to-play |
| 32 |
# facebook.com @play |