spotify-adblock

spotify-adblock blocks requests to listed ad URLs in the Linux Spotify client.

github.com/abba23/spotify-adblock
spotify-adblock homepage screenshot

About spotify-adblock

spotify-adblock is a Linux tool that blocks advertising in the Spotify desktop client by wrapping cef_urlrequest_create and blocking requests to URLs on a denylist. It is built from source and installed system-wide, then used by launching Spotify with the LD_PRELOAD environment variable pointing at the built shared library.

The allowlist and denylist are configured in a config.toml file, normally at /etc/spotify-adblock/config.toml, which a user-specific version can override. It does not work with the Snap Spotify package, and it may not work with the Flatpak package depending on the versions of the system's shared libraries; the Debian Spotify package is described as recommended.

Key features

  • Blocks Spotify ad requests by wrapping cef_urlrequest_create against a URL denylist
  • Allowlist and denylist edited in a config.toml file
  • User config overrides the system config at /etc/spotify-adblock
  • Launched by setting LD_PRELOAD to the built shared library
  • Can be added to a desktop launcher through a .desktop file
  • Built from source with Git, Make, Rust and Cargo
Best for: Linux users running the Spotify desktop client outside the Snap package who want ad requests blocked and are willing to build the tool from source.
Good for
  • Blocking behavior is configurable through allowlist and denylist files
  • Includes build, install, Flatpak and uninstall instructions in the README
  • Desktop file examples allow launching from an application launcher
Watch out for
  • Does not work with the Snap Spotify package
  • May not work with the Flatpak package depending on the system's shared library versions
  • Requires building and installing from source with Rust and Cargo

spotify-adblock at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Platforms
Linux
Open source
Not stated
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

spotify-adblock alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

ugrep

ugrep.com

ugrep searches files by pattern as a compatible grep replacement, with interactive and fuzzy search modes listed in its documentation.

Popular in Linux Apps

Well-known listings from the same topic.

All 222

spotify-adblock FAQ

Does it work with the Snap or Flatpak Spotify packages?
It does not work with the Snap package. It may not work with the Flatpak package depending on the versions of the system's shared libraries.
How are blocked and allowed URLs configured?
Through an allowlist and denylist in a config file at /etc/spotify-adblock/config.toml, which can be overridden by a user-specific version at $XDG_CONFIG_HOME/spotify-adblock/config.toml or $HOME/.config/spotify-adblock/config.toml.
What is needed to build it?
Git, Make, and Rust with Cargo; the repository is cloned and then built with make.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing