Today I will show you how to easily block the servers hosting Spotify ads on your Linux/Mac or Windows machine. This will allow you to listen all day long on a free account without hearing a single ad. This trick is very simple, legal and works great. Spotify may catch on and find some way to stop this from working but, as of today (13 March 2019) it works swimmingly.
UPDATE 20-02-19: List updated thanks to Johan, ad blocking works again. Somehow Spotify found cheap way to block music if you block they DNS ad services by pinging it back from client. Note to update your HOSTS entries.
UPDATE 10-03-19: Huge DNS list update, added lots of new advertising entries.
Blocking Ad Server
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. When the traffic hits out local machine the call will fail and the ad will be skipped. Follow the steps below to add the entries needed.