Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.
/ Spotify-ad-hosts Public archive

Ad-Block hosts file for Spotify - Easily remove all Advertisements from the Desktop App

License

Notifications You must be signed in to change notification settings

An0n-00/Spotify-ad-hosts

Repository files navigation

Spotify Ad and Tracker Blocking Hosts (Deprecated)

Warning

Important Notice: This repository is no longer maintained and the Spotify ad-blocking method described here is no longer functional.

Alternative Solution

For those seeking to block ads on Spotify, I recommend using SpotifyAB. This repository provides an updated and effective method for blocking ads on Spotify by injecting JavaScript code into the Spotify desktop app. More information and instructions can be found on the SpotifyAB repository.


So, what is this repository about?

This repository was created to provide a simple and effective method for blocking ads and trackers on Spotify. By modifying your system's hosts file, you can redirect Spotify ad servers to prevent ads from being served during music playback. However, because Spotify has implemented new ad-serving techniques, this method is no longer effective in blocking ads. This repository is now deprecated and no longer maintained. A good thing though, is that the hosts file blocks trackers and other unwanted connections.

How to Block Trackers on Spotify

To block trackers effectively, you can modify your system's hosts file to redirect Spotify tracking servers to a local or null IP address. This will prevent Spotify from collecting data on your listening habits and other activities. Here's how you can block trackers on Spotify:

  1. Download Hosts File: Obtain a custom hosts file designed for ad and tracker blocking. You can find various hosts files on GitHub or through internet searches.

  2. Update Hosts File: Edit your system's hosts file to include the entries from the custom hosts file you downloaded. This will redirect known ad and tracker domains to a local or null IP address.

    • Windows: Modify C:\Windows\System32\drivers\etc\hosts.
    • Mac/Linux: Edit /etc/hosts file.
  3. Apply Changes: Save the hosts file and restart your system to apply the changes.

Disclaimer

This repository is provided for educational purposes only and does not guarantee complete ad-blocking or protection against tracking. Use at your own risk. The authors of this repository are not responsible for any damages or issues that may arise from using this method.