[{"data":1,"prerenderedAt":381},["ShallowReactive",2],{"article-block-ads-on-spotify-app":3,"authors":365},{"id":4,"title":5,"author":6,"body":7,"date":355,"description":356,"extension":357,"meta":358,"navigation":359,"path":360,"seo":361,"stem":362,"thumbnail":363,"__hash__":364},"article\u002Farticle\u002Fblock-ads-on-spotify-app.md","Block ads on Spotify App","ashwin",{"type":8,"value":9,"toc":353},"minimark",[10,14,20,206,209,214,221,234,239,246,255,258,261,280,283,309,319,334,349],[11,12,13],"p",{},"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.",[11,15,16],{},[17,18,19],"strong",{},"Host Content:",[21,22,27],"pre",{"className":23,"code":24,"language":25,"meta":26,"style":26},"language-bash shiki shiki-themes material-theme-darker","# — Spotify Ad Block\n127.0.0.1 media-match.com\n127.0.0.1 adclick.g.doublecklick.net\n127.0.0.1 googleads.g.doubleclick.net\n127.0.0.1 http:\u002F\u002Fwww.googleadservices.com\n127.0.0.1 pagead2.googlesyndication.com\n127.0.0.1 desktop.spotify.com\n127.0.0.1 pubads.g.doubleclick.net\n127.0.0.1 audio2.spotify.com\n# —\n127.0.0.1 crashdump.spotify.com\n127.0.0.1 adeventtracker.spotify.com\n127.0.0.1 log.spotify.com\n127.0.0.1 analytics.spotify.com\n127.0.0.1 ads-fa.spotify.com\n127.0.0.1 audio-ec.spotify.com\n127.0.0.1 heads-ec.spotify.com\n127.0.0.1 prod.spotify.map.fastlylb.net\n127.0.0.1 sto3.spotify.com\n127.0.0.1 spclient.wg.spotify.com\n127.0.0.1 upgrade.spotify.com\n# — Spotify Ads Block End\n","bash","",[28,29,30,39,50,58,66,74,82,90,98,106,112,120,128,136,144,152,160,168,176,184,192,200],"code",{"__ignoreMap":26},[31,32,35],"span",{"class":33,"line":34},"line",1,[31,36,38],{"class":37},"smLnX","# — Spotify Ad Block\n",[31,40,42,46],{"class":33,"line":41},2,[31,43,45],{"class":44},"s5Dmg","127.0.0.1",[31,47,49],{"class":48},"sfyAc"," media-match.com\n",[31,51,53,55],{"class":33,"line":52},3,[31,54,45],{"class":44},[31,56,57],{"class":48}," adclick.g.doublecklick.net\n",[31,59,61,63],{"class":33,"line":60},4,[31,62,45],{"class":44},[31,64,65],{"class":48}," googleads.g.doubleclick.net\n",[31,67,69,71],{"class":33,"line":68},5,[31,70,45],{"class":44},[31,72,73],{"class":48}," http:\u002F\u002Fwww.googleadservices.com\n",[31,75,77,79],{"class":33,"line":76},6,[31,78,45],{"class":44},[31,80,81],{"class":48}," pagead2.googlesyndication.com\n",[31,83,85,87],{"class":33,"line":84},7,[31,86,45],{"class":44},[31,88,89],{"class":48}," desktop.spotify.com\n",[31,91,93,95],{"class":33,"line":92},8,[31,94,45],{"class":44},[31,96,97],{"class":48}," pubads.g.doubleclick.net\n",[31,99,101,103],{"class":33,"line":100},9,[31,102,45],{"class":44},[31,104,105],{"class":48}," audio2.spotify.com\n",[31,107,109],{"class":33,"line":108},10,[31,110,111],{"class":37},"# —\n",[31,113,115,117],{"class":33,"line":114},11,[31,116,45],{"class":44},[31,118,119],{"class":48}," crashdump.spotify.com\n",[31,121,123,125],{"class":33,"line":122},12,[31,124,45],{"class":44},[31,126,127],{"class":48}," adeventtracker.spotify.com\n",[31,129,131,133],{"class":33,"line":130},13,[31,132,45],{"class":44},[31,134,135],{"class":48}," log.spotify.com\n",[31,137,139,141],{"class":33,"line":138},14,[31,140,45],{"class":44},[31,142,143],{"class":48}," analytics.spotify.com\n",[31,145,147,149],{"class":33,"line":146},15,[31,148,45],{"class":44},[31,150,151],{"class":48}," ads-fa.spotify.com\n",[31,153,155,157],{"class":33,"line":154},16,[31,156,45],{"class":44},[31,158,159],{"class":48}," audio-ec.spotify.com\n",[31,161,163,165],{"class":33,"line":162},17,[31,164,45],{"class":44},[31,166,167],{"class":48}," heads-ec.spotify.com\n",[31,169,171,173],{"class":33,"line":170},18,[31,172,45],{"class":44},[31,174,175],{"class":48}," prod.spotify.map.fastlylb.net\n",[31,177,179,181],{"class":33,"line":178},19,[31,180,45],{"class":44},[31,182,183],{"class":48}," sto3.spotify.com\n",[31,185,187,189],{"class":33,"line":186},20,[31,188,45],{"class":44},[31,190,191],{"class":48}," spclient.wg.spotify.com\n",[31,193,195,197],{"class":33,"line":194},21,[31,196,45],{"class":44},[31,198,199],{"class":48}," upgrade.spotify.com\n",[31,201,203],{"class":33,"line":202},22,[31,204,205],{"class":37},"# — Spotify Ads Block End\n",[11,207,208],{},"Add the above contents in your host file.",[11,210,211],{},[17,212,213],{},"In Windows",[11,215,216,217,220],{},"Go to ",[28,218,219],{},"C:\\Windows\\System32\\drivers\\etc",". Open the hosts file as administrator and add the above contents to it. (You could open notepad\u002FSublime\u002FAtom as administrator and browse to open the hosts file.)*",[222,223,224],"blockquote",{},[11,225,226,229,230,233],{},[17,227,228],{},"Note:"," ",[231,232],"br",{},"\nIncase the newly added mappings are not working try restarting Windows to take effect",[11,235,236],{},[17,237,238],{},"In Mac",[11,240,241,242,245],{},"To find the hosts file, open Finder and, in Finder’s menu bar, select ",[17,243,244],{},"Go > Go to Folder",". In the box, type the following location and press Return.",[21,247,249],{"className":23,"code":248,"language":25,"meta":26,"style":26},"\u002Fprivate\u002Fetc\u002Fhosts\n",[28,250,251],{"__ignoreMap":26},[31,252,253],{"class":33,"line":34},[31,254,248],{"class":44},[11,256,257],{},"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.",[11,259,260],{},"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:",[21,262,264],{"className":23,"code":263,"language":25,"meta":26,"style":26},"sudo killall -HUP mDNSResponder\n",[28,265,266],{"__ignoreMap":26},[31,267,268,271,274,277],{"class":33,"line":34},[31,269,270],{"class":44},"sudo",[31,272,273],{"class":48}," killall",[31,275,276],{"class":48}," -HUP",[31,278,279],{"class":48}," mDNSResponder\n",[11,281,282],{},"For OS X Mavericks +, use this command instead:",[21,284,286],{"className":23,"code":285,"language":25,"meta":26,"style":26},"dscacheutil -flushcache; sudo killall -HUP mDNSResponder\n",[28,287,288],{"__ignoreMap":26},[31,289,290,293,296,300,303,305,307],{"class":33,"line":34},[31,291,292],{"class":44},"dscacheutil",[31,294,295],{"class":48}," -flushcache",[31,297,299],{"class":298},"sAklC",";",[31,301,302],{"class":44}," sudo",[31,304,273],{"class":48},[31,306,276],{"class":48},[31,308,279],{"class":48},[11,310,311,312,315,316,318],{},"You could also launch",[17,313,314],{},"Terminal",", type the following command, and press Return. As with all",[17,317,270],{},"commands, you’ll need to also enter your admin password to execute it:",[21,320,322],{"className":23,"code":321,"language":25,"meta":26,"style":26},"sudo nano \u002Fprivate\u002Fetc\u002Fhosts\n",[28,323,324],{"__ignoreMap":26},[31,325,326,328,331],{"class":33,"line":34},[31,327,270],{"class":44},[31,329,330],{"class":48}," nano",[31,332,333],{"class":48}," \u002Fprivate\u002Fetc\u002Fhosts\n",[11,335,336,337,340,341,344,345,348],{},"When you’re done making changes, press ",[17,338,339],{},"Control+X"," to exit the editor, ",[17,342,343],{},"Y"," to save, and ",[17,346,347],{},"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.",[350,351,352],"style",{},"html pre.shiki code .smLnX, html code.shiki .smLnX{--shiki-default:#545454;--shiki-default-font-style:italic}html pre.shiki code .s5Dmg, html code.shiki .s5Dmg{--shiki-default:#FFCB6B}html pre.shiki code .sfyAc, html code.shiki .sfyAc{--shiki-default:#C3E88D}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sAklC, html code.shiki .sAklC{--shiki-default:#89DDFF}",{"title":26,"searchDepth":41,"depth":41,"links":354},[],"2020-04-23T06:33:42.424Z","Tired of hearing ads on spotify? Here's a way to get rid of them!","md",{},true,"\u002Farticle\u002Fblock-ads-on-spotify-app",{"title":5,"description":356},"article\u002Fblock-ads-on-spotify-app","\u002Fimg\u002Fblock-ads-on-spotify-app.jpg","q5EAcoByLyluyRs7xkxbxi--8wrCwwLw-rg5b0VbHXk",{"id":366,"extension":367,"meta":368,"stem":379,"__hash__":380},"author\u002Fauthor\u002FauthorDetails.json","json",{"body":369},[370,374],{"id":6,"fullName":371,"description":372,"image":373},"Ashwin K Shenoy","Hi! I am Ashwin, an Software Engineer and Consultant based out of Bengaluru, India.","https:\u002F\u002Fsimpletech.xyz\u002Fimg\u002Fauthor\u002Fashwin.jpg",{"id":375,"fullName":376,"description":377,"image":378},"paul","Paul Shan","Hello! I am Paul, a front end engineer and consultant based out of Bengaluru, India.","https:\u002F\u002Fashwinshenoy.com\u002Fimg\u002Fashwin2.jpg","author\u002FauthorDetails","k8atXxcwAcv_rjC8llPba18X62upiKWYGU5dL4-S4lw",1782187479818]