Skip to content
HOSTS/AdBlock
JavaScript Batchfile
Branch: master
Clone or download

Latest commit

Latest commit 1445770 May 26, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github u May 26, 2020
build u May 26, 2020
resources u May 26, 2020
.gitattributes u May 26, 2020
LICENSE u May 26, 2020
README.md u May 26, 2020
_builder.cmd u May 26, 2020
_builder.js u May 26, 2020
_raw__hosts.txt u May 26, 2020
_raw__hosts_adblock_anti_annoyances_block.txt u May 26, 2020
_raw__hosts_adblock_anti_annoyances_block_inline_script.txt u May 26, 2020
_raw__hosts_adblock_anti_annoyances_hide.txt u May 26, 2020
_raw__hosts_adblock_anti_annoyances_style_inject.txt u May 26, 2020

README.md

HOSTS/Ad-Block

Warning: This is not your standard blocking-list!

-! That HOSTS-file is huge! (~50MB)
# Android-apps (AdGuard, Blokada) will only partially load it.
# Try using it as an OS HOSTS-file (Android - root!, Windows - pre-disable 'DNS Client' service!).

-! Blocks: 
-! Some social-networks (Facebook, Twitter, Instagram, Pintrest, ...). 
-! Some 3'rd-party comment-services (Disqus, Spot.im, ...). 
-! An extended (!) list of stuff other lists blocks as well (ads, analytics, fishing, malwares).
-! Annoying stuff or websites. Just my personal opinion.

# If you are using this list and find-out your favorite website is blocked - open an issue.

+~ Google (except for the ads-domains) and WhatsApp (although it's Facebook's) are cool . 

# Using those lists will greatly privacy and speed-up browsing on any operation-system.
# I suggest you also set-up 'AdGuard-DNS' as your DNS. Works best in your home-router!

Note: I no longer distribute HOSTS with the 127.0.0.1 prefix. Use 'hosts0.txt' or 'hosts0_with_localhost.txt' links instead.


  • Direct-URL to the lists:

    Use it anyway you like (link-to, download, copy, distribute,...)
    https://raw.githubusercontent.com/USERNAME/hosts/master/_raw__hosts.txt
    
    https://raw.githubusercontent.com/USERNAME/hosts/master/build/hosts.txt https://raw.githubusercontent.com/USERNAME/hosts/master/build/hosts0.txt
    https://raw.githubusercontent.com/USERNAME/hosts/master/build/hosts_with_localhost.txt https://raw.githubusercontent.com/USERNAME/hosts/master/build/hosts0_with_localhost.txt
    https://raw.githubusercontent.com/USERNAME/hosts/master/build/hosts_adblock.txt

    https://raw.githubusercontent.com/USERNAME/hosts/master/build/hosts_adblock_anti_annoyances_hide.txt https://raw.githubusercontent.com/USERNAME/hosts/master/build/hosts_adblock_anti_annoyances_block.txt https://raw.githubusercontent.com/USERNAME/hosts/master/build/hosts_adblock_anti_annoyances_block_inline_script.txt https://raw.githubusercontent.com/USERNAME/hosts/master/build/hosts_adblock_anti_annoyances_style_inject.txt

    You can either use eladkarako as the USERNAME (links/folder-structure might be change some day), or fork the repository and use your own github-username.


  • What are all of those links?

    The _raw__hosts.txt file is just a raw list of the host-domains (without any prefix), hosts.txt uses 127.0.0.1 prefix for each line, hosts0.txt uses 0.0.0.0 prefix for each line,

    hosts_with_localhost.txt and hosts0_with_localhost.txt uses the same prefixes but adds an additional entries for machine's self-localhost.

    The hosts_adblock.txt has the same content as _raw__hosts.txt built with an additional uBlock-filter format file-headers.


  • You may download the whole repository in a zip file (about 200MB though!): https://github.com/USERNAME/hosts/archive/master.zip. Aria2C or similar parallel-download-manager is advised!
  • Custom lists:

    Once you've fetched the repository (by either simply download it or by fork-and-clone), you may edit it and generate new build.

    It is very easy to generate a new "build",

    There are no dependencies!

    Only thing needed is any version of NodeJS on your machine.

    For example, you can get a single exe for Windows in https://nodejs.org/download/nightly. Just choose a version and browse win-x86/ folder, downloading node.exe.

    To generate a new "build", delete the build folder, and run your NodeJS with _builder.js. You may use _builder.cmd on Windows.



I'm not being pa!d for it or anything, but if you want to protect yourself from ads and other malicious domains, I strongly advise you'll change your home (or work) router's DNS to AdGuard's DNS. It is free, and it will block ads in a similar way to the way the HOSTS file works, by returning 0.0.0.0 to several (although not as much as mine) domains, instead of actual-resolving into IP. You can still use HOSTS and AdBlocking-browser-extensions, this is just another way you can help all the clients (smartphones, smart-TVs, computers,...) of your home WiFi, without the needs to root Android devices, or install anything. The DNS addresses you should change into are: 176.103.130.130 and 176.103.130.131. Google AdGuard-DNS for more information.



PayPal Donation

You can’t perform that action at this time.