
Pi-hole compatible versions can be found here: There you go, editing hosts file has taken effect. Make your changes take effect by flushing the DNS cache with the following command: Save the hosts file by pressing Control+x and answering y. Add your new mappings after the default mappings.* Edit the hosts file.The file contains some comments (lines starting with the # symbol), and some default hostname mappings (for example, 127.0.0.1 – local host). Type your domain user password when prompted. Open the hosts file by typing the following line in the terminal window: Open Applications > Utilities > Terminal. Open the hosts file in a text editor (you can use any text editor) by typing the following line: From Notepad, open the following file: c:\Windows\System32\Drivers\etc\hosts Make the necessary changes to the file. In the search results, right-click Notepad and select Run as administrator. When the traffic hits out local machine the call will fail and the tracking third party advertising will be skipped.ĭownload & open hosts file using your favorite text editor. In order to remove those pesky ads, all we need to do is setup out hosts file to override the DNS for Spotify's ad servers and redirect that traffic to our local machine. This trick is very simple, legal and works great. This will allow you to listen all day long on a free account without hearing a single ad or being tracked by third party. I will show you how to easily block the servers hosting Spotify ads on your Linux/Mac or Windows machine.
