Everyone loves spotify, but are tired of it’s ads that keep coming between songs. Here is way to block ads through your host file be it Windows or Mac.
Host Content:
Add the above contents in your host file.
In Windows
Go to C:WindowsSystem32driversetc. Open the hosts file as administrator and add the above contents to it. (You could open notepad/Sublime/Atom as administrator and browse to open the hosts file.)*
The file file extension is associated with the Spotify, an audio, video streaming application for various platforms and on-line service on the Internet. The file file contains data cache stored on local storage of computer created by Spotify app. Note that this folder is hidden by default, so you have to use the direct link to reach the cache folder. (Alternatively, you can go into the Settings and turn on 'Show Hidden Files, Folders and Drives.' ) Delete all the files in this folder. Clear Spotify Cache and 'Local File' Cache on Mac. Open a terminal and type: sudo rm -fr /Users/USERNAME. Delete junk files on your Mac that might be messing with your apps and processes. Use a reliable tool such as Tweakbit MacRepair to completely clean up your Mac. Delete the Spotify app’s cache files. Spotify Click the install file to finish up. If your download didn't start, try again. Bring your music to mobile and tablet, too.
Note: Incase the newly added mappings are not working try restarting Windows to take effect
In Mac
To find the hosts file, open Finder and, in Finder’s menu bar, select Go > Go to Folder. In the box, type the following location and press Return.
To open it, simply double-click and it will display the file’s contents in TextEdit (or the text editor of your choice). Add the host content in it and save.
Spotify Cache Location Mac
In most cases, the new mapping should work immediately, but if you’re not seeing the correct behavior, you may need to flush your DNS cache. For OS X Lion and OS X Mountain Lion, open Terminal and use the following command. Note that you’ll need to enter your admin password to execute it:
Spotify Cache Folder Mac Pro
For OS X Mavericks +, use this command instead:
You could also launchTerminal, type the following command, and press Return. As with allsudocommands, you’ll need to also enter your admin password to execute it:
When you’re done making changes, press Control+X to exit the editor, Y to save, and Return to overwrite the existing hosts file. As mentioned earlier, make sure to flush your DNS cache if you notice that your new mappings aren’t working properly.