kboghdady/youTube_ads_4_pi-hole

Public

YouTube ad-serving domain blocklist for Pi-hole (v5 & v6), AdGuard Home, pfBlockerNG and other DNS blockers - add one URL and block YouTube ads on every device on your network. Updated daily.

  • Stars2.7k+14 tuần này
  • Forks246
  • Watchers87
  • Issues1
  • Ngày tạo06/08/2018
  • Cập nhật gần nhất08/10/2026
  • Ngôn ngữShell
  • Giấy phép—
README.md22.1 KBRaw

🚫 YouTube Ads Blocklist for Pi-hole

A community-maintained list of YouTube ad-serving domains — add one link to Pi-hole and you're done.

Blocking status List updated Pi-hole v5 and v6

Last updated: Oct 7th 2026 - 15,925 domains in the list - works with Pi-hole v5 and v6, AdGuard Home, pfBlockerNG, Technitium and any other DNS blocker that accepts a hosts-style domain list.

PayPal Buy Me A Coffee


📋 Table of contents


⚡ Option 1 · Add the list to Pi-hole (recommended)

The easiest way — nothing to install. Pi-hole downloads the list itself and refreshes it every time gravity updates.

  1. Open the Pi-hole web interface → Lists (Pi-hole v6) or Group Management → Adlists (Pi-hole v5).
  2. Paste this address into the Address field and click Add:
    https://raw.githubusercontent.com/kboghdady/youTube_ads_4_pi-hole/refs/heads/master/youtubelist.txt
    
  3. Update gravity so the list takes effect: Tools → Update Gravity, or from the terminal:
    pihole -g

That's it. Pi-hole re-downloads the list on every gravity update (weekly by default — run pihole -g any time to get the latest version sooner). The published list already excludes everything in ignore.list, so videos keep playing.

💡 Using Pi-hole's default blocklist (StevenBlack hosts)? It blocks s.youtube.com, which breaks video playback. Allow it once:

pihole allow s.youtube.com      # Pi-hole v6
pihole -w s.youtube.com         # Pi-hole v5

🧰 Option 2 · Run the script

Prefer to have every domain as an exact entry in your denylist (visible under Domains in the web interface), add your own never-block entries, or pick up new domains every hour instead of at the next gravity update? Use youtube.sh.

Every time it runs it:

  1. downloads the latest black.list from this repo,
  2. drops everything that matches ignore.list (so videos keep playing),

Nội dung README thuộc về kboghdady và cộng đồng đóng góp, giấy phép Không có giấy phép. Nguồn: github.com/kboghdady/youTube_ads_4_pi-hole