Tuesday 19 January 2016

SpotifyKiller - Spotify Ad Blocker


Simple Ad Blocker for Spotify 



THIS PROGRAM DOESN'T WORK AT THE MOMENT!
Spotify is now distributing ads over their own servers, so 
there is no point in blocking the external ones. Maybe I will
come up with a new program that gets around that, but as I
see it, there is no way to exploit the firewall in any way to
achieve that. The next version will have to rely on a program
running in the background. This program is still available for
download, but it doesn't do you much good. Maybe if you
have a older version of spotify.


SpotifyKiller is a simple ad blocker for Spotify 
that automatically removes all visual and audible
Ad's from the free Spotify application on Windows.


The principle is very simple, SpotifyKiller blocks
all the ip's from the servers Spotify gets it's ad's from.
This is a pure windows application, and it uses the 
windows firewall, so the program does not have to
run in the background, you run it once, enable 
SpotifyKiller and as long as your Firewall is turned
on, you will never have to worry about Spotify ad's
again.












I wrote the program in C#, the source is provided in the
download section, as well as all the ip's it is blocking,
so you can manually insert it in to any firewall you wish.

The ip's are only blocked for the Spotify application.
Since they are using Google's ad services, globally 
blocking the Google ip's would block all the Google,
youtube, etc... servers, so if you insert it manually,
make sure that the firewall rule is specifically added
for Spotify.


After running SpotifyKiller restart Spotify
in order for it to work.

Download Spotify Ad Killer:




Twitter: @MinusTwenty9

Reinstalling SpotifyKiller:

If you have SpotifyKiller already installed and want
to update to a newer version, where ip-ranges have
been added, you need to reinstall the firewall exceptions:

1. Open the new version of SpotifyKiller
2. Click "Remove Spotify Killer", then the green banner
    beside the button should turn red.
3. Click "Add Spotify Killer", done.

License: GPL-3.0


IP-Ranges to block:

            "173.194.0.0-173.194.255.255","216.58.192.0-216.58.223.255",
            "74.125.0.0-74.125.255.255","31.13.76.0-31.13.76.255",
            "173.194.0.0-173.194.255.255","216.58.192.0-216.58.223.255",
            "74.125.0.0-74.125.255.255","2.16.4.0-2.16.4.255",
            "74.125.136.0-74.125.136.255","173.194.65.0-173.194.65.255",
            "23.235.43.0-23.235.43.255","194.68.165.0-194.68.165.255"

I am always happy about a comment :)


Disclaimer :
I do not take responsibility for any actions performed by or through any software or source code that is provided on this page. Use at your own risk!

