Spotify Ad Blocker
## 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](https://github.com/watsuprico/Spotify-Ad-Blocker/releases/) and [download the latest release](https://github.com/watsuprico/Spotify-Ad-Blocker/releases/latest/). ![image](http://i.imgur.com/QZPSZsw.png) - Startup Spotify Ad Blocker - Install the Titanium Root Certificate Authority (for the proxy) ![cert](https://cloud.githubusercontent.com/assets/10912095/15103907/d46d8dd2-157e-11e6-9557-b2bafae100b3.png)
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).
And you're done!
Please note Spotify Ad Blocker needs administrator privileges.
Spotify Ad Blocker Features
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.
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)
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
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
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
However, if that line was in the blacklist file, it would block any connection going to
They can also work on a wildcard bases. So if the whitelist had a line that contained
.com sites would be allowed.
Building and compiling
- You'll need NuGet and VisualStudio
- Build (
CTRL + Shift + B)
- Copy allow files from /SpotifyAdBlocker/include/ to /SpotifyAdBlocker/bin/Debug/ (where the .exe is located)