Block Ads Spotify Desktop

Email: hightekgrow@gmail.com
Website: hightekco.com
Reddit: reddit.com/r/hightek/
Support HighTek: patreon.com/hightek
Donations: paypal.me/atarimaster


[ Intro ]

Today I will be teaching you how to easily block the servers hosting Spotify ads on your 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 (08/05/2017) it works swimmingly.

[ 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.


  • Open your hosts file using your favorite text editor.  If you are using windows this life is located at "c:\Windows\System32\Drivers\etc\hosts".  If you are using Linux or Mac it is located at "/etc/hosts"
  • Add the following lines to the bottom of your hosts file:

# Block Spotify Ads

127.0.0.1 media-match.com
127.0.0.1 adclick.g.doublecklick.net
127.0.0.1 www.googleadservices.com
127.0.0.1 open.spotify.com
127.0.0.1 pagead2.googlesyndication.com
127.0.0.1 desktop.spotify.com
127.0.0.1 googleads.g.doubleclick.net
127.0.0.1 pubads.g.doubleclick.net
127.0.0.1 securepubads.g.doubleclick.net
127.0.0.1 audio2.spotify.com
127.0.0.1 http://audio2.spotify.com
127.0.0.1 www.audio2.spotify.com
127.0.0.1 www.omaze.com
127.0.0.1 omaze.com
127.0.0.1 bounceexchange.com
127.0.0.1 core.insightexpressai.com
127.0.0.1 content.bitsontherun.com
127.0.0.1 s0.2mdn.net
127.0.0.1 v.jwpcdn.com
127.0.0.1 d2gi7ultltnc2u.cloudfront.net
127.0.0.1 crashdump.spotify.com
127.0.0.1 adeventtracker.spotify.com
127.0.0.1 log.spotify.com
127.0.0.1 analytics.spotify.com
127.0.0.1 ads-fa.spotify.com
127.0.0.1 cs283.wpc.teliasoneracdn.net
127.0.0.1 audio-ec.spotify.com
127.0.0.1 cs126.wpc.teliasoneracdn.net
127.0.0.1 heads-ec.spotify.com
127.0.0.1 u.scdn.co
127.0.0.1 cs126.wpc.edgecastcdn.net
127.0.0.1 pagead46.l.doubleclick.net
127.0.0.1 pagead.l.doubleclick.net
127.0.0.1 video-ad-stats.googlesyndication.com
127.0.0.1 pagead-googlehosted.l.google.com
127.0.0.1 partnerad.l.doubleclick.net
127.0.0.1 prod.spotify.map.fastlylb.net
127.0.0.1 adserver.adtechus.com
127.0.0.1 na.gmtdmp.com
127.0.0.1 anycast.pixel.adsafeprotected.com
127.0.0.1 ads.pubmatic.com
127.0.0.1 idsync-ext.rlcdn.com
127.0.0.1 www.googletagservices.com
127.0.0.1 sto3.spotify.com
127.0.0.1 spclient.wg.spotify.com
127.0.0.1 d361oi6ppvq2ym.cloudfront.net
127.0.0.1 gads.pubmatic.com
127.0.0.1 ads-west-colo.adsymptotic.com
127.0.0.1 geo3.ggpht.com
127.0.0.1 showads33000.pubmatic.com

127.0.0.1 spclient.wg.spotify.com

  • Save your hosts file and restart your desktop spotify client
You should now be able to listen to all the music you want without every hearing another advertisment.


[ Why This Works ]

To understand how this works we first need to understand the role DNS plays in our operating system.  When we are communicating with other services on the web everything is referenced by IP address.  For instance, when I tell my browser to go to google.com, it has to know where to find google.com.  This is where DNS comes into play.  DNS short for Domain Name Servers is a service that translates human readable, easy to remember domain names into IP addresses that other machines can communicate with.  Whenever you add an entry to your local hosts file you are overriding the DNS entry locally for whatever domain you enter.  For instance, if I add the line "127.0.0.1 test.local" to my hosts file, whenever i type "test.local/" into my browser, it will see the entry in my hosts file and use the IP 127.0.0.1(locahost) rather than reaching out to a DNS server to try and resolve that address.  Where this comes into play for us is overriding Spotify ad servers.  When we add an entry for each server that hosts ads for Spotify and points them to our local machine, we are ensuring that whenever Spotify reaches out for an add it hits our local machine instead of the real ad server and gets an error. WhenSpotifyy detects this error it stops trying to attempt to run the ad and the ad is skipped.


[ Wrap Up ]

Hopefully after reading this you have a better understanding of how DNS works, how to override it and how to never have to listen to another spotify ad again.  As always I love feedback so leave a comment down below if you have anything you would like to add.

Comments

  1. Why viewers still use to read news papers when in this technological world the whole thing
    is existing on web?

    ReplyDelete
  2. I really appreciate the kind of topics you post here. Thanks for sharing us a great information that is actually helpful. Good day! playlist

    ReplyDelete
  3. We target spotify premium users in this spotify promotion. So you will get premium plays. Premium plays have better royalties,better safe. This is best service we introduced to the market. Most of time time you will get full song play and 1 stream from 1 spotify user that will help to increase monthly listeners organically.Spotify promotion

    ReplyDelete
  4. It proved to be Very helpful to me and I am sure to all the commentators here! Spotify Promotion Packages

    ReplyDelete
  5. Biography
    I'm a high-energy 70-year-old who loves to write. Back when I was a kid growing up in the Deep South, we used to sit under grandmother's dining room table, sharing ghost stories after dinner. That got me hooked on storytelling. As a Presbyterian Minister and community building consultant, my work brings me in contact with community leaders who are mobilizing others to make a positive difference in so many communities around the United States and the world. Building Communities of Hope highlights some of these incredible people and amazing communities. People who are community builders build upon community assets, bring others to the table and create networks of compassion.Organizations that serve communities, like healthcare systems and schools, can be anchors in communities. At my age, I'm finding it increasingly important to support people and organizations that overcome obstacles to create long-lasting positive change. We can overcome challenges, inequities, and disasters when we mobilize for collective impact. It's a wild and wonderful ride!
    communities of hope

    ReplyDelete

Post a Comment

Popular Posts