pihole

How to block Youtube ads in Pi-hole

  • SSH to Pi-hole (How to install Pi-hole on Ubuntu)

  • Run “curl -s “https://api.hackertarget.com/hostsearch/?q=googlevideo.com” | awk -F, ‘NR>1 {print $1}’ | sudo tee /home/kayals/youtube-ads.txt”

  • Copy all sub-domains from youtube-ads.txt and paste it to Blacklist page (https://yourip/admin/list.php?l=black) and click exact

  • ENJOY !

In my next post I will show how to create a custom shell script to update Pi-hole server.