Warning: This is NOT your standard blocking-list!
-! That HOSTS-file is huge! (~60MB) # 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, telemetrics, fishing, malwares). -! Google firebase and crashlytics. Might break some mobile apps! but it stops any app being able to dynamicly configure itself based on remote location (they have their default already), plus analytics/telemetrics and huge amount of connections open. saves your privacy, data plan and battery. -! 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: There are no "special"/extended/Unicode characters in the lists, just plain ASCII. I've made sure of it. I do however writes the files as UTF-8 (no signature, no BOM) which is effectivly supports extended characters (but again will never be used).
Note: I no longer distribute HOSTS with the 127.0.0.1 prefix. Use 'hosts0.txt' or 'hosts0_with_localhost.txt' links instead. Connections set to
0.0.0.0 are efficiently closed (and on newer browsers - never opened!) which is far more efficient than
127.0.0.1 which expects localhost-server response and times out after some time..
Note: I now use explicitly Windows EOL (CR+LF a.k.a \r\n), in all of the files. it should not matter to linux OS too much other than what seems to be and extra line on some old editors, but Windows users should be able to copy/paste it faster to their hosts (no implicit EOL convertion). I do wonder how it will work on my Android devices, shouldn't be a problem.. If it bugs you open an issue and I might re-cosider..
Windows Users! YOU MUST PRE-STOP AND DISABLE YOUR 'DNS Client' SERVICE! unless you want to wait 10 minutes with CPU at 100% after everytime you update your HOSTS file.
Use it anyway you like (link-to, download, copy, distribute,...) Direct-URL to the lists:
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
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?
_raw__hosts.txtfile is just a raw list of the host-domains (without any prefix),
127.0.0.1prefix for each line
0.0.0.0prefix for each line,
hosts0_with_localhost.txtuses the same prefixes but adds an additional entries for machine's self-
hosts_adblock.txthas the same content as
_raw__hosts.txtbuilt with an additional uBlock-filter format file-headers.
You may download the whole repository in a zip file (about 200MB though!):
Aria2C or similar parallel-download-manager is advised!
Once you've fetched the repository (by either simply download it or by fork-and-clone), you may edit it and generate new build. Custom lists:
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
To generate a new "build", delete the build folder, and run your NodeJS with
_builder.js. You may use
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,
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:
18.104.22.168. Google AdGuard-DNS for more information.