├── LICENSE ├── README.md └── hosts.txt /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 Jason Downing 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Android Hosts File 2 | A hosts file to block ads on popular apps such as Pandora, Spotify, etc. 3 | 4 | So far after using this hosts file I have had 0 ads in Spotify. Before I was 5 | using multiple hosts sources but none of them seemed to have the right 6 | URLs to fully block Spotify ads. 7 | 8 | To use this hosts file, you will need to root your device and install 9 | [AdAway](https://adaway.org/) 10 | from the 11 | [F-Droid repository](https://f-droid.org/repository/browse/?fdid=org.adaway). 12 | 13 | The address you should use for the hosts file in AdAway / other Ad blockers is: 14 | [https://raw.githubusercontent.com/JasonD94/android-hosts/master/hosts.txt](https://raw.githubusercontent.com/JasonD94/android-hosts/master/hosts.txt) 15 | 16 | The sources for this host file can be found here: 17 | - [Reddit comment by jamd315 (Spotify)](https://www.reddit.com/r/technology/comments/5652yu/spotify_has_been_serving_computer_viruses_to/d8gczkl) 18 | - [Reddit comment by ojw_15 (Spotify)](https://www.reddit.com/r/Piracy/comments/4hu17m/spotify_desktop_version_still_shows_ads_with/d2vzp3i) 19 | - [Reddit post by nic2849 (Spotify)](https://www.reddit.com/r/Piracy/comments/4kn6rq/comprehensive_guide_to_blocking_ads_on_spotify/) 20 | - [MoaAB](http://forum.xda-developers.com/showthread.php?t=1916098) 21 | - [Reddit Post (YouTube)](https://www.reddit.com/r/dropgoogle/comments/4q84se/hosts_file_entries_to_block_google_ads_on_youtube/) 22 | 23 | Other hosts files I use and recommend: 24 | 25 | - [StevenBlack/hosts](https://github.com/StevenBlack/hosts) 26 | This hosts file combines many of the other hosts files I also use but I just 27 | let AdAway merge them all together and remove all the duplicates. I would rather 28 | shotgun the ads away. 29 | - [The AdAway default hosts file](https://adaway.org/hosts.txt) 30 | AdAway includes this by default. It doesn't hurt to use it too. 31 | - [winhelp2002 hosts file](http://winhelp2002.mvps.org/hosts.htm) 32 | Another solid hosts file. 33 | - [http://someonewhocares.org/hosts/](http://someonewhocares.org/hosts/) 34 | Dan Pollock maintains this hosts file and it is incredibly useful to have. 35 | - [http://www.malwaredomainlist.com/](http://www.malwaredomainlist.com/) 36 | Block malware as well - why not? 37 | - [http://pgl.yoyo.org/adservers/](http://pgl.yoyo.org/adservers/) 38 | Included by default in AdAway 39 | - [MoaAB](http://forum.xda-developers.com/showthread.php?t=1916098) 40 | This could be useful for finding more sources to add. 41 | 42 | You can find a really good list on 43 | [AdAway's GitHub wiki](https://github.com/AdAway/AdAway/wiki/HostsSources) 44 | too. 45 | -------------------------------------------------------------------------------- /hosts.txt: -------------------------------------------------------------------------------- 1 | 127.0.0.1 localhost 2 | ::1 localhost 3 | 4 | # General ad blocking 5 | 127.0.0.1 media-match.com 6 | 127.0.0.1 adclick.g.doublecklick.net 7 | 127.0.0.1 open.spotify.com 8 | 127.0.0.1 desktop.spotify.com 9 | 127.0.0.1 pubads.g.doubleclick.net 10 | 127.0.0.1 audio2.spotify.com 11 | 127.0.0.1 www.omaze.com 12 | 127.0.0.1 omaze.com 13 | 127.0.0.1 bounceexchange.com 14 | 15 | # SPOTIFY ADS BEGIN # 16 | 127.0.0.1 gads.pubmatic.com 17 | 127.0.0.1 spclient.wg.spotify.com 18 | 19 | # Spotify Default 20 | 127.0.0.1 media-match.com 21 | 127.0.0.1 adclick.g.doublecklick.net 22 | 127.0.0.1 www.googleadservices.com 23 | 127.0.0.1 open.spotify.com 24 | 127.0.0.1 pagead2.googlesyndication.com 25 | 127.0.0.1 desktop.spotify.com 26 | 127.0.0.1 googleads.g.doubleclick.net 27 | 127.0.0.1 pubads.g.doubleclick.net 28 | 127.0.0.1 audio2.spotify.com 29 | 127.0.0.1 www.omaze.com 30 | 127.0.0.1 omaze.com 31 | 127.0.0.1 bounceexchange.com 32 | 33 | # Spotify Sniff 5/18/16 added by me 34 | 127.0.0.1 pagead46.l.doubleclick.net 35 | 127.0.0.1 pagead.l.doubleclick.net 36 | 127.0.0.1 googlehosted.l.googleusercontent.com 37 | 127.0.0.1 video-ad-stats.googlesyndication.com 38 | 127.0.0.1 pagead-googlehosted.l.google.com 39 | 127.0.0.1 partnerad.l.doubleclick.net 40 | 127.0.0.1 prod.spotify.map.fastlylb.net 41 | 127.0.0.1 adserver.adtechus.com 42 | 127.0.0.1 na.gmtdmp.com 43 | 127.0.0.1 anycast.pixel.adsafeprotected.com 44 | 127.0.0.1 d361oi6ppvq2ym.cloudfront.net 45 | 127.0.0.1 gads.pubmatic.com 46 | 127.0.0.1 idsync-ext.rlcdn.com 47 | 127.0.0.1 anycast.pixel.adsafeprotected.com 48 | 127.0.0.1 ads-west-colo.adsymptotic.com 49 | 127.0.0.1 geo3.ggpht.com 50 | 127.0.0.1 showads33000.pubmatic.com 51 | 52 | # Check these for duplicates. (Spotify?) 53 | 127.0.0.1 adclick.g.doublecklick.net 54 | 127.0.0.1 adeventtracker.spotify.com 55 | 127.0.0.1 ads-fa.spotify.com 56 | 127.0.0.1 analytics.spotify.com 57 | 127.0.0.1 audio2.spotify.com 58 | 127.0.0.1 b.scorecardresearch.com 59 | 127.0.0.1 bounceexchange.com 60 | 127.0.0.1 bs.serving-sys.com 61 | 127.0.0.1 content.bitsontherun.com 62 | 127.0.0.1 core.insightexpressai.com 63 | 127.0.0.1 crashdump.spotify.com 64 | 127.0.0.1 d2gi7ultltnc2u.cloudfront.net 65 | 127.0.0.1 d3rt1990lpmkn.cloudfront.net 66 | 127.0.0.1 desktop.spotify.com 67 | 127.0.0.1 doubleclick.net 68 | 127.0.0.1 ds.serving-sys.com 69 | 127.0.0.1 googleadservices.com 70 | 127.0.0.1 googleads.g.doubleclick.net 71 | 127.0.0.1 gtssl2-ocsp.geotrust.com 72 | 127.0.0.1 js.moatads.com 73 | 127.0.0.1 log.spotify.com 74 | 127.0.0.1 media-match.com 75 | 127.0.0.1 omaze.com 76 | 127.0.0.1 open.spotify.com 77 | 127.0.0.1 pagead46.l.doubleclick.net 78 | 127.0.0.1 pagead2.googlesyndication.com 79 | 127.0.0.1 partner.googleadservices.com 80 | 127.0.0.1 pubads.g.doubleclick.net 81 | 127.0.0.1 redirector.gvt1.com 82 | 127.0.0.1 s0.2mdn.net 83 | 127.0.0.1 securepubads.g.doubleclick.net 84 | 127.0.0.1 spclient.wg.spotify.com 85 | 127.0.0.1 tpc.googlesyndication.com 86 | 127.0.0.1 v.jwpcdn.com 87 | 127.0.0.1 video-ad-stats.googlesyndication.com 88 | 127.0.0.1 weblb-wg.gslb.spotify.com 89 | 127.0.0.1 www.googleadservices.com 90 | 127.0.0.1 www.googletagservices.com 91 | 127.0.0.1 www.omaze.com 92 | 93 | # Pandora ad blocking 94 | 127.0.0.1 http://www.pandora.com/static/promo/ 95 | 127.0.0.1 ad.pandora.tv 96 | 127.0.0.1 ads.pandora.tv.net 97 | 127.0.0.1 stats.pandora.com 98 | 99 | # YouTube 100 | 127.0.0.1 ads.youtube.com 101 | 127.0.0.1 ads.youtube.com 102 | 127.0.0.1 s0.2mdn.net 103 | 127.0.0.1 s1.2mdn.net 104 | 127.0.0.1 googleads.g.doubleclick.net 105 | 127.0.0.1 pubads.g.doubleclick.net 106 | 127.0.0.1 ad.doubleclick.net 107 | 127.0.0.1 static.doubleclick.net 108 | 127.0.0.1 files.adform.net 109 | 127.0.0.1 secure-ds.serving-sys.com 110 | --------------------------------------------------------------------------------