Skip to content

YTadsblocker is a script to block all the Youtube's advertisement in Pi-Hole

License

Notifications You must be signed in to change notification settings

tjengbudi/ytadsblocker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ko-fi

Pi-Hole - Youtube Ads Blocker

This script will block all the Youtube's advertisement in your network. It must be used with Pi-Hole.

Installation

  • Download the script

    git clone https://github.com/deividgdt/ytadsblocker.git
  • Move to the directory

    cd ytadsblocker
  • Make the script executable

    chmod a+x ytadsblocker.sh
  • Execute the script as root with the option: install

    ./ytadsblocker.sh install
  • Start the service and that's it

    systemctl start ytadsblocker

Installation: Pihole container

If you are going to use the script in a Pihole Docker Container, you must install and start the script as follow:

  • Go into the Pihole container

    wget https://raw.githubusercontent.com/deividgdt/ytadsblocker/master/ytadsblocker.sh
  • Give it execution permission

    chmod +x ytadsblocker
  • Install and start the script

    ./ytadsblocker.sh install
    ./ytadsblocker.sh start &

Legacy: prior to Pihole 5.0

  • Just download the legacy version and follow the same previous steps, changing the name from ytadsblocker to ytadsblocker_legacy.

More info

  • Version 3.0 just works with Pihole 5.0 or newer. If you're running a lower version of Pihole, you must upgrade it.
  • Instalación del script en mi blog (ES)
  • Installation of the script in my blog (EN)

About

YTadsblocker is a script to block all the Youtube's advertisement in Pi-Hole

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%