Absolutely no need to do kernel level packet filtering for this. You can use the absurdly easy hostfile approach, or a simple self-hosted DNS server. This looks entirely LLM generated as well.
Also... who the hell tries to make changes to a user's sudoers file from their install script? This is an awful project.
The great thing about AI coding is that you never have to learn enough judgment or context to know if something should be written a certain way or not!
Can you share a pre made hosts blocklist that is regularly updated & works on Spotify? The ones I've come across are all dated or still let ads through.
Do you mean the github project linked in this post? I'm looking for a hosts based Spotify blocklist that would work on Windows HOSTS or a Pi-hole or something like that.
I got AI-generated vibes from the banner image, which surprised me because I wouldn't expect someone to generate something so trivial.
So I investigated, lining up the real Spotify logo in GIMP - it doesn't match up, the details are different!
But then I checked the image metadata:
`Actions Software Agent Name : GPT-4o, OpenAI API`
Doh, I should've saved time and checked that first. TIL OpenAI explicitly watermarks their output images via metadata. It even has c2pa signatures (which I didn't bother trying to verify)
After that hint, I thought I'd give the code a quick audit. The install script adds sudoers rules to allow ebaf executable to be run with no password[0] (and also to `pkill -P` any PPID).
The ebaf executable checks the current directory by default, to look for the ebpf code to load[1].
So, running the install script this allows any ebpf code to be loaded into the kernel without a sudo password. You probably don't want this! (I'm pretty sure that'd be enough for a root LPE)
Further, the ebaf executable writes logs to a file named `/tmp/ebaf-stats.dat` [2]. An unprivileged user could put a symlink here, causing the destination file to get clobbered.
It also re-resolves all domain names every 600 seconds. Given that there are over a thousand domains listed, that's quite a lot of DNS traffic! [3]
Also, the "web dashboard" claims to listen on localhost, but it actually listens on INADDR_ANY [4]
Effectively, not a lot. eBPF does have the capabilities to do more than a regular firewall, but this just seems to do an IP lookup in a blacklist file.
If you buy a fancy network card from a company like Nvidia, you could run the eBPF program on the card itself and the kernel wouldn't even see the packet come in. This use case doesn't seem like it'd need that kind of performance tweak, though.
It's useful as a fun project to experiment with eBPF, though!
Do you have a model number for an Nvidia offload card? I thought that only Netronome did them and that they were kinda long in the tooth now. I’d love to get my hands on one.
However, details are very hard to come by. Maybe the "offload" they offer isn't actually offloading anything and I've just misunderstood them when I last heard about them (and kernel XDP really is that fast).
It's one program that blocks everything everywhere, and doesn't rely on specific firewall configurations or DNS resolvers to be able to block requests.
And because it uses eBPF, technically (it probably doesn't support this yet but it could) you could block requests at the application level, even if it uses TLS, before it ever even gets to a resolver or firewall.
Taking that fact even further, this means that not only well-behaved resolv.conf-reading applications are blocked, but programs that use their own DoH/DoT could be as well. Your browser wouldn't even need an ad-blocker extension. Your local resolver and your VPN-specific resolver both continue to work normally while also blocking what you want.
> getting underneath TLS and DoH (which have both been effectively weaponized at this point).
Only to the extent you are running software you don't trust. If you're running a user agent (e.g. a browser), rather than an app, you can easily do full ad-blocking much more effectively.
Calling TLS and DoH a weapon because apps you don't trust can use them to maintain integrity of their connections is like calling secure coding practices a weapon because they make jailbreaking harder.
Yeah I'm just going to have to completely disagree at a militant volume. Keeping the contents of connections made on my behalf secure from my own inspection is fucked up and I want harm to befall those that do so.
I'm not a little angry about surveillance capitalism, I'm start a war angry about it.
I agree with your frustration, and just fundamentally disagree with your attribution of blame. Security is a feature. Software that works against its user is an awful thing. Security features that help secure software for the benefit of users do not become bad just because they also help secure software that works against the user. The solution there is not running software that works against its user.
Eliminating buffer overruns across the entire industry will also make it harder to e.g. jailbreak game consoles or iOS devices. That doesn't make it bad to eliminate buffer overruns; the problem is with devices requiring jailbreaking in the first place, rather than serving their users.
If you believe that TLS and DoH do more harm than good, you may be in a bubble where e.g. things like pihole are common, rather than being obscure tools used by highly technical users who tolerate and debug breakage.
> We’re not here to pirate. We’re here to opt out.
Then "opt out" by not using the product? No one has a right to use Spotify. If you don't like the terms, don't use the service.
I'll never get why people smart enough to build something technically impressive like this feel the need to throw these completely childish pseudo-rationalizations out there. Yeah, you are stealing actually.. Is it that big of a deal? Nope. But it still is what it is.
Do they think this kind of false-moralizing will protect them from DMCA takedowns or something?
These people are largely theoretical - I've heard this many times, but I've never seen it.
Regardless, I don't necessarily think piracy is immoral. There's a lot of situations where it's the only viable option. However, we should acknowledge that most people are pirating because they are cheap. Which, to me, isn't a sustainable model for anyone. Pirates want music, too, and if they keep this up then they lose as well.
Spotify also doesn't have a right to unmodified client systems.
If their server sends you bits, why should you delete the bits? If you accidentally sent them the wrong bits, do you think they'd be nice enough to delete them? Pre-emptively before receiving any notification from you?
Terms are irrelevant and in most cases have no legal power at all. Fighting back with technical power (as YouTube has done) is fair game though.
The golden rule of capitalism is to do everything in your physical ability to improve your individual situation at the expense of others. Feel free to come to an agreement with Spotify, that neither of you will do capitalism against the other. Until then, you should probably play the game or you will lose by default. Spotify isn't that important but you should definitely get into the mindset of playing the hand you're dealt.
You're "stealing" (if you can even call it that) from Spotify, not artists. As of July 2025, Spotify has a market cap of $145.48B USD. This makes Spotify the world's 118th most valuable company by market cap. They'll be fine. No one has a right to revenue or profit.
Mental models differ, it is what it is. Stealing from artists is of course always poor form, don't do that.
Curious where exactly do you draw your line when it comes to who it's ok to steal from and who it's not? Do you have a formula or something?
Or is just an arbitrary bar of convenience that you set case-by-case depending on how you want to feel about it?
> No one has a right to revenue or profit.
I certainly didn't imply anything this universal. But as a society we do have laws, and if you engage with Spotify's product, you agree to their terms, and in that very specific context they do have a legal right to see their terms held up.
Now.. will they go after you for bypassing their ads? Probably not. Will your actions have a negative impact on them? Again, nope.. I definitely agree with you that they'll be fine..
But then the people who make these products that facilitate this kind of activity should just have the conviction to stand by their actions and say "yep we're helping you steal from Spotify".
Just own it, especially if your justification is "it doesn't matter anyways".
"Can this multinational company afford it?" and "Will this incur a felony or similar judicial record?" is my bar, broadly speaking. Never take from someone who cannot afford it, or where it would be material to them. Bits, never fiat. Laws are just words, how you decide which to ignore is a function of potential legal exposure and your belief system.
I pay for Spotify because I’m lazy and can afford it, but rip whatever I want from YouTube, for example. I own it, I do not care. Why would one care what random strangers think of them?
Strange argument. The laws bind economically to extract (“these bits are gated, you must pay or go to jail for not paying for them” in this context), they are not affording what you describe. Ignoring or evading them is where the security, comfort, and privilege come from. Freedom is being ungovernable.
“Laws are threats made by the dominant socioeconomic-ethnic group in a given nation. It’s just the promise of violence that’s enacted and the police are basically an occupying army.” is a fun quote on this. Laws don’t protect me, they protect those with property and capital, as well as large companies that have limited to no liability. I protect me.
I'm curious about it's eBPF coexistence capabilities. If you are running an XDR like Crowdstrike, this might interfere with their eBPF sensors for Linux desktops.
no advertiser has the right to tell me how to process their advertising data. hypothetically, once it's in my network, i can do whatever i please with it.
Capitalism is about everyone doing everything they can to improve their own personal situation. If you let companies do everything they can to improve their situation, while you also do everything you can to improve companies' situations, you're not doing very well at capitalism.
That doesn’t make any sense that’s like saying you should be allowed to trick your bank into giving you free money because you processed their website “in your network”
what? not at all. nobody thinks its bad that you're allowed to skip ads on podcasts by fast-forwarding (outside of advertisers). the ad has been delivered to my device by the advertiser. it's my choice to ingest it into my physical/mental body, or not.
Kernel level packet filtering to avoid Spotify ads is about the same level of mental gymnastics as the GPT-generated “we’re not pirates” argument in their README.
While Spotify is obviously an immoral company, you, the person reading this, are not entitled to free 24/7 cloud-streamed music on demand. They are a business and they don’t owe that service to you on principle.
If you don’t like them as a company, there’s way to purchase the music directly (remember how we all used the iTunes Store back in the day) and there are other streaming services whose morals you might find more acceptable.
To be clear, I’m not making some grand “piracy is evil” argument, but I’m saying that to publish software enabling piracy with the justification that a business’ free service is not good enough value for you is a bit out there.
>you, the person reading this, are not entitled to free 24/7 cloud-streamed music on demand.
I took it anyway. I have a few terabytes of flac that I stream through Plex when I feel like it. I dare anyone to stop me. Pay hard drive manufacturers, not IP companies.
Neither is Spotify owed anything from you. They aren't owed money, unless you agreed to pay them money (actually agreed, not clickwrap). They aren't owed ad views, because clickwrap agreements to watch ads generally don't actually have any legal force. And if they think they do, let them sue you and find out. You don't owe them advance compliance according to what would benefit them the most, but they benefit greatly from you thinking you do.
This applies to a lot of things, not Spotify in particular.
> Kernel level packet filtering to avoid Spotify ads is about the same level of mental gymnastics as the GPT-generated “we’re not pirates” argument in their README.
This jumble of sentences stuck out to me as logically incoherent, but not necessarily LLM-generated. I guess I need to update my mental model a bit to account for more things being being LLM-generated.
Also... who the hell tries to make changes to a user's sudoers file from their install script? This is an awful project.