43 comments:

  1. Works like a charm but it blocks a lot of album art thumbnails and artist profile pics and thumbnails in the related artist section etc... it's a bit annoying really. Thanks for this though, hopefully there's a fix?

    ReplyDelete
  2. Do you know what the problem might be?

    ReplyDelete
  3. Yes, the problem is that the range of servers i identified as ad sources include the server spotify gets it's cover art from, i am looking for the server and will update the program as soon as i have found it.

    ReplyDelete
    Replies
    1. Great! Thanks for the effort!

      Delete
    2. I have fixed the problem, all of the cover art is back and nothing else should be affected. If you find any problems, please let me know. The download link has been updated to v1.1 so you can just redownload the program. The problem was that one range of ips i had wrongly identified as ad servers is just for the cover art, i have also updated the ip range list under the download section. Thanks for the help.

      Delete
    3. No thank you! It Works perfectly.

      Delete
  4. Works great on Windows, thanks! Would you be able to create a similar solution for Mac? Or maybe identify the ranges to block?

    ReplyDelete
    Replies
    1. I don't own a Mac so i can't write the program, but maybe i get access to one, we will see. I have provided the range of ips to block under the download section.

      Delete
    2. I would second a mac version, that would be great. Or if anyone knows how to easily block the ip lists manually on a mac... I cant find anything I understand (I'm mostly a pc user)

      Delete
  5. Works great! Thanks a lot

    ReplyDelete
  6. Many thanks! You are a GENIUS!

    ReplyDelete
  7. Can you do the same for the android app?

    ReplyDelete
  8. Occasionally, some ads slip through. I run the app again and I clear the cache. This works for a couple of days, and then I have to repeat the cycle. Is there a way to fix this?

    ReplyDelete
  9. Do you have the IP Range to block for UK users?

    They seem to be in this hostname format:
    lon*-accesspoint-a*.ap.spotify.com

    ReplyDelete
  10. Is this relevant even if I don't live in the UK?

    ReplyDelete
    Replies
    1. Yes it should be, i live in Germany and it works. But if it isnt working, write me a command and tell me from witch country you are, then i can add the appropriate ip ranges.

      Delete
    2. This is not working in the UK or Ireland so can you please add the IP ranges for these and publish them?

      Delete
  11. I live in the United States. How do I add ip ranges?

    ReplyDelete
  12. It seems to no longer work as of yesterday, March 8th, in the US. Not sure if Spotify managed to get around it

    ReplyDelete
  13. I am attempting to add the ip ranges for all countries in witch it isn't sufficiently blocking the ads. But i need help doing so, if any one from the US, UK, etc, would be willing to help me sniff out the appropriate ip ranges with wireshark (or the packet sniffer you are familiar with), i could immediately add them to the program and publish them here on the blog. You don't need any expertise, i will walk you through every step. Please leave a comment or write me a mail at "minustwenty9@gmail.com".

    ReplyDelete
  14. Replies
    1. Yes, i just wrote you back. Thank you.

      Delete
  15. There is a blank ad block at the bottom sneaking through somehow is this the case for you as well?

    ReplyDelete
  16. The entire application seems to have failed for me. Ads are slipping through as if I don't have this installed.

    ReplyDelete
    Replies
    1. I am working on resolving the ad issues people
      in different countries are having. There should
      be an updated version soon.

      Delete
  17. I could help with U.S. IP ranges. I'll send an email.

    ReplyDelete
  18. I have added new IP-Ranges, thanks to adfafds (from Github). Hopefully SpotifyKiller should block all ads now, but if any slip through please leave a comment or write an email.

    ReplyDelete
    Replies
    1. Thanks, no audio ads but I still get the blank grey adbox at the bottom when you are on an artist page. Not always, I can sometimes close and reopen spotify until it isn't there but clearly there is something slipping through... Not the end of the world though. THanks for all your work!

      Delete
  19. These ranges are duplicated in the blog post above:
    "173.194.0.0-173.194.255.255","216.58.192.0-216.58.223.255","74.125.0.0-74.125.255.255

    ReplyDelete
  20. When will my Spotify three-month premium subscription run out?
    apple music to google music

    ReplyDelete
  21. downloaded a week ago, it blocked first two ads then stopped to work at all. maybe spotify can change servers if it recognizes the adblock program.

    ReplyDelete
  22. Crossing fingers for new version...
    (What does the "Kill Spotify" button do? Just what it says - close the application?)

    ReplyDelete
  23. Tested in Mexico, after a couple of minutes the Ads and Video Ads and Audio Ads starts to appears all over the Software. I wonder if there will be a next try. I cross fingers.

    ReplyDelete
  24. Is there any hope of a future release, or is this dead in the water? Thank you for the time it did work though! It was a fun time :)

    ReplyDelete
  25. Spotify is now distributing ads over there own servers, so blocking the ad servers ip's will not work any more. It could work by analyzing the packages that are send and then blocking the ad ones, but that would require a program running constantly in the background. I will look into it.
    And thank you all for your support.

    ReplyDelete
  26. I'm blocking IP addresses on Mac (using Little Snitch) and iPhone. All ads are successfully skipped.

    ReplyDelete
  27. I high appreciate this post. It’s hard to find the good from the bad sometimes, but I think you’ve nailed it! would you mind updating your blog with more information? AdLock Media

    ReplyDelete
  28. I've been using Spotti ad block while this is down.

    ReplyDelete
  29. 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 promo

    ReplyDelete
  30. Installed this and Spotify Web won't let me browse files. Desktop application will stop working at all. How can I uninstall this?

    ReplyDelete
  31. M Resort Casino & Spa - Joliet - KJT Hub
    M Resort Casino & 창원 출장안마 Spa in 아산 출장안마 Joliet, is 경산 출장안마 a hotel 안양 출장안마 located close to Lake Michigan and provides a sauna, a health club and a 평택 출장안마 fitness center. The hotel

    ReplyDelete