User Tools

Site Tools


pi-hole:block_lists:regex_blocks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
pi-hole:block_lists:regex_blocks [2020/11/26 09:55] – created peterpi-hole:block_lists:regex_blocks [2022/07/01 20:54] (current) 185.192.71.3
Line 12: Line 12:
 **NOTE:**  Change type to **Regex blacklist**. **NOTE:**  Change type to **Regex blacklist**.
 </WRAP> </WRAP>
 +
 +----
 +
 +===== Regex filters provided by MMotti =====
 +
 +<code bash>
 +^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]*[_.-]
 +</code>
 +
 +<WRAP info>
 +**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.
 +
 +</WRAP>
 +
 +----
 +
 +===== References =====
 +
 +https://github.com/mmotti/pihole-regex/blob/master/regex.list
 +
 +https://github.com/mmotti/pihole-regex/blob/master/whitelist.list
 +
 +https://raw.githubusercontent.com/mmotti/pihole-regex/master/regex.list
 +
 +https://raw.githubusercontent.com/mmotti/pihole-regex/master/whitelist.list
  
pi-hole/block_lists/regex_blocks.1606384524.txt.gz · Last modified: 2020/11/26 09:55 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki