PhpDev.App
r-a-y/mobile-hosts

r-a-y/mobile-hosts

Stars: 163

Forks: 22

Pull Requests: 3

Issues: 21

Watchers: 12

Last Updated: 2022-12-12 20:05:42

HOSTS files converted or sourced from various filter lists to prevent ads and tracking.

License: GNU General Public License v3.0

Languages: PHP

Mobile HOSTS

HOSTS files converted or sourced from various mobile filter lists to prevent ads and tracking.

Currently includes:

These lists will be updated from time-to-time. To update them yourself, the repo includes a PHP-CLI script (converter.php) that converts ad filter lists into HOSTS files. View the source for more details. Send a pull request if you want me to add a specific filter list.

FWIW, I personally just use AdGuard Mobile Ads and AdGuard Mobile Tracking and Spyware on my mobile devices.

Other good HOSTS files

How to use?

Copy one of the above URLs into any HOSTS app that allows adding URLs as a source.

Originally created for use with Android. For unrooted devices, use personalDNSfilter. For rooted devices, try AdAway. All are available on F-Droid.

It is worth noting that DNSfilter can handle wildcard entries, which will offer better subdomain blocking coverage, but uses Android's built-in VPN to handle the blocking.

Alternatives for Android

Instead of using a HOSTS file, if you are on Android Pie or above, you can use the Private DNS (DNS over TLS) feature from a reputable provider like AdGuard, NextDNS or Quad9 for blocking. NextDNS allows you to choose various filter lists when you create an account with them, whereas AdGuard DNS covers the lists mentioned above and Quad9 specifically offers protection from malware and phishing.

Sources

  • AdGuard filters are licensed under the GPLv3 (1) (2)
  • EasyPrivacy is dual-licensed under the GPLv3 and Creative Commons Attribution-ShareAlike 3.0 Unported license (1)

License

GPLv3

RELEASES

See all