mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-09-26 06:10:20 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
432edcf4b2 | ||
|
|
4fa04707f2 | ||
|
|
7460a11664 | ||
|
|
78e2c456db | ||
|
|
45eb2ea7f3 | ||
|
|
a0199a3dbe | ||
|
|
da2ef77f41 | ||
|
|
b59ef0ed55 | ||
|
|
1cd07101ce | ||
|
|
4368050e1a | ||
|
|
68d5c44164 | ||
|
|
1dd69415b8 | ||
|
|
94d47a1bca | ||
|
|
ef1e9fa8ad | ||
|
|
4af802374f | ||
|
|
cb0b365a5f | ||
|
|
014164e80e | ||
|
|
f0b543ebc6 | ||
|
|
089e55c5cd | ||
|
|
5c407067b1 | ||
|
|
dc6b16cb37 | ||
|
|
ae4e66b45e | ||
|
|
c966db058c | ||
|
|
e9eed28417 | ||
|
|
42846e4fe9 | ||
|
|
9126d65d05 | ||
|
|
c5159684dc | ||
|
|
30d71ef9b1 | ||
|
|
92f2ec27c3 | ||
|
|
7804fb2c68 | ||
|
|
baca30169e | ||
|
|
20d752f921 | ||
|
|
a134843ffe | ||
|
|
dd1170dec9 | ||
|
|
011c020641 | ||
|
|
6ddfffa055 | ||
|
|
3ba08aa3c8 | ||
|
|
2859530366 | ||
|
|
839b561b70 | ||
|
|
a114531dc1 | ||
|
|
da8e556071 | ||
|
|
f7f9178579 | ||
|
|
976fe60864 | ||
|
|
3d8e5510dc | ||
|
|
0d4c7b800a | ||
|
|
1011b0166f | ||
|
|
ab87ad9dd7 | ||
|
|
fe003c81fa | ||
|
|
470f79847f | ||
|
|
8544e91514 | ||
|
|
abf39a5d28 | ||
|
|
f143df691f | ||
|
|
1af37f633f | ||
|
|
b4c15c09a4 | ||
|
|
a19791fd4a | ||
|
|
d0654c9b00 | ||
|
|
5fdd5c802a | ||
|
|
d7472887b2 | ||
|
|
0aa67e7a7a | ||
|
|
518185c029 | ||
|
|
c9d95dbcc4 | ||
|
|
3f29c27a9c | ||
|
|
63687132bc | ||
|
|
2c886af8ff | ||
|
|
90da818f5c | ||
|
|
97c4b48778 | ||
|
|
d55678a632 | ||
|
|
3d5f78cefc | ||
|
|
669b4e50dd | ||
|
|
48009cbe2b | ||
|
|
18fb716945 | ||
|
|
c3a39dd44c | ||
|
|
7594f1328b | ||
|
|
979cf641e5 | ||
|
|
7544059e4b | ||
|
|
2b1485ed81 | ||
|
|
d5ecfca795 | ||
|
|
9f9b3dc0ef | ||
|
|
78614d2cdf | ||
|
|
b9286181e4 | ||
|
|
3685d87a00 | ||
|
|
b01d5c0dda | ||
|
|
a9250fc253 | ||
|
|
4091dc8a45 | ||
|
|
305eb73833 | ||
|
|
aba3723b9f | ||
|
|
7f84edeb0e | ||
|
|
2dd86cc412 | ||
|
|
3535dcf18f | ||
|
|
54e8e3ee51 | ||
|
|
9a9d039c1f | ||
|
|
2d08a962cc | ||
|
|
e29fce70dd | ||
|
|
347d213bd5 | ||
|
|
427cc538ea | ||
|
|
0a7e473d39 | ||
|
|
cac8facf17 | ||
|
|
2f6bb25aca | ||
|
|
1511089882 | ||
|
|
3157d222a3 | ||
|
|
d072586d5e | ||
|
|
b607495d8e | ||
|
|
218c3d279f | ||
|
|
78734c7aae | ||
|
|
1a503107cc | ||
|
|
3a8c178f58 | ||
|
|
be3cf3b6bd | ||
|
|
dbd55ce99e | ||
|
|
ab943c3914 | ||
|
|
39ad8019bb | ||
|
|
cb5dc51fe1 | ||
|
|
ad85c926f3 | ||
|
|
aa3e18a970 | ||
|
|
fcc2aaa3d2 | ||
|
|
9ed630938b | ||
|
|
9f3be47ab9 | ||
|
|
bfe983a30d | ||
|
|
59e491a197 | ||
|
|
edeb228caf | ||
|
|
b3574e1996 | ||
|
|
d1ea913f57 | ||
|
|
e778fe704d | ||
|
|
312944426c | ||
|
|
05a3e530dc | ||
|
|
0f9b2439d1 | ||
|
|
2d1d2a3f3d | ||
|
|
4e4e18fed7 | ||
|
|
2093fb7833 | ||
|
|
5945a559cd | ||
|
|
0587cbe790 | ||
|
|
045e7268a9 | ||
|
|
b915af65cd | ||
|
|
1f4d220bae | ||
|
|
4ee00eba8f | ||
|
|
d6168450ee | ||
|
|
f5f2616484 | ||
|
|
cc17e4b71e | ||
|
|
03aa434c17 | ||
|
|
867f19c672 | ||
|
|
449a0d7f61 | ||
|
|
f20a3ca11e | ||
|
|
2b328ac425 | ||
|
|
09fedc30fd | ||
|
|
3543bdb89b | ||
|
|
a1b08abe89 | ||
|
|
82063031b0 | ||
|
|
8fc214edbf | ||
|
|
d7cc7e5716 | ||
|
|
3c7b853a21 | ||
|
|
34e99f79f5 | ||
|
|
b8f3bfcf5c | ||
|
|
e1c3d2ccb1 | ||
|
|
411be981bf | ||
|
|
e1ca7f3375 | ||
|
|
174a5ba732 | ||
|
|
4163711605 | ||
|
|
e08c625576 | ||
|
|
e56bf74c53 | ||
|
|
332836927d | ||
|
|
e65dfcf63e | ||
|
|
3d6b4b3b57 | ||
|
|
238d46f2f6 | ||
|
|
5b0420f103 | ||
|
|
8c2099b0ed | ||
|
|
a02fae96cf | ||
|
|
e54e1d624c | ||
|
|
0843d83d09 | ||
|
|
9fbcff27e0 | ||
|
|
bd4df222c9 | ||
|
|
f97458927c | ||
|
|
b93b427a6e | ||
|
|
05dad7e657 | ||
|
|
5386cec268 | ||
|
|
05fc18a46f | ||
|
|
5f772618f7 | ||
|
|
36a6bcdc3f | ||
|
|
cd32e90bdf | ||
|
|
4725aab78c | ||
|
|
0a4d2661e1 | ||
|
|
a04c66f1b3 | ||
|
|
85038558ef | ||
|
|
c52725dcf9 | ||
|
|
15fa2070ca | ||
|
|
cb5cac38af | ||
|
|
da669df0a5 | ||
|
|
b3b5808b10 | ||
|
|
bf8cdacca2 | ||
|
|
b1664ca84e | ||
|
|
ae3b3e6ff8 | ||
|
|
0f457c7c02 | ||
|
|
5c831c05d7 | ||
|
|
77cbe1e366 | ||
|
|
36fab9ad8f | ||
|
|
cd3004fafe | ||
|
|
820b456810 | ||
|
|
e3c53841f2 | ||
|
|
a851f76f03 | ||
|
|
ef7f6d72b9 | ||
|
|
bd0d6fe534 | ||
|
|
bb02c6e521 | ||
|
|
fcaca8551e | ||
|
|
3cfbdad90e |
@@ -12,6 +12,8 @@ cache:
|
||||
before_cache:
|
||||
- rm -rf $HOME/miniconda3/pkgs/cache
|
||||
- rm -rf $HOME/miniconda3/envs/hosts
|
||||
- rm -rf $HOME/miniconda3/conda-meta/history
|
||||
- touch $HOME/miniconda3/conda-meta/history
|
||||
|
||||
os:
|
||||
- linux
|
||||
|
||||
+30366
-8666
File diff suppressed because it is too large
Load Diff
@@ -4,52 +4,52 @@
|
||||
----
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://travis-ci.org/StevenBlack/hosts)
|
||||
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
|
||||
# Unified hosts file with fakenews, gambling, porn, social extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **May 06 2019**.
|
||||
* Here's the [raw hosts file with fakenews, gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) containing 58,032 entries.
|
||||
* Last updated: **January 14 2020**.
|
||||
* Here's the [raw hosts file with fakenews, gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) containing 72,651 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
---------------- |:------:|:---------:|:--------------:|:-------------:
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 39,260 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 39,930 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 41,528 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 52,807 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 41,548 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 42,198 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 53,477 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 42,218 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 55,075 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 43,816 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 55,094 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 55,745 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 44,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 55,764 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 57,362 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 58,032 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 51,192 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 52,134 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 53,511 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 66,923 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 53,660 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 54,453 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 67,865 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 54,602 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 69,242 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 55,979 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 69,390 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 70,184 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 56,921 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 70,332 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 71,709 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 72,651 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -65,15 +65,15 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
@@ -89,14 +89,12 @@ Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
The unified hosts file is extensible. Extensions are used to block domains by category.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
@@ -108,13 +106,13 @@ First install the dependencies with:
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
To run unit tests, in the top level directory, run:
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
|
||||
### Usage
|
||||
@@ -143,7 +141,7 @@ of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
@@ -185,7 +183,7 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -226,7 +224,7 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
|
||||
@@ -261,13 +259,12 @@ lines to your hosts file will do it:
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
|
||||
or non applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
@@ -275,15 +272,19 @@ We tried that. Using `0` doesn't work universally.
|
||||
To modify your current `hosts` file, look for it in the following places and modify it with a text
|
||||
editor.
|
||||
|
||||
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
|
||||
**macOS Catalina:** `/private/etc/hosts` file.
|
||||
|
||||
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
Gentoo users may find [`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts) in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
On Linux and Mac OS X, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```
|
||||
updateHostsWindows.bat
|
||||
@@ -378,9 +379,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
@@ -389,7 +390,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -409,10 +410,16 @@ devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
|
||||
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
|
||||
* [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server") (for Debian, Raspbian & Ubuntu): Set up a local DNS server with a `/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
@@ -421,4 +428,12 @@ devices under a variety of operating systems.
|
||||
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
+30168
-8652
File diff suppressed because it is too large
Load Diff
@@ -4,52 +4,52 @@
|
||||
----
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://travis-ci.org/StevenBlack/hosts)
|
||||
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
|
||||
# Unified hosts file with fakenews, gambling, porn extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **May 06 2019**.
|
||||
* Here's the [raw hosts file with fakenews, gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) containing 55,745 entries.
|
||||
* Last updated: **January 14 2020**.
|
||||
* Here's the [raw hosts file with fakenews, gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) containing 70,184 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
---------------- |:------:|:---------:|:--------------:|:-------------:
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 39,260 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 39,930 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 41,528 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 52,807 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 41,548 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 42,198 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 53,477 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 42,218 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 55,075 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 43,816 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 55,094 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 55,745 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 44,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 55,764 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 57,362 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 58,032 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 51,192 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 52,134 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 53,511 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 66,923 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 53,660 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 54,453 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 67,865 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 54,602 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 69,242 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 55,979 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 69,390 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 70,184 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 56,921 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 70,332 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 71,709 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 72,651 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -65,15 +65,15 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
@@ -87,14 +87,12 @@ Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blo
|
||||
|
||||
|
||||
## Extensions
|
||||
The unified hosts file is extensible. Extensions are used to block domains by category.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
@@ -106,13 +104,13 @@ First install the dependencies with:
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
To run unit tests, in the top level directory, run:
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
|
||||
### Usage
|
||||
@@ -141,7 +139,7 @@ of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
@@ -183,7 +181,7 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -224,7 +222,7 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
|
||||
@@ -259,13 +257,12 @@ lines to your hosts file will do it:
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
|
||||
or non applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
@@ -273,15 +270,19 @@ We tried that. Using `0` doesn't work universally.
|
||||
To modify your current `hosts` file, look for it in the following places and modify it with a text
|
||||
editor.
|
||||
|
||||
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
|
||||
**macOS Catalina:** `/private/etc/hosts` file.
|
||||
|
||||
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
Gentoo users may find [`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts) in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
On Linux and Mac OS X, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```
|
||||
updateHostsWindows.bat
|
||||
@@ -376,9 +377,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
@@ -387,7 +388,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -407,10 +408,16 @@ devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
|
||||
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
|
||||
* [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server") (for Debian, Raspbian & Ubuntu): Set up a local DNS server with a `/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
@@ -419,4 +426,12 @@ devices under a variety of operating systems.
|
||||
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
+25414
-5893
File diff suppressed because it is too large
Load Diff
@@ -4,52 +4,52 @@
|
||||
----
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://travis-ci.org/StevenBlack/hosts)
|
||||
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
|
||||
# Unified hosts file with fakenews, gambling, social extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **May 06 2019**.
|
||||
* Here's the [raw hosts file with fakenews, gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) containing 44,486 entries.
|
||||
* Last updated: **January 14 2020**.
|
||||
* Here's the [raw hosts file with fakenews, gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) containing 56,921 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
---------------- |:------:|:---------:|:--------------:|:-------------:
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 39,260 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 39,930 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 41,528 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 52,807 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 41,548 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 42,198 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 53,477 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 42,218 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 55,075 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 43,816 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 55,094 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 55,745 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 44,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 55,764 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 57,362 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 58,032 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 51,192 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 52,134 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 53,511 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 66,923 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 53,660 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 54,453 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 67,865 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 54,602 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 69,242 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 55,979 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 69,390 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 70,184 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 56,921 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 70,332 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 71,709 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 72,651 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -65,15 +65,15 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
@@ -85,14 +85,12 @@ Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
The unified hosts file is extensible. Extensions are used to block domains by category.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
@@ -104,13 +102,13 @@ First install the dependencies with:
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
To run unit tests, in the top level directory, run:
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
|
||||
### Usage
|
||||
@@ -139,7 +137,7 @@ of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
@@ -181,7 +179,7 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -222,7 +220,7 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
|
||||
@@ -257,13 +255,12 @@ lines to your hosts file will do it:
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
|
||||
or non applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
@@ -271,15 +268,19 @@ We tried that. Using `0` doesn't work universally.
|
||||
To modify your current `hosts` file, look for it in the following places and modify it with a text
|
||||
editor.
|
||||
|
||||
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
|
||||
**macOS Catalina:** `/private/etc/hosts` file.
|
||||
|
||||
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
Gentoo users may find [`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts) in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
On Linux and Mac OS X, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```
|
||||
updateHostsWindows.bat
|
||||
@@ -374,9 +375,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
@@ -385,7 +386,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -405,10 +406,16 @@ devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
|
||||
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
|
||||
* [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server") (for Debian, Raspbian & Ubuntu): Set up a local DNS server with a `/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
@@ -417,4 +424,12 @@ devices under a variety of operating systems.
|
||||
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
+25216
-5879
File diff suppressed because it is too large
Load Diff
@@ -4,52 +4,52 @@
|
||||
----
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://travis-ci.org/StevenBlack/hosts)
|
||||
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
|
||||
# Unified hosts file with fakenews, gambling extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **May 06 2019**.
|
||||
* Here's the [raw hosts file with fakenews, gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) containing 42,198 entries.
|
||||
* Last updated: **January 14 2020**.
|
||||
* Here's the [raw hosts file with fakenews, gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) containing 54,453 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
---------------- |:------:|:---------:|:--------------:|:-------------:
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 39,260 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 39,930 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 41,528 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 52,807 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 41,548 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 42,198 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 53,477 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 42,218 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 55,075 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 43,816 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 55,094 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 55,745 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 44,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 55,764 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 57,362 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 58,032 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 51,192 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 52,134 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 53,511 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 66,923 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 53,660 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 54,453 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 67,865 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 54,602 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 69,242 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 55,979 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 69,390 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 70,184 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 56,921 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 70,332 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 71,709 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 72,651 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -65,15 +65,15 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
@@ -83,14 +83,12 @@ Sinfonietta's gambling blocking hosts file | A collection of category-specific h
|
||||
|
||||
|
||||
## Extensions
|
||||
The unified hosts file is extensible. Extensions are used to block domains by category.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
@@ -102,13 +100,13 @@ First install the dependencies with:
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
To run unit tests, in the top level directory, run:
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
|
||||
### Usage
|
||||
@@ -137,7 +135,7 @@ of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
@@ -179,7 +177,7 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -220,7 +218,7 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
|
||||
@@ -255,13 +253,12 @@ lines to your hosts file will do it:
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
|
||||
or non applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
@@ -269,15 +266,19 @@ We tried that. Using `0` doesn't work universally.
|
||||
To modify your current `hosts` file, look for it in the following places and modify it with a text
|
||||
editor.
|
||||
|
||||
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
|
||||
**macOS Catalina:** `/private/etc/hosts` file.
|
||||
|
||||
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
Gentoo users may find [`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts) in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
On Linux and Mac OS X, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```
|
||||
updateHostsWindows.bat
|
||||
@@ -372,9 +373,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
@@ -383,7 +384,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -403,10 +404,16 @@ devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
|
||||
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
|
||||
* [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server") (for Debian, Raspbian & Ubuntu): Set up a local DNS server with a `/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
@@ -415,4 +422,12 @@ devices under a variety of operating systems.
|
||||
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
+30309
-8661
File diff suppressed because it is too large
Load Diff
@@ -4,52 +4,52 @@
|
||||
----
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://travis-ci.org/StevenBlack/hosts)
|
||||
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
|
||||
# Unified hosts file with fakenews, porn, social extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **May 06 2019**.
|
||||
* Here's the [raw hosts file with fakenews, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) containing 55,764 entries.
|
||||
* Last updated: **January 14 2020**.
|
||||
* Here's the [raw hosts file with fakenews, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) containing 70,332 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
---------------- |:------:|:---------:|:--------------:|:-------------:
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 39,260 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 39,930 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 41,528 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 52,807 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 41,548 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 42,198 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 53,477 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 42,218 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 55,075 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 43,816 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 55,094 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 55,745 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 44,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 55,764 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 57,362 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 58,032 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 51,192 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 52,134 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 53,511 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 66,923 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 53,660 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 54,453 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 67,865 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 54,602 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 69,242 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 55,979 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 69,390 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 70,184 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 56,921 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 70,332 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 71,709 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 72,651 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -65,15 +65,15 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
@@ -88,14 +88,12 @@ Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
The unified hosts file is extensible. Extensions are used to block domains by category.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
@@ -107,13 +105,13 @@ First install the dependencies with:
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
To run unit tests, in the top level directory, run:
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
|
||||
### Usage
|
||||
@@ -142,7 +140,7 @@ of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
@@ -184,7 +182,7 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -225,7 +223,7 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
|
||||
@@ -260,13 +258,12 @@ lines to your hosts file will do it:
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
|
||||
or non applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
@@ -274,15 +271,19 @@ We tried that. Using `0` doesn't work universally.
|
||||
To modify your current `hosts` file, look for it in the following places and modify it with a text
|
||||
editor.
|
||||
|
||||
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
|
||||
**macOS Catalina:** `/private/etc/hosts` file.
|
||||
|
||||
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
Gentoo users may find [`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts) in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
On Linux and Mac OS X, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```
|
||||
updateHostsWindows.bat
|
||||
@@ -377,9 +378,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
@@ -388,7 +389,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -408,10 +409,16 @@ devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
|
||||
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
|
||||
* [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server") (for Debian, Raspbian & Ubuntu): Set up a local DNS server with a `/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
@@ -420,4 +427,12 @@ devices under a variety of operating systems.
|
||||
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
+30111
-8647
File diff suppressed because it is too large
Load Diff
@@ -4,52 +4,52 @@
|
||||
----
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://travis-ci.org/StevenBlack/hosts)
|
||||
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
|
||||
# Unified hosts file with fakenews, porn extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **May 06 2019**.
|
||||
* Here's the [raw hosts file with fakenews, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) containing 53,477 entries.
|
||||
* Last updated: **January 14 2020**.
|
||||
* Here's the [raw hosts file with fakenews, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) containing 67,865 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
---------------- |:------:|:---------:|:--------------:|:-------------:
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 39,260 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 39,930 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 41,528 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 52,807 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 41,548 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 42,198 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 53,477 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 42,218 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 55,075 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 43,816 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 55,094 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 55,745 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 44,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 55,764 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 57,362 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 58,032 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 51,192 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 52,134 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 53,511 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 66,923 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 53,660 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 54,453 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 67,865 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 54,602 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 69,242 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 55,979 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 69,390 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 70,184 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 56,921 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 70,332 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 71,709 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 72,651 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -65,15 +65,15 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
@@ -86,14 +86,12 @@ Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blo
|
||||
|
||||
|
||||
## Extensions
|
||||
The unified hosts file is extensible. Extensions are used to block domains by category.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
@@ -105,13 +103,13 @@ First install the dependencies with:
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
To run unit tests, in the top level directory, run:
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
|
||||
### Usage
|
||||
@@ -140,7 +138,7 @@ of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
@@ -182,7 +180,7 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -223,7 +221,7 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
|
||||
@@ -258,13 +256,12 @@ lines to your hosts file will do it:
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
|
||||
or non applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
@@ -272,15 +269,19 @@ We tried that. Using `0` doesn't work universally.
|
||||
To modify your current `hosts` file, look for it in the following places and modify it with a text
|
||||
editor.
|
||||
|
||||
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
|
||||
**macOS Catalina:** `/private/etc/hosts` file.
|
||||
|
||||
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
Gentoo users may find [`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts) in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
On Linux and Mac OS X, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```
|
||||
updateHostsWindows.bat
|
||||
@@ -375,9 +376,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
@@ -386,7 +387,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -406,10 +407,16 @@ devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
|
||||
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
|
||||
* [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server") (for Debian, Raspbian & Ubuntu): Set up a local DNS server with a `/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
@@ -418,4 +425,12 @@ devices under a variety of operating systems.
|
||||
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
+25357
-5888
File diff suppressed because it is too large
Load Diff
@@ -4,52 +4,52 @@
|
||||
----
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://travis-ci.org/StevenBlack/hosts)
|
||||
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
|
||||
# Unified hosts file with fakenews, social extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **May 06 2019**.
|
||||
* Here's the [raw hosts file with fakenews, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) containing 42,218 entries.
|
||||
* Last updated: **January 14 2020**.
|
||||
* Here's the [raw hosts file with fakenews, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) containing 54,602 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
---------------- |:------:|:---------:|:--------------:|:-------------:
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 39,260 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 39,930 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 41,528 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 52,807 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 41,548 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 42,198 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 53,477 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 42,218 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 55,075 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 43,816 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 55,094 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 55,745 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 44,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 55,764 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 57,362 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 58,032 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 51,192 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 52,134 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 53,511 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 66,923 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 53,660 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 54,453 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 67,865 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 54,602 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 69,242 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 55,979 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 69,390 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 70,184 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 56,921 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 70,332 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 71,709 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 72,651 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -65,15 +65,15 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
@@ -84,14 +84,12 @@ Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
The unified hosts file is extensible. Extensions are used to block domains by category.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
@@ -103,13 +101,13 @@ First install the dependencies with:
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
To run unit tests, in the top level directory, run:
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
|
||||
### Usage
|
||||
@@ -138,7 +136,7 @@ of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
@@ -180,7 +178,7 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -221,7 +219,7 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
|
||||
@@ -256,13 +254,12 @@ lines to your hosts file will do it:
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
|
||||
or non applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
@@ -270,15 +267,19 @@ We tried that. Using `0` doesn't work universally.
|
||||
To modify your current `hosts` file, look for it in the following places and modify it with a text
|
||||
editor.
|
||||
|
||||
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
|
||||
**macOS Catalina:** `/private/etc/hosts` file.
|
||||
|
||||
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
Gentoo users may find [`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts) in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
On Linux and Mac OS X, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```
|
||||
updateHostsWindows.bat
|
||||
@@ -373,9 +374,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
@@ -384,7 +385,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -404,10 +405,16 @@ devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
|
||||
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
|
||||
* [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server") (for Debian, Raspbian & Ubuntu): Set up a local DNS server with a `/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
@@ -416,4 +423,12 @@ devices under a variety of operating systems.
|
||||
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
+25159
-5874
File diff suppressed because it is too large
Load Diff
@@ -4,52 +4,52 @@
|
||||
----
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://travis-ci.org/StevenBlack/hosts)
|
||||
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
|
||||
# Unified hosts file with fakenews extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **May 06 2019**.
|
||||
* Here's the [raw hosts file with fakenews extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) containing 39,930 entries.
|
||||
* Last updated: **January 14 2020**.
|
||||
* Here's the [raw hosts file with fakenews extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) containing 52,134 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
---------------- |:------:|:---------:|:--------------:|:-------------:
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 39,260 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 39,930 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 41,528 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 52,807 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 41,548 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 42,198 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 53,477 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 42,218 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 55,075 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 43,816 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 55,094 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 55,745 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 44,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 55,764 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 57,362 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 58,032 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 51,192 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 52,134 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 53,511 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 66,923 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 53,660 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 54,453 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 67,865 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 54,602 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 69,242 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 55,979 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 69,390 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 70,184 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 56,921 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 70,332 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 71,709 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 72,651 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -65,15 +65,15 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
@@ -82,14 +82,12 @@ Fake News | An in-progress collection of fake news outlets. |[link](https://gith
|
||||
|
||||
|
||||
## Extensions
|
||||
The unified hosts file is extensible. Extensions are used to block domains by category.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
@@ -101,13 +99,13 @@ First install the dependencies with:
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
To run unit tests, in the top level directory, run:
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
|
||||
### Usage
|
||||
@@ -136,7 +134,7 @@ of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
@@ -178,7 +176,7 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -219,7 +217,7 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
|
||||
@@ -254,13 +252,12 @@ lines to your hosts file will do it:
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
|
||||
or non applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
@@ -268,15 +265,19 @@ We tried that. Using `0` doesn't work universally.
|
||||
To modify your current `hosts` file, look for it in the following places and modify it with a text
|
||||
editor.
|
||||
|
||||
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
|
||||
**macOS Catalina:** `/private/etc/hosts` file.
|
||||
|
||||
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
Gentoo users may find [`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts) in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
On Linux and Mac OS X, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```
|
||||
updateHostsWindows.bat
|
||||
@@ -371,9 +372,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
@@ -382,7 +383,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -402,10 +403,16 @@ devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
|
||||
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
|
||||
* [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server") (for Debian, Raspbian & Ubuntu): Set up a local DNS server with a `/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
@@ -414,4 +421,12 @@ devices under a variety of operating systems.
|
||||
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
+30092
-8663
File diff suppressed because it is too large
Load Diff
@@ -4,52 +4,52 @@
|
||||
----
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://travis-ci.org/StevenBlack/hosts)
|
||||
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
|
||||
# Unified hosts file with gambling, porn, social extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **May 06 2019**.
|
||||
* Here's the [raw hosts file with gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) containing 57,362 entries.
|
||||
* Last updated: **January 14 2020**.
|
||||
* Here's the [raw hosts file with gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) containing 71,709 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
---------------- |:------:|:---------:|:--------------:|:-------------:
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 39,260 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 39,930 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 41,528 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 52,807 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 41,548 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 42,198 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 53,477 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 42,218 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 55,075 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 43,816 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 55,094 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 55,745 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 44,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 55,764 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 57,362 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 58,032 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 51,192 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 52,134 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 53,511 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 66,923 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 53,660 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 54,453 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 67,865 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 54,602 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 69,242 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 55,979 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 69,390 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 70,184 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 56,921 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 70,332 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 71,709 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 72,651 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -65,15 +65,15 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
@@ -88,14 +88,12 @@ Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
The unified hosts file is extensible. Extensions are used to block domains by category.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
@@ -107,13 +105,13 @@ First install the dependencies with:
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
To run unit tests, in the top level directory, run:
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
|
||||
### Usage
|
||||
@@ -142,7 +140,7 @@ of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
@@ -184,7 +182,7 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -225,7 +223,7 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
|
||||
@@ -260,13 +258,12 @@ lines to your hosts file will do it:
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
|
||||
or non applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
@@ -274,15 +271,19 @@ We tried that. Using `0` doesn't work universally.
|
||||
To modify your current `hosts` file, look for it in the following places and modify it with a text
|
||||
editor.
|
||||
|
||||
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
|
||||
**macOS Catalina:** `/private/etc/hosts` file.
|
||||
|
||||
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
Gentoo users may find [`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts) in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
On Linux and Mac OS X, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```
|
||||
updateHostsWindows.bat
|
||||
@@ -377,9 +378,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
@@ -388,7 +389,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -408,10 +409,16 @@ devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
|
||||
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
|
||||
* [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server") (for Debian, Raspbian & Ubuntu): Set up a local DNS server with a `/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
@@ -420,4 +427,12 @@ devices under a variety of operating systems.
|
||||
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
+29894
-8649
File diff suppressed because it is too large
Load Diff
@@ -4,52 +4,52 @@
|
||||
----
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://travis-ci.org/StevenBlack/hosts)
|
||||
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
|
||||
# Unified hosts file with gambling, porn extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **May 06 2019**.
|
||||
* Here's the [raw hosts file with gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) containing 55,075 entries.
|
||||
* Last updated: **January 14 2020**.
|
||||
* Here's the [raw hosts file with gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) containing 69,242 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
---------------- |:------:|:---------:|:--------------:|:-------------:
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 39,260 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 39,930 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 41,528 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 52,807 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 41,548 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 42,198 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 53,477 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 42,218 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 55,075 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 43,816 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 55,094 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 55,745 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 44,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 55,764 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 57,362 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 58,032 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 51,192 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 52,134 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 53,511 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 66,923 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 53,660 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 54,453 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 67,865 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 54,602 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 69,242 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 55,979 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 69,390 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 70,184 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 56,921 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 70,332 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 71,709 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 72,651 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -65,15 +65,15 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
@@ -86,14 +86,12 @@ Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blo
|
||||
|
||||
|
||||
## Extensions
|
||||
The unified hosts file is extensible. Extensions are used to block domains by category.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
@@ -105,13 +103,13 @@ First install the dependencies with:
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
To run unit tests, in the top level directory, run:
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
|
||||
### Usage
|
||||
@@ -140,7 +138,7 @@ of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
@@ -182,7 +180,7 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -223,7 +221,7 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
|
||||
@@ -258,13 +256,12 @@ lines to your hosts file will do it:
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
|
||||
or non applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
@@ -272,15 +269,19 @@ We tried that. Using `0` doesn't work universally.
|
||||
To modify your current `hosts` file, look for it in the following places and modify it with a text
|
||||
editor.
|
||||
|
||||
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
|
||||
**macOS Catalina:** `/private/etc/hosts` file.
|
||||
|
||||
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
Gentoo users may find [`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts) in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
On Linux and Mac OS X, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```
|
||||
updateHostsWindows.bat
|
||||
@@ -375,9 +376,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
@@ -386,7 +387,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -406,10 +407,16 @@ devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
|
||||
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
|
||||
* [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server") (for Debian, Raspbian & Ubuntu): Set up a local DNS server with a `/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
@@ -418,4 +425,12 @@ devices under a variety of operating systems.
|
||||
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
+25140
-5890
File diff suppressed because it is too large
Load Diff
@@ -4,52 +4,52 @@
|
||||
----
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://travis-ci.org/StevenBlack/hosts)
|
||||
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
|
||||
# Unified hosts file with gambling, social extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **May 06 2019**.
|
||||
* Here's the [raw hosts file with gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) containing 43,816 entries.
|
||||
* Last updated: **January 14 2020**.
|
||||
* Here's the [raw hosts file with gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) containing 55,979 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
---------------- |:------:|:---------:|:--------------:|:-------------:
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 39,260 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 39,930 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 41,528 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 52,807 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 41,548 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 42,198 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 53,477 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 42,218 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 55,075 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 43,816 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 55,094 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 55,745 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 44,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 55,764 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 57,362 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 58,032 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 51,192 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 52,134 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 53,511 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 66,923 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 53,660 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 54,453 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 67,865 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 54,602 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 69,242 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 55,979 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 69,390 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 70,184 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 56,921 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 70,332 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 71,709 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 72,651 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -65,15 +65,15 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
@@ -84,14 +84,12 @@ Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
The unified hosts file is extensible. Extensions are used to block domains by category.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
@@ -103,13 +101,13 @@ First install the dependencies with:
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
To run unit tests, in the top level directory, run:
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
|
||||
### Usage
|
||||
@@ -138,7 +136,7 @@ of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
@@ -180,7 +178,7 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -221,7 +219,7 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
|
||||
@@ -256,13 +254,12 @@ lines to your hosts file will do it:
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
|
||||
or non applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
@@ -270,15 +267,19 @@ We tried that. Using `0` doesn't work universally.
|
||||
To modify your current `hosts` file, look for it in the following places and modify it with a text
|
||||
editor.
|
||||
|
||||
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
|
||||
**macOS Catalina:** `/private/etc/hosts` file.
|
||||
|
||||
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
Gentoo users may find [`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts) in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
On Linux and Mac OS X, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```
|
||||
updateHostsWindows.bat
|
||||
@@ -373,9 +374,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
@@ -384,7 +385,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -404,10 +405,16 @@ devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
|
||||
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
|
||||
* [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server") (for Debian, Raspbian & Ubuntu): Set up a local DNS server with a `/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
@@ -416,4 +423,12 @@ devices under a variety of operating systems.
|
||||
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
+24942
-5876
File diff suppressed because it is too large
Load Diff
@@ -4,52 +4,52 @@
|
||||
----
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://travis-ci.org/StevenBlack/hosts)
|
||||
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
|
||||
# Unified hosts file with gambling extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **May 06 2019**.
|
||||
* Here's the [raw hosts file with gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) containing 41,528 entries.
|
||||
* Last updated: **January 14 2020**.
|
||||
* Here's the [raw hosts file with gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) containing 53,511 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
---------------- |:------:|:---------:|:--------------:|:-------------:
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 39,260 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 39,930 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 41,528 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 52,807 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 41,548 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 42,198 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 53,477 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 42,218 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 55,075 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 43,816 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 55,094 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 55,745 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 44,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 55,764 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 57,362 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 58,032 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 51,192 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 52,134 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 53,511 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 66,923 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 53,660 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 54,453 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 67,865 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 54,602 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 69,242 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 55,979 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 69,390 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 70,184 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 56,921 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 70,332 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 71,709 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 72,651 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -65,15 +65,15 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
@@ -82,14 +82,12 @@ Sinfonietta's gambling blocking hosts file | A collection of category-specific h
|
||||
|
||||
|
||||
## Extensions
|
||||
The unified hosts file is extensible. Extensions are used to block domains by category.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
@@ -101,13 +99,13 @@ First install the dependencies with:
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
To run unit tests, in the top level directory, run:
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
|
||||
### Usage
|
||||
@@ -136,7 +134,7 @@ of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
@@ -178,7 +176,7 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -219,7 +217,7 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
|
||||
@@ -254,13 +252,12 @@ lines to your hosts file will do it:
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
|
||||
or non applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
@@ -268,15 +265,19 @@ We tried that. Using `0` doesn't work universally.
|
||||
To modify your current `hosts` file, look for it in the following places and modify it with a text
|
||||
editor.
|
||||
|
||||
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
|
||||
**macOS Catalina:** `/private/etc/hosts` file.
|
||||
|
||||
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
Gentoo users may find [`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts) in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
On Linux and Mac OS X, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```
|
||||
updateHostsWindows.bat
|
||||
@@ -371,9 +372,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
@@ -382,7 +383,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -402,10 +403,16 @@ devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
|
||||
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
|
||||
* [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server") (for Debian, Raspbian & Ubuntu): Set up a local DNS server with a `/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
@@ -414,4 +421,12 @@ devices under a variety of operating systems.
|
||||
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
+30035
-8658
File diff suppressed because it is too large
Load Diff
@@ -4,52 +4,52 @@
|
||||
----
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://travis-ci.org/StevenBlack/hosts)
|
||||
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
|
||||
# Unified hosts file with porn, social extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **May 06 2019**.
|
||||
* Here's the [raw hosts file with porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) containing 55,094 entries.
|
||||
* Last updated: **January 14 2020**.
|
||||
* Here's the [raw hosts file with porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) containing 69,390 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
---------------- |:------:|:---------:|:--------------:|:-------------:
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 39,260 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 39,930 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 41,528 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 52,807 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 41,548 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 42,198 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 53,477 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 42,218 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 55,075 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 43,816 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 55,094 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 55,745 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 44,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 55,764 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 57,362 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 58,032 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 51,192 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 52,134 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 53,511 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 66,923 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 53,660 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 54,453 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 67,865 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 54,602 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 69,242 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 55,979 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 69,390 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 70,184 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 56,921 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 70,332 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 71,709 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 72,651 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -65,15 +65,15 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
@@ -87,14 +87,12 @@ Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
The unified hosts file is extensible. Extensions are used to block domains by category.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
@@ -106,13 +104,13 @@ First install the dependencies with:
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
To run unit tests, in the top level directory, run:
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
|
||||
### Usage
|
||||
@@ -141,7 +139,7 @@ of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
@@ -183,7 +181,7 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -224,7 +222,7 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
|
||||
@@ -259,13 +257,12 @@ lines to your hosts file will do it:
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
|
||||
or non applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
@@ -273,15 +270,19 @@ We tried that. Using `0` doesn't work universally.
|
||||
To modify your current `hosts` file, look for it in the following places and modify it with a text
|
||||
editor.
|
||||
|
||||
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
|
||||
**macOS Catalina:** `/private/etc/hosts` file.
|
||||
|
||||
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
Gentoo users may find [`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts) in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
On Linux and Mac OS X, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```
|
||||
updateHostsWindows.bat
|
||||
@@ -376,9 +377,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
@@ -387,7 +388,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -407,10 +408,16 @@ devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
|
||||
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
|
||||
* [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server") (for Debian, Raspbian & Ubuntu): Set up a local DNS server with a `/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
@@ -419,4 +426,12 @@ devices under a variety of operating systems.
|
||||
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
+29837
-8644
File diff suppressed because it is too large
Load Diff
+64
-49
@@ -4,52 +4,52 @@
|
||||
----
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://travis-ci.org/StevenBlack/hosts)
|
||||
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
|
||||
# Unified hosts file with porn extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **May 06 2019**.
|
||||
* Here's the [raw hosts file with porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) containing 52,807 entries.
|
||||
* Last updated: **January 14 2020**.
|
||||
* Here's the [raw hosts file with porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) containing 66,923 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
---------------- |:------:|:---------:|:--------------:|:-------------:
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 39,260 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 39,930 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 41,528 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 52,807 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 41,548 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 42,198 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 53,477 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 42,218 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 55,075 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 43,816 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 55,094 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 55,745 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 44,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 55,764 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 57,362 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 58,032 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 51,192 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 52,134 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 53,511 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 66,923 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 53,660 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 54,453 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 67,865 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 54,602 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 69,242 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 55,979 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 69,390 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 70,184 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 56,921 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 70,332 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 71,709 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 72,651 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -65,15 +65,15 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
@@ -85,14 +85,12 @@ Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blo
|
||||
|
||||
|
||||
## Extensions
|
||||
The unified hosts file is extensible. Extensions are used to block domains by category.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
@@ -104,13 +102,13 @@ First install the dependencies with:
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
To run unit tests, in the top level directory, run:
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
|
||||
### Usage
|
||||
@@ -139,7 +137,7 @@ of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
@@ -181,7 +179,7 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -222,7 +220,7 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
|
||||
@@ -257,13 +255,12 @@ lines to your hosts file will do it:
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
|
||||
or non applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
@@ -271,15 +268,19 @@ We tried that. Using `0` doesn't work universally.
|
||||
To modify your current `hosts` file, look for it in the following places and modify it with a text
|
||||
editor.
|
||||
|
||||
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
|
||||
**macOS Catalina:** `/private/etc/hosts` file.
|
||||
|
||||
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
Gentoo users may find [`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts) in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
On Linux and Mac OS X, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```
|
||||
updateHostsWindows.bat
|
||||
@@ -374,9 +375,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
@@ -385,7 +386,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -405,10 +406,16 @@ devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
|
||||
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
|
||||
* [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server") (for Debian, Raspbian & Ubuntu): Set up a local DNS server with a `/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
@@ -417,4 +424,12 @@ devices under a variety of operating systems.
|
||||
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
+25083
-5885
File diff suppressed because it is too large
Load Diff
+64
-49
@@ -4,52 +4,52 @@
|
||||
----
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://travis-ci.org/StevenBlack/hosts)
|
||||
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
|
||||
# Unified hosts file with social extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **May 06 2019**.
|
||||
* Here's the [raw hosts file with social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) containing 41,548 entries.
|
||||
* Last updated: **January 14 2020**.
|
||||
* Here's the [raw hosts file with social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) containing 53,660 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
---------------- |:------:|:---------:|:--------------:|:-------------:
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 39,260 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 39,930 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 41,528 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 52,807 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 41,548 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 42,198 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 53,477 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 42,218 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 55,075 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 43,816 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 55,094 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 55,745 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 44,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 55,764 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 57,362 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 58,032 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 51,192 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 52,134 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 53,511 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 66,923 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 53,660 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 54,453 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 67,865 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 54,602 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 69,242 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 55,979 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 69,390 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 70,184 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 56,921 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 70,332 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 71,709 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 72,651 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -65,15 +65,15 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
@@ -83,14 +83,12 @@ Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
The unified hosts file is extensible. Extensions are used to block domains by category.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
@@ -102,13 +100,13 @@ First install the dependencies with:
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
To run unit tests, in the top level directory, run:
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
|
||||
### Usage
|
||||
@@ -137,7 +135,7 @@ of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
@@ -179,7 +177,7 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -220,7 +218,7 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
|
||||
@@ -255,13 +253,12 @@ lines to your hosts file will do it:
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
|
||||
or non applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
@@ -269,15 +266,19 @@ We tried that. Using `0` doesn't work universally.
|
||||
To modify your current `hosts` file, look for it in the following places and modify it with a text
|
||||
editor.
|
||||
|
||||
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
|
||||
**macOS Catalina:** `/private/etc/hosts` file.
|
||||
|
||||
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
Gentoo users may find [`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts) in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
On Linux and Mac OS X, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```
|
||||
updateHostsWindows.bat
|
||||
@@ -372,9 +373,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
@@ -383,7 +384,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -403,10 +404,16 @@ devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
|
||||
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
|
||||
* [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server") (for Debian, Raspbian & Ubuntu): Set up a local DNS server with a `/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
@@ -415,4 +422,12 @@ devices under a variety of operating systems.
|
||||
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
# Contributor Covenant Code of Conduct
|
||||
|
||||
## Our Pledge
|
||||
|
||||
In the interest of fostering an open and welcoming environment, we as
|
||||
contributors and maintainers pledge to making participation in our project and
|
||||
our community a harassment-free experience for everyone, regardless of age, body
|
||||
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
||||
level of experience, education, socio-economic status, nationality, personal
|
||||
appearance, race, religion, or sexual identity and orientation.
|
||||
|
||||
## Our Standards
|
||||
|
||||
Examples of behavior that contributes to creating a positive environment
|
||||
include:
|
||||
|
||||
* Using welcoming and inclusive language
|
||||
* Being respectful of differing viewpoints and experiences
|
||||
* Gracefully accepting constructive criticism
|
||||
* Focusing on what is best for the community
|
||||
* Showing empathy towards other community members
|
||||
|
||||
Examples of unacceptable behavior by participants include:
|
||||
|
||||
* The use of sexualized language or imagery and unwelcome sexual attention or
|
||||
advances
|
||||
* Trolling, insulting/derogatory comments, and personal or political attacks
|
||||
* Public or private harassment
|
||||
* Publishing others' private information, such as a physical or electronic
|
||||
address, without explicit permission
|
||||
* Other conduct which could reasonably be considered inappropriate in a
|
||||
professional setting
|
||||
|
||||
## Our Responsibilities
|
||||
|
||||
Project maintainers are responsible for clarifying the standards of acceptable
|
||||
behavior and are expected to take appropriate and fair corrective action in
|
||||
response to any instances of unacceptable behavior.
|
||||
|
||||
Project maintainers have the right and responsibility to remove, edit, or
|
||||
reject comments, commits, code, wiki edits, issues, and other contributions
|
||||
that are not aligned to this Code of Conduct, or to ban temporarily or
|
||||
permanently any contributor for other behaviors that they deem inappropriate,
|
||||
threatening, offensive, or harmful.
|
||||
|
||||
## Scope
|
||||
|
||||
This Code of Conduct applies both within project spaces and in public spaces
|
||||
when an individual is representing the project or its community. Examples of
|
||||
representing a project or community include using an official project e-mail
|
||||
address, posting via an official social media account, or acting as an appointed
|
||||
representative at an online or offline event. Representation of a project may be
|
||||
further defined and clarified by project maintainers.
|
||||
|
||||
## Enforcement
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||
reported by contacting the project team at hosts@sbc.io. All
|
||||
complaints will be reviewed and investigated and will result in a response that
|
||||
is deemed necessary and appropriate to the circumstances. The project team is
|
||||
obligated to maintain confidentiality with regard to the reporter of an incident.
|
||||
Further details of specific enforcement policies may be posted separately.
|
||||
|
||||
Project maintainers who do not follow or enforce the Code of Conduct in good
|
||||
faith may face temporary or permanent repercussions as determined by other
|
||||
members of the project's leadership.
|
||||
|
||||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
||||
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
||||
|
||||
[homepage]: https://www.contributor-covenant.org
|
||||
|
||||
For answers to common questions about this code of conduct, see
|
||||
https://www.contributor-covenant.org/faq
|
||||
@@ -0,0 +1,41 @@
|
||||
# Codebase Structure
|
||||
|
||||
These are the folders and some key files used to generate and store various unified hosts files.
|
||||
|
||||
## Data folders
|
||||
|
||||
There are two facets of the hosts files generated by
|
||||
[/updateHostsFile.py](https://github.com/StevenBlack/hosts/blob/master/updateHostsFile.py):
|
||||
|
||||
### Basic hosts
|
||||
Basic hosts are domains that purvey advertising, malware, tracking, coin
|
||||
mining and other abominable behavior. These hosts are included in all our products.
|
||||
|
||||
The [/data](https://github.com/StevenBlack/hosts/tree/master/data) folder holds the
|
||||
metadata and latest hosts for all our basic hosts sources. The hosts are updated
|
||||
automatically by`/updateHostsFile.py` which iterates all the subfolders within `./data`.
|
||||
|
||||
### Optional hosts extensions
|
||||
Hosts extensions include domains that push potentially addictive content like `porn`, `fake news`,
|
||||
`gambling`, and `social` media.
|
||||
|
||||
The [/extensions](https://github.com/StevenBlack/hosts/tree/master/extensions) folder holds
|
||||
metadata and latest hosts for all our basic hosts sources. The hosts are updated
|
||||
automatically by`/updateHostsFile.py` which iterates all the subfolders within `./extensions`.
|
||||
|
||||
## Product folders
|
||||
|
||||
### Basic hosts
|
||||
The [basic hosts file](https://github.com/StevenBlack/hosts/blob/master/hosts), containing
|
||||
just adware, malware, etc, is stored in the root folder of this repository.
|
||||
|
||||
The [/hosts/alternates](https://github.com/StevenBlack/hosts/tree/master/alternates) this folder
|
||||
contains the products of `updateHostsFile.py`, one subfolder for each permutation of
|
||||
`fakenews`, `gambling`, `porn`, and `social` media hosts, all of which include the base extensions
|
||||
containing hosts that block adware, malware, tracking, etc.
|
||||
|
||||
## Other notable files
|
||||
|
||||
+ [./readme_template.md](https://github.com/StevenBlack/hosts/blob/master/readme_template.md):
|
||||
This file is used to generate all the various readme files in this repository. Therefore,
|
||||
if you wish to change the readme, you need to change only this file.
|
||||
@@ -0,0 +1,39 @@
|
||||
# Contributing Guide
|
||||
|
||||
Contributing to Hosts is easy. This document shows you how to get started
|
||||
|
||||
## General
|
||||
- The [Codebase Structure](https://github.com/StevenBlack/hosts/blob/master/codebase_structure.md) has
|
||||
detailed information about how the various folders and files in this project are structured.
|
||||
|
||||
## Submitting changes
|
||||
|
||||
- Fork the repo
|
||||
- <https://github.com/StevenBlack/hosts/fork>
|
||||
- Check out a new branch based and name it to what you intend to do:
|
||||
- Example:
|
||||
````
|
||||
$ git checkout -b BRANCH_NAME
|
||||
````
|
||||
If you get an error, you may need to fetch first, by using
|
||||
````
|
||||
$ git remote update && git fetch
|
||||
````
|
||||
- Use one branch per fix / feature
|
||||
- Commit your changes
|
||||
- Please provide a git message that explains what you've done
|
||||
- Please make sure your commits follow the [conventions](https://gist.github.com/robertpainsi/b632364184e70900af4ab688decf6f53#file-commit-message-guidelines-md)
|
||||
- Commit to the forked repository
|
||||
- Example:
|
||||
````
|
||||
$ git commit -am 'Add some fooBar'
|
||||
````
|
||||
- Push to the branch
|
||||
- Example:
|
||||
````
|
||||
$ git push origin BRANCH_NAME
|
||||
````
|
||||
- Make a pull request
|
||||
- Make sure you send the PR to the <code>BRANCH_NAM</code> branch
|
||||
|
||||
If you follow these instructions, your Pull Request will land safely!
|
||||
+22
-829
File diff suppressed because it is too large
Load Diff
@@ -5,5 +5,5 @@
|
||||
"frequency": "weekly",
|
||||
"issues": "https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues",
|
||||
"url": "https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts",
|
||||
"license": "'non-commercial with attribution'"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"name": "CoinBlocker",
|
||||
"description": "Simple lists that can help prevent cryptomining in the browser or other applications",
|
||||
"homeurl": "https://gitlab.com/ZeroDot1/CoinBlockerLists",
|
||||
"frequency": "frequently",
|
||||
"issues": "https://gitlab.com/ZeroDot1/CoinBlockerLists/issues",
|
||||
"url": "https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser",
|
||||
"license": "GPLv3"
|
||||
}
|
||||
+4457
-379
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"name": "KADhosts",
|
||||
"description": "Fraud/adware/scam websites.",
|
||||
"homeurl": "https://github.com/azet12/KADhosts",
|
||||
"homeurl": "https://kadantiscam.netlify.com",
|
||||
"frequency": "frequently",
|
||||
"issues": "https://github.com/azet12/KADhosts/issues",
|
||||
"url": "https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt",
|
||||
"license": "GPLv3"
|
||||
"issues": "https://github.com/PolishFiltersTeam/KADhosts/issues",
|
||||
"url": "https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt",
|
||||
"license": "CC BY-SA 4.0"
|
||||
}
|
||||
|
||||
+501
-278
File diff suppressed because it is too large
Load Diff
+19599
-430
File diff suppressed because it is too large
Load Diff
@@ -258,7 +258,6 @@
|
||||
0.0.0.0 bigmart.com.np
|
||||
0.0.0.0 bigpenisguide.com
|
||||
0.0.0.0 bilbob.com
|
||||
0.0.0.0 bilder-upload.eu
|
||||
0.0.0.0 binadroid.com
|
||||
0.0.0.0 bizbor.popunder.ru
|
||||
0.0.0.0 bizneed.com
|
||||
@@ -736,7 +735,6 @@
|
||||
0.0.0.0 icracks.net
|
||||
0.0.0.0 id.get35.com
|
||||
0.0.0.0 ieginc.com
|
||||
0.0.0.0 ifastnet.com
|
||||
0.0.0.0 iframes.awempire.com
|
||||
0.0.0.0 iframes.perfectgonzo.com
|
||||
0.0.0.0 iframes.prettyincash.com
|
||||
@@ -1753,7 +1751,6 @@
|
||||
0.0.0.0 www.bigmart.com.np
|
||||
0.0.0.0 www.bigpenisguide.com
|
||||
0.0.0.0 www.bilbob.com
|
||||
0.0.0.0 www.bilder-upload.eu
|
||||
0.0.0.0 www.binadroid.com
|
||||
0.0.0.0 www.bizneed.com
|
||||
0.0.0.0 www.bj04.com
|
||||
@@ -2020,7 +2017,6 @@
|
||||
0.0.0.0 www.icoocash.com
|
||||
0.0.0.0 www.icracks.net
|
||||
0.0.0.0 www.ieginc.com
|
||||
0.0.0.0 www.ifastnet.com
|
||||
0.0.0.0 www.igame4free.com
|
||||
0.0.0.0 www.i-games.biz
|
||||
0.0.0.0 www.info.com
|
||||
|
||||
@@ -37,7 +37,6 @@
|
||||
0.0.0.0 thedatingconference.com
|
||||
0.0.0.0 tinaborg.com
|
||||
0.0.0.0 unionleisurewear.com
|
||||
0.0.0.0 va.tawk.to
|
||||
0.0.0.0 vntanktransport.com
|
||||
0.0.0.0 vydoxtrial.com
|
||||
0.0.0.0 www.7minuteworkout.com
|
||||
|
||||
+1420
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "hostsVN",
|
||||
"description": "Hosts block ads of Vietnamese",
|
||||
"homeurl": "https://github.com/bigdargon/hostsVN",
|
||||
"frequency": "occasionally",
|
||||
"issues": "https://github.com/bigdargon/hostsVN/issues",
|
||||
"url": "https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN",
|
||||
"license": "MIT"
|
||||
}
|
||||
+53
-579
File diff suppressed because it is too large
Load Diff
+247
-34
File diff suppressed because it is too large
Load Diff
@@ -652,7 +652,6 @@
|
||||
0.0.0.0 brucelead.com
|
||||
0.0.0.0 bs.serving-sys.com
|
||||
0.0.0.0 btstatic.com
|
||||
0.0.0.0 bufferapp.com
|
||||
0.0.0.0 burandsale.com
|
||||
0.0.0.0 burning-phoenix.kir.jp
|
||||
0.0.0.0 buyma.site
|
||||
@@ -1479,7 +1478,6 @@
|
||||
0.0.0.0 netasaka.vis1.shinobi.jp
|
||||
0.0.0.0 netdreamersad.durasite.net
|
||||
0.0.0.0 netwayz.com.sg
|
||||
0.0.0.0 newrelic.com
|
||||
0.0.0.0 newyorksportsworld.com
|
||||
0.0.0.0 newzia.jp
|
||||
0.0.0.0 nex8.net
|
||||
@@ -1678,7 +1676,6 @@
|
||||
0.0.0.0 register.appsflyer.com
|
||||
0.0.0.0 remoraimage.xlisting.jp
|
||||
0.0.0.0 renewingfaces.com
|
||||
0.0.0.0 renta.papy.co.jp
|
||||
0.0.0.0 reon.club
|
||||
0.0.0.0 rep.exblog.jp
|
||||
0.0.0.0 reporo.net
|
||||
@@ -1741,7 +1738,6 @@
|
||||
0.0.0.0 s-cm.send.microad.jp
|
||||
0.0.0.0 s-cs.send.microad.jp
|
||||
0.0.0.0 s.f1.impact-ad.jp
|
||||
0.0.0.0 s.gravatar.com
|
||||
0.0.0.0 s.liveads.jp
|
||||
0.0.0.0 s.net-public.com
|
||||
0.0.0.0 s.pagoda56.com
|
||||
|
||||
+421
-132
File diff suppressed because it is too large
Load Diff
+276
-2
@@ -3,16 +3,23 @@
|
||||
0.0.0.0 21stcenturywire.com
|
||||
0.0.0.0 365usanews.com
|
||||
0.0.0.0 4threvolutionarywar.wordpress.com
|
||||
0.0.0.0 5galert.com
|
||||
0.0.0.0 70news.wordpress.com
|
||||
0.0.0.0 aanirfan.blogspot.com
|
||||
0.0.0.0 abcnews.com.co
|
||||
0.0.0.0 abolishsocialism.com
|
||||
0.0.0.0 abortions.news
|
||||
0.0.0.0 absurd.news
|
||||
0.0.0.0 addictinginfo.org
|
||||
0.0.0.0 addiction.news
|
||||
0.0.0.0 adobochronicles.com
|
||||
0.0.0.0 africannewsupdates.com
|
||||
0.0.0.0 ahtribune.com
|
||||
0.0.0.0 alertchild.com
|
||||
0.0.0.0 aljazeera-channel.com
|
||||
0.0.0.0 allnewspipeline.com
|
||||
0.0.0.0 altleft.news
|
||||
0.0.0.0 aluminum.news
|
||||
0.0.0.0 alynews.com
|
||||
0.0.0.0 americanfreepress.net
|
||||
0.0.0.0 americanlookout.com
|
||||
@@ -26,37 +33,66 @@
|
||||
0.0.0.0 anonhq.com
|
||||
0.0.0.0 anonymousnews.ru
|
||||
0.0.0.0 anotherdayintheempire.com
|
||||
0.0.0.0 anticancer.news
|
||||
0.0.0.0 areyouasleep.com
|
||||
0.0.0.0 asamericanasapplepie.org
|
||||
0.0.0.0 asheepnomore.net
|
||||
0.0.0.0 asia-pacificresearch.com
|
||||
0.0.0.0 aspartame.news
|
||||
0.0.0.0 assassinationscience.com
|
||||
0.0.0.0 associatedmediacoverage.com
|
||||
0.0.0.0 atrazine.news
|
||||
0.0.0.0 autismtruthnews.com
|
||||
0.0.0.0 awakening.news
|
||||
0.0.0.0 awarenessact.com
|
||||
0.0.0.0 awazetribune.com
|
||||
0.0.0.0 awdnews.com
|
||||
0.0.0.0 badcriminals.com
|
||||
0.0.0.0 baddoctors.news
|
||||
0.0.0.0 baltimoregazette.com
|
||||
0.0.0.0 barackobama.news
|
||||
0.0.0.0 bb4sp.com
|
||||
0.0.0.0 bees.news
|
||||
0.0.0.0 beforeitsnews.com
|
||||
0.0.0.0 bentspud.com
|
||||
0.0.0.0 bigamericannews.com
|
||||
0.0.0.0 biggovernment.news
|
||||
0.0.0.0 biglawnewsline.com
|
||||
0.0.0.0 bigleaguepolitics.com
|
||||
0.0.0.0 bignuggetnews.com
|
||||
0.0.0.0 bigpharmanews.com
|
||||
0.0.0.0 bigpzone.com
|
||||
0.0.0.0 bigtech.news
|
||||
0.0.0.0 billnye.news
|
||||
0.0.0.0 biotech.news
|
||||
0.0.0.0 bipartisanreport.com
|
||||
0.0.0.0 bitcoincrash.news
|
||||
0.0.0.0 bizstandardnews.com
|
||||
0.0.0.0 blackgenocide.org
|
||||
0.0.0.0 blacklistednews.com
|
||||
0.0.0.0 blog.halle-leaks.de
|
||||
0.0.0.0 bluenationreview.com
|
||||
0.0.0.0 brain.news
|
||||
0.0.0.0 brainfunction.news
|
||||
0.0.0.0 breakthrough.news
|
||||
0.0.0.0 bugout.news
|
||||
0.0.0.0 butthatsnoneofmybusiness.com
|
||||
0.0.0.0 cacao.news
|
||||
0.0.0.0 caintv.com
|
||||
0.0.0.0 campusinsanity.com
|
||||
0.0.0.0 canadafreepress.com
|
||||
0.0.0.0 cancermyths.com
|
||||
0.0.0.0 cancerscams.com
|
||||
0.0.0.0 cancersolutions.news
|
||||
0.0.0.0 cancertumors.news
|
||||
0.0.0.0 cap-news.com
|
||||
0.0.0.0 carbondioxide.news
|
||||
0.0.0.0 cartelpress.com
|
||||
0.0.0.0 cartelreport.com
|
||||
0.0.0.0 cbds.news
|
||||
0.0.0.0 cdc.news
|
||||
0.0.0.0 celebrityreputation.com
|
||||
0.0.0.0 censorship.news
|
||||
0.0.0.0 channel-7-news.com
|
||||
0.0.0.0 channel16news.com
|
||||
0.0.0.0 channel17news.com
|
||||
@@ -69,16 +105,32 @@
|
||||
0.0.0.0 channel34news.com
|
||||
0.0.0.0 channel45news.com
|
||||
0.0.0.0 channel5000.com
|
||||
0.0.0.0 chaos.news
|
||||
0.0.0.0 chemicals.news
|
||||
0.0.0.0 chemistry.news
|
||||
0.0.0.0 chemo.news
|
||||
0.0.0.0 chemotherapy.news
|
||||
0.0.0.0 chemtrailsnews.com
|
||||
0.0.0.0 chemtrailsplanet.net
|
||||
0.0.0.0 chocolate.news
|
||||
0.0.0.0 christianfightback.com
|
||||
0.0.0.0 christiantimesnewspaper.com
|
||||
0.0.0.0 christwire.org
|
||||
0.0.0.0 chronicle.su
|
||||
0.0.0.0 civictribune.com
|
||||
0.0.0.0 civilwar.news
|
||||
0.0.0.0 clancyreport.com
|
||||
0.0.0.0 clashdaily.com
|
||||
0.0.0.0 cleanfoodwatch.com
|
||||
0.0.0.0 cleanwater.news
|
||||
0.0.0.0 climate.news
|
||||
0.0.0.0 climatealarmism.news
|
||||
0.0.0.0 climatesciencenews.com
|
||||
0.0.0.0 cnn.com.de
|
||||
0.0.0.0 collapse.news
|
||||
0.0.0.0 collapsifornia.com
|
||||
0.0.0.0 collectivelyconscious.net
|
||||
0.0.0.0 computing.news
|
||||
0.0.0.0 consciouslifenews.com
|
||||
0.0.0.0 conservative101.com
|
||||
0.0.0.0 conservativebyte.com
|
||||
@@ -89,8 +141,12 @@
|
||||
0.0.0.0 conservativerefocus.com
|
||||
0.0.0.0 conservativestate.com
|
||||
0.0.0.0 conservativetribune.com
|
||||
0.0.0.0 conspiracy.news
|
||||
0.0.0.0 conspiracydailyupdate.com
|
||||
0.0.0.0 conspiracyplanet.com
|
||||
0.0.0.0 cortezwatch.com
|
||||
0.0.0.0 cosmetics.news
|
||||
0.0.0.0 cosmic.news
|
||||
0.0.0.0 countdowntozerotime.com
|
||||
0.0.0.0 countercurrentnews.com
|
||||
0.0.0.0 counterpsyops.com
|
||||
@@ -99,6 +155,9 @@
|
||||
0.0.0.0 crazynewsreports.com
|
||||
0.0.0.0 creambmp.com
|
||||
0.0.0.0 cronicadeportiva.com
|
||||
0.0.0.0 cures.news
|
||||
0.0.0.0 cyberwar.news
|
||||
0.0.0.0 cyborg.news
|
||||
0.0.0.0 dailybuzzlive.com
|
||||
0.0.0.0 dailycaller.com
|
||||
0.0.0.0 dailycurrant.com
|
||||
@@ -108,16 +167,33 @@
|
||||
0.0.0.0 dailyoccupation.com
|
||||
0.0.0.0 dailypostfeed.com
|
||||
0.0.0.0 dandygoat.com
|
||||
0.0.0.0 dangerousmedicine.com
|
||||
0.0.0.0 davidduke.com
|
||||
0.0.0.0 davidgorski.news
|
||||
0.0.0.0 dcleaks.com
|
||||
0.0.0.0 dcposts.com
|
||||
0.0.0.0 dcwhispers.com
|
||||
0.0.0.0 deepinsidetherabbithole.com
|
||||
0.0.0.0 deepstate.news
|
||||
0.0.0.0 dementia.news
|
||||
0.0.0.0 democide.news
|
||||
0.0.0.0 democraticreview.com
|
||||
0.0.0.0 demonic.news
|
||||
0.0.0.0 demonictimes.com
|
||||
0.0.0.0 dennismichaellynch.com
|
||||
0.0.0.0 denverguardian.com
|
||||
0.0.0.0 departed.co
|
||||
0.0.0.0 departedmedia.info
|
||||
0.0.0.0 depopulation.news
|
||||
0.0.0.0 depressionsymptoms.news
|
||||
0.0.0.0 diabetescure.news
|
||||
0.0.0.0 diabetessciencenews.com
|
||||
0.0.0.0 dicamba.news
|
||||
0.0.0.0 digestion.news
|
||||
0.0.0.0 disaster.news
|
||||
0.0.0.0 discoveries.news
|
||||
0.0.0.0 divinitynow.org
|
||||
0.0.0.0 dnc.news
|
||||
0.0.0.0 donaldtrumpnews.co
|
||||
0.0.0.0 downtrend.com
|
||||
0.0.0.0 drudgereport.com.co
|
||||
@@ -126,70 +202,140 @@
|
||||
0.0.0.0 eaglerising.com
|
||||
0.0.0.0 educate-yourself.org
|
||||
0.0.0.0 educateinspirechange.org
|
||||
0.0.0.0 electricity.news
|
||||
0.0.0.0 embols.com
|
||||
0.0.0.0 emergencyfood.news
|
||||
0.0.0.0 emf.news
|
||||
0.0.0.0 emp.news
|
||||
0.0.0.0 empireherald.com
|
||||
0.0.0.0 empirenews.com
|
||||
0.0.0.0 empirenews.net
|
||||
0.0.0.0 endingthefed.com
|
||||
0.0.0.0 endoftheamericandream.com
|
||||
0.0.0.0 environ.news
|
||||
0.0.0.0 epa.news
|
||||
0.0.0.0 ericholder.news
|
||||
0.0.0.0 essentialoils.news
|
||||
0.0.0.0 eugenics.news
|
||||
0.0.0.0 euthanasia.news
|
||||
0.0.0.0 eutopia.buzz
|
||||
0.0.0.0 everydaybreakingnews.com
|
||||
0.0.0.0 evil.news
|
||||
0.0.0.0 evilnewsom.com
|
||||
0.0.0.0 extinction.news
|
||||
0.0.0.0 eyehealth.news
|
||||
0.0.0.0 fakebook.news
|
||||
0.0.0.0 faked.news
|
||||
0.0.0.0 fakescience.news
|
||||
0.0.0.0 falseflag.news
|
||||
0.0.0.0 familysecuritymatters.org
|
||||
0.0.0.0 famousviralstories.com
|
||||
0.0.0.0 fanzinger.com
|
||||
0.0.0.0 fasting.news
|
||||
0.0.0.0 fbicorruption.news
|
||||
0.0.0.0 fda.news
|
||||
0.0.0.0 federalistpress.com
|
||||
0.0.0.0 fedsalert.com
|
||||
0.0.0.0 fellowshipoftheminds.com
|
||||
0.0.0.0 fightobesity.news
|
||||
0.0.0.0 firebrandleft.com
|
||||
0.0.0.0 fluoride.news
|
||||
0.0.0.0 flyingcars.news
|
||||
0.0.0.0 fmobserver.com
|
||||
0.0.0.0 focusnews.us
|
||||
0.0.0.0 folksvideo.com
|
||||
0.0.0.0 foodcollapse.com
|
||||
0.0.0.0 foodevolution.news
|
||||
0.0.0.0 foodfreedom.news
|
||||
0.0.0.0 foodismedicine.com
|
||||
0.0.0.0 foodscience.news
|
||||
0.0.0.0 foodstorage.news
|
||||
0.0.0.0 foodsupply.news
|
||||
0.0.0.0 forbiddenknowledgetv.net
|
||||
0.0.0.0 fprnradio.com
|
||||
0.0.0.0 fracking.news
|
||||
0.0.0.0 freebeacon.com
|
||||
0.0.0.0 freedom-articles.toolsforfreedom.com
|
||||
0.0.0.0 freedom.news
|
||||
0.0.0.0 freedomdaily.com
|
||||
0.0.0.0 freedomoutpost.com
|
||||
0.0.0.0 fresh.news
|
||||
0.0.0.0 fromthetrenchesworldreport.com
|
||||
0.0.0.0 fruits.news
|
||||
0.0.0.0 fuhrerious88blog.wordpress.com
|
||||
0.0.0.0 fukushima.news
|
||||
0.0.0.0 fukushimawatch.com
|
||||
0.0.0.0 fusionlacedillusions.com
|
||||
0.0.0.0 futuresciencenews.com
|
||||
0.0.0.0 galacticconnection.com
|
||||
0.0.0.0 gangstergovernment.com
|
||||
0.0.0.0 gatesofvienna.net
|
||||
0.0.0.0 gender.news
|
||||
0.0.0.0 genocide.news
|
||||
0.0.0.0 geoengineering.news
|
||||
0.0.0.0 glitch.news
|
||||
0.0.0.0 globalresearch.ca
|
||||
0.0.0.0 glossynews.com
|
||||
0.0.0.0 glyphocide.news
|
||||
0.0.0.0 glyphosate.news
|
||||
0.0.0.0 gmo.news
|
||||
0.0.0.0 godtoday.com
|
||||
0.0.0.0 gomerblog.com
|
||||
0.0.0.0 gopthedailydose.com
|
||||
0.0.0.0 gotnews.com
|
||||
0.0.0.0 govtslaves.com
|
||||
0.0.0.0 govtslaves.info
|
||||
0.0.0.0 greatertexan.com
|
||||
0.0.0.0 greenlivingnews.com
|
||||
0.0.0.0 grocery.news
|
||||
0.0.0.0 guccifer2.wordpress.com
|
||||
0.0.0.0 gulagbound.com
|
||||
0.0.0.0 hahaloud.com
|
||||
0.0.0.0 healthcoverage.news
|
||||
0.0.0.0 healthfreedom.news
|
||||
0.0.0.0 healthimpactnews.com
|
||||
0.0.0.0 healthrangerapproved.com
|
||||
0.0.0.0 healthrangerscience.com
|
||||
0.0.0.0 healthscience.news
|
||||
0.0.0.0 heart.news
|
||||
0.0.0.0 heartdisease.news
|
||||
0.0.0.0 heathenwomen.com
|
||||
0.0.0.0 heaviermetal.net
|
||||
0.0.0.0 heavymetals.news
|
||||
0.0.0.0 hempscience.news
|
||||
0.0.0.0 henrymakow.com
|
||||
0.0.0.0 hoax.news
|
||||
0.0.0.0 hollywoodhater.com
|
||||
0.0.0.0 holylandnutrition.com
|
||||
0.0.0.0 homeschooling.news
|
||||
0.0.0.0 howardschultz.news
|
||||
0.0.0.0 humansarefree.com
|
||||
0.0.0.0 hydrogenwater.news
|
||||
0.0.0.0 ihavethetruth.com
|
||||
0.0.0.0 illuminati-news.com
|
||||
0.0.0.0 immediatesafety.org
|
||||
0.0.0.0 immunization.news
|
||||
0.0.0.0 imzansi.co.za
|
||||
0.0.0.0 indiaarising.com
|
||||
0.0.0.0 info.kopp-verlag.de
|
||||
0.0.0.0 infowars.com
|
||||
0.0.0.0 ingredients.news
|
||||
0.0.0.0 intellihub.com
|
||||
0.0.0.0 inthenow.media
|
||||
0.0.0.0 intrendtoday.com
|
||||
0.0.0.0 invasionusa.news
|
||||
0.0.0.0 inventions.news
|
||||
0.0.0.0 investmentwatchblog.com
|
||||
0.0.0.0 irishufology.net
|
||||
0.0.0.0 ironictimes.com
|
||||
0.0.0.0 islamicanews.com
|
||||
0.0.0.0 itaglive.com
|
||||
0.0.0.0 jamescomey.news
|
||||
0.0.0.0 jamesfetzer.blogspot.com
|
||||
0.0.0.0 jameslico.com
|
||||
0.0.0.0 janmorganmedia.com
|
||||
0.0.0.0 jeffbezoswatch.com
|
||||
0.0.0.0 joebiden.news
|
||||
0.0.0.0 joeforamerica.com
|
||||
0.0.0.0 jokerviral.com
|
||||
0.0.0.0 jonesreport.com
|
||||
@@ -206,8 +352,11 @@
|
||||
0.0.0.0 kypo6.com
|
||||
0.0.0.0 landdestroyer.blogspot.com
|
||||
0.0.0.0 larouchepub.com
|
||||
0.0.0.0 leftcult.com
|
||||
0.0.0.0 leftcult.com
|
||||
0.0.0.0 liberaldarkness.com
|
||||
0.0.0.0 liberalsociety.com
|
||||
0.0.0.0 liberty.news
|
||||
0.0.0.0 libertyblitzkrieg.com
|
||||
0.0.0.0 libertymovementradio.com
|
||||
0.0.0.0 libertynews.com
|
||||
@@ -219,6 +368,7 @@
|
||||
0.0.0.0 literallyunbelievable.org
|
||||
0.0.0.0 livemonitor.co.za
|
||||
0.0.0.0 livingresistance.com
|
||||
0.0.0.0 longevitysciencenews.com
|
||||
0.0.0.0 lucidawakenings.net
|
||||
0.0.0.0 madashellnews.com
|
||||
0.0.0.0 madworldnews.com
|
||||
@@ -227,34 +377,66 @@
|
||||
0.0.0.0 mbynews.com
|
||||
0.0.0.0 mckenziepost.com
|
||||
0.0.0.0 mediamass.net
|
||||
0.0.0.0 medicalextremism.com
|
||||
0.0.0.0 medicaltech.news
|
||||
0.0.0.0 medicaltyranny.com
|
||||
0.0.0.0 medicalviolence.com
|
||||
0.0.0.0 medicine.news
|
||||
0.0.0.0 memoryholeblog.com
|
||||
0.0.0.0 metals.news
|
||||
0.0.0.0 microplastics.news
|
||||
0.0.0.0 mike.news
|
||||
0.0.0.0 mikeadams.news
|
||||
0.0.0.0 mind.news
|
||||
0.0.0.0 mindbodyscience.news
|
||||
0.0.0.0 mindcontrol.news
|
||||
0.0.0.0 mindenszo.hu
|
||||
0.0.0.0 monsanto.news
|
||||
0.0.0.0 monsantomafia.com
|
||||
0.0.0.0 moralmatters.org
|
||||
0.0.0.0 mpidailymagazine.com
|
||||
0.0.0.0 mrnewswatch.com
|
||||
0.0.0.0 msg.news
|
||||
0.0.0.0 msnbc.website
|
||||
0.0.0.0 myfoodepic.com
|
||||
0.0.0.0 myzonetoday.com
|
||||
0.0.0.0 nahadaily.com
|
||||
0.0.0.0 nanotechnology.news
|
||||
0.0.0.0 nationalreport.net
|
||||
0.0.0.0 nationalsecurity.news
|
||||
0.0.0.0 nationonenews.com
|
||||
0.0.0.0 naturalcures.news
|
||||
0.0.0.0 naturalhealth.news
|
||||
0.0.0.0 naturalmedicine.news
|
||||
0.0.0.0 naturalnewscharity.com
|
||||
0.0.0.0 naturalnewsnutrients.com
|
||||
0.0.0.0 naturalnewsobserver.com
|
||||
0.0.0.0 naturalnewsrecipes.com
|
||||
0.0.0.0 naturalnewsreference.com
|
||||
0.0.0.0 naturalnewstips.com
|
||||
0.0.0.0 naturalpedia.com
|
||||
0.0.0.0 naturopathy.news
|
||||
0.0.0.0 nbcnews.io
|
||||
0.0.0.0 netlivemedia.com
|
||||
0.0.0.0 nevo.news
|
||||
0.0.0.0 newcenturytimes.com
|
||||
0.0.0.0 newenergyreport.com
|
||||
0.0.0.0 newobserveronline.com
|
||||
0.0.0.0 news4ktla.com
|
||||
0.0.0.0 newsbiscuit.com
|
||||
0.0.0.0 newsbreakers.org
|
||||
0.0.0.0 newsbuzzdaily.com
|
||||
0.0.0.0 newsexaminer.net
|
||||
0.0.0.0 newsguardwatch.com
|
||||
0.0.0.0 newshubs.info
|
||||
0.0.0.0 newslo.com
|
||||
0.0.0.0 newsmutiny.com
|
||||
0.0.0.0 newsnow.co.za
|
||||
0.0.0.0 newsnow17.com
|
||||
0.0.0.0 newsparody.com
|
||||
0.0.0.0 newspunch.com
|
||||
0.0.0.0 newstarget.com
|
||||
0.0.0.0 newstarget.com
|
||||
0.0.0.0 newswatch28.com
|
||||
0.0.0.0 newswatch33.com
|
||||
0.0.0.0 newswire-24.com
|
||||
@@ -264,22 +446,41 @@
|
||||
0.0.0.0 nodisinfo.com
|
||||
0.0.0.0 notallowedto.com
|
||||
0.0.0.0 now8news.com
|
||||
0.0.0.0 npr.news
|
||||
0.0.0.0 nsnbc.me
|
||||
0.0.0.0 nuclear.news
|
||||
0.0.0.0 nuclearweapons.news
|
||||
0.0.0.0 nutrients.news
|
||||
0.0.0.0 occupydemocrats.com
|
||||
0.0.0.0 off-guardian.org
|
||||
0.0.0.0 oftwominds.com
|
||||
0.0.0.0 oilgeopolitics.net
|
||||
0.0.0.0 oncology.news
|
||||
0.0.0.0 onlineconservativepress.com
|
||||
0.0.0.0 opednews.com
|
||||
0.0.0.0 openborders.news
|
||||
0.0.0.0 opioids.news
|
||||
0.0.0.0 oreillypost.com
|
||||
0.0.0.0 organharvesting.news
|
||||
0.0.0.0 organicfarming.news
|
||||
0.0.0.0 organics.news
|
||||
0.0.0.0 orientalreview.org
|
||||
0.0.0.0 ourshiftingperspective.com
|
||||
0.0.0.0 outbreak.news
|
||||
0.0.0.0 pamelageller.com
|
||||
0.0.0.0 pandemic.news
|
||||
0.0.0.0 patriotnewsagency.com
|
||||
0.0.0.0 patriotrising.com
|
||||
0.0.0.0 patriotupdate.com
|
||||
0.0.0.0 pensions.news
|
||||
0.0.0.0 persecutes.com
|
||||
0.0.0.0 pesticides.news
|
||||
0.0.0.0 petfoodwarning.com
|
||||
0.0.0.0 pethealthdaily.com
|
||||
0.0.0.0 physics.news
|
||||
0.0.0.0 plague.info
|
||||
0.0.0.0 platosguns.com
|
||||
0.0.0.0 policestate.news
|
||||
0.0.0.0 politicalblindspot.com
|
||||
0.0.0.0 politicalcult.com
|
||||
0.0.0.0 politicalears.com
|
||||
@@ -288,54 +489,105 @@
|
||||
0.0.0.0 politicalvelcraft.org
|
||||
0.0.0.0 politicops.com
|
||||
0.0.0.0 politistick.com
|
||||
0.0.0.0 pollution.news
|
||||
0.0.0.0 populationcollapse.com
|
||||
0.0.0.0 populationcontrol.news
|
||||
0.0.0.0 power.news
|
||||
0.0.0.0 powergrid.news
|
||||
0.0.0.0 preparedness.news
|
||||
0.0.0.0 president45donaldtrump.com
|
||||
0.0.0.0 pressfortruth.ca
|
||||
0.0.0.0 presstv.com
|
||||
0.0.0.0 preventcancer.news
|
||||
0.0.0.0 privacywatch.news
|
||||
0.0.0.0 prntly.com
|
||||
0.0.0.0 progress.news
|
||||
0.0.0.0 projectveritas.com
|
||||
0.0.0.0 propaganda.news
|
||||
0.0.0.0 prophecy.news
|
||||
0.0.0.0 qpolitical.com
|
||||
0.0.0.0 quackery.news
|
||||
0.0.0.0 qualitysharing.com
|
||||
0.0.0.0 racerelations.news
|
||||
0.0.0.0 radiation.news
|
||||
0.0.0.0 rbth.com
|
||||
0.0.0.0 readconservatives.news
|
||||
0.0.0.0 readynutrition.com
|
||||
0.0.0.0 reagancoalition.com
|
||||
0.0.0.0 realnewsrightnow.com
|
||||
0.0.0.0 realsciencenews.com
|
||||
0.0.0.0 redstatewatcher.com
|
||||
0.0.0.0 regated.com
|
||||
0.0.0.0 rense.com
|
||||
0.0.0.0 reporter.bz
|
||||
0.0.0.0 research.news
|
||||
0.0.0.0 revolt.news
|
||||
0.0.0.0 richardpan.news
|
||||
0.0.0.0 rickwells.us
|
||||
0.0.0.0 rightalerts.com
|
||||
0.0.0.0 rightwingnews.com
|
||||
0.0.0.0 rilenews.com
|
||||
0.0.0.0 rinf.com
|
||||
0.0.0.0 risk.news
|
||||
0.0.0.0 robertmueller.news
|
||||
0.0.0.0 robotics.news
|
||||
0.0.0.0 robots.news
|
||||
0.0.0.0 ronpaulinstitute.org
|
||||
0.0.0.0 rumormillnews.com
|
||||
0.0.0.0 ruptly.tv
|
||||
0.0.0.0 russia-insider.com
|
||||
0.0.0.0 samuel-warde.com
|
||||
0.0.0.0 sana.sy
|
||||
0.0.0.0 satanictech.com
|
||||
0.0.0.0 satanism.news
|
||||
0.0.0.0 science.news
|
||||
0.0.0.0 scienceclowns.com
|
||||
0.0.0.0 sciencedeception.com
|
||||
0.0.0.0 sciencetyranny.com
|
||||
0.0.0.0 scientific.news
|
||||
0.0.0.0 scrapetv.com
|
||||
0.0.0.0 scrappleface.com
|
||||
0.0.0.0 secondamendment.news
|
||||
0.0.0.0 sentinelblog.com
|
||||
0.0.0.0 sgtreport.com
|
||||
0.0.0.0 sheepkillers.com
|
||||
0.0.0.0 sheeple.news
|
||||
0.0.0.0 shoebat.com
|
||||
0.0.0.0 shtf.news
|
||||
0.0.0.0 silentmajoritypatriots.com
|
||||
0.0.0.0 sitsshow.blogspot.com
|
||||
0.0.0.0 skeptiko.com
|
||||
0.0.0.0 slender.news
|
||||
0.0.0.0 smartmeters.news
|
||||
0.0.0.0 smhwtfnews.com
|
||||
0.0.0.0 snopes.news
|
||||
0.0.0.0 solarpanels.news
|
||||
0.0.0.0 somicom.com
|
||||
0.0.0.0 southfront.org
|
||||
0.0.0.0 space.news
|
||||
0.0.0.0 spacetourism.news
|
||||
0.0.0.0 splc.news
|
||||
0.0.0.0 sputniknews.com
|
||||
0.0.0.0 starbuckswatch.news
|
||||
0.0.0.0 stateofthenation2012.com
|
||||
0.0.0.0 statins.news
|
||||
0.0.0.0 stgeorgegazette.com
|
||||
0.0.0.0 stneotscitizen.com
|
||||
0.0.0.0 stopsmoking.news
|
||||
0.0.0.0 stormcloudsgathering.com
|
||||
0.0.0.0 straightstoned.com
|
||||
0.0.0.0 stupid.news
|
||||
0.0.0.0 stuppid.com
|
||||
0.0.0.0 subjectpolitics.com
|
||||
0.0.0.0 superbugs.news
|
||||
0.0.0.0 superfoods.news
|
||||
0.0.0.0 supplementsreport.com
|
||||
0.0.0.0 supremepatriot.com
|
||||
0.0.0.0 survivalgear.news
|
||||
0.0.0.0 sweeteners.news
|
||||
0.0.0.0 tapwater.news
|
||||
0.0.0.0 techgiants.news
|
||||
0.0.0.0 technocrats.news
|
||||
0.0.0.0 the-newspapers.com
|
||||
0.0.0.0 theamericanindependent.wordpress.com
|
||||
0.0.0.0 theamericanrevenant.com
|
||||
@@ -350,7 +602,6 @@
|
||||
0.0.0.0 thefreepatriot.org
|
||||
0.0.0.0 thefreethoughtproject.com
|
||||
0.0.0.0 thefrt.com
|
||||
0.0.0.0 thehardtimes.net
|
||||
0.0.0.0 theineptowl.com
|
||||
0.0.0.0 thelapine.ca
|
||||
0.0.0.0 thelastgreatstand.com
|
||||
@@ -395,26 +646,35 @@
|
||||
0.0.0.0 tmzworldstar.com
|
||||
0.0.0.0 tmzworldstarnews.com
|
||||
0.0.0.0 tomatobubble.com
|
||||
0.0.0.0 top10grocerysecrets.com
|
||||
0.0.0.0 topekasnews.com
|
||||
0.0.0.0 toprightnews.com
|
||||
0.0.0.0 totalworldnews.com
|
||||
0.0.0.0 tradcatknight.blogspot.com
|
||||
0.0.0.0 trafficking.news
|
||||
0.0.0.0 transhumanism.news
|
||||
0.0.0.0 treason.news
|
||||
0.0.0.0 truepundit.com
|
||||
0.0.0.0 trueworldhistory.info
|
||||
0.0.0.0 trump.news
|
||||
0.0.0.0 truth.news
|
||||
0.0.0.0 truthbroadcastnetwork.com
|
||||
0.0.0.0 truthfeed.com
|
||||
0.0.0.0 truthfrequencyradio.com
|
||||
0.0.0.0 truthkings.com
|
||||
0.0.0.0 truthpoliticsnews.com
|
||||
0.0.0.0 turmeric.news
|
||||
0.0.0.0 tv.infowars.com
|
||||
0.0.0.0 twitchy.com
|
||||
0.0.0.0 uconservative.com
|
||||
0.0.0.0 ufoholic.com
|
||||
0.0.0.0 ufos.news
|
||||
0.0.0.0 ultimateflashnews.com
|
||||
0.0.0.0 unclesamsmisguidedchildren.com
|
||||
0.0.0.0 unconfirmedsources.com
|
||||
0.0.0.0 undergroundnewsreport.com
|
||||
0.0.0.0 undergroundworldnews.com
|
||||
0.0.0.0 unexplained.news
|
||||
0.0.0.0 unitedmediapublishing.com
|
||||
0.0.0.0 us.blastingnews.com
|
||||
0.0.0.0 usaaroundtheworldnews.com
|
||||
@@ -432,7 +692,11 @@
|
||||
0.0.0.0 usslibertyveterans.org
|
||||
0.0.0.0 usuncut.com
|
||||
0.0.0.0 usviral.info
|
||||
0.0.0.0 vaccineholocaust.org
|
||||
0.0.0.0 vaccines.news
|
||||
0.0.0.0 vaccinewars.com
|
||||
0.0.0.0 vaclib.org
|
||||
0.0.0.0 veteranstoday.news
|
||||
0.0.0.0 vigilantcitizen.com
|
||||
0.0.0.0 viralactions.com
|
||||
0.0.0.0 viralcocaine.com
|
||||
@@ -442,22 +706,30 @@
|
||||
0.0.0.0 viralpropaganda.com
|
||||
0.0.0.0 viralspeech.com
|
||||
0.0.0.0 viralstuppid.com
|
||||
0.0.0.0 vitamind.news
|
||||
0.0.0.0 wakeupthesheep.com
|
||||
0.0.0.0 wakingupwisconsin.com
|
||||
0.0.0.0 waterfilters.news
|
||||
0.0.0.0 waterfordwhispersnews.com
|
||||
0.0.0.0 waterwars.news
|
||||
0.0.0.0 wearechange.org
|
||||
0.0.0.0 weeklyworldnews.com
|
||||
0.0.0.0 weirdsciencenews.com
|
||||
0.0.0.0 weshapelife.org
|
||||
0.0.0.0 whatdoesitmean.com
|
||||
0.0.0.0 whitehouse.news
|
||||
0.0.0.0 whitepower.com
|
||||
0.0.0.0 wikispooks.com
|
||||
0.0.0.0 winningdemocrats.com
|
||||
0.0.0.0 witscience.org
|
||||
0.0.0.0 wleb21.com
|
||||
0.0.0.0 wm21news.com
|
||||
0.0.0.0 womensfitnessfocus.com
|
||||
0.0.0.0 womenshealth.news
|
||||
0.0.0.0 worldnewsdailyreport.com
|
||||
0.0.0.0 worldpoliticus.com
|
||||
0.0.0.0 worldtruth.tv
|
||||
0.0.0.0 wwiii.news
|
||||
0.0.0.0 www.4thmedia.org
|
||||
0.0.0.0 www.abeldanger.net
|
||||
0.0.0.0 www.abovetopsecret.com
|
||||
@@ -580,7 +852,6 @@
|
||||
0.0.0.0 www.prisonplanet.com
|
||||
0.0.0.0 www.proudcons.com
|
||||
0.0.0.0 www.rapefugees.net
|
||||
0.0.0.0 www.rawstory.com
|
||||
0.0.0.0 www.react365.com
|
||||
0.0.0.0 www.realfarmacy.com
|
||||
0.0.0.0 www.redflagnews.com
|
||||
@@ -666,5 +937,8 @@
|
||||
0.0.0.0 www.zeppfeed.com
|
||||
0.0.0.0 www.zerohedge.com
|
||||
0.0.0.0 www.zootfeed.com
|
||||
0.0.0.0 yogurt.news
|
||||
0.0.0.0 yournationnews.com
|
||||
0.0.0.0 yournewswire.com
|
||||
0.0.0.0 youtubecensorship.com
|
||||
0.0.0.0 zombie.news
|
||||
@@ -2,7 +2,7 @@
|
||||
# https://www.reddit.com/r/GlobalOffensiveGamble/comments/3d5fmr/list_of_csgo_gambling_websites/
|
||||
# http://www.top100bookmakers.com/completelist.php
|
||||
# https://raw.githubusercontent.com/lassekongo83/Frellwits-filter-lists/master/anti-casino-and-betting-hosts-file.txt
|
||||
# Updated March 21, 2019
|
||||
# Updated January 10, 2020
|
||||
|
||||
127.0.0.1 crownbet.com.au
|
||||
127.0.0.1 crownbet.com
|
||||
@@ -2115,7 +2115,6 @@
|
||||
127.0.0.1 7777.bg
|
||||
127.0.0.1 toto.bg
|
||||
127.0.0.1 lutrija.hr
|
||||
127.0.0.1 sazka.cz
|
||||
127.0.0.1 klasselotteriet.dk
|
||||
127.0.0.1 lotto.de
|
||||
127.0.0.1 lotto24.de
|
||||
@@ -2209,7 +2208,6 @@
|
||||
127.0.0.1 www.7777.bg
|
||||
127.0.0.1 www.toto.bg
|
||||
127.0.0.1 www.lutrija.hr
|
||||
127.0.0.1 www.sazka.cz
|
||||
127.0.0.1 www.klasselotteriet.dk
|
||||
127.0.0.1 www.lotto.de
|
||||
127.0.0.1 www.lotto24.de
|
||||
@@ -2292,3 +2290,59 @@
|
||||
127.0.0.1 www.nationallottery.co.za
|
||||
127.0.0.1 www.mylotto.co.nz
|
||||
127.0.0.1 onetpedia.net
|
||||
127.0.0.1 galaksipokerqq.com
|
||||
127.0.0.1 pokergolden.biz
|
||||
127.0.0.1 ionwin88.net
|
||||
127.0.0.1 cafecasino.lv
|
||||
127.0.0.1 mrjackpotspins.com
|
||||
127.0.0.1 cashstormslots.com
|
||||
127.0.0.1 pikakasino.com
|
||||
127.0.0.1 kalevalakasino.com
|
||||
127.0.0.1 simppeli.com
|
||||
127.0.0.1 wildz.com
|
||||
127.0.0.1 kassu.com
|
||||
127.0.0.1 campaign.rizk.com
|
||||
127.0.0.1 fi.casiplay.com
|
||||
127.0.0.1 in.casinoeuro.com
|
||||
127.0.0.1 pelaa.com
|
||||
127.0.0.1 fastbet.com
|
||||
127.0.0.1 casinogods.com
|
||||
127.0.0.1 kirsikka.com
|
||||
127.0.0.1 slottyvegas.com
|
||||
127.0.0.1 fortunelegends.com
|
||||
127.0.0.1 promotions.betsafe.com
|
||||
127.0.0.1 casinowinner.com
|
||||
127.0.0.1 turbico.com
|
||||
127.0.0.1 suomikasino.com
|
||||
127.0.0.1 templenile.com
|
||||
127.0.0.1 stakes.com
|
||||
127.0.0.1 jackpotvillage.com
|
||||
127.0.0.1 prontocasino.com
|
||||
127.0.0.1 nopeampi.com
|
||||
127.0.0.1 fi.888casino.com
|
||||
127.0.0.1 karhukasino.com
|
||||
127.0.0.1 start.duelz.com
|
||||
127.0.0.1 promotion.eurolotto.com
|
||||
127.0.0.1 hypercasino.com
|
||||
127.0.0.1 wishmaker.com
|
||||
127.0.0.1 kasinot.fi
|
||||
|
||||
127.0.0.1 tipsport.cz
|
||||
127.0.0.1 www.tipsport.cz
|
||||
127.0.0.1 ifortuna.cz
|
||||
127.0.0.1 www.ifortuna.cz
|
||||
127.0.0.1 sazka.cz
|
||||
127.0.0.1 www.sazka.cz
|
||||
127.0.0.1 chance.cz
|
||||
127.0.0.1 www.chance.cz
|
||||
127.0.0.1 maxitip.cz
|
||||
127.0.0.1 www.maxitip.cz
|
||||
127.0.0.1 synottip.cz
|
||||
127.0.0.1 www.synottip.cz
|
||||
127.0.0.1 sport.synottip.cz
|
||||
127.0.0.1 poker.synottip.cz
|
||||
127.0.0.1 casino.synottip.cz
|
||||
127.0.0.1 pokerstars.cz
|
||||
127.0.0.1 www.pokerstars.cz
|
||||
127.0.0.1 partypoker.cz
|
||||
127.0.0.1 www.partypoker.cz
|
||||
|
||||
+104
-2153
File diff suppressed because it is too large
Load Diff
@@ -12,6 +12,7 @@
|
||||
127.0.0.1 theync.com
|
||||
127.0.0.1 miscopy.com
|
||||
127.0.0.1 mixtape.moe
|
||||
127.0.0.1 sickjunk.com
|
||||
127.0.0.1 elblogdelnarco.com
|
||||
127.0.0.1 kaotic.com
|
||||
127.0.0.1 ogrish.tv
|
||||
|
||||
+6461
-3366
File diff suppressed because it is too large
Load Diff
@@ -1,26 +1,44 @@
|
||||
0.0.0.0 002.pinknotora.net
|
||||
0.0.0.0 ac-pink.net
|
||||
0.0.0.0 azzporn.com
|
||||
0.0.0.0 babarooba.x.fc2.com
|
||||
0.0.0.0 bbscamp.net
|
||||
0.0.0.0 boyporn.pro
|
||||
0.0.0.0 candybbwporn.com
|
||||
0.0.0.0 ceporn.net
|
||||
0.0.0.0 columbia-xxx.com
|
||||
0.0.0.0 cream-pie-porn.tumblr.com
|
||||
0.0.0.0 cymposium.com
|
||||
0.0.0.0 deathbyporno2.chatango.com
|
||||
0.0.0.0 deeps.net
|
||||
0.0.0.0 dennou2.x.fc2.com
|
||||
0.0.0.0 duga.jp
|
||||
0.0.0.0 en.dmm.co.jp
|
||||
0.0.0.0 eroerozip.com
|
||||
0.0.0.0 erogazou-choice.com
|
||||
0.0.0.0 esboss.com
|
||||
0.0.0.0 explorejapan.pw
|
||||
0.0.0.0 expo2.ranks1.apserver.net
|
||||
0.0.0.0 fob.jp
|
||||
0.0.0.0 freefullporno.info
|
||||
0.0.0.0 freepornvs.com
|
||||
0.0.0.0 fxporn.net
|
||||
0.0.0.0 gaypinoyporn.chatango.com
|
||||
0.0.0.0 gayporno.fm
|
||||
0.0.0.0 gfporntube.com
|
||||
0.0.0.0 hairytubeporno.com
|
||||
0.0.0.0 hakusuiriki.tv
|
||||
0.0.0.0 hentaipornpics.net
|
||||
0.0.0.0 hitozumagazo.com
|
||||
0.0.0.0 hiyoko0.x.fc2.com
|
||||
0.0.0.0 home.uchu.co.jp
|
||||
0.0.0.0 hornymatureporn.com
|
||||
0.0.0.0 i-bbs.sijex.net
|
||||
0.0.0.0 i-like-my-blondes-dirty.tumblr.com
|
||||
0.0.0.0 idolzone.blog137.fc2.com
|
||||
0.0.0.0 inaka.x.fc2.com
|
||||
0.0.0.0 jams.kir.jp
|
||||
0.0.0.0 javynow.com
|
||||
0.0.0.0 jitsuroku.kir.jp
|
||||
0.0.0.0 jkdaisuki.ad55.net
|
||||
0.0.0.0 kyobibbs.ranks1.apserver.net
|
||||
@@ -28,25 +46,45 @@
|
||||
0.0.0.0 lolip.org
|
||||
0.0.0.0 magopro2.ero-spo.com
|
||||
0.0.0.0 marrion-av.com
|
||||
0.0.0.0 megaporn.blogspot.es
|
||||
0.0.0.0 mother-av.com
|
||||
0.0.0.0 motherpornvideos.com
|
||||
0.0.0.0 mutekiya.net
|
||||
0.0.0.0 mvideoporno.xxx
|
||||
0.0.0.0 nadeshiko.tv
|
||||
0.0.0.0 niccori.jp
|
||||
0.0.0.0 o-r-g-a-s-m-o-s.tumblr.com
|
||||
0.0.0.0 pics.dmm.com
|
||||
0.0.0.0 pornbimbo.com
|
||||
0.0.0.0 porndude.com
|
||||
0.0.0.0 pornhubpremium.com
|
||||
0.0.0.0 pornjapanese.pro
|
||||
0.0.0.0 pornocuanimale.online
|
||||
0.0.0.0 pornoeggs.com
|
||||
0.0.0.0 porntopic.com
|
||||
0.0.0.0 pornve.com
|
||||
0.0.0.0 pornvideoq.com
|
||||
0.0.0.0 sexyisamazing.tumblr.com
|
||||
0.0.0.0 shiroutotv.com
|
||||
0.0.0.0 siroutoinfo.net
|
||||
0.0.0.0 sirporno.xxx
|
||||
0.0.0.0 skyhighpremium.com
|
||||
0.0.0.0 sougouwiki.com
|
||||
0.0.0.0 spc.undo.jp
|
||||
0.0.0.0 sportseye.muvc.net
|
||||
0.0.0.0 ssl.ktfactory.co.jp
|
||||
0.0.0.0 star-porn.ml
|
||||
0.0.0.0 suppinpin.com
|
||||
0.0.0.0 surebbs.ranks1.apserver.net
|
||||
0.0.0.0 switch1.jp
|
||||
0.0.0.0 teatroporno.com
|
||||
0.0.0.0 teppan-av.com
|
||||
0.0.0.0 top.togeko.net
|
||||
0.0.0.0 toujyuku.ranks1.apserver.net
|
||||
0.0.0.0 venus-av.com
|
||||
0.0.0.0 veporns.com
|
||||
0.0.0.0 voyeurporntube.me
|
||||
0.0.0.0 vqporn.com
|
||||
0.0.0.0 www.100kabijin.com
|
||||
0.0.0.0 www.3dvdiso.com
|
||||
0.0.0.0 www.academic-co.jp
|
||||
@@ -248,10 +286,15 @@
|
||||
0.0.0.0 www.wanz-factory.com
|
||||
0.0.0.0 www.woman-otona.com
|
||||
0.0.0.0 www.yamiboard.com
|
||||
0.0.0.0 www.yamigama.com
|
||||
0.0.0.0 www.yellow-movie.com
|
||||
0.0.0.0 www.yellowbox.co.jp
|
||||
0.0.0.0 www.yellowduck.jp
|
||||
0.0.0.0 www.zetton-av.com
|
||||
0.0.0.0 www.zeus-web.net
|
||||
0.0.0.0 www2.giga-jp.com
|
||||
0.0.0.0 xvideosporno.org
|
||||
0.0.0.0 xxxpornasian.com
|
||||
0.0.0.0 yamidas.yamiboard.com
|
||||
0.0.0.0 yamigama.com
|
||||
0.0.0.0 yespornplease.com
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# Title: Social media hosts
|
||||
# Updated February 7, 2019
|
||||
# Updated: June 20, 2019
|
||||
|
||||
# Google Plus
|
||||
#127.0.0.1 plus.l.google.com
|
||||
#127.0.0.1 plus.sandbox.google.com
|
||||
#127.0.0.1 plusone.google.com
|
||||
127.0.0.1 plus.google.com
|
||||
|
||||
# Facebook
|
||||
127.0.0.1 0-act.channel.facebook.com
|
||||
@@ -378,9 +384,11 @@
|
||||
127.0.0.1 d.facebook.com
|
||||
127.0.0.1 d.vvv.facebook.com
|
||||
127.0.0.1 da-dk.facebook.com
|
||||
127.0.0.1 da-dk.facebook.dk
|
||||
127.0.0.1 danone.m.facebook.com
|
||||
127.0.0.1 davivienda.m.facebook.com
|
||||
127.0.0.1 de-de.facebook.com
|
||||
127.0.0.1 de-de.facebook.de
|
||||
127.0.0.1 deloitte.m.facebook.com
|
||||
127.0.0.1 dev.vvv.facebook.com
|
||||
127.0.0.1 developers.facebook.com
|
||||
@@ -718,6 +726,8 @@
|
||||
127.0.0.1 ent-e.xx.fbcdn.net
|
||||
127.0.0.1 error.facebook.com
|
||||
127.0.0.1 es-es.facebook.com
|
||||
127.0.0.1 es-es.facebook.es
|
||||
127.0.0.1 es-es.facebook.mx
|
||||
127.0.0.1 es-la.es-es.de-de.fbjs.facebook.com
|
||||
127.0.0.1 es-la.facebook.com
|
||||
127.0.0.1 es.facebook.com
|
||||
@@ -758,11 +768,23 @@
|
||||
127.0.0.1 f6eec677a80kdno4pyq-kxornjlf1521512613-sonar.xz.fbcdn.net
|
||||
127.0.0.1 f91858abe80k2geylvi-zhianuzp1521559729-sonar.xx.fbcdn.net
|
||||
127.0.0.1 fa-ir.facebook.com
|
||||
127.0.0.1 facebook-studio.com
|
||||
127.0.0.1 facebook-web-clients.appspot.com
|
||||
127.0.0.1 facebook.be
|
||||
127.0.0.1 facebook.com
|
||||
127.0.0.1 facebook.com.facebook.com
|
||||
127.0.0.1 facebook.de
|
||||
127.0.0.1 facebook.dk
|
||||
127.0.0.1 facebook.es
|
||||
127.0.0.1 facebook.fr
|
||||
127.0.0.1 facebook.is
|
||||
127.0.0.1 facebook.it
|
||||
127.0.0.1 facebook.jp
|
||||
127.0.0.1 facebook.mx
|
||||
127.0.0.1 facebook.nl
|
||||
127.0.0.1 facebook.no
|
||||
127.0.0.1 facebook.se
|
||||
127.0.0.1 facebook.us
|
||||
127.0.0.1 fb-lt.facebook.com
|
||||
127.0.0.1 fb.com
|
||||
127.0.0.1 fb.m.facebook.com
|
||||
@@ -818,6 +840,7 @@
|
||||
127.0.0.1 fpt.m.facebook.com
|
||||
127.0.0.1 fr-ca.facebook.com
|
||||
127.0.0.1 fr-fr.facebook.com
|
||||
127.0.0.1 fr-fr.facebook.fr
|
||||
127.0.0.1 fr.facebook.com
|
||||
127.0.0.1 free.beta.facebook.com
|
||||
127.0.0.1 free.facebook.com
|
||||
@@ -828,7 +851,9 @@
|
||||
127.0.0.1 gingerhotels.m.facebook.com
|
||||
127.0.0.1 gob.m.facebook.com
|
||||
127.0.0.1 google.m.facebook.com
|
||||
127.0.0.1 govrequess.facebook.com
|
||||
127.0.0.1 govtech.m.facebook.com
|
||||
127.0.0.1 govtrequests.facebook.com
|
||||
127.0.0.1 graph-video.facebook.com
|
||||
127.0.0.1 graph.facebook.com
|
||||
127.0.0.1 grupoboticario.m.facebook.com
|
||||
@@ -859,6 +884,7 @@
|
||||
127.0.0.1 it-it.facebook.com
|
||||
127.0.0.1 it.facebook.com
|
||||
127.0.0.1 ja-jp.facebook.com
|
||||
127.0.0.1 ja-jp.facebook.jp
|
||||
127.0.0.1 ja-ks.facebook.com
|
||||
127.0.0.1 jetairways.m.facebook.com
|
||||
127.0.0.1 ka-ge.facebook.com
|
||||
@@ -902,6 +928,7 @@
|
||||
127.0.0.1 mtouch.facebook.com
|
||||
127.0.0.1 national.facebook.com
|
||||
127.0.0.1 nb-no.facebook.com
|
||||
127.0.0.1 nb-no.facebook.no
|
||||
127.0.0.1 ncontent.xx.fbcdn.net
|
||||
127.0.0.1 newsec.facebook.com
|
||||
127.0.0.1 newsroom.fb.com
|
||||
@@ -952,6 +979,7 @@
|
||||
127.0.0.1 origincache-xx-shv-09-frc3.fbcdn.net
|
||||
127.0.0.1 origincache-xx-shv-09-prn2.fbcdn.net
|
||||
127.0.0.1 origincache-xx-shv-13-prn1.fbcdn.net
|
||||
127.0.0.1 ouch.facebook.com
|
||||
127.0.0.1 pacific.facebook.com
|
||||
127.0.0.1 pernambucanas.m.facebook.com
|
||||
127.0.0.1 photos-a-ord.xx.fbcdn.net
|
||||
@@ -1010,6 +1038,7 @@
|
||||
127.0.0.1 s-static.ak.fbcdn.net
|
||||
127.0.0.1 s-static.facebook.com
|
||||
127.0.0.1 sac-h-ct-m-fbx.fbsbx.com.online-metrix.net
|
||||
127.0.0.1 saic-ak.facebook.com
|
||||
127.0.0.1 savethechildren.m.facebook.com
|
||||
127.0.0.1 scontent-1.2914.fna.fbcdn.net
|
||||
127.0.0.1 scontent-2.2914.fna.fbcdn.net
|
||||
@@ -1309,6 +1338,7 @@
|
||||
127.0.0.1 star-mini.c10r.facebook.com
|
||||
127.0.0.1 star.c10r.facebook.com
|
||||
127.0.0.1 star.facebook.com
|
||||
127.0.0.1 static-ak.facebook.com
|
||||
127.0.0.1 static.ak.connect.facebook.com
|
||||
127.0.0.1 static.ak.facebook.com
|
||||
127.0.0.1 static.ak.facebook.com.edgesuite.net
|
||||
@@ -1321,6 +1351,7 @@
|
||||
127.0.0.1 staticxx.facebook.com
|
||||
127.0.0.1 stormberg.m.facebook.com
|
||||
127.0.0.1 sv-se.facebook.com
|
||||
127.0.0.1 sv-se.facebook.se
|
||||
127.0.0.1 teem.m.facebook.com
|
||||
127.0.0.1 telenor.m.facebook.com
|
||||
127.0.0.1 th-th.facebook.com
|
||||
@@ -1403,9 +1434,20 @@
|
||||
127.0.0.1 work-98949980.facebook.com
|
||||
127.0.0.1 ww.facebook.com
|
||||
127.0.0.1 www.connect.facebook.net
|
||||
127.0.0.1 www.facebook.be
|
||||
127.0.0.1 www.facebook.com
|
||||
127.0.0.1 www.facebook.de
|
||||
127.0.0.1 www.facebook.dk
|
||||
127.0.0.1 www.facebook.es
|
||||
127.0.0.1 www.facebook.fr
|
||||
127.0.0.1 www.facebook.is
|
||||
127.0.0.1 www.facebook.it
|
||||
127.0.0.1 www.facebook.jp
|
||||
127.0.0.1 www.facebook.mx
|
||||
127.0.0.1 www.facebook.nl
|
||||
127.0.0.1 www.facebook.no
|
||||
127.0.0.1 www.facebook.se
|
||||
127.0.0.1 www.facebook.us
|
||||
127.0.0.1 www.fbcdn.com
|
||||
127.0.0.1 www.fbcdn.net
|
||||
127.0.0.1 www.graph.facebook.com
|
||||
@@ -1691,8 +1733,13 @@
|
||||
|
||||
# Instagram
|
||||
127.0.0.1 api.instagram.com
|
||||
127.0.0.1 badges.instagram.com
|
||||
127.0.0.1 black.ish.instagram.com
|
||||
127.0.0.1 business.instagram.com
|
||||
127.0.0.1 engineering.instagram.com
|
||||
127.0.0.1 help.instagram.com
|
||||
127.0.0.1 i.instagram.com
|
||||
127.0.0.1 images.instagram.com
|
||||
127.0.0.1 instagram-shv-01-ams2.fbcdn.net
|
||||
127.0.0.1 instagram-shv-01-ams3.fbcdn.net
|
||||
127.0.0.1 instagram-shv-01-ash5.fbcdn.net
|
||||
@@ -1746,16 +1793,20 @@
|
||||
127.0.0.1 instagram.com
|
||||
127.0.0.1 instagramstatic-a.akamaihd.net
|
||||
127.0.0.1 instagramstatic-a.akamaihd.net.edgesuite.net
|
||||
127.0.0.1 l.instagram.com
|
||||
127.0.0.1 logger.instagram.com
|
||||
127.0.0.1 platform.instagram.com
|
||||
127.0.0.1 scontent-a.cdninstagram.com
|
||||
127.0.0.1 scontent-ams3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-amt2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-arn2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-atl3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-b.cdninstagram.com
|
||||
127.0.0.1 scontent-dft4-1.cdninstagram.com
|
||||
127.0.0.1 scontent-dft4-2.cdninstagram.com
|
||||
127.0.0.1 scontent-fra3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-frt3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-frx5-1.cdninstagram.com
|
||||
127.0.0.1 scontent-iad3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-kul1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-mia1-1.cdninstagram.com
|
||||
@@ -1928,15 +1979,22 @@
|
||||
|
||||
# Twitter
|
||||
127.0.0.1 0.twitter.com
|
||||
127.0.0.1 2010.twitter.com
|
||||
127.0.0.1 2011.twitter.com
|
||||
127.0.0.1 2012.twitter.com
|
||||
127.0.0.1 2013.twitter.com
|
||||
127.0.0.1 2014.twitter.com
|
||||
127.0.0.1 about.twitter.com
|
||||
127.0.0.1 abs.twimg.com
|
||||
127.0.0.1 access.twitter.com
|
||||
127.0.0.1 ads.twitter.com
|
||||
127.0.0.1 amp.twimg.com
|
||||
127.0.0.1 analytics.twitter.com
|
||||
127.0.0.1 api-test.twitter.com
|
||||
127.0.0.1 api.twitter.com
|
||||
127.0.0.1 api2.twitter.com
|
||||
127.0.0.1 api4.twitter.com
|
||||
127.0.0.1 app.tweet.twitter.com
|
||||
127.0.0.1 apps.twitter.com
|
||||
127.0.0.1 blog.twitter.com
|
||||
127.0.0.1 brand.twitter.com
|
||||
@@ -1945,7 +2003,10 @@
|
||||
127.0.0.1 cards-dev.twitter.com
|
||||
127.0.0.1 cards.twitter.com
|
||||
127.0.0.1 cdn.syndication.twimg.com
|
||||
127.0.0.1 cdn.syndication.twitter.com
|
||||
127.0.0.1 click.e.twitter.com
|
||||
127.0.0.1 content.twitter.com
|
||||
127.0.0.1 d2rdfnizen5apl.cloudfront.net
|
||||
127.0.0.1 dev-about.twitter.com
|
||||
127.0.0.1 dev-blog.twitter.com
|
||||
127.0.0.1 dev-brand.twitter.com
|
||||
@@ -1954,39 +2015,81 @@
|
||||
127.0.0.1 dev-jobs.twitter.com
|
||||
127.0.0.1 dev-marketing.twitter.com
|
||||
127.0.0.1 dev.twitter.com
|
||||
127.0.0.1 dnt.twimg.com
|
||||
127.0.0.1 download.twitter.com
|
||||
127.0.0.1 ea.twimg.com
|
||||
127.0.0.1 election.twitter.com
|
||||
127.0.0.1 eng.twitter.com
|
||||
127.0.0.1 engineering.twitter.com
|
||||
127.0.0.1 events.twitter.com
|
||||
127.0.0.1 firefox.twitter.com
|
||||
127.0.0.1 g.twimg.com
|
||||
127.0.0.1 g2.twimg.com
|
||||
127.0.0.1 gu.twimg.com
|
||||
127.0.0.1 hca.twimg.com
|
||||
127.0.0.1 horizon.twitter.com
|
||||
127.0.0.1 image-proxy-origin.twimg.com
|
||||
127.0.0.1 images.tweet.twitter.com
|
||||
127.0.0.1 info.twitter.com
|
||||
127.0.0.1 jobs.twitter.com
|
||||
127.0.0.1 jp.twimg.com
|
||||
127.0.0.1 m.twitter.com
|
||||
127.0.0.1 ma.twimg.com
|
||||
127.0.0.1 ma0.twimg.com
|
||||
127.0.0.1 ma1.twimg.com
|
||||
127.0.0.1 ma2.twimg.com
|
||||
127.0.0.1 ma3.twimg.com
|
||||
127.0.0.1 mail.twitter.com
|
||||
127.0.0.1 marketing.twitter.com
|
||||
127.0.0.1 media.twitter.com
|
||||
127.0.0.1 mobile.twitter.com
|
||||
127.0.0.1 music.twitter.com
|
||||
127.0.0.1 mux.twitter.com
|
||||
127.0.0.1 mx.twitter.com
|
||||
127.0.0.1 mx1.twitter.com
|
||||
127.0.0.1 mx2.twitter.com
|
||||
127.0.0.1 mx3.twitter.com
|
||||
127.0.0.1 mx4.twitter.com
|
||||
127.0.0.1 o.twimg.com
|
||||
127.0.0.1 p.twimg.com
|
||||
127.0.0.1 partnerstream1.twitter.com
|
||||
127.0.0.1 partnerstream2.twitter.com
|
||||
127.0.0.1 pay.twitter.com
|
||||
127.0.0.1 pbs.twimg.com
|
||||
127.0.0.1 pic.twitter.com
|
||||
127.0.0.1 platform.twitter.com
|
||||
127.0.0.1 pulse.twitter.com
|
||||
127.0.0.1 r.twimg.com
|
||||
127.0.0.1 s.ads-twitter.com
|
||||
127.0.0.1 s.twimg.com
|
||||
127.0.0.1 s.twitter.com
|
||||
127.0.0.1 search.twitter.com
|
||||
127.0.0.1 search2.twitter.com
|
||||
127.0.0.1 sites.twitter.com
|
||||
127.0.0.1 sitestream.twitter.com
|
||||
127.0.0.1 sms.twitter.com
|
||||
127.0.0.1 ssl2.twitter.com.edgekey.net
|
||||
127.0.0.1 static.ads-twitter.com
|
||||
127.0.0.1 static.twitter.com
|
||||
127.0.0.1 status.twitter.com
|
||||
127.0.0.1 stream.twitter.com
|
||||
127.0.0.1 support.twitter.com
|
||||
127.0.0.1 syndication-o.twimg.com
|
||||
127.0.0.1 syndication.twimg.com
|
||||
127.0.0.1 syndication.twitter.com
|
||||
127.0.0.1 t.co
|
||||
127.0.0.1 tailfeather.twimg.com
|
||||
127.0.0.1 td.twitter.com
|
||||
127.0.0.1 ton.twimg.com
|
||||
127.0.0.1 transparency.twitter.com
|
||||
127.0.0.1 twimg0-0.akamaihd.net
|
||||
127.0.0.1 twitter.com
|
||||
127.0.0.1 upload.twitter.com
|
||||
127.0.0.1 userstream.twitter.com
|
||||
127.0.0.1 video.twitter.com
|
||||
127.0.0.1 widgets.platform.twitter.com
|
||||
127.0.0.1 widgets.twimg.com
|
||||
127.0.0.1 www.ads-twitter.com
|
||||
127.0.0.1 www.t.co
|
||||
127.0.0.1 www.twitter.com
|
||||
127.0.0.1 www2.twitter.com
|
||||
@@ -1996,9 +2099,12 @@
|
||||
127.0.0.1 addtoprofile.linkedin.com
|
||||
127.0.0.1 ads.linkedin.com
|
||||
127.0.0.1 ae.linkedin.com
|
||||
127.0.0.1 ajuda.linkedin.com
|
||||
127.0.0.1 ap.linkedin.com
|
||||
127.0.0.1 api.linkedin.com
|
||||
127.0.0.1 ar-ae.help.linkedin.com
|
||||
127.0.0.1 ar.linkedin.com
|
||||
127.0.0.1 asistenta.linkedin.com
|
||||
127.0.0.1 at.linkedin.com
|
||||
127.0.0.1 au.linkedin.com
|
||||
127.0.0.1 autodiscover.linkedin.com
|
||||
@@ -2014,6 +2120,7 @@
|
||||
127.0.0.1 ch.linkedin.com
|
||||
127.0.0.1 cms.linkedin.com
|
||||
127.0.0.1 co.linkedin.com
|
||||
127.0.0.1 commsconnect.linkedin.com
|
||||
127.0.0.1 community-test.linkedin.com
|
||||
127.0.0.1 community.linkedin.com
|
||||
127.0.0.1 conscious.linkedin.com
|
||||
@@ -2023,29 +2130,46 @@
|
||||
127.0.0.1 data.linkedin.com
|
||||
127.0.0.1 dc.ads.linkedin.com
|
||||
127.0.0.1 de.linkedin.com
|
||||
127.0.0.1 dev-signin.lms.linkedin.com
|
||||
127.0.0.1 dev.lms.linkedin.com
|
||||
127.0.0.1 developer.linkedin.com
|
||||
127.0.0.1 developers.linkedin.com
|
||||
127.0.0.1 dk.linkedin.com
|
||||
127.0.0.1 download.linkedin.com
|
||||
127.0.0.1 e.linkedin.com
|
||||
127.0.0.1 ec.linkedin.com
|
||||
127.0.0.1 economicgraph.linkedin.com
|
||||
127.0.0.1 ee.linkedin.com
|
||||
127.0.0.1 engineering.linkedin.com
|
||||
127.0.0.1 es.linkedin.com
|
||||
127.0.0.1 eu-west-1.dc.ads.linkedin.com
|
||||
127.0.0.1 events.linkedin.com
|
||||
127.0.0.1 fi.linkedin.com
|
||||
127.0.0.1 financeconnect.linkedin.com
|
||||
127.0.0.1 forms.linkedin.com
|
||||
127.0.0.1 fr.linkedin.com
|
||||
127.0.0.1 gb.linkedin.com
|
||||
127.0.0.1 gr.linkedin.com
|
||||
127.0.0.1 gsk.linkedin.com
|
||||
127.0.0.1 guida.linkedin.com
|
||||
127.0.0.1 gw.linkedin.com
|
||||
127.0.0.1 help-enterprise.linkedin.com
|
||||
127.0.0.1 help-internal.linkedin.com
|
||||
127.0.0.1 help-test.linkedin.com
|
||||
127.0.0.1 help-test2.linkedin.com
|
||||
127.0.0.1 help.linkedin.com
|
||||
127.0.0.1 hilfe.linkedin.com
|
||||
127.0.0.1 hjalp.linkedin.com
|
||||
127.0.0.1 hjelp.linkedin.com
|
||||
127.0.0.1 hk.linkedin.com
|
||||
127.0.0.1 hulp.linkedin.com
|
||||
127.0.0.1 ib.linkedin.com
|
||||
127.0.0.1 id.linkedin.com
|
||||
127.0.0.1 ie.linkedin.com
|
||||
127.0.0.1 il.linkedin.com
|
||||
127.0.0.1 imagine.linkedin.com
|
||||
127.0.0.1 imp2.ads.linkedin.com
|
||||
127.0.0.1 in.bantuan.linkedin.com
|
||||
127.0.0.1 in.linkedin.com
|
||||
127.0.0.1 intro.linkedin.com
|
||||
127.0.0.1 investors.linkedin.com
|
||||
@@ -2053,10 +2177,12 @@
|
||||
127.0.0.1 iq.linkedin.com
|
||||
127.0.0.1 is.linkedin.com
|
||||
127.0.0.1 it.linkedin.com
|
||||
127.0.0.1 ja.linkedin.com
|
||||
127.0.0.1 jp.linkedin.com
|
||||
127.0.0.1 ke.linkedin.com
|
||||
127.0.0.1 kr.linkedin.com
|
||||
127.0.0.1 learning.linkedin.com
|
||||
127.0.0.1 lifg.linkedin.com
|
||||
127.0.0.1 linkedin.com
|
||||
127.0.0.1 linkedinforgood.linkedin.com
|
||||
127.0.0.1 lists.linkedin.com
|
||||
@@ -2077,8 +2203,10 @@
|
||||
127.0.0.1 members.linkedin.com
|
||||
127.0.0.1 mentor.linkedin.com
|
||||
127.0.0.1 mobile.linkedin.com
|
||||
127.0.0.1 ms.bantuan.linkedin.com
|
||||
127.0.0.1 mx.linkedin.com
|
||||
127.0.0.1 my.linkedin.com
|
||||
127.0.0.1 napoveda.linkedin.com
|
||||
127.0.0.1 nc.linkedin.com
|
||||
127.0.0.1 news.linkedin.com
|
||||
127.0.0.1 ng.linkedin.com
|
||||
@@ -2097,9 +2225,11 @@
|
||||
127.0.0.1 pl.linkedin.com
|
||||
127.0.0.1 platform.linkedin.com
|
||||
127.0.0.1 polls.linkedin.com
|
||||
127.0.0.1 pomoc.linkedin.com
|
||||
127.0.0.1 premium.linkedin.com
|
||||
127.0.0.1 press.linkedin.com
|
||||
127.0.0.1 pt.linkedin.com
|
||||
127.0.0.1 purchasing.linkedin.com
|
||||
127.0.0.1 qa.linkedin.com
|
||||
127.0.0.1 remote.linkedin.com
|
||||
127.0.0.1 ro.linkedin.com
|
||||
@@ -2107,37 +2237,81 @@
|
||||
127.0.0.1 rw.linkedin.com
|
||||
127.0.0.1 sa.linkedin.com
|
||||
127.0.0.1 sales.linkedin.com
|
||||
127.0.0.1 salesconnect.linkedin.com
|
||||
127.0.0.1 sandbox.lms.linkedin.com
|
||||
127.0.0.1 se.linkedin.com
|
||||
127.0.0.1 security.linkedin.com
|
||||
127.0.0.1 sg.linkedin.com
|
||||
127.0.0.1 si.linkedin.com
|
||||
127.0.0.1 signin.lms.linkedin.com
|
||||
127.0.0.1 smallbusiness.linkedin.com
|
||||
127.0.0.1 specialedition.linkedin.com
|
||||
127.0.0.1 static.licdn.com
|
||||
127.0.0.1 studentcareers.linkedin.com
|
||||
127.0.0.1 students.linkedin.com
|
||||
127.0.0.1 ta.linkedin.com
|
||||
127.0.0.1 talent.linkedin.com
|
||||
127.0.0.1 td.linkedin.com
|
||||
127.0.0.1 th-th.help.linkedin.com
|
||||
127.0.0.1 tm.linkedin.com
|
||||
127.0.0.1 tn.linkedin.com
|
||||
127.0.0.1 touch.www.linkedin.com
|
||||
127.0.0.1 tr.linkedin.com
|
||||
127.0.0.1 training.linkedin.com
|
||||
127.0.0.1 tulong.linkedin.com
|
||||
127.0.0.1 tv.linkedin.com
|
||||
127.0.0.1 tw.linkedin.com
|
||||
127.0.0.1 tz.linkedin.com
|
||||
127.0.0.1 uk.linkedin.com
|
||||
127.0.0.1 university.linkedin.com
|
||||
127.0.0.1 us-east-1.dc.ads.linkedin.com
|
||||
127.0.0.1 us.linkedin.com
|
||||
127.0.0.1 veterans.linkedin.com
|
||||
127.0.0.1 volunteer.linkedin.com
|
||||
127.0.0.1 volunteers.linkedin.com
|
||||
127.0.0.1 ws.linkedin.com
|
||||
127.0.0.1 www.brand.linkedin.com
|
||||
127.0.0.1 www.bringinyourparents.linkedin.com
|
||||
127.0.0.1 www.business.linkedin.com
|
||||
127.0.0.1 www.certification.linkedin.com
|
||||
127.0.0.1 www.commsconnect.linkedin.com
|
||||
127.0.0.1 www.financeconnect.linkedin.com
|
||||
127.0.0.1 www.gsk.linkedin.com
|
||||
127.0.0.1 www.imagine.linkedin.com
|
||||
127.0.0.1 www.licdn.com
|
||||
127.0.0.1 www.lifg.linkedin.com
|
||||
127.0.0.1 www.linkedin.com
|
||||
127.0.0.1 www.linkedinforgood.linkedin.com
|
||||
127.0.0.1 www.live.linkedin.com
|
||||
127.0.0.1 www.members.linkedin.com
|
||||
127.0.0.1 www.mobile.linkedin.com
|
||||
127.0.0.1 www.nonprofit.linkedin.com
|
||||
127.0.0.1 www.premium.linkedin.com
|
||||
127.0.0.1 www.purchasing.linkedin.com
|
||||
127.0.0.1 www.salesconnect.linkedin.com
|
||||
127.0.0.1 www.smallbusiness.linkedin.com
|
||||
127.0.0.1 www.studentcareers.linkedin.com
|
||||
127.0.0.1 www.students.linkedin.com
|
||||
127.0.0.1 www.university.linkedin.com
|
||||
127.0.0.1 www.veterans.linkedin.com
|
||||
127.0.0.1 www.volunteer.linkedin.com
|
||||
127.0.0.1 yardim.linkedin.com
|
||||
127.0.0.1 za.linkedin.com
|
||||
127.0.0.1 zh-cn.help.linkedin.com
|
||||
127.0.0.1 zh-tw.help.linkedin.com
|
||||
|
||||
# MySpace
|
||||
127.0.0.1 a1-images.myspacecdn.com
|
||||
127.0.0.1 a1.ec-images.myspacecdn.com
|
||||
127.0.0.1 a2-images.myspacecdn.com
|
||||
127.0.0.1 a2.ec-images.myspacecdn.com
|
||||
127.0.0.1 a3-images.myspacecdn.com
|
||||
127.0.0.1 a3.ec-images.myspacecdn.com
|
||||
127.0.0.1 a4-images.myspacecdn.com
|
||||
127.0.0.1 a4.ec-images.myspacecdn.com
|
||||
127.0.0.1 browseusers.myspace.com
|
||||
127.0.0.1 classifieds.myspace.com
|
||||
127.0.0.1 cms.myspacecdn.com
|
||||
127.0.0.1 collect.myspace.com
|
||||
127.0.0.1 events.myspace.com
|
||||
127.0.0.1 favorites.myspace.com
|
||||
@@ -2181,6 +2355,7 @@
|
||||
127.0.0.1 www.myspace.com
|
||||
127.0.0.1 www.myspacecdn.com
|
||||
127.0.0.1 www1.myspace.com
|
||||
127.0.0.1 x.myspacecdn.com
|
||||
|
||||
# Pinterest
|
||||
127.0.0.1 about.pinterest.com
|
||||
@@ -2232,26 +2407,31 @@
|
||||
127.0.0.1 25.media.tumblr.com
|
||||
127.0.0.1 28.media.tumblr.com
|
||||
127.0.0.1 36.media.tumblr.com
|
||||
127.0.0.1 37.media.tumblr.com
|
||||
127.0.0.1 38.media.tumblr.com
|
||||
127.0.0.1 40.media.tumblr.com
|
||||
127.0.0.1 66.media.tumblr.com
|
||||
127.0.0.1 67.media.tumblr.com
|
||||
127.0.0.1 68.media.tumblr.com
|
||||
127.0.0.1 78.media.tumblr.com
|
||||
127.0.0.1 a.tumblr.com
|
||||
127.0.0.1 api.tumblr.com
|
||||
127.0.0.1 assets.tumblr.com
|
||||
127.0.0.1 cookiex.ngd.yahoo.com
|
||||
127.0.0.1 embed.tumblr.com
|
||||
127.0.0.1 engineering.tumblr.com
|
||||
127.0.0.1 platform.tumblr.com
|
||||
127.0.0.1 px.srvcs.tumblr.com
|
||||
127.0.0.1 secure.assets.tumblr.com
|
||||
127.0.0.1 secure.static.tumblr.com
|
||||
127.0.0.1 staff.tumblr.com
|
||||
127.0.0.1 static.tumblr.com
|
||||
127.0.0.1 tumblr.com
|
||||
127.0.0.1 tumblr.tumblr.com
|
||||
127.0.0.1 v.tumblr.com
|
||||
127.0.0.1 vt.tumblr.com
|
||||
127.0.0.1 www.tumblr.com
|
||||
|
||||
# Google Plus
|
||||
127.0.0.1 plus.google.com
|
||||
127.0.0.1 plus.l.google.com
|
||||
|
||||
# Reddit
|
||||
127.0.0.1 a.thumbs.redditmedia.com
|
||||
127.0.0.1 about.reddit.com
|
||||
@@ -2272,10 +2452,12 @@
|
||||
127.0.0.1 g.redditmedia.com
|
||||
127.0.0.1 gateway.reddit.com
|
||||
127.0.0.1 gp.reddit.com
|
||||
127.0.0.1 gql.reddit.com
|
||||
127.0.0.1 hw.reddit.com
|
||||
127.0.0.1 i.redd.it
|
||||
127.0.0.1 i.reddit.com
|
||||
127.0.0.1 i.redditmedia.com
|
||||
127.0.0.1 i.reddituploads.com
|
||||
127.0.0.1 it.reddit.com
|
||||
127.0.0.1 m.reddit.com
|
||||
127.0.0.1 meta-api.reddit.com
|
||||
@@ -2287,13 +2469,18 @@
|
||||
127.0.0.1 old.reddit.com
|
||||
127.0.0.1 oops.redditmedia.com
|
||||
127.0.0.1 out.reddit.com
|
||||
127.0.0.1 pixel.redditmedia.com
|
||||
127.0.0.1 preview.redd.it
|
||||
127.0.0.1 redd.it
|
||||
127.0.0.1 reddit-image.s3.amazonaws.com
|
||||
127.0.0.1 reddit-stream.com
|
||||
127.0.0.1 reddit-uploaded-media.s3-accelerate.amazonaws.com
|
||||
127.0.0.1 reddit-uploaded-video.s3-accelerate.amazonaws.com
|
||||
127.0.0.1 reddit.com
|
||||
127.0.0.1 reddit.map.fastly.net
|
||||
127.0.0.1 redditama.reddit.com
|
||||
127.0.0.1 redditblog.com
|
||||
127.0.0.1 redditgifts.com
|
||||
127.0.0.1 redditgifts.s3.amazonaws.com
|
||||
127.0.0.1 redditmedia.com
|
||||
127.0.0.1 s.reddit.com
|
||||
@@ -2301,11 +2488,19 @@
|
||||
127.0.0.1 sendbird.reddit.com
|
||||
127.0.0.1 ssl.reddit.com
|
||||
127.0.0.1 static.redditgifts.com
|
||||
127.0.0.1 stats.redditmedia.com
|
||||
127.0.0.1 strapi.reddit.com
|
||||
127.0.0.1 styles.redditmedia.com
|
||||
127.0.0.1 us.reddit.com
|
||||
127.0.0.1 v.redd.it
|
||||
127.0.0.1 wh.reddit.com
|
||||
127.0.0.1 www.np.reddit.com
|
||||
127.0.0.1 www.reddit-stream.com
|
||||
127.0.0.1 www.reddit.com
|
||||
127.0.0.1 www.redditblog.com
|
||||
127.0.0.1 www.redditgifts.com
|
||||
127.0.0.1 www.redditinc.com
|
||||
127.0.0.1 www.redditmedia.com
|
||||
127.0.0.1 www.redditstatic.com
|
||||
|
||||
127.0.0.1 pinpages.alwaysdata.net
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2019 Steven Black
|
||||
Copyright © 2020 Steven Black
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the “Software”), to deal in
|
||||
|
||||
+78
-48
@@ -54,59 +54,89 @@ def update_readme_file():
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="Creates custom hosts "
|
||||
"file from hosts stored in "
|
||||
"data subfolders.")
|
||||
parser = argparse.ArgumentParser(
|
||||
description="Creates custom hosts "
|
||||
"file from hosts stored in "
|
||||
"data subfolders."
|
||||
)
|
||||
parser.parse_args()
|
||||
|
||||
update_hosts_file("-a", "-o",
|
||||
"alternates/gambling",
|
||||
"-e", "gambling")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/porn",
|
||||
"-e", "porn")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/social",
|
||||
"-e", "social")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/fakenews",
|
||||
"-e", "fakenews")
|
||||
update_hosts_file("-a", "-o", "alternates/gambling", "-e", "gambling")
|
||||
update_hosts_file("-a", "-n", "-o", "alternates/porn", "-e", "porn")
|
||||
update_hosts_file("-a", "-n", "-o", "alternates/social", "-e", "social")
|
||||
update_hosts_file("-a", "-n", "-o", "alternates/fakenews", "-e", "fakenews")
|
||||
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/fakenews-gambling",
|
||||
"-e", "fakenews", "gambling")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/fakenews-porn",
|
||||
"-e", "fakenews", "porn")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/fakenews-social",
|
||||
"-e", "fakenews", "social")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/gambling-porn",
|
||||
"-e", "gambling", "porn")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/gambling-social",
|
||||
"-e", "gambling", "social")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/porn-social",
|
||||
"-e", "porn", "social")
|
||||
update_hosts_file(
|
||||
"-a", "-n", "-o", "alternates/fakenews-gambling", "-e", "fakenews", "gambling"
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a", "-n", "-o", "alternates/fakenews-porn", "-e", "fakenews", "porn"
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a", "-n", "-o", "alternates/fakenews-social", "-e", "fakenews", "social"
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a", "-n", "-o", "alternates/gambling-porn", "-e", "gambling", "porn"
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a", "-n", "-o", "alternates/gambling-social", "-e", "gambling", "social"
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a", "-n", "-o", "alternates/porn-social", "-e", "porn", "social"
|
||||
)
|
||||
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/fakenews-gambling-porn",
|
||||
"-e", "fakenews", "gambling", "porn")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/fakenews-gambling-social",
|
||||
"-e", "fakenews", "gambling", "social")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/fakenews-porn-social",
|
||||
"-e", "fakenews", "porn", "social")
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/gambling-porn-social",
|
||||
"-e", "gambling", "porn", "social")
|
||||
update_hosts_file(
|
||||
"-a",
|
||||
"-n",
|
||||
"-o",
|
||||
"alternates/fakenews-gambling-porn",
|
||||
"-e",
|
||||
"fakenews",
|
||||
"gambling",
|
||||
"porn",
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a",
|
||||
"-n",
|
||||
"-o",
|
||||
"alternates/fakenews-gambling-social",
|
||||
"-e",
|
||||
"fakenews",
|
||||
"gambling",
|
||||
"social",
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a",
|
||||
"-n",
|
||||
"-o",
|
||||
"alternates/fakenews-porn-social",
|
||||
"-e",
|
||||
"fakenews",
|
||||
"porn",
|
||||
"social",
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a",
|
||||
"-n",
|
||||
"-o",
|
||||
"alternates/gambling-porn-social",
|
||||
"-e",
|
||||
"gambling",
|
||||
"porn",
|
||||
"social",
|
||||
)
|
||||
|
||||
update_hosts_file("-a", "-n", "-o",
|
||||
"alternates/fakenews-gambling-porn-social",
|
||||
"-e", "fakenews", "gambling", "porn", "social")
|
||||
update_hosts_file(
|
||||
"-a",
|
||||
"-n",
|
||||
"-o",
|
||||
"alternates/fakenews-gambling-porn-social",
|
||||
"-e",
|
||||
"fakenews",
|
||||
"gambling",
|
||||
"porn",
|
||||
"social",
|
||||
)
|
||||
|
||||
update_hosts_file("-a", "-n")
|
||||
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hosts",
|
||||
"version": "2.4.3",
|
||||
"version": "2.5.41",
|
||||
"description": "Extending and consolidating hosts files from several well-curated sources like adaway.org, mvps.org, malwaredomainlist.com, someonewhocares.org, and potentially others. You can optionally invoke extensions to block additional sites by category.",
|
||||
"main": "",
|
||||
"scripts": {
|
||||
@@ -34,6 +34,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/StevenBlack/hosts#readme",
|
||||
"devDependencies": {
|
||||
"release-it": "^10.4.5"
|
||||
"release-it": "^12.4.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,52 +4,52 @@
|
||||
----
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://travis-ci.org/StevenBlack/hosts)
|
||||
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
|
||||
# Unified hosts file with base extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **May 06 2019**.
|
||||
* Here's the [raw hosts file with base extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) containing 39,260 entries.
|
||||
* Last updated: **January 14 2020**.
|
||||
* Here's the [raw hosts file with base extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) containing 51,192 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
---------------- |:------:|:---------:|:--------------:|:-------------:
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 39,260 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 39,930 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 41,528 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 52,807 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 41,548 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 42,198 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 53,477 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 42,218 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 55,075 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 43,816 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 55,094 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 55,745 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 44,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 55,764 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 57,362 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 58,032 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 51,192 | [link](http://sbc.io/hosts/hosts)
|
||||
Unified hosts **+ fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) | 52,134 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 53,511 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 66,923 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 53,660 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 54,453 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 67,865 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 54,602 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 69,242 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 55,979 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 69,390 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 70,184 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 56,921 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 70,332 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 71,709 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 72,651 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -65,15 +65,15 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
@@ -81,14 +81,12 @@ Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[
|
||||
|
||||
|
||||
## Extensions
|
||||
The unified hosts file is extensible. Extensions are used to block domains by category.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
@@ -100,13 +98,13 @@ First install the dependencies with:
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
To run unit tests, in the top level directory, run:
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
|
||||
### Usage
|
||||
@@ -135,7 +133,7 @@ of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
@@ -177,7 +175,7 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -218,7 +216,7 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
|
||||
@@ -253,13 +251,12 @@ lines to your hosts file will do it:
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
|
||||
or non applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
@@ -267,15 +264,19 @@ We tried that. Using `0` doesn't work universally.
|
||||
To modify your current `hosts` file, look for it in the following places and modify it with a text
|
||||
editor.
|
||||
|
||||
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
|
||||
**macOS Catalina:** `/private/etc/hosts` file.
|
||||
|
||||
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
Gentoo users may find [`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts) in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
On Linux and Mac OS X, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```
|
||||
updateHostsWindows.bat
|
||||
@@ -370,9 +371,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
@@ -381,7 +382,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -401,10 +402,16 @@ devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
|
||||
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
|
||||
* [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server") (for Debian, Raspbian & Ubuntu): Set up a local DNS server with a `/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
@@ -413,4 +420,12 @@ devices under a variety of operating systems.
|
||||
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+43
-28
@@ -4,18 +4,16 @@
|
||||
----
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://travis-ci.org/StevenBlack/hosts)
|
||||
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
|
||||
# Unified hosts file @EXTENSIONS_HEADER@
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
@@ -28,6 +26,8 @@ into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
|
||||
### List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
@@ -50,14 +50,12 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
|
||||
|
||||
## Extensions
|
||||
The unified hosts file is extensible. Extensions are used to block domains by category.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
@@ -69,13 +67,13 @@ First install the dependencies with:
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
To run unit tests, in the top level directory, run:
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
|
||||
### Usage
|
||||
@@ -104,7 +102,7 @@ of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
@@ -146,7 +144,7 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -187,7 +185,7 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
|
||||
@@ -222,13 +220,12 @@ lines to your hosts file will do it:
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
|
||||
or non applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
@@ -236,15 +233,19 @@ We tried that. Using `0` doesn't work universally.
|
||||
To modify your current `hosts` file, look for it in the following places and modify it with a text
|
||||
editor.
|
||||
|
||||
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
|
||||
**macOS Catalina:** `/private/etc/hosts` file.
|
||||
|
||||
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
Gentoo users may find [`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts) in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
On Linux and Mac OS X, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```
|
||||
updateHostsWindows.bat
|
||||
@@ -339,9 +340,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
@@ -350,7 +351,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -370,10 +371,16 @@ devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
|
||||
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
|
||||
* [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server") (for Debian, Raspbian & Ubuntu): Set up a local DNS server with a `/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
@@ -382,4 +389,12 @@ devices under a variety of operating systems.
|
||||
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
lxml>=4.2.4
|
||||
beautifulsoup4==4.6.1
|
||||
beautifulsoup4>=4.6.1
|
||||
|
||||
+368
-286
File diff suppressed because it is too large
Load Diff
+335
-167
@@ -30,7 +30,7 @@ PY3 = sys.version_info >= (3, 0)
|
||||
if PY3:
|
||||
from urllib.request import urlopen
|
||||
else:
|
||||
raise Exception('We do not support Python 2 anymore.')
|
||||
raise Exception("We do not support Python 2 anymore.")
|
||||
|
||||
# Syntactic sugar for "sudo" command in UNIX / Linux
|
||||
if platform.system() == "OpenBSD":
|
||||
@@ -79,58 +79,120 @@ def get_defaults():
|
||||
"exclusions": [],
|
||||
"commonexclusions": ["hulu.com"],
|
||||
"blacklistfile": path_join_robust(BASEDIR_PATH, "blacklist"),
|
||||
"whitelistfile": path_join_robust(BASEDIR_PATH, "whitelist")}
|
||||
"whitelistfile": path_join_robust(BASEDIR_PATH, "whitelist"),
|
||||
}
|
||||
|
||||
|
||||
# End Project Settings
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="Creates a unified hosts "
|
||||
"file from hosts stored in "
|
||||
"data subfolders.")
|
||||
parser.add_argument("--auto", "-a", dest="auto", default=False,
|
||||
action="store_true", help="Run without prompting.")
|
||||
parser.add_argument("--backup", "-b", dest="backup", default=False,
|
||||
action="store_true", help="Backup the hosts "
|
||||
"files before they "
|
||||
"are overridden.")
|
||||
parser.add_argument("--extensions", "-e", dest="extensions", default=[],
|
||||
nargs="*", help="Host extensions to include "
|
||||
"in the final hosts file.")
|
||||
parser.add_argument("--ip", "-i", dest="targetip", default="0.0.0.0",
|
||||
help="Target IP address. Default is 0.0.0.0.")
|
||||
parser.add_argument("--keepdomaincomments", "-k",
|
||||
dest="keepdomaincomments", action="store_false", default=True,
|
||||
help="Do not keep domain line comments.")
|
||||
parser.add_argument("--noupdate", "-n", dest="noupdate", default=False,
|
||||
action="store_true", help="Don't update from "
|
||||
"host data sources.")
|
||||
parser.add_argument("--skipstatichosts", "-s", dest="skipstatichosts",
|
||||
default=False, action="store_true",
|
||||
help="Skip static localhost entries "
|
||||
"in the final hosts file.")
|
||||
parser.add_argument("--output", "-o", dest="outputsubfolder", default="",
|
||||
help="Output subfolder for generated hosts file.")
|
||||
parser.add_argument("--replace", "-r", dest="replace", default=False,
|
||||
action="store_true", help="Replace your active "
|
||||
"hosts file with this "
|
||||
"new hosts file.")
|
||||
parser.add_argument("--flush-dns-cache", "-f", dest="flushdnscache",
|
||||
default=False, action="store_true",
|
||||
help="Attempt to flush DNS cache "
|
||||
"after replacing the hosts file.")
|
||||
parser.add_argument("--compress", "-c", dest="compress",
|
||||
default=False, action="store_true",
|
||||
help="Compress the hosts file "
|
||||
"ignoring non-necessary lines "
|
||||
"(empty lines and comments) and "
|
||||
"putting multiple domains in "
|
||||
"each line. Improve the "
|
||||
"performances under Windows.")
|
||||
parser.add_argument("--minimise", "-m", dest="minimise",
|
||||
default=False, action="store_true",
|
||||
help="Minimise the hosts file "
|
||||
"ignoring non-necessary lines "
|
||||
"(empty lines and comments).")
|
||||
parser = argparse.ArgumentParser(
|
||||
description="Creates a unified hosts "
|
||||
"file from hosts stored in "
|
||||
"data subfolders."
|
||||
)
|
||||
parser.add_argument(
|
||||
"--auto",
|
||||
"-a",
|
||||
dest="auto",
|
||||
default=False,
|
||||
action="store_true",
|
||||
help="Run without prompting.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--backup",
|
||||
"-b",
|
||||
dest="backup",
|
||||
default=False,
|
||||
action="store_true",
|
||||
help="Backup the hosts " "files before they " "are overridden.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--extensions",
|
||||
"-e",
|
||||
dest="extensions",
|
||||
default=[],
|
||||
nargs="*",
|
||||
help="Host extensions to include " "in the final hosts file.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--ip",
|
||||
"-i",
|
||||
dest="targetip",
|
||||
default="0.0.0.0",
|
||||
help="Target IP address. Default is 0.0.0.0.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--keepdomaincomments",
|
||||
"-k",
|
||||
dest="keepdomaincomments",
|
||||
action="store_false",
|
||||
default=True,
|
||||
help="Do not keep domain line comments.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--noupdate",
|
||||
"-n",
|
||||
dest="noupdate",
|
||||
default=False,
|
||||
action="store_true",
|
||||
help="Don't update from " "host data sources.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--skipstatichosts",
|
||||
"-s",
|
||||
dest="skipstatichosts",
|
||||
default=False,
|
||||
action="store_true",
|
||||
help="Skip static localhost entries " "in the final hosts file.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--output",
|
||||
"-o",
|
||||
dest="outputsubfolder",
|
||||
default="",
|
||||
help="Output subfolder for generated hosts file.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--replace",
|
||||
"-r",
|
||||
dest="replace",
|
||||
default=False,
|
||||
action="store_true",
|
||||
help="Replace your active " "hosts file with this " "new hosts file.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--flush-dns-cache",
|
||||
"-f",
|
||||
dest="flushdnscache",
|
||||
default=False,
|
||||
action="store_true",
|
||||
help="Attempt to flush DNS cache " "after replacing the hosts file.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--compress",
|
||||
"-c",
|
||||
dest="compress",
|
||||
default=False,
|
||||
action="store_true",
|
||||
help="Compress the hosts file "
|
||||
"ignoring non-necessary lines "
|
||||
"(empty lines and comments) and "
|
||||
"putting multiple domains in "
|
||||
"each line. Improve the "
|
||||
"performances under Windows.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--minimise",
|
||||
"-m",
|
||||
dest="minimise",
|
||||
default=False,
|
||||
action="store_true",
|
||||
help="Minimise the hosts file "
|
||||
"ignoring non-necessary lines "
|
||||
"(empty lines and comments).",
|
||||
)
|
||||
|
||||
global settings
|
||||
|
||||
@@ -149,17 +211,19 @@ def main():
|
||||
settings["extensionsources"] = list_dir_no_hidden(extensions_path)
|
||||
|
||||
# All our extensions folders...
|
||||
settings["extensions"] = [os.path.basename(item) for item in list_dir_no_hidden(extensions_path)]
|
||||
settings["extensions"] = [
|
||||
os.path.basename(item) for item in list_dir_no_hidden(extensions_path)
|
||||
]
|
||||
# ... intersected with the extensions passed-in as arguments, then sorted.
|
||||
settings["extensions"] = sorted(list(
|
||||
set(options["extensions"]).intersection(settings["extensions"])))
|
||||
settings["extensions"] = sorted(
|
||||
list(set(options["extensions"]).intersection(settings["extensions"]))
|
||||
)
|
||||
|
||||
auto = settings["auto"]
|
||||
exclusion_regexes = settings["exclusionregexs"]
|
||||
source_data_filename = settings["sourcedatafilename"]
|
||||
|
||||
update_sources = prompt_for_update(freshen=settings["freshen"],
|
||||
update_auto=auto)
|
||||
update_sources = prompt_for_update(freshen=settings["freshen"], update_auto=auto)
|
||||
if update_sources:
|
||||
update_all_sources(source_data_filename, settings["hostfilename"])
|
||||
|
||||
@@ -171,14 +235,17 @@ def main():
|
||||
exclusion_regexes = display_exclusion_options(
|
||||
common_exclusions=common_exclusions,
|
||||
exclusion_pattern=exclusion_pattern,
|
||||
exclusion_regexes=exclusion_regexes)
|
||||
exclusion_regexes=exclusion_regexes,
|
||||
)
|
||||
|
||||
extensions = settings["extensions"]
|
||||
sources_data = update_sources_data(settings["sourcesdata"],
|
||||
datapath=data_path,
|
||||
extensions=extensions,
|
||||
extensionspath=extensions_path,
|
||||
sourcedatafilename=source_data_filename)
|
||||
sources_data = update_sources_data(
|
||||
settings["sourcesdata"],
|
||||
datapath=data_path,
|
||||
extensions=extensions,
|
||||
extensionspath=extensions_path,
|
||||
sourcedatafilename=source_data_filename,
|
||||
)
|
||||
|
||||
merge_file = create_initial_file()
|
||||
remove_old_hosts_file(settings["backup"])
|
||||
@@ -199,32 +266,44 @@ def main():
|
||||
output_subfolder = settings["outputsubfolder"]
|
||||
skip_static_hosts = settings["skipstatichosts"]
|
||||
|
||||
write_opening_header(final_file, extensions=extensions,
|
||||
numberofrules=number_of_rules,
|
||||
outputsubfolder=output_subfolder,
|
||||
skipstatichosts=skip_static_hosts)
|
||||
write_opening_header(
|
||||
final_file,
|
||||
extensions=extensions,
|
||||
numberofrules=number_of_rules,
|
||||
outputsubfolder=output_subfolder,
|
||||
skipstatichosts=skip_static_hosts,
|
||||
)
|
||||
final_file.close()
|
||||
|
||||
update_readme_data(settings["readmedatafilename"],
|
||||
extensions=extensions,
|
||||
numberofrules=number_of_rules,
|
||||
outputsubfolder=output_subfolder,
|
||||
sourcesdata=sources_data)
|
||||
update_readme_data(
|
||||
settings["readmedatafilename"],
|
||||
extensions=extensions,
|
||||
numberofrules=number_of_rules,
|
||||
outputsubfolder=output_subfolder,
|
||||
sourcesdata=sources_data,
|
||||
)
|
||||
|
||||
print_success("Success! The hosts file has been saved in folder " +
|
||||
output_subfolder + "\nIt contains " +
|
||||
"{:,}".format(number_of_rules) +
|
||||
" unique entries.")
|
||||
print_success(
|
||||
"Success! The hosts file has been saved in folder "
|
||||
+ output_subfolder
|
||||
+ "\nIt contains "
|
||||
+ "{:,}".format(number_of_rules)
|
||||
+ " unique entries."
|
||||
)
|
||||
|
||||
move_file = prompt_for_move(final_file, auto=auto,
|
||||
replace=settings["replace"],
|
||||
skipstatichosts=skip_static_hosts)
|
||||
move_file = prompt_for_move(
|
||||
final_file,
|
||||
auto=auto,
|
||||
replace=settings["replace"],
|
||||
skipstatichosts=skip_static_hosts,
|
||||
)
|
||||
|
||||
# We only flush the DNS cache if we have
|
||||
# moved a new hosts file into place.
|
||||
if move_file:
|
||||
prompt_for_flush_dns_cache(flush_cache=settings["flushdnscache"],
|
||||
prompt_flush=not auto)
|
||||
prompt_for_flush_dns_cache(
|
||||
flush_cache=settings["flushdnscache"], prompt_flush=not auto
|
||||
)
|
||||
|
||||
|
||||
# Prompt the User
|
||||
@@ -259,7 +338,9 @@ def prompt_for_update(freshen, update_auto):
|
||||
# Starting in Python 3.3, IOError is aliased
|
||||
# OSError. However, we have to catch both for
|
||||
# Python 2.x failures.
|
||||
print_failure("ERROR: No 'hosts' file in the folder. Try creating one manually.")
|
||||
print_failure(
|
||||
"ERROR: No 'hosts' file in the folder. Try creating one manually."
|
||||
)
|
||||
|
||||
if not freshen:
|
||||
return
|
||||
@@ -291,9 +372,11 @@ def prompt_for_exclusions(skip_prompt):
|
||||
custom domains beyond those in the whitelist.
|
||||
"""
|
||||
|
||||
prompt = ("Do you want to exclude any domains?\n"
|
||||
"For example, hulu.com video streaming must be able to access "
|
||||
"its tracking and ad servers in order to play video.")
|
||||
prompt = (
|
||||
"Do you want to exclude any domains?\n"
|
||||
"For example, hulu.com video streaming must be able to access "
|
||||
"its tracking and ad servers in order to play video."
|
||||
)
|
||||
|
||||
if not skip_prompt:
|
||||
if query_yes_no(prompt):
|
||||
@@ -361,6 +444,8 @@ def prompt_for_move(final_file, **move_params):
|
||||
move_hosts_file_into_place(final_file)
|
||||
|
||||
return move_file
|
||||
|
||||
|
||||
# End Prompt the User
|
||||
|
||||
|
||||
@@ -394,15 +479,16 @@ def display_exclusion_options(common_exclusions, exclusion_pattern, exclusion_re
|
||||
prompt = "Do you want to exclude the domain " + exclusion_option + " ?"
|
||||
|
||||
if query_yes_no(prompt):
|
||||
exclusion_regexes = exclude_domain(exclusion_option,
|
||||
exclusion_pattern,
|
||||
exclusion_regexes)
|
||||
exclusion_regexes = exclude_domain(
|
||||
exclusion_option, exclusion_pattern, exclusion_regexes
|
||||
)
|
||||
else:
|
||||
continue
|
||||
|
||||
if query_yes_no("Do you want to exclude any other domains?"):
|
||||
exclusion_regexes = gather_custom_exclusions(exclusion_pattern,
|
||||
exclusion_regexes)
|
||||
exclusion_regexes = gather_custom_exclusions(
|
||||
exclusion_pattern, exclusion_regexes
|
||||
)
|
||||
|
||||
return exclusion_regexes
|
||||
|
||||
@@ -432,7 +518,9 @@ def gather_custom_exclusions(exclusion_pattern, exclusion_regexes):
|
||||
user_domain = input(domain_prompt)
|
||||
|
||||
if is_valid_domain_format(user_domain):
|
||||
exclusion_regexes = exclude_domain(user_domain, exclusion_pattern, exclusion_regexes)
|
||||
exclusion_regexes = exclude_domain(
|
||||
user_domain, exclusion_pattern, exclusion_regexes
|
||||
)
|
||||
|
||||
continue_prompt = "Do you have more domains you want to enter?"
|
||||
if not query_yes_no(continue_prompt):
|
||||
@@ -497,6 +585,8 @@ def matches_exclusions(stripped_rule, exclusion_regexes):
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
|
||||
# End Exclusion Logic
|
||||
|
||||
|
||||
@@ -533,8 +623,7 @@ def update_sources_data(sources_data, **sources_params):
|
||||
update_file.close()
|
||||
|
||||
for source in sources_params["extensions"]:
|
||||
source_dir = path_join_robust(
|
||||
sources_params["extensionspath"], source)
|
||||
source_dir = path_join_robust(sources_params["extensionspath"], source)
|
||||
for update_file_path in recursive_glob(source_dir, source_data_filename):
|
||||
update_file = open(update_file_path, "r")
|
||||
update_data = json.load(update_file)
|
||||
@@ -579,9 +668,7 @@ def update_all_sources(source_data_filename, host_filename):
|
||||
"""
|
||||
|
||||
# The transforms we support
|
||||
transform_methods = {
|
||||
'jsonarray': jsonarray
|
||||
}
|
||||
transform_methods = {"jsonarray": jsonarray}
|
||||
|
||||
all_sources = recursive_glob("*", source_data_filename)
|
||||
|
||||
@@ -606,13 +693,16 @@ def update_all_sources(source_data_filename, host_filename):
|
||||
# get rid of carriage-return symbols
|
||||
updated_file = updated_file.replace("\r", "")
|
||||
|
||||
hosts_file = open(path_join_robust(BASEDIR_PATH,
|
||||
os.path.dirname(source),
|
||||
host_filename), "wb")
|
||||
hosts_file = open(
|
||||
path_join_robust(BASEDIR_PATH, os.path.dirname(source), host_filename),
|
||||
"wb",
|
||||
)
|
||||
write_data(hosts_file, updated_file)
|
||||
hosts_file.close()
|
||||
except Exception:
|
||||
print("Error in updating source: ", update_url)
|
||||
|
||||
|
||||
# End Update Logic
|
||||
|
||||
|
||||
@@ -625,8 +715,7 @@ def create_initial_file():
|
||||
merge_file = tempfile.NamedTemporaryFile()
|
||||
|
||||
# spin the sources for the base file
|
||||
for source in recursive_glob(settings["datapath"],
|
||||
settings["hostfilename"]):
|
||||
for source in recursive_glob(settings["datapath"], settings["hostfilename"]):
|
||||
|
||||
start = "# Start {}\n\n".format(os.path.basename(os.path.dirname(source)))
|
||||
end = "# End {}\n\n".format(os.path.basename(os.path.dirname(source)))
|
||||
@@ -636,8 +725,10 @@ def create_initial_file():
|
||||
|
||||
# spin the sources for extensions to the base file
|
||||
for source in settings["extensions"]:
|
||||
for filename in recursive_glob(path_join_robust(
|
||||
settings["extensionspath"], source), settings["hostfilename"]):
|
||||
for filename in recursive_glob(
|
||||
path_join_robust(settings["extensionspath"], source),
|
||||
settings["hostfilename"],
|
||||
):
|
||||
with open(filename, "r") as curFile:
|
||||
write_data(merge_file, curFile.read())
|
||||
|
||||
@@ -668,7 +759,7 @@ def compress_file(input_file, target_ip, output_file):
|
||||
"""
|
||||
|
||||
input_file.seek(0) # reset file pointer
|
||||
write_data(output_file, '\n')
|
||||
write_data(output_file, "\n")
|
||||
|
||||
target_ip_len = len(target_ip)
|
||||
lines = [target_ip]
|
||||
@@ -677,12 +768,13 @@ def compress_file(input_file, target_ip, output_file):
|
||||
line = line.decode("UTF-8")
|
||||
|
||||
if line.startswith(target_ip):
|
||||
if lines[lines_index].count(' ') < 9:
|
||||
lines[lines_index] += ' ' \
|
||||
+ line[target_ip_len:line.find('#')].strip()
|
||||
if lines[lines_index].count(" ") < 9:
|
||||
lines[lines_index] += (
|
||||
" " + line[target_ip_len : line.find("#")].strip() # noqa: E203
|
||||
)
|
||||
else:
|
||||
lines[lines_index] += '\n'
|
||||
lines.append(line[:line.find('#')].strip())
|
||||
lines[lines_index] += "\n"
|
||||
lines.append(line[: line.find("#")].strip())
|
||||
lines_index += 1
|
||||
|
||||
for line in lines:
|
||||
@@ -707,14 +799,14 @@ def minimise_file(input_file, target_ip, output_file):
|
||||
"""
|
||||
|
||||
input_file.seek(0) # reset file pointer
|
||||
write_data(output_file, '\n')
|
||||
write_data(output_file, "\n")
|
||||
|
||||
lines = []
|
||||
for line in input_file.readlines():
|
||||
line = line.decode("UTF-8")
|
||||
|
||||
if line.startswith(target_ip):
|
||||
lines.append(line[:line.find('#')].strip() + '\n')
|
||||
lines.append(line[: line.find("#")].strip() + "\n")
|
||||
|
||||
for line in lines:
|
||||
write_data(output_file, line)
|
||||
@@ -772,27 +864,28 @@ def remove_dups_and_excl(merge_file, exclusion_regexes, output_file=None):
|
||||
line = line.replace("\t+", " ")
|
||||
|
||||
# see gh-271: trim trailing whitespace, periods
|
||||
line = line.rstrip(' .')
|
||||
line = line.rstrip(" .")
|
||||
|
||||
# Testing the first character doesn't require startswith
|
||||
if line[0] == "#" or re.match(r'^\s*$', line[0]):
|
||||
if line[0] == "#" or re.match(r"^\s*$", line[0]):
|
||||
write_data(final_file, line)
|
||||
continue
|
||||
if "::1" in line:
|
||||
continue
|
||||
|
||||
stripped_rule = strip_rule(line) # strip comments
|
||||
if not stripped_rule or matches_exclusions(stripped_rule,
|
||||
exclusion_regexes):
|
||||
if not stripped_rule or matches_exclusions(stripped_rule, exclusion_regexes):
|
||||
continue
|
||||
|
||||
# Normalize rule
|
||||
hostname, normalized_rule = normalize_rule(
|
||||
stripped_rule, target_ip=settings["targetip"],
|
||||
keep_domain_comments=settings["keepdomaincomments"])
|
||||
stripped_rule,
|
||||
target_ip=settings["targetip"],
|
||||
keep_domain_comments=settings["keepdomaincomments"],
|
||||
)
|
||||
|
||||
for exclude in exclusions:
|
||||
if re.search(r'[\s\.]' + re.escape(exclude) + r'\s', line):
|
||||
if re.search(r"[\s\.]" + re.escape(exclude) + r"\s", line):
|
||||
write_line = False
|
||||
break
|
||||
|
||||
@@ -832,7 +925,7 @@ def normalize_rule(rule, target_ip, keep_domain_comments):
|
||||
"""
|
||||
first try: IP followed by domain
|
||||
"""
|
||||
regex = r'^\s*(\d{1,3}\.){3}\d{1,3}\s+([\w\.-]+[a-zA-Z])(.*)'
|
||||
regex = r"^\s*(\d{1,3}\.){3}\d{1,3}\s+([\w\.-]+[a-zA-Z])(.*)"
|
||||
result = re.search(regex, rule)
|
||||
|
||||
if result:
|
||||
@@ -843,7 +936,7 @@ def normalize_rule(rule, target_ip, keep_domain_comments):
|
||||
rule = "%s %s" % (target_ip, hostname)
|
||||
|
||||
if suffix and keep_domain_comments:
|
||||
if not suffix.strip().startswith('#'):
|
||||
if not suffix.strip().startswith("#"):
|
||||
rule += " #%s" % suffix
|
||||
else:
|
||||
rule += " %s" % suffix
|
||||
@@ -853,7 +946,7 @@ def normalize_rule(rule, target_ip, keep_domain_comments):
|
||||
"""
|
||||
next try: IP address followed by host IP address
|
||||
"""
|
||||
regex = r'^\s*(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s+(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s*(.*)'
|
||||
regex = r"^\s*(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s+(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s*(.*)"
|
||||
result = re.search(regex, rule)
|
||||
|
||||
if result:
|
||||
@@ -863,7 +956,7 @@ def normalize_rule(rule, target_ip, keep_domain_comments):
|
||||
rule = "%s %s" % (target_ip, ip_host)
|
||||
|
||||
if suffix and keep_domain_comments:
|
||||
if not suffix.strip().startswith('#'):
|
||||
if not suffix.strip().startswith("#"):
|
||||
rule += " #%s" % suffix
|
||||
else:
|
||||
rule += " %s" % suffix
|
||||
@@ -922,22 +1015,76 @@ def write_opening_header(final_file, **header_params):
|
||||
file_contents = final_file.read() # Save content.
|
||||
|
||||
final_file.seek(0) # Write at the top.
|
||||
write_data(final_file, "# This hosts file is a merged collection "
|
||||
"of hosts from reputable sources,\n")
|
||||
write_data(final_file, "# with a dash of crowd sourcing via Github\n#\n")
|
||||
write_data(final_file, "# Date: " + time.strftime("%d %B %Y %H:%M:%S (%Z)", time.gmtime()) + "\n")
|
||||
|
||||
if header_params["extensions"]:
|
||||
write_data(final_file, "# Extensions added to this file: " + ", ".join(
|
||||
header_params["extensions"]) + "\n")
|
||||
if len(header_params["extensions"]) > 1:
|
||||
write_data(
|
||||
final_file,
|
||||
"# Title: StevenBlack/hosts with the {0} and {1} extensions\n#\n".format(
|
||||
", ".join(header_params["extensions"][:-1]),
|
||||
header_params["extensions"][-1],
|
||||
),
|
||||
)
|
||||
else:
|
||||
write_data(
|
||||
final_file,
|
||||
"# Title: StevenBlack/hosts with the {0} extension\n#\n".format(
|
||||
", ".join(header_params["extensions"])
|
||||
),
|
||||
)
|
||||
else:
|
||||
write_data(
|
||||
final_file,
|
||||
"# Title: StevenBlack/hosts\n#\n".format(
|
||||
", ".join(header_params["extensions"])
|
||||
),
|
||||
)
|
||||
|
||||
write_data(final_file, ("# Number of unique domains: {:,}\n#\n".format(header_params["numberofrules"])))
|
||||
write_data(final_file, "# Fetch the latest version of this file: "
|
||||
"https://raw.githubusercontent.com/StevenBlack/hosts/master/" +
|
||||
path_join_robust(header_params["outputsubfolder"], "") + "hosts\n")
|
||||
write_data(final_file, "# Project home page: https://github.com/StevenBlack/hosts\n")
|
||||
write_data(final_file, "# Project releases: https://github.com/StevenBlack/hosts/releases\n#\n")
|
||||
write_data(final_file, "# ===============================================================\n")
|
||||
write_data(
|
||||
final_file,
|
||||
"# This hosts file is a merged collection "
|
||||
"of hosts from reputable sources,\n",
|
||||
)
|
||||
write_data(final_file, "# with a dash of crowd sourcing via Github\n#\n")
|
||||
write_data(
|
||||
final_file,
|
||||
"# Date: " + time.strftime("%d %B %Y %H:%M:%S (%Z)", time.gmtime()) + "\n",
|
||||
)
|
||||
|
||||
if header_params["extensions"]:
|
||||
write_data(
|
||||
final_file,
|
||||
"# Extensions added to this file: "
|
||||
+ ", ".join(header_params["extensions"])
|
||||
+ "\n",
|
||||
)
|
||||
|
||||
write_data(
|
||||
final_file,
|
||||
(
|
||||
"# Number of unique domains: {:,}\n#\n".format(
|
||||
header_params["numberofrules"]
|
||||
)
|
||||
),
|
||||
)
|
||||
write_data(
|
||||
final_file,
|
||||
"# Fetch the latest version of this file: "
|
||||
"https://raw.githubusercontent.com/StevenBlack/hosts/master/"
|
||||
+ path_join_robust(header_params["outputsubfolder"], "")
|
||||
+ "hosts\n",
|
||||
)
|
||||
write_data(
|
||||
final_file, "# Project home page: https://github.com/StevenBlack/hosts\n"
|
||||
)
|
||||
write_data(
|
||||
final_file,
|
||||
"# Project releases: https://github.com/StevenBlack/hosts/releases\n#\n",
|
||||
)
|
||||
write_data(
|
||||
final_file,
|
||||
"# ===============================================================\n",
|
||||
)
|
||||
write_data(final_file, "\n")
|
||||
|
||||
if not header_params["skipstatichosts"]:
|
||||
@@ -997,9 +1144,11 @@ def update_readme_data(readme_file, **readme_updates):
|
||||
extensions_key = "-".join(extensions)
|
||||
|
||||
output_folder = readme_updates["outputsubfolder"]
|
||||
generation_data = {"location": path_join_robust(output_folder, ""),
|
||||
"entries": readme_updates["numberofrules"],
|
||||
"sourcesdata": readme_updates["sourcesdata"]}
|
||||
generation_data = {
|
||||
"location": path_join_robust(output_folder, ""),
|
||||
"entries": readme_updates["numberofrules"],
|
||||
"sourcesdata": readme_updates["sourcesdata"],
|
||||
}
|
||||
|
||||
with open(readme_file, "r") as f:
|
||||
readme_data = json.load(f)
|
||||
@@ -1029,12 +1178,16 @@ def move_hosts_file_into_place(final_file):
|
||||
filename = os.path.abspath(final_file.name)
|
||||
|
||||
if os.name == "posix":
|
||||
print("Moving the file requires administrative privileges. You might need to enter your password.")
|
||||
print(
|
||||
"Moving the file requires administrative privileges. You might need to enter your password."
|
||||
)
|
||||
if subprocess.call(SUDO + ["cp", filename, "/etc/hosts"]):
|
||||
print_failure("Moving the file failed.")
|
||||
elif os.name == "nt":
|
||||
print("Automatically moving the hosts file in place is not yet supported.")
|
||||
print("Please move the generated file to %SystemRoot%\system32\drivers\etc\hosts") # noqa: W605
|
||||
print(
|
||||
"Please move the generated file to %SystemRoot%\system32\drivers\etc\hosts"
|
||||
) # noqa: W605
|
||||
|
||||
|
||||
def flush_dns_cache():
|
||||
@@ -1043,7 +1196,9 @@ def flush_dns_cache():
|
||||
"""
|
||||
|
||||
print("Flushing the DNS cache to utilize new hosts file...")
|
||||
print("Flushing the DNS cache requires administrative privileges. You might need to enter your password.")
|
||||
print(
|
||||
"Flushing the DNS cache requires administrative privileges. You might need to enter your password."
|
||||
)
|
||||
|
||||
dns_cache_found = False
|
||||
|
||||
@@ -1052,8 +1207,10 @@ def flush_dns_cache():
|
||||
print_failure("Flushing the DNS cache failed.")
|
||||
elif os.name == "nt":
|
||||
print("Automatically flushing the DNS cache is not yet supported.")
|
||||
print("Please copy and paste the command 'ipconfig /flushdns' in "
|
||||
"administrator command prompt after running this script.")
|
||||
print(
|
||||
"Please copy and paste the command 'ipconfig /flushdns' in "
|
||||
"administrator command prompt after running this script."
|
||||
)
|
||||
else:
|
||||
nscd_prefixes = ["/etc", "/etc/rc.d"]
|
||||
nscd_msg = "Flushing the DNS cache by restarting nscd {result}"
|
||||
@@ -1088,7 +1245,9 @@ def flush_dns_cache():
|
||||
for service_type in service_types:
|
||||
service = service_type + ".service"
|
||||
service_file = path_join_robust(system_dir, service)
|
||||
service_msg = ("Flushing the DNS cache by restarting " + service + " {result}")
|
||||
service_msg = (
|
||||
"Flushing the DNS cache by restarting " + service + " {result}"
|
||||
)
|
||||
|
||||
if os.path.isfile(service_file):
|
||||
dns_cache_found = True
|
||||
@@ -1132,8 +1291,9 @@ def remove_old_hosts_file(backup):
|
||||
open(old_file_path, "a").close()
|
||||
|
||||
if backup:
|
||||
backup_file_path = path_join_robust(BASEDIR_PATH, "hosts-{}".format(
|
||||
time.strftime("%Y-%m-%d-%H-%M-%S")))
|
||||
backup_file_path = path_join_robust(
|
||||
BASEDIR_PATH, "hosts-{}".format(time.strftime("%Y-%m-%d-%H-%M-%S"))
|
||||
)
|
||||
|
||||
# Make a backup copy, marking the date in which the list was updated
|
||||
shutil.copy(old_file_path, backup_file_path)
|
||||
@@ -1142,6 +1302,8 @@ def remove_old_hosts_file(backup):
|
||||
|
||||
# Create new empty hosts file
|
||||
open(old_file_path, "a").close()
|
||||
|
||||
|
||||
# End File Logic
|
||||
|
||||
|
||||
@@ -1174,9 +1336,9 @@ def domain_to_idna(line):
|
||||
- The following also split the trailing comment of a given line.
|
||||
"""
|
||||
|
||||
if not line.startswith('#'):
|
||||
tabs = '\t'
|
||||
space = ' '
|
||||
if not line.startswith("#"):
|
||||
tabs = "\t"
|
||||
space = " "
|
||||
|
||||
tabs_position, space_position = (line.find(tabs), line.find(space))
|
||||
|
||||
@@ -1190,7 +1352,7 @@ def domain_to_idna(line):
|
||||
elif not space_position == -1:
|
||||
separator = space
|
||||
else:
|
||||
separator = ''
|
||||
separator = ""
|
||||
|
||||
if separator:
|
||||
splited_line = line.split(separator)
|
||||
@@ -1202,20 +1364,21 @@ def domain_to_idna(line):
|
||||
break
|
||||
index += 1
|
||||
|
||||
if '#' in splited_line[index]:
|
||||
index_comment = splited_line[index].find('#')
|
||||
if "#" in splited_line[index]:
|
||||
index_comment = splited_line[index].find("#")
|
||||
|
||||
if index_comment > -1:
|
||||
comment = splited_line[index][index_comment:]
|
||||
|
||||
splited_line[index] = splited_line[index] \
|
||||
.split(comment)[0] \
|
||||
.encode("IDNA").decode("UTF-8") + \
|
||||
comment
|
||||
splited_line[index] = (
|
||||
splited_line[index]
|
||||
.split(comment)[0]
|
||||
.encode("IDNA")
|
||||
.decode("UTF-8")
|
||||
+ comment
|
||||
)
|
||||
|
||||
splited_line[index] = splited_line[index] \
|
||||
.encode("IDNA") \
|
||||
.decode("UTF-8")
|
||||
splited_line[index] = splited_line[index].encode("IDNA").decode("UTF-8")
|
||||
except IndexError:
|
||||
pass
|
||||
return separator.join(splited_line)
|
||||
@@ -1267,8 +1430,8 @@ def get_file_by_url(url):
|
||||
|
||||
try:
|
||||
f = urlopen(url)
|
||||
soup = BeautifulSoup(f.read(), 'lxml').get_text()
|
||||
return '\n'.join(list(map(domain_to_idna, soup.split('\n'))))
|
||||
soup = BeautifulSoup(f.read(), "lxml").get_text()
|
||||
return "\n".join(list(map(domain_to_idna, soup.split("\n"))))
|
||||
except Exception:
|
||||
print("Problem getting file: ", url)
|
||||
|
||||
@@ -1322,11 +1485,8 @@ def query_yes_no(question, default="yes"):
|
||||
yes : Whether or not the user replied yes to the question.
|
||||
"""
|
||||
|
||||
valid = {"yes": "yes", "y": "yes", "ye": "yes",
|
||||
"no": "no", "n": "no"}
|
||||
prompt = {None: " [y/n] ",
|
||||
"yes": " [Y/n] ",
|
||||
"no": " [y/N] "}.get(default, None)
|
||||
valid = {"yes": "yes", "y": "yes", "ye": "yes", "no": "no", "n": "no"}
|
||||
prompt = {None: " [y/n] ", "yes": " [Y/n] ", "no": " [y/N] "}.get(default, None)
|
||||
|
||||
if not prompt:
|
||||
raise ValueError("invalid default answer: '%s'" % default)
|
||||
@@ -1371,8 +1531,10 @@ def is_valid_domain_format(domain):
|
||||
domain_regex = re.compile(r"www\d{0,3}[.]|https?")
|
||||
|
||||
if domain_regex.match(domain):
|
||||
print("The domain " + domain + " is not valid. Do not include "
|
||||
"www.domain.com or http(s)://domain.com. Try again.")
|
||||
print(
|
||||
"The domain " + domain + " is not valid. Do not include "
|
||||
"www.domain.com or http(s)://domain.com. Try again."
|
||||
)
|
||||
return False
|
||||
else:
|
||||
return True
|
||||
@@ -1436,7 +1598,9 @@ def path_join_robust(path, *paths):
|
||||
|
||||
return os.path.join(path, *paths)
|
||||
except UnicodeDecodeError as e:
|
||||
raise locale.Error("Unable to construct path. This is likely a LOCALE issue:\n\n" + str(e))
|
||||
raise locale.Error(
|
||||
"Unable to construct path. This is likely a LOCALE issue:\n\n" + str(e)
|
||||
)
|
||||
|
||||
|
||||
# Colors
|
||||
@@ -1462,7 +1626,9 @@ def supports_color():
|
||||
"""
|
||||
|
||||
sys_platform = sys.platform
|
||||
supported = sys_platform != "Pocket PC" and (sys_platform != "win32" or "ANSICON" in os.environ)
|
||||
supported = sys_platform != "Pocket PC" and (
|
||||
sys_platform != "win32" or "ANSICON" in os.environ
|
||||
)
|
||||
|
||||
atty_connected = hasattr(sys.stdout, "isatty") and sys.stdout.isatty()
|
||||
return supported and atty_connected
|
||||
@@ -1521,6 +1687,8 @@ def print_failure(text):
|
||||
"""
|
||||
|
||||
print(colorize(text, Colors.FAIL))
|
||||
|
||||
|
||||
# End Helper Functions
|
||||
|
||||
|
||||
|
||||
+44
-13
@@ -1,3 +1,4 @@
|
||||
::
|
||||
:: This script will first create a backup of the original or current hosts
|
||||
:: file and save it in a file titled "hosts.skel"
|
||||
::
|
||||
@@ -5,26 +6,56 @@
|
||||
:: will be copied to the proper path. Next, the DNS cache will be refreshed.
|
||||
::
|
||||
:: THIS BAT FILE MUST BE LAUNCHED WITH ADMINISTRATOR PRIVILEGES
|
||||
:: Admin privileges script based on https://stackoverflow.com/a/10052222
|
||||
::
|
||||
::
|
||||
@ECHO OFF
|
||||
TITLE Update Hosts
|
||||
|
||||
:: Check if we are administrator. If not, exit immediately.
|
||||
:: BatchGotAdmin
|
||||
:-------------------------------------
|
||||
REM --> Check for permissions
|
||||
IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" (
|
||||
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"
|
||||
) ELSE (
|
||||
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
|
||||
if %ERRORLEVEL% NEQ 0 (
|
||||
ECHO This script must be run with administrator privileges!
|
||||
ECHO Please launch command prompt as administrator. Exiting...
|
||||
EXIT /B 1
|
||||
)
|
||||
|
||||
if not exist "%WINDIR%\System32\drivers\etc\hosts.skel" (
|
||||
COPY %WINDIR%\System32\drivers\etc\hosts %WINDIR%\System32\drivers\etc\hosts.skel
|
||||
)
|
||||
REM --> If error flag set, we do not have admin.
|
||||
if '%errorlevel%' NEQ '0' (
|
||||
echo Requesting administrative privileges...
|
||||
goto UACPrompt
|
||||
) else ( goto gotAdmin )
|
||||
|
||||
:: Update hosts file
|
||||
python updateHostsFile.py -a
|
||||
:UACPrompt
|
||||
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
|
||||
set params= %*
|
||||
echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params:"=""%", "", "runas", 1 >> "%temp%\getadmin.vbs"
|
||||
|
||||
:: Move new hosts file in-place
|
||||
COPY hosts %WINDIR%\System32\drivers\etc\
|
||||
"%temp%\getadmin.vbs"
|
||||
del "%temp%\getadmin.vbs"
|
||||
exit /B
|
||||
|
||||
:: Flush the DNS cache
|
||||
ipconfig /flushdns
|
||||
:gotAdmin
|
||||
pushd "%CD%"
|
||||
CD /D "%~dp0"
|
||||
|
||||
:BackupHosts
|
||||
:: Backup default hosts file
|
||||
if not exist "%WINDIR%\System32\drivers\etc\hosts.skel" (
|
||||
COPY %WINDIR%\System32\drivers\etc\hosts %WINDIR%\System32\drivers\etc\hosts.skel
|
||||
)
|
||||
|
||||
:UpdateHosts
|
||||
:: Update hosts file
|
||||
python updateHostsFile.py --auto --minimise
|
||||
|
||||
:: Move new hosts file in-place
|
||||
COPY hosts %WINDIR%\System32\drivers\etc\
|
||||
|
||||
:: Flush the DNS cache
|
||||
ipconfig /flushdns
|
||||
|
||||
:: Summary note
|
||||
pause
|
||||
|
||||
+35
-24
@@ -12,19 +12,21 @@ from string import Template
|
||||
|
||||
# Project Settings
|
||||
BASEDIR_PATH = os.path.dirname(os.path.realpath(__file__))
|
||||
README_TEMPLATE = os.path.join(BASEDIR_PATH, 'readme_template.md')
|
||||
README_FILENAME = 'readme.md'
|
||||
README_TEMPLATE = os.path.join(BASEDIR_PATH, "readme_template.md")
|
||||
README_FILENAME = "readme.md"
|
||||
README_DATA_FILENAME = "readmeData.json"
|
||||
|
||||
|
||||
def main():
|
||||
s = Template('${description} | [Readme](https://github.com/StevenBlack/'
|
||||
'hosts/blob/master/${location}readme.md) | '
|
||||
'[link](https://raw.githubusercontent.com/StevenBlack/'
|
||||
'hosts/master/${location}hosts) | '
|
||||
'${fmtentries} | '
|
||||
'[link](http://sbc.io/hosts/${location}hosts)')
|
||||
with open(README_DATA_FILENAME, 'r') as f:
|
||||
s = Template(
|
||||
"${description} | [Readme](https://github.com/StevenBlack/"
|
||||
"hosts/blob/master/${location}readme.md) | "
|
||||
"[link](https://raw.githubusercontent.com/StevenBlack/"
|
||||
"hosts/master/${location}hosts) | "
|
||||
"${fmtentries} | "
|
||||
"[link](http://sbc.io/hosts/${location}hosts)"
|
||||
)
|
||||
with open(README_DATA_FILENAME, "r") as f:
|
||||
data = json.load(f)
|
||||
|
||||
keys = list(data.keys())
|
||||
@@ -37,10 +39,11 @@ def main():
|
||||
for key in keys:
|
||||
data[key]["fmtentries"] = "{:,}".format(data[key]["entries"])
|
||||
if key == "base":
|
||||
data[key]["description"] = 'Unified hosts = **(adware + malware)**'
|
||||
data[key]["description"] = "Unified hosts = **(adware + malware)**"
|
||||
else:
|
||||
data[key]["description"] = ('Unified hosts **+ ' +
|
||||
key.replace("-", " + ") + '**')
|
||||
data[key]["description"] = (
|
||||
"Unified hosts **+ " + key.replace("-", " + ") + "**"
|
||||
)
|
||||
|
||||
toc_rows += s.substitute(data[key]) + "\n"
|
||||
|
||||
@@ -52,10 +55,13 @@ def main():
|
||||
"issues": "",
|
||||
"url": "",
|
||||
"license": "",
|
||||
"issues": ""}
|
||||
"issues": "",
|
||||
}
|
||||
|
||||
t = Template('${name} | ${description} |[link](${homeurl})'
|
||||
' | [raw](${url}) | ${frequency} | ${license} | [issues](${issues}) ')
|
||||
t = Template(
|
||||
"${name} | ${description} |[link](${homeurl})"
|
||||
" | [raw](${url}) | ${frequency} | ${license} | [issues](${issues}) "
|
||||
)
|
||||
|
||||
for key in keys:
|
||||
extensions = key.replace("-", ", ")
|
||||
@@ -71,16 +77,21 @@ def main():
|
||||
this_row.update(source)
|
||||
source_rows += t.substitute(this_row) + "\n"
|
||||
|
||||
with open(os.path.join(data[key]["location"],
|
||||
README_FILENAME), "wt") as out:
|
||||
with open(os.path.join(data[key]["location"], README_FILENAME), "wt") as out:
|
||||
for line in open(README_TEMPLATE):
|
||||
line = line.replace('@GEN_DATE@', time.strftime("%B %d %Y", time.gmtime()))
|
||||
line = line.replace('@EXTENSIONS@', extensions_str)
|
||||
line = line.replace('@EXTENSIONS_HEADER@', extensions_header)
|
||||
line = line.replace('@NUM_ENTRIES@', "{:,}".format(data[key]["entries"]))
|
||||
line = line.replace('@SUBFOLDER@', os.path.join(data[key]["location"], ''))
|
||||
line = line.replace('@TOCROWS@', toc_rows)
|
||||
line = line.replace('@SOURCEROWS@', source_rows)
|
||||
line = line.replace(
|
||||
"@GEN_DATE@", time.strftime("%B %d %Y", time.gmtime())
|
||||
)
|
||||
line = line.replace("@EXTENSIONS@", extensions_str)
|
||||
line = line.replace("@EXTENSIONS_HEADER@", extensions_header)
|
||||
line = line.replace(
|
||||
"@NUM_ENTRIES@", "{:,}".format(data[key]["entries"])
|
||||
)
|
||||
line = line.replace(
|
||||
"@SUBFOLDER@", os.path.join(data[key]["location"], "")
|
||||
)
|
||||
line = line.replace("@TOCROWS@", toc_rows)
|
||||
line = line.replace("@SOURCEROWS@", source_rows)
|
||||
out.write(line)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user