Spotify Ad Blocker
Version 1.0
What is Spotify Ad Blocker?
Spotify Ad Blocker allows you to run a proxy server that you port Spotify's traffic through. In doing this, you are able to block some or all sites that Spotify is trying to connect with. By default, the whitelist only allows Spotify's image sites, music streaming, and reconnecting to Spotify. The blacklist, (while not necessary when using whitelist), blocks known ad sites Spotify will try to connect to.
How can I use Spotify Ad Blocker?
Setting up Spotify Ad Blocker is easy.
- Goto the release page and download the latest release.
-
Startup Spotify Ad Blocker
Install the Titanium Root Certificate Authority (for the proxy)
Open Spotify and goto Preferences > Proxy settings (under advnace settings) and change the proxy settings to match the ones in Spotify Ad Blocker (by default: Type: HTTP | Host: 127.0.0.1 | Port: 80).
Restart Spotify
- And you're done!
Please note Spotify Ad Blocker needs administrator privileges.
Spotify Ad Blocker Features
Fully customizable
Spotify Ad Blocker allows you to change almost any setting you could think about.
Monitor Spotify connections
You can monitor connections made by Spotify by easily opening the console and viewing them.
Material design
Spotify Ad Blocker was built utilizing a material desgin look to be more user friendly.
Out of the way
You can change the settings to allow starting up to the system tray to just run and forget about Spotify Ad Blocker.
Not only for Spotify
You can use this to tunnel any program you want through this proxy to manage and monitor their connections. (But if you are using this as a system-wide ad blocker, let me teach you about a little thing called a host file. It'll work better as a system-wide ad blocker)
Common errors
Why are some ads playing?
This could be due to the configuration of Spotify Ad Blocker or Spotify has the ads cached
- Try enabling only white listing and disabling the custom block message.
- Try clearing the cache folder.
- Try redownloading the blacklist and whitelist
Spotify is not connecting
This is usually because Spotify Ad Blocker is not running (and Spotify is set to connect to it) or a misconfiguration in the proxy settings.
- Ensure that the proxy settings in Spotify match with those in Spotify Ad Blocker
- Make sure Spotify Ad Blocker and the proxy is running -duh If you are going to turn off the proxy or Spotify Ad Blocker, make sure you disable connecting to a proxy in Spotify.
I changed settings about the proxy, but they're not working
Try restarting the proxy, and if that doesn't work restart Spotify Ad Blocker.
What is "System.FormatException: An invaild IP address was specified"?
This is when the IP setting is misconfigured. Change the proxy ip to 127.0.0.1
Known sites
Ad sites:
audio-sp-ash.spotify.com
audio-fa.spotify.com
audio-sp.spotify.com
audio-ec.spotify.com
heads-fab.spotify.com
ads.yahoo.com
agkn.com
rlcdn.com
adnxs.com
doubleclick.net
fastclick.net
pubmatic.com
googlesyndication.com
googleadservices.com
googletagservices.com
cloudfront.net
ravenjs.com
gvt1.com
Good sites:
scdn.co
fbcdn.net
apresolve.spotify.com
Editing the white list or the black list
The white/black list works by checking one line at a time and seeing if the connection Spotify is attempting contains that line. On the white list, if the connection does not contain any of the lines, then it is blocked. The black list, however, if the connection contains any of the lines, then it is blocked.
For example, if a line in the whitelist was spotify.com
, any connection going to spotify.com
would be allowed. (Like something.anotherthing.spotify.com/beepbeep/boopboop/thingy
).
However, if that line was in the blacklist file, it would block any connection going to spotify.com
.
They can also work on a wildcard bases. So if the whitelist had a line that contained .com
, all .com
sites would be allowed.
Building and compiling
- You'll need NuGet and VisualStudio
- Open
SpotifyAdBlocker.sln
- Build (
CTRL + Shift + B
) - Copy allow files from /SpotifyAdBlocker/include/ to /SpotifyAdBlocker/bin/Debug/ (where the .exe is located)
- Open
That's it