Next problem is, every update to the pihole docker will probably (?) remove these modifications, i need help out of the community to rewrite this script so that it can be run outside of the docker and just inserted. Thats why i have uploaded the youtube-ads.sh also, compare it to my version if it doenst work. The problem is that some characters from the install script dont get correct written to the youtube-ads.sh (thats the script that the cron entry runs every 15min. "-restart=unless-stopped" recommended (restarts if something fails)Īnd put it in your pihole directory (should be reachable via SMB from outside now)Ĭhmod +x /your/path/may/another/youtube-adblock-install.shįrom inside the container (i used docker exec pihole sh /etc/pihole/youtube-adblock-install.sh within the unraid terminal) "-env DNS1=192.168.0.1 -env DNS2="no"" optional, thats the upstream DNS. I want pihole to query my router when he cant find a IP to a domain name (like local DNS name resolution) If not set, will default to googles DNS Service. "-cap-add=NET_ADMIN" recommended (dont know) "v /mnt/user/appdata/pihole:/etc/pihole" this allows you to access the inside of the docker from outside (e.g. "-e WEBPASSWORD=" mean no password, you can add your own password if you like. You can skip 1.) if your pihole docker is already set up (you might need to change locations tho if you dont use the same official pihole docker then I!) This is all NOT my WORK (!!!), i just scratched it (and repaired it) from many many thanks to Joshua_joezoef_B_ZzO and all other in this thread who helped.īUT i need some help to finish it. This is neccessary because youtube changes his URLs so often. This means, you need to watch every (or visit) ad one time, and then after 15 minutes it should be automatic added to blocklist so you dont need to see it another time. I think it works by extracting ad urls out of the log files of pihole and then blocking it, while allowing normal videos to play. Im proud to present you a way to block ALL (more or less) ADs in youtube (like on your mobile youtube app - or TV app) with pihole docker.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |