Skip to content
Proyek

Tentang

The list of blocklist, whitelists, and regex expressions I use for Pi-hole.

Pembelajaran dan pendidikan

Cara angka ini diukur

335 bintang22 Fork +1 dalam 24 jam

Pertumbuhan bintang terukur

dalam 24 jam
+1
dalam 7 hari
+2
dalam 15 hari
+2
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

My Pi-hole Dashboard Stats

My Personal Pi-hole LoL (List of Lists)

This is not a blocklist.

Rather, it's a list of the blocklists, whitelists, and regular expressions I use to configure my Pi-hole servers. A "list of lists," if you will. Feel free to browse through my choices, research them, then decide which to add to your own. Or not. This combination works extremely well for me and I hope it can also work well for you.

"Which blocklists do you use?" is a common recurring question on Reddit and other Pi-hole discussion areas. Another purpose of this repo is to have somewhere quick and easy to point to as an answer to that question.

My goal isn't to have as high a number of blocked hosts as possible. Instead, it's to optimize performance while still passing the "family test" where people aren't constantly complaining about the Pi-hole blocking them.

The Lists

  • blocklists.txt - The blocklists I use to limit ads and tracking on my networks
  • whitelists.txt - The whitelists I use to allow access to specific services
  • regex.txt - The regular expressions I use to both block and allow traffic, based on patterns in their name (including wildcard domains)

How / Why I Chose These Lists

This particular selection of lists and regex statements are the result of years of trial and error across multiple residential networks. My goal isn't to have as high a number of blocked hosts as possible. Instead, the goal is optimize performance while still passing the "family test" where people aren't constantly complaining about the Pi-hole blocking them.

I also do some automated analysis of a larger number of blocklists using a Python script I wrote called blocklist-insight. It uses the Greedy Set-Cover Solver to recommend the smallest number of lists you can use to achieve the maximum coverage of blocked hosts. The results I used for my current list recommendations are included here as optimal_lists.md.

  • Blocklists: The "heavy lifting" is performed by well-known blocklists from StevenBlack, Hagezi, UBlockOrigin, URLHaus, OISD, and others. I've chosen lists with a slightly higher chance of false positives, but then mitigate the impact with some whitelisting. I feed a larger number of well-known blocklists (approximately 20) into a tool I developed

  • Whitelists: So far, I'm only using one whitelist: Hagezi's affiliate & tracking referral links that enables links in emails and search results, etc. No need to include this list if those types of referral links aren't important in your household.

  • Regex: My regular expressions list is based on Mmotti's Pi-hole Regex and is divided into three sections: REGEX DENY, REGEX ALLOW, and EXACT ALLOW. The REGEX DENY section uses regular expressions to block tracking domains that include words like 'beacon" or "counter" or "affiliates." The original version of this list also blocked domains including "trackers" and "traffic" but that blocked playback of a number of podcasts so those two entries are commented out. The entries in the REGEX ALLOW and the EXACT ALLOW sections are individually commented to explain their use. Most are in place to reduce false positives from the DENY regex entries, but also to whitelist some specific domains that my household accesses frequently.

How to Use

The blocklists and whitelists can be entered one at a time in the Subscribed lists group management section of your Pi-hole interface.

One of the blocklists I recommmend, ThreatFox, requires a free Authorization Key from abuse.ch. You'll need to include your unique AuthKey when you enter the blocklist URL in your Pi-hole UI.

The regular expressions must be entered individually in the Domain management section. I recommend entering comments for each list where possible so you can refer to them later.

Use at your own risk.

More information on the Pi-hole application and how to use these files at: https://pi-hole.net/

Jelajahi proyek terkait

Memuat…