{"id":15037117,"url":"https://github.com/x0uid/spotifyadblock","last_synced_at":"2025-04-08T09:09:39.831Z","repository":{"id":40726404,"uuid":"197055528","full_name":"x0uid/SpotifyAdBlock","owner":"x0uid","description":"Protect your privacy by blocking all annoying Spotify ads \u0026 analytics in Linux, OSX and Windows with hosts file.","archived":false,"fork":false,"pushed_at":"2024-06-02T07:44:19.000Z","size":316,"stargazers_count":1253,"open_issues_count":26,"forks_count":281,"subscribers_count":43,"default_branch":"master","last_synced_at":"2024-10-29T15:39:27.766Z","etag":null,"topics":["linux","local-machine","privacy","spotify","whitelist"],"latest_commit_sha":null,"homepage":"https://twitter.com/0xUID","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/x0uid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-15T18:57:21.000Z","updated_at":"2024-10-27T13:40:23.000Z","dependencies_parsed_at":"2024-01-14T03:45:30.039Z","dependency_job_id":"f7f75565-4ce9-4732-9bd9-170157ef9027","html_url":"https://github.com/x0uid/SpotifyAdBlock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x0uid%2FSpotifyAdBlock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x0uid%2FSpotifyAdBlock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x0uid%2FSpotifyAdBlock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x0uid%2FSpotifyAdBlock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x0uid","download_url":"https://codeload.github.com/x0uid/SpotifyAdBlock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247809964,"owners_count":20999816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["linux","local-machine","privacy","spotify","whitelist"],"created_at":"2024-09-24T20:33:25.957Z","updated_at":"2025-04-08T09:09:39.786Z","avatar_url":"https://github.com/x0uid.png","language":null,"readme":"I will show you how to easily block the servers hosting Spotify ads on your Linux, Mac, or Windows machine. This will allow you to listen all day long on a free account without hearing a single ad or being tracked by third parties. This trick is very simple, legal, and works great.\n\nTo remove those pesky ads, all we need to do is set up our hosts file to override the DNS for Spotify's ad servers and redirect that traffic to our local machine.\n\nWhen the traffic hits our local machine, the call will fail, and the third-party tracking and advertising will be skipped.\n\n**Test Functionality:**\nOpen Spotify and ensure it functions as expected. Some ad and telemetry blocking might cause issues with specific features, so ensure essential functions are not disrupted.\n\n**Regular Updates:**\nKeep your hosts file updated with the latest entries from hosts file. Regular updates ensure ongoing privacy protection as new tracking domains emerge.\n\nDownload \u0026 open [**hosts**](https://github.com/x0uid/SpotifyAdBlock/blob/master/hosts) file using your favorite text editor. \n\n**For Windows 11, 10 \u0026 8:**\n\n*Press the Windows key.*\n*Type Notepad in the search field.*\n*In the search results, right-click Notepad and select Run as administrator.*\n*From Notepad, open the following file: c:\\Windows\\System32\\Drivers\\etc\\hosts*\n*Make the necessary changes to the file. Click File \u003e Save to save your changes.*\n\n**For Linux:**\n\n*Open a terminal window.*\n*Open the hosts file in a text editor (you can use any text editor) by typing the following line:*\n\n*sudo nano /etc/hosts*\n\n**For Mac OS X 10.6 through 10.12:**\n\n*Open Applications \u003e Utilities \u003e Terminal.*\n*Open the hosts file by typing the following line in the terminal window:*\n\n*sudo nano /private/etc/hosts*\n\n*Type your domain user password when prompted.*\n*Edit the hosts file.The file contains some comments (lines starting with the # symbol), and some default hostname mappings* (for example, 127.0.0.1 – local host). Add your new mappings after the default mappings.*\n*Save the hosts file by pressing Control+x and answering y.*\n*Make your changes take effect by flushing the DNS cache with the following command:*\n\n*dscacheutil -flushcache*\n\n*There you go, editing hosts file has taken effect.*\n\nIt is advisable to clear Spotify cache afterwards in order for the changes to take effect.\n\n\n**Pi-hole compatible versions can be found here:**\n\nBlocklist: https://github.com/x0uid/SpotifyAdBlock/blob/master/SpotifyBlocklist.txt  \nWhitelist: https://gist.github.com/captainhook/9eb4132d6e58888e37c6bc6c73dd4e60  \nBash script to import whitelist: https://gist.github.com/captainhook/f4ccfc82dc6696270d62b54b13f871c4  \nCredits to: [captainhook](https://github.com/captainhook)\n\n## Buy me a coffee\nI have maintained this ad-blocking list because I am passionate about this, and i think u have all the right to protect your privacy while enjoying music. \nDonations are one of the many ways to support what I do.\n\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/anis)\n","funding_links":["https://paypal.me/anis"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx0uid%2Fspotifyadblock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx0uid%2Fspotifyadblock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx0uid%2Fspotifyadblock/lists"}