pi-hole:block_lists:regex_blocks
Table of Contents
Pi-Hole - Block Lists - Regex Blocks
Navigate to Blacklist.
Add a new blacklisted domain or regex filter.
(\.|^)netflix\.com$
NOTE: Change type to Regex blacklist.
Regex filters provided by MMotti
^ad([sxv]?[0-9]*|system)[_.-]([^.[:space:]]+\.){1,}|[_.-]ad([sxv]?[0-9]*|system)[_.-] ^(.+[_.-])?adse?rv(er?|ice)?s?[0-9]*[_.-] ^(.+[_.-])?telemetry[_.-] ^adim(age|g)s?[0-9]*[_.-] ^adtrack(er|ing)?[0-9]*[_.-] ^advert(s|is(ing|ements?))?[0-9]*[_.-] ^aff(iliat(es?|ion))?[_.-] ^analytics?[_.-] ^banners?[_.-] ^beacons?[0-9]*[_.-] ^count(ers?)?[0-9]*[_.-] ^mads\. ^pixels?[-.] ^stat(s|istics)?[0-9]*[_.-]
NOTE:
Installation:
- To apply these to your Pi-hole there is a Python (3.6+) script to automate this process.
- Please see https://github.com/mmotti/pihole-regex.
N.B - False Positives:
- Due to the restrictive nature of these regexps, a small number of false positives may be encountered for domain names that are similar to ad-serving / tracking domains.
- The following whitelist could be used to cater for some known cases: https://raw.githubusercontent.com/mmotti/pihole-regex/master/whitelist.list.
References
pi-hole/block_lists/regex_blocks.txt · Last modified: 2022/07/01 20:54 by 185.192.71.3