Computing

Block any Spotify Ads without upgrading

Submitted by sysmo, , Thread ID: 113898

Thread Closed
Fulltime Member
Level:
2
Reputation:
78
Posts:
1.34K
Likes:
148
Credits:
15
30-12-2018, 02:07 AM
This post was last modified: 30-12-2018, 02:07 AM by sysmo
#1
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 Spotifys 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. I mostly use terminal in Linux. Add the following lines to the bottom of your hosts file and save your hosts file (Look below How To in your favour OS):
RAW File: https://pastebin.com/raw/9M5ALu8n

Quote:# Block Spotify Ads
127.0.0.1 media-match.com
127.0.0.1 adclick.g.doublecklick.net
127.0.0.1 http://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 http://www.audio2.spotify.com
127.0.0.1 http://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 http://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

For Windows 10 & 8
  1. Press the Windows key.
  2. Type Notepad in the search field.
  3. In the search results, right-click Notepad and select Run as administrator.
  4. From Notepad, open the following file: c:\Windows\System32\Drivers\etc\hosts
  5. Make the necessary changes to the file.
  6. Click File > Save to save your changes.
For Linux
  1. Open a terminal window.
  2. Open the hosts file in a text editor (you can use any text editor) by typing the following line:
    sudo nano /etc/hosts
For Mac OS X 10.6 through 10.12
  1. Open Applications > Utilities > Terminal.
  2. Open the hosts file by typing the following line in the terminal window:
    sudo nano /private/etc/hosts
  3. Type your domain user password when prompted.
  4. 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). Add your new mappings after the default mappings.
  5. Save the hosts file by pressing Control+x and answering y.
  6. Make your changes take effect by flushing the DNS cache with the following command:
    dscacheutil -flushcache

There you go, editing hosts file has taken effect.


Source: https://blogpirate.net/2017/08/08/how-to...x-and-osx/

?? ?

RE: Block any Spotify Ads without upgrading

SkyCod
nulledbb.com/profile/3747/
Level:
0
Reputation:
78
Posts:
1.15K
Likes:
165
Credits:
2.57K
30-12-2018, 02:42 AM
#2
I've been looking for this for a while now, thank you for the share! Keep going.

RE: Block any Spotify Ads without upgrading

Fulltime Member
Level:
2
Reputation:
78
Posts:
1.34K
Likes:
148
Credits:
15
OP
30-12-2018, 02:45 AM
#3
30-12-2018, 02:42 AM
SkyCod Wrote:
I've been looking for this for a while now, thank you for the share! Keep going.

Ah you know, the Spotify ad itself motivated me to search for this. It was annoying af and I got angry at this one woman telling me I have to buy Spotify Premium. So i thought fuck you and here we are...

?? ?


Users browsing this thread: 1 Guest(s)