Skip to content

Instantly share code, notes, and snippets.

@RobyRew
Last active January 15, 2023 08:54
Show Gist options
  • Save RobyRew/58cf3a46a0015fda3fc716278e705907 to your computer and use it in GitHub Desktop.
Save RobyRew/58cf3a46a0015fda3fc716278e705907 to your computer and use it in GitHub Desktop.
Spotify Methods to Block Ads
Official SubReddit: https://www.reddit.com/r/Spotifyhosts/
FOLLOW DOWN
| |
| |
\ | / \ | /
\|/ \|/
@aman-github-account
Copy link

is there an updated little snitch file for Big Sur? I would buy it if I was using it for more than just Spotify.

@rublev
Copy link

rublev commented Jan 26, 2021

This is the worst but I also can't justify $10/mo just for music which should be free. Ridiculous.

Here is a Little Snitch Backup:
https://drive.google.com/open?id=17vLEuSPQHVvwLjNlBbq-wQkzXasUonXu

(the file its the one with the extension .xpl)

Thanks. Eventually got it working then spotify started playing ads again. Back to youtube mixes.

@alfosno
Copy link

alfosno commented May 13, 2021

hi, i found out 2 new directions to ban, and my list stay like this:

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 pagead2.googlesyndication.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 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 cs283.wpc.teliasoneracdn.net
127.0.0.1 cs126.wpc.teliasoneracdn.net
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 googlehosted.l.googleusercontent.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 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 audio-ec.spotify.com
127.0.0.1 sto3.spotify.com
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 desktop.spotify.com
127.0.0.1 heads-ec.spotify.com
127.0.0.1 open.spotify.com
127.0.0.1 www.spotify.facebook-ads.adtz.com
127.0.0.1 www.spotify.pinterest.adtz.com
127.0.0.1 play.google.com
127.0.0.1 mad41s13-in-f5.1e100.net

The only mod i have done to ban ads is modifying my hosts file. Im using rn duckduckgo to navigate so i didnt know if redirecting play.google.com to loopback ip causes any problem.

@El-Wumbus
Copy link

Is it possible to use pihole or something similar instead of a firewall?

@RobyRew
Copy link
Author

RobyRew commented Jun 28, 2021

Is it possible to use pihole or something similar instead of a firewall?

No, because spotify use 2 subaplications for music, and both use sp.client… host but you need to block that host only for 1 app

@antoniocosta
Copy link

Here's what seems to be working consistently for me (Mac) for a Spotify Ad-free experience ...

  1. To use on the browser through https://open.spotify.com, just install https://ublockorigin.com.
  2. To use macOS app, install v1.1.9.393 available here: https://spotify.en.uptodown.com/mac/versions (higher versions will have parts not loading or will not load anything at all). Then in LittleSnitch or Lulu (free and the one I use: https://objective-see.com/products/lulu.html) create a rule to BLOCK ALL connections for 'Spotify Helper' and another to ALLOW ALL connections for Spotify app itself.

Everything should work with no audio or visual ads. Let me know if you try.

@cmcgheit
Copy link

cmcgheit commented Dec 31, 2022

@antoniocosta

Here's what seems to be working consistently for me (Mac) for a Spotify Ad-free experience ...

1. To use on the browser through https://open.spotify.com, just install https://ublockorigin.com.

2. To use macOS app, install v1.1.9.393 available here: https://spotify.en.uptodown.com/mac/versions (higher versions will have parts not loading or will not load anything at all). Then in LittleSnitch or Lulu (free and the one I use: https://objective-see.com/products/lulu.html) create a rule to BLOCK ALL connections for 'Spotify Helper' and another to ALLOW ALL connections for Spotify app itself.

Everything should work with no audio or visual ads. Let me know if you try.

Just FYI, there is no version v.1.1.9.393 listed on that spotify older versions site, only 1.1.93.896. I used the 1.1.93.896 version for about 3 songs and it cut off. I had Spotify Helper blocked. The music appears to play, but no sound. If anyone has that version in dmg that would be very appreciated!

@antoniocosta
Copy link

@cmcgheit
That is not the version I mentioned. Yes there IS a version 1.1.9.393. Mind the dots! I did NOT write 1.1.93.93 but 1.1.9.393). It is this one:
https://spotify.en.uptodown.com/mac/download/2022323
Keep in mind it's an old version... but it works. Anything newer than that I could NOT get to work reliably.

@cmcgheit
Copy link

@cmcgheit That is not the version I mentioned. Yes there IS a version 1.1.9.393. Mind the dots! I did NOT write 1.1.93.93 but 1.1.9.393). It is this one: https://spotify.en.uptodown.com/mac/download/2022323 Keep in mind it's an old version... but it works. Anything newer than that I could NOT get to work reliably.

Thanks for replying. I will try it and comment here with any issues. Right now an older spotify web version is working in the browser for me with no ads (ublock)

@antoniocosta
Copy link

NP. Yes, https://open.spotify.com should indeed just work with https://ublockorigin.com installed.
Let me know if you end up trying the macOS app mentioned. Old but works consistently. At least here.

@EmileDiaz
Copy link

EmileDiaz commented Jan 13, 2023 via email

@mapper14
Copy link

mapper14 commented Jan 13, 2023 via email

@RobyRew
Copy link
Author

RobyRew commented Jan 15, 2023

@everyone @ALL
I want to inform everyone that hosts method is now obsolete, is now replaced by most secure and safe xpui.spa modification.
SpotX Org is responsible of modifying it and remove all audio/visual/text ads from Windows/macOS/Linux

SpotX is OpenSource on Github, safe and free for everyone.
https://github.com/SpotX-CLI

Im mod on their Discord server, so if you have any question or need help:
https://discord.gg/Pj5tHTTX

Cheers 😉

older host modifications should be removed in order for SpotX to properly work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment