Skip to content
/ hosts Public
forked from vdbhb59/hosts

Curated lists of hosts files with various domain blocks. See "Sources" text file for credits and source list.

License

Notifications You must be signed in to change notification settings

nihal697/hosts

 
 

Repository files navigation

hosts

Curated lists of hosts files with various domain blocks. See "Source" text file for credits and source list. Lot of hosts are based on my own digging.

I have made different variants, with older model of phones and with lesser ram available. All lists are compatible with almost all adblockers.

N.B.: I am not planning on filters yet, as that is a very heavy task, and takes way much time to maintain. Will come to it soon though.

Following are the list of files present within the repository:

  1. ALL > Contains blockers for almost all sites. Will break many things, so please ask me to whitelist with the correct hosts-ip. The list is huge, so it is difficult to examine and identify what may cause the break. Try and use DNS66 or Blokada to determine the blocker. Size - Average 10-15 MB, depending on dead entries.

  2. Large > Contains almost all blocklists, however, smaller in size compared to ALL. Probably half the size at times.

  3. Midi > Contains blockers for Samsung devices as well. However, limited in hosts. Bit smaller in size, but would stay beyond 5MB most of the times.

  4. Mini > Minimal hosts, but with device wide (android only) ads blocked. The Ads-Block-List android blockers are included to cover device wide blocking. File size - 1.8-2.5 MB. Caters to all low memory phones, or older version phones. Works on Jellybean too (may break few functions, minimum though).

  5. YouTube > Special hosts for YouTube advertisements. Server uses s.ytimg.com and manifest.googlevideo.com to push advertisements. Of late, youtube-nocookie.com is being used by Alphabet Incorporation to push advertisements, as well as video content, and thus may not work unless this is whitelisted. Hence, the following should be whitelisted: 0.0.0.0 apis.google.com 0.0.0.0 clients.l.google.com 0.0.0.0 clients1.google.com 0.0.0.0 gstatic.com 0.0.0.0 manifest.googlevideo.com 0.0.0.0 i.ytimg.com 0.0.0.0 www.gstatic.com 0.0.0.0 www.youtube-nocookie.com 0.0.0.0 youtube-nocookie.com

  6. Ads-Block-List > Contains special wildcard based (not wildcards itself) entries, which blocks device wide advertisements (cross platforms may have some issues based on localhosts), including applications in-ads as well. Contains graph.facebook. as well for facebook wide ads. Also contains the most notorious inmobi advert blocking. This list is not added by default as contains cross operating system blockers, and may interfere in different devices and operating systems. However, only the Android ports are added to block system wide advertisements. This list is also contributed by quindecim. Thanks mate. 😁

N.B.: youtube.com and googlevideo.com are removed from blacklist. graph.facebook.com should be whitelisted if you want to use f**kbook.

  1. Hosts-Tracking > This is just specially designed list. Contains all the hosts (afaiaa) of tracking actors throughout various app, sites, and what not.

Supported Operating Systems

Android: For non-rooted devices, GoodbyeAds can be used with DNS66, Blokada, Personal DNS Filter or Nebulo. The above softwares are free and open-source ad-blockers.

For rooted devices, one can replace the default hosts file with the file of choice from here, after renaming the choice file to "hosts". Permissions should be rw-r--r-- / 644.

Otherwise, if one does not wish to add it manually, one can use this host file with AdAway, a free and open-source ad-blocker for Android.

Linux: An open-source host file manager called hBlock.

Mac OS: This host file can be used with gasmask.

Windows: Users for Windows would find it easy to use with Hostman, a software to manage host file.

In case the above is not working, you can try one of the following as well:

SwitchHosts or HostsFileEditor

Use installer hostsinstaller with administrative rights in Windows.

How to disable DNS CACHE services on Windows?

  1. Hit Win+R & type regedit & press enter.

  2. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Dnscache, and locate the "Start" registry key. Now change its value from 2 (Automatic) to 4 (Disabled)

  3. Restart computer once & now change your host file with bigger SIZE.

Usage guide

Blokada

Open Blokada > navigate to Hosts List > Click + button and then copy paste your choice of hosts from the below url. Then press the Shield icon to activate.

https://raw.githubusercontent.com/vdbhb59/hosts/master/Hosts-ALL.txt
https://raw.githubusercontent.com/vdbhb59/hosts/master/Hosts-Large.txt
https://raw.githubusercontent.com/vdbhb59/hosts/master/Hosts-Midi.txt
https://raw.githubusercontent.com/vdbhb59/hosts/master/Hosts-Mini.txt
https://raw.githubusercontent.com/vdbhb59/hosts/master/YouTube-Hosts.txt
https://raw.githubusercontent.com/vdbhb59/hosts/master/Ads-Block-List.txt

DNS66

Open DNS66 > swipe to Hosts > Click + button and then copy paste your choice of hosts from the below url. Then press the refresh icon on the top and press the start button.

https://raw.githubusercontent.com/vdbhb59/hosts/master/Hosts-ALL.txt
https://raw.githubusercontent.com/vdbhb59/hosts/master/Hosts-Large.txt
https://raw.githubusercontent.com/vdbhb59/hosts/master/Hosts-Midi.txt
https://raw.githubusercontent.com/vdbhb59/hosts/master/Hosts-Mini.txt
https://raw.githubusercontent.com/vdbhb59/hosts/master/YouTube-Hosts.txt
https://raw.githubusercontent.com/vdbhb59/hosts/master/Ads-Block-List.txt

Adaway

Open Adaway > go to Host Source > Click + button and then copy paste your choice of hosts from the below url. Then Click enable ad blocking from the home menu.

https://raw.githubusercontent.com/vdbhb59/hosts/master/Hosts-ALL.txt
https://raw.githubusercontent.com/vdbhb59/hosts/master/Hosts-Large.txt
https://raw.githubusercontent.com/vdbhb59/hosts/master/Hosts-Midi.txt
https://raw.githubusercontent.com/vdbhb59/hosts/master/Hosts-Mini.txt
https://raw.githubusercontent.com/vdbhb59/hosts/master/YouTube-Hosts.txt
https://raw.githubusercontent.com/vdbhb59/hosts/master/Ads-Block-List.txt

DNS Filter

Open DNS Filter > Tap on Advanced Settings > Tap on Configure Filter Update > Create a new filter by tapping on the Pencil icon > copy paste your choice of hosts from the below url > Tap on Active circle there > Tap on the (✔️) icon > Tap on Configure filter update to hide the menu > Tap on Advanced Settings > Tap on Restart

https://raw.githubusercontent.com/vdbhb59/hosts/master/Hosts-ALL.txt
https://raw.githubusercontent.com/vdbhb59/hosts/master/Hosts-Large.txt
https://raw.githubusercontent.com/vdbhb59/hosts/master/Hosts-Midi.txt
https://raw.githubusercontent.com/vdbhb59/hosts/master/Hosts-Mini.txt
https://raw.githubusercontent.com/vdbhb59/hosts/master/YouTube-Hosts.txt
https://raw.githubusercontent.com/vdbhb59/hosts/master/Ads-Block-List.txt

Recommended Whitelist

  • Facebook main app
  • Facebook Lite Messenger

Recommended Apps

For those who still are hardcore fcbook (lol) users, you can try Frost from F-Droid. Frost for Facebook (A fast and extensive third party wrapper for Facebook.)

https://f-droid.org/app/com.pitchedapps.frost

For YT users, use NewPipe. It is fully open sourced.

https://f-droid.org/app/org.schabi.newpipe

License

Content of the hosts is licensed under a MIT License.

About

Curated lists of hosts files with various domain blocks. See "Sources" text file for credits and source list.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Batchfile 100.0%