AnanthVivekanand / spotify-adblock

Blocking ads on desktop Spotify, crazy code ahead
GNU General Public License v3.0
269 stars 32 forks source link

Use as proxy for all applications on VPN #64

Open pickaxe828 opened 2 years ago

pickaxe828 commented 2 years ago

I want to host this on my VPS with my self-hosted outline VPN, so I hope I can also block the ads when connected to the VPN. But is that possible? Will if affect the other applications for example, Google? Also, do I need a reverse proxy/ gateway for port forwarding?

P.S.: After testing and lurking through the source code, I found that it blocks all the requests out of the whitelist image

AnanthVivekanand commented 2 years ago

Yes, the current proxy will block anything not in the whitelist, so you cannot pipe all your VPN traffic through the proxy. A solution could be to modify this repo to start a SOCKS5 proxy, host that on your VPS, and configure Spotify to use the proxy on the VPS. It would still be encrypted like a VPN.

pickaxe828 commented 2 years ago

@AnanthVivekanand oh sorry, I forgot to mention that I want to do this on iPad Spotify, and the proxy in the app is not configurable. I tried to configure my iPad WiFi connection proxy to my VPS and it also blocks the audio as well. I think I'll try to fork and modify this to make it work on both iPad and Desktops.