Block Ads on Spotify for Macbook

In this post I will detail how to block ads on Spotify for Macbook using etc hosts file. Perfectly legal way to block ads.

Open the following -

sudo vi /private/etc/hosts

Add following lines. 

0.0.0.0 pubads.g.doubleclick.net
0.0.0.0 securepubads.g.doubleclick.net
0.0.0.0 www.googletagservices.com
0.0.0.0 gads.pubmatic.com
0.0.0.0 ads.pubmatic.com
0.0.0.0 spclient.wg.spotify.com
Save the file

Enjoy your day!

If you would like to treat me for a coffee - venmo me @ankitshah009