Giter Site home page Giter Site logo

fiddler-spotify-adblock's Introduction

Fiddler Spotify Adblock

Blocks Spotify ads using Fiddler

Since Spotify changed how their ads are delivered, simply blocking a few domains at DNS level is no longer enough. Ads will now load from spclient.wg.spotify.com, but if you block this domain e.g. with your HOSTS file, Spotify will no longer work correctly.

So how do we block ads?

Luckily, Spotify made it fairly simple to see how their ad-API works. We just have to block outgoing request to /ad-logic/ and /ads/ from the spclient.wg.spotify.com domain and let all the others pass.

And that's what we do.

How to install

First of all download and install Fiddler from here.

Then, there are two ways to install this script.

  1. Copy/Paste the script directly into Fiddler
  • Open Fiddler
  • Go to Rules->Costumize Rules (CTRL+R)
  • Locate the function static function OnBeforeRequest(oSession: Session)
  • Paste the script from Spotify-Adblock-Rule.txt at the end of this function
  • Clone this repository
  • Compile it
  • Maybe you need to change your Reference Path and/or the copy Path according to this
  • Restart Fiddler

Also make sure that you enabled HTTPS-Decryption in Tools->Options->HTTPS->Decrypt HTTPS traffic, otherwise it won't work!

Also

If you don't want to keep the Fiddler GUI open, install it as a service. Here's how to do that.

By the way: This method is of course not restricted to Fiddler. You just need to somehow block /ad-logic/ and /ads/ from spclient.wg.spotify.com. There are probably many ways to do that.

fiddler-spotify-adblock's People

Contributors

wintersim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fiddler-spotify-adblock's Issues

Does this method still work

Hello I'd been using this method for a very long time now, but it doesn't seem to work anymore as I didn't change anything on my end. My speculation is that Spotify is now enforcing certificate checks and an unsecure certificate causes the application to not work anymore? Am I thinking right? Does this method still work for you? And wanted to thank you for sharing this method in the first place, it's been a good run.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.