Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
89e14e76ab | ||
|
|
a198b4e347 | ||
|
|
7ebdf6905b | ||
|
|
25a5b38b8d | ||
|
|
379078a69e | ||
|
|
f61cbb376e | ||
|
|
c5e210acd2 | ||
|
|
8bb5a4f6e2 | ||
|
|
dc2a615fb1 | ||
|
|
e2ab86e3c7 | ||
|
|
14d3a27495 | ||
|
|
d6039e35d0 | ||
|
|
72bff1c71b | ||
|
|
b5235d6bd3 | ||
|
|
387cd5c7fd | ||
|
|
2a82f28010 | ||
|
|
2eaa823eac | ||
|
|
0d46894ba4 | ||
|
|
87af2c503d | ||
|
|
538826aa1c | ||
|
|
23a08642d7 | ||
|
|
bb3ca97775 | ||
|
|
d5b8593c94 | ||
|
|
153478eb73 | ||
|
|
67448bdb86 | ||
|
|
796e33034d | ||
|
|
7d8475ddbd | ||
|
|
56e0655596 | ||
|
|
f408b8eecd | ||
|
|
bfefd08fd5 | ||
|
|
308b491795 | ||
|
|
8f9fbea8cb | ||
|
|
7bfbc0d80c | ||
|
|
27ff98438b | ||
|
|
3f45bc4eb8 | ||
|
|
f43c165f55 | ||
|
|
93ec1fd5af | ||
|
|
0f8be09978 | ||
|
|
90c0bb7d66 | ||
|
|
9831521d8e | ||
|
|
9f414fefb5 | ||
|
|
d94854d7fb | ||
|
|
96db2c00f0 | ||
|
|
cba819cbd1 | ||
|
|
05a9ae6098 | ||
|
|
d98a5f71c6 | ||
|
|
fecc315279 | ||
|
|
b14bd69cf4 | ||
|
|
560c37e5ae | ||
|
|
d39c2605e6 | ||
|
|
4f32347592 | ||
|
|
27026be6e0 | ||
|
|
92aa6fe185 | ||
|
|
7f5a0b2ca3 | ||
|
|
7b30fb2b75 | ||
|
|
846f528dfc | ||
|
|
bf859eadf7 | ||
|
|
e1a7b23e97 | ||
|
|
c2355bd6f0 | ||
|
|
dbb107def4 | ||
|
|
0e1ac5b206 | ||
|
|
6b6cba7dc7 | ||
|
|
4b35ee6fd8 | ||
|
|
7dc5651e1e | ||
|
|
c3fb87d1d3 | ||
|
|
fc97b3c522 | ||
|
|
e07d760324 | ||
|
|
dac298c4ae | ||
|
|
bf0ff2a45c | ||
|
|
ee48544926 | ||
|
|
ce8fe38728 | ||
|
|
b1530bc9aa | ||
|
|
8ffffc0147 | ||
|
|
1ec290c91e | ||
|
|
a7ff303e12 | ||
|
|
4b623fad8a | ||
|
|
fda2722aab | ||
|
|
745d46fe86 | ||
|
|
bcb3384b0c | ||
|
|
b503cb06bd | ||
|
|
a0cce7ec82 | ||
|
|
c2b40a35be | ||
|
|
6720ce746b | ||
|
|
6d89ad4c73 | ||
|
|
ba7f57462e | ||
|
|
218bd9ec48 | ||
|
|
1f0418b80b | ||
|
|
48b11d97ae | ||
|
|
7bb3d22929 | ||
|
|
f4dce44f1b | ||
|
|
7f4075c8b9 | ||
|
|
2e13a1d857 | ||
|
|
648bc7b345 | ||
|
|
571cc9db2e | ||
|
|
0d78617324 | ||
|
|
a340ebf0b8 | ||
|
|
a5ead8654d | ||
|
|
bcc0ff4ac1 | ||
|
|
2ceabffdfe | ||
|
|
bf91c7f4e6 | ||
|
|
9ac57a5361 | ||
|
|
4fd06daa6d | ||
|
|
11f8e20042 | ||
|
|
4d96abf2bc | ||
|
|
2a1ef960d4 | ||
|
|
ae8c5b1cba | ||
|
|
bd064ee1ed | ||
|
|
eda13bc8b3 | ||
|
|
f6d230e9a8 | ||
|
|
0981f7ac17 | ||
|
|
700a10b55d | ||
|
|
3e12f3989b | ||
|
|
500b116d63 | ||
|
|
01b73e18c5 | ||
|
|
82851f52b5 | ||
|
|
cf3c7f5740 | ||
|
|
fdbc35123b | ||
|
|
80c0ebafe9 | ||
|
|
14b698abcd | ||
|
|
aa2c918753 | ||
|
|
7c0ba20a0a | ||
|
|
cf778fc26e | ||
|
|
73614b0e31 | ||
|
|
7eaea3c513 | ||
|
|
b382dcbebd | ||
|
|
9427ce31ee | ||
|
|
00515e83db | ||
|
|
257b3db4b7 | ||
|
|
7e350cd634 | ||
|
|
fb9490e4f4 | ||
|
|
b77a285f5f | ||
|
|
4caf549227 | ||
|
|
a1dc2a9193 | ||
|
|
d75a9114c4 | ||
|
|
2ccf44a6d3 | ||
|
|
1ba4aaddb4 | ||
|
|
61080e8dad | ||
|
|
3aa8626821 | ||
|
|
888782854d | ||
|
|
c9d105168e | ||
|
|
065a670221 | ||
|
|
1d95bc0a49 | ||
|
|
3a51262699 | ||
|
|
5bcd5c4223 | ||
|
|
cda8c03553 | ||
|
|
807ff135e3 | ||
|
|
a8f36d9bf8 | ||
|
|
afd066e8e6 | ||
|
|
a786144d25 | ||
|
|
61c40abe2c | ||
|
|
741cbae6d7 | ||
|
|
73a42a2616 | ||
|
|
01b3c89fbf | ||
|
|
9d386ff599 | ||
|
|
0acbc96504 | ||
|
|
e7fd66e0c4 | ||
|
|
eb185b6622 | ||
|
|
88f178710e | ||
|
|
ba39128fee | ||
|
|
14da388110 | ||
|
|
2cbcdd7ec9 | ||
|
|
539489187b | ||
|
|
623ac31630 | ||
|
|
8009dc6a69 | ||
|
|
340d3404e1 | ||
|
|
1bdbdfe097 | ||
|
|
a225bbddef | ||
|
|
eac40ff5bd | ||
|
|
fde3889dc3 | ||
|
|
7b8b936cda | ||
|
|
db884bcfcd | ||
|
|
eae2d0e5ba | ||
|
|
885087bf64 | ||
|
|
b8b0716a4c | ||
|
|
e898f1172e | ||
|
|
5408de598a | ||
|
|
a915555ddc | ||
|
|
2185dae471 | ||
|
|
3928d79c18 | ||
|
|
15faa6d5c2 | ||
|
|
2e362aa089 | ||
|
|
6017d06739 | ||
|
|
12d0a19e0b | ||
|
|
db34f595c9 | ||
|
|
a8fccec141 | ||
|
|
0c12f19ab5 | ||
|
|
e2d262809e | ||
|
|
598794a484 | ||
|
|
45276ff4bc | ||
|
|
4ee89fc68a | ||
|
|
cd6bc56380 | ||
|
|
6f2ff67069 | ||
|
|
5554d47959 | ||
|
|
afe430fa6c | ||
|
|
145cd3ac81 | ||
|
|
58e163fa08 | ||
|
|
23daf15da1 | ||
|
|
bc64dc748a | ||
|
|
00f37ec9e8 | ||
|
|
10a16bb8a4 | ||
|
|
a826ba6e59 | ||
|
|
c52ed3e3ef | ||
|
|
ed6e26e05a | ||
|
|
bf5b5d0019 | ||
|
|
0cb8fc4cfd | ||
|
|
a3bb4d52eb | ||
|
|
0ad0d260ae | ||
|
|
2dae914835 | ||
|
|
1e6c9deb77 | ||
|
|
6fb2c3e993 | ||
|
|
b78cc75d5f | ||
|
|
2fc923b014 | ||
|
|
85984027fd | ||
|
|
95de13f369 | ||
|
|
3994461be4 | ||
|
|
d74ce1378b | ||
|
|
72a3311812 | ||
|
|
bbdf58449c | ||
|
|
3ec89cdd9e | ||
|
|
3512f10a51 | ||
|
|
82047cac55 | ||
|
|
ecf7bd1bfc | ||
|
|
3dc0fdbac0 | ||
|
|
d7be1222e5 | ||
|
|
85fd0ee9ce | ||
|
|
bbd606a2dd | ||
|
|
88ca322261 | ||
|
|
523117d97d | ||
|
|
3ef37886ca | ||
|
|
07a0b7bfc5 | ||
|
|
8ba66c7795 | ||
|
|
8fb51bef59 | ||
|
|
b6ca8ecb6e | ||
|
|
0c204b58b9 | ||
|
|
6c4416ffdb | ||
|
|
b05eca9505 | ||
|
|
14d41542ed | ||
|
|
bc8d4dfc88 | ||
|
|
05cdb4d0a2 | ||
|
|
171b9b5978 | ||
|
|
3f49ee8ee9 | ||
|
|
dc4dae96f5 | ||
|
|
5b03c5f9c1 | ||
|
|
1a8e75f1cb | ||
|
|
59b1c275ef | ||
|
|
ef75b456a7 | ||
|
|
9b6cb1109a | ||
|
|
084de54c10 | ||
|
|
be423f999d | ||
|
|
b00edef74c | ||
|
|
57f952e03b | ||
|
|
4a8813eba6 | ||
|
|
6e55708c64 | ||
|
|
469ba4b3cc | ||
|
|
581cc63395 | ||
|
|
83b54bcbfd | ||
|
|
cc00a44552 | ||
|
|
eba6ecf910 | ||
|
|
8467c14270 | ||
|
|
b46f32728d | ||
|
|
a84c71c8fb | ||
|
|
8fdb1c49cd | ||
|
|
1cdb3159b9 | ||
|
|
a9ac7f44f2 | ||
|
|
c557e2e856 | ||
|
|
df52f06ff4 | ||
|
|
232ec8443f | ||
|
|
79958bb0e6 | ||
|
|
f806474ab2 | ||
|
|
5cca0e924c | ||
|
|
d28f94c9dd | ||
|
|
0a0ca47ac6 | ||
|
|
51995304ea | ||
|
|
257b52c13b | ||
|
|
72a4183fb8 | ||
|
|
554e938fc5 | ||
|
|
234b370284 | ||
|
|
5a2a084ef8 | ||
|
|
1d7db04fb5 | ||
|
|
6334082982 | ||
|
|
65feee2b48 | ||
|
|
38e53dd654 | ||
|
|
7b50a1feb9 | ||
|
|
99a6d7c18a | ||
|
|
6cc3bece8b | ||
|
|
ec5b916223 | ||
|
|
ab5aad0f5a | ||
|
|
6199ccd528 | ||
|
|
f91afbf85c | ||
|
|
9dc3f29c1b | ||
|
|
3f8a528df8 | ||
|
|
1f74593459 | ||
|
|
80d72b6688 | ||
|
|
e998360d33 | ||
|
|
f2eaf7a704 | ||
|
|
783c3bc710 | ||
|
|
e2348bceb4 | ||
|
|
870ade3522 | ||
|
|
16f0e134ab | ||
|
|
7467798d5c | ||
|
|
e652c0e815 | ||
|
|
85e88e9d42 | ||
|
|
0b939e499b | ||
|
|
3b4709f25f | ||
|
|
422d6a5d98 | ||
|
|
32f96d5492 | ||
|
|
88214ffcd2 | ||
|
|
7ad2811572 | ||
|
|
6a3a329abf | ||
|
|
65ebac6bf8 | ||
|
|
da98969cf1 | ||
|
|
34735e32c9 | ||
|
|
f1d2ff31cf | ||
|
|
6d10be852c | ||
|
|
0c117e8c1c | ||
|
|
38185015b4 | ||
|
|
6f9ab23c66 | ||
|
|
d919b0e25d | ||
|
|
272659110c | ||
|
|
fed5590f26 | ||
|
|
33bd0df131 | ||
|
|
8fc7f948a8 | ||
|
|
15da4c8406 | ||
|
|
b3f93f1528 | ||
|
|
85cc9dff95 | ||
|
|
34ba3638fb | ||
|
|
87950f72ee | ||
|
|
eb73e9a07a | ||
|
|
4579444412 | ||
|
|
fb03756f6b | ||
|
|
66f6e9c3d3 | ||
|
|
3e7548ea87 | ||
|
|
bca2e76b4f | ||
|
|
ca08e62e5b | ||
|
|
1c25bd1693 | ||
|
|
03e1e33213 | ||
|
|
94c0ac2cdf | ||
|
|
7311969c45 | ||
|
|
23b74c7756 | ||
|
|
479b5923a3 | ||
|
|
560615dd7f | ||
|
|
2415078892 | ||
|
|
4574a4a48c | ||
|
|
616408666f | ||
|
|
f0b6120075 | ||
|
|
369b483787 | ||
|
|
0bf24bb5b0 | ||
|
|
df85659d54 | ||
|
|
b52e6db372 | ||
|
|
7ecb84e53b | ||
|
|
682bb73b6d | ||
|
|
e9f679312b | ||
|
|
17b5fcb344 | ||
|
|
96a0e1bf72 | ||
|
|
1aa462c141 | ||
|
|
8695605224 | ||
|
|
17f6bb4d88 | ||
|
|
497e52d7a4 | ||
|
|
3b2c9dda2b | ||
|
|
1f3f3236ed | ||
|
|
8f208abb74 | ||
|
|
ef9a61fec0 | ||
|
|
072062f9e8 | ||
|
|
35ea9abbb4 | ||
|
|
439665cb9a | ||
|
|
726763af69 | ||
|
|
19478b8a0d | ||
|
|
178907f54e | ||
|
|
1892e80aa4 | ||
|
|
a3f202074b | ||
|
|
7e25ed039a | ||
|
|
93f0d86d46 | ||
|
|
fd703f9baa | ||
|
|
98ce8df763 | ||
|
|
7e881e6cfb | ||
|
|
ef1ac68038 | ||
|
|
78c092dcb0 | ||
|
|
fa33288ca3 | ||
|
|
80c0db326d | ||
|
|
8f50a92d29 | ||
|
|
0318c66170 | ||
|
|
b5e0ad141a | ||
|
|
dd58715041 | ||
|
|
4733e70ce6 | ||
|
|
e1aed14323 | ||
|
|
4565eef107 | ||
|
|
9e0fa8dbf4 | ||
|
|
cfdf2526b2 | ||
|
|
bdf4bafbf9 | ||
|
|
5bf0802369 | ||
|
|
cd382a63df | ||
|
|
da336f2745 | ||
|
|
adbbd807d6 | ||
|
|
735f9bcdde | ||
|
|
ab9caa3969 | ||
|
|
570fb4302a | ||
|
|
0ab1237b15 | ||
|
|
f94289b856 | ||
|
|
95b0381560 | ||
|
|
6b64d2e573 | ||
|
|
3c3de5ed84 | ||
|
|
b2512fcd57 | ||
|
|
c6b0aae93f | ||
|
|
bbe11d622e | ||
|
|
d1b1d87dea | ||
|
|
29435ac463 | ||
|
|
6729005309 | ||
|
|
d6fd71fa66 | ||
|
|
f731939d98 | ||
|
|
677a036d68 | ||
|
|
e86d6b8a97 | ||
|
|
828dc13cb0 | ||
|
|
506a33f5aa | ||
|
|
343eec32af | ||
|
|
107082b0e2 | ||
|
|
c2cc10cc0e | ||
|
|
d1807cf543 | ||
|
|
2c5ea4e113 | ||
|
|
1c11dc2a8b | ||
|
|
510502de68 | ||
|
|
0ea9a40158 | ||
|
|
6d48930c6f | ||
|
|
a4d9fb6c4c | ||
|
|
0a76a88a38 | ||
|
|
fcdf163ba5 | ||
|
|
060ebf2f47 | ||
|
|
aacd2b02a2 | ||
|
|
b9a92daf6b | ||
|
|
a7d1521e95 | ||
|
|
3157d55049 | ||
|
|
7b45134c8d | ||
|
|
97b0146fdb | ||
|
|
cbadab339b | ||
|
|
72b69bb5c8 | ||
|
|
8007e17d0a | ||
|
|
e1a2bf21c2 | ||
|
|
bdc96809c8 | ||
|
|
b5173215a1 | ||
|
|
7a452ee537 | ||
|
|
9f2ba78232 | ||
|
|
aafa4e38c8 | ||
|
|
6380b4fe12 | ||
|
|
c02d6979dd | ||
|
|
899887ebe7 | ||
|
|
bf508140d3 | ||
|
|
adf011ee2c | ||
|
|
afa0f14165 | ||
|
|
3bcdb558ed | ||
|
|
bc70259936 | ||
|
|
fb212d5e3d | ||
|
|
e9388c231a | ||
|
|
3544f23526 | ||
|
|
6fbc23a744 | ||
|
|
50a2374b5f | ||
|
|
a41b71d575 | ||
|
|
c6858c32f9 | ||
|
|
8faee7e842 | ||
|
|
61cad9cc60 | ||
|
|
791dd9d631 | ||
|
|
baf0d9e97d | ||
|
|
42ef3a636e | ||
|
|
9ef33db684 | ||
|
|
0541b566f9 | ||
|
|
60e7bfb923 | ||
|
|
094d288156 | ||
|
|
de91e825b0 | ||
|
|
fc9955dfb6 | ||
|
|
dd5c96eded | ||
|
|
9b615e0515 | ||
|
|
aab69c5e99 | ||
|
|
83cf6bd55f | ||
|
|
469b5807ed | ||
|
|
653fff0086 | ||
|
|
ee62be66e3 | ||
|
|
9b1d7dae7a | ||
|
|
3d13675436 | ||
|
|
cef27e5f39 | ||
|
|
8d6757b438 | ||
|
|
82c81b5464 | ||
|
|
97a767378e | ||
|
|
1b1d5ee477 | ||
|
|
c73b18f0a2 | ||
|
|
8005747237 | ||
|
|
eadefb5b2b | ||
|
|
68d54e8ecb | ||
|
|
f66fe4f833 | ||
|
|
ee692bbaa3 | ||
|
|
ba2d5b0c64 | ||
|
|
9cd835f38d | ||
|
|
5765195960 | ||
|
|
9fd4a05b0c | ||
|
|
cd216e0471 | ||
|
|
63b6919d42 | ||
|
|
181a4fd249 | ||
|
|
a7202ed30a | ||
|
|
b3daa3082f | ||
|
|
29b1147673 | ||
|
|
77fc3d574f | ||
|
|
dd6bee0fc1 | ||
|
|
212526755e | ||
|
|
749ef97dc0 | ||
|
|
fc54380680 | ||
|
|
c6419ff4ee | ||
|
|
75c8366ea7 | ||
|
|
263fba630b | ||
|
|
3dc0b5f962 | ||
|
|
587ccf9c93 | ||
|
|
9954343eee | ||
|
|
d3d4124e7e | ||
|
|
5de92647b9 | ||
|
|
54c1fdbacb | ||
|
|
82e6358811 | ||
|
|
42ec6b05c0 | ||
|
|
2212792da2 | ||
|
|
f089044807 | ||
|
|
338128eb81 | ||
|
|
283b4ac6de | ||
|
|
ca6044af06 | ||
|
|
2cbcc2e97e | ||
|
|
4f140bed91 | ||
|
|
9b57ed7b76 | ||
|
|
8bc7fd9bcd | ||
|
|
b4cdd5885d | ||
|
|
00078216e1 | ||
|
|
a952f2496f | ||
|
|
35508cba80 | ||
|
|
db28f852b7 | ||
|
|
7bf2686660 | ||
|
|
3887abb459 | ||
|
|
5731f0bb02 | ||
|
|
fc10d0f81d | ||
|
|
b8280ec542 | ||
|
|
618a6dfa7e | ||
|
|
868c462e93 | ||
|
|
845595b8b7 | ||
|
|
dce5a49ecd | ||
|
|
ed825369c5 | ||
|
|
9474bcba5c | ||
|
|
0e517585c2 | ||
|
|
7838700f42 | ||
|
|
6655419869 | ||
|
|
d91315aea2 | ||
|
|
34a72f16e1 | ||
|
|
7cf6ac9b4c | ||
|
|
66fca632ca | ||
|
|
1416af98f7 | ||
|
|
aa36fa98cb | ||
|
|
b6d5cce60a | ||
|
|
763fa43211 | ||
|
|
6d4674abda | ||
|
|
cc27cac7fb | ||
|
|
52ade02448 | ||
|
|
887663ab9c | ||
|
|
543acefaf7 | ||
|
|
23d5348533 | ||
|
|
8069502194 | ||
|
|
b2d9f7df1e | ||
|
|
52087c55ff | ||
|
|
003f3475ea | ||
|
|
5b06b5df6e | ||
|
|
ab5f56defd | ||
|
|
74c7c548ab | ||
|
|
1904ff0369 | ||
|
|
627205edd9 | ||
|
|
ca61e9ef45 | ||
|
|
68c493c706 | ||
|
|
cd091ee9c3 | ||
|
|
7e6aafb935 | ||
|
|
293dcbebe6 | ||
|
|
9c17dc5f71 | ||
|
|
da3d242482 | ||
|
|
58ce1e4b14 | ||
|
|
44d3da136a | ||
|
|
5ca7ad2279 | ||
|
|
ce8fcab4a6 | ||
|
|
32edd9298d | ||
|
|
9bcc4f2bcf | ||
|
|
e77f3cb3be | ||
|
|
b676693b0c | ||
|
|
ff3e8fad81 | ||
|
|
76b4c814f6 | ||
|
|
ddcdde5e8f | ||
|
|
bd67b45a69 | ||
|
|
a3a9e18a89 | ||
|
|
060895a3a1 | ||
|
|
7264d1f0b3 | ||
|
|
1e787fbe28 | ||
|
|
353924a650 | ||
|
|
a21fac3bca | ||
|
|
9048a9aa0e | ||
|
|
157474a558 | ||
|
|
ffd36bb4af | ||
|
|
47d6b2a17b | ||
|
|
013412b1ff | ||
|
|
b7122ca245 | ||
|
|
30cbbc8cb5 | ||
|
|
757cd0f69a | ||
|
|
c2ee8bc9b9 | ||
|
|
0a413cf53e | ||
|
|
6baefdbed2 | ||
|
|
88580e9347 | ||
|
|
c40ae56d53 | ||
|
|
c082532abc | ||
|
|
be5b911ba8 | ||
|
|
d9b145e08b | ||
|
|
8ca8fce63c | ||
|
|
e5282f9cee | ||
|
|
0d86e16986 | ||
|
|
2661255189 | ||
|
|
634204965a | ||
|
|
2a241c5de5 | ||
|
|
f91285ebe7 | ||
|
|
fd33c82b9e | ||
|
|
eb6bd673bd | ||
|
|
0ae5bd1eb7 | ||
|
|
f461d30274 | ||
|
|
a5922a992d | ||
|
|
0b32cf2fd8 | ||
|
|
87767a0209 | ||
|
|
4121bd1726 | ||
|
|
c9417f9ae6 | ||
|
|
35390a1e65 | ||
|
|
6dae72cf7d | ||
|
|
d2cbb55e2a | ||
|
|
9e0309f107 | ||
|
|
78f0457f9e | ||
|
|
2d886edeef | ||
|
|
115afb056e | ||
|
|
5161c2c362 | ||
|
|
39238e0432 | ||
|
|
75cdfd2fa1 | ||
|
|
4902553855 | ||
|
|
b083f18125 | ||
|
|
d4c698985a | ||
|
|
66ee4a2a71 | ||
|
|
fda58dddd6 | ||
|
|
5e2d7fc391 | ||
|
|
64ba96ee22 | ||
|
|
f063ea479e | ||
|
|
fb9b72feff | ||
|
|
0a55ff4c18 | ||
|
|
8d65d989ef | ||
|
|
3856d176ad | ||
|
|
fd09a65975 | ||
|
|
9b502d99e6 | ||
|
|
ccb00842f8 | ||
|
|
5ca0d2e2eb | ||
|
|
8587c5a550 | ||
|
|
8ace3a1cc9 | ||
|
|
b28c3994e7 | ||
|
|
0428bc7ee8 | ||
|
|
96f7d0e33d | ||
|
|
346b0b4bd7 | ||
|
|
a8d0b8cd76 | ||
|
|
6c23ad7f84 | ||
|
|
309fb9083a | ||
|
|
92be34d608 | ||
|
|
0014dfaa33 | ||
|
|
b1296f198e | ||
|
|
560d3394a8 | ||
|
|
0c0e2691b4 | ||
|
|
147b6d4e55 | ||
|
|
f86527e7b4 | ||
|
|
74bc8a7d72 | ||
|
|
3bcbc1c422 | ||
|
|
8d6c47929c | ||
|
|
83183eca09 | ||
|
|
eccb2df38a | ||
|
|
0434ec0798 | ||
|
|
cac3a30556 | ||
|
|
4bf50b3779 | ||
|
|
db1541fc3c | ||
|
|
8e90178973 | ||
|
|
d188f2c70d | ||
|
|
e034061875 | ||
|
|
fcfe4bb556 | ||
|
|
3709b007a8 | ||
|
|
f4cd177932 | ||
|
|
20a9517407 | ||
|
|
62f5fe59dc | ||
|
|
c270c20b3f | ||
|
|
d0f02ba284 | ||
|
|
f9a8908b24 | ||
|
|
5b8e0707fe | ||
|
|
56e34ab5a6 | ||
|
|
b1a9eb74f8 | ||
|
|
7d2f736725 | ||
|
|
0ddc2096ec | ||
|
|
10bcb945e8 | ||
|
|
bbb72c6956 | ||
|
|
9b6e856458 | ||
|
|
78790dfacc | ||
|
|
7552198b18 | ||
|
|
e4a1346515 | ||
|
|
e1bb5f08e6 | ||
|
|
2249fb30e2 | ||
|
|
b77b66bb04 | ||
|
|
b604074698 | ||
|
|
4e40772365 | ||
|
|
d19ec68c32 | ||
|
|
bd77c39661 | ||
|
|
ff99602ea0 | ||
|
|
98be2dea8c | ||
|
|
341b621cc2 | ||
|
|
83d734fdcf | ||
|
|
cec39f13f5 | ||
|
|
74b5288fa2 | ||
|
|
391a50096b | ||
|
|
7c558a9973 | ||
|
|
6c9377b400 | ||
|
|
5d33b0a9dd | ||
|
|
9c39a06447 | ||
|
|
57d02f3e32 | ||
|
|
0947a7e064 | ||
|
|
c3d95ce3fe | ||
|
|
ff7d9bed83 | ||
|
|
2924bf615c | ||
|
|
03202d41bf | ||
|
|
3087ac60b9 | ||
|
|
4651bd2d09 | ||
|
|
e3a8909cab | ||
|
|
76453b4ca4 | ||
|
|
e120e0a894 | ||
|
|
c8c1cea835 | ||
|
|
2dd03c636e | ||
|
|
f57dddee01 | ||
|
|
2602f13a27 | ||
|
|
7577f67157 | ||
|
|
4b00782ca0 | ||
|
|
97c04a1f38 | ||
|
|
ac4971ba6c | ||
|
|
ff181d1456 | ||
|
|
d04c00df13 | ||
|
|
17e9a71c1d | ||
|
|
9c7deb6e79 | ||
|
|
70bf2b38a7 | ||
|
|
4d87cf744f | ||
|
|
dbab99c164 | ||
|
|
db16b1e6b7 | ||
|
|
c76e9fb4be | ||
|
|
17170b0236 | ||
|
|
05272f9a1f | ||
|
|
606b0f0216 | ||
|
|
2d47027aa0 | ||
|
|
76c2dd7386 | ||
|
|
56fb74cc80 | ||
|
|
ef44bd722e | ||
|
|
1c183a4304 | ||
|
|
d5c2f60064 | ||
|
|
92f8ca90a1 | ||
|
|
1da50a7fb8 | ||
|
|
a931d6e418 | ||
|
|
aefca99e8d | ||
|
|
22c0019689 | ||
|
|
62be4929e9 | ||
|
|
5235695bfe | ||
|
|
80e8c197a3 | ||
|
|
26c4439195 | ||
|
|
a9de56dfc4 | ||
|
|
6fe7aecccf | ||
|
|
ac23e6b71d | ||
|
|
19a0d812ba | ||
|
|
13e67aec2c | ||
|
|
350a638374 | ||
|
|
2917a466e8 | ||
|
|
c2ec63cad1 | ||
|
|
0777496e82 | ||
|
|
8e5e0ca84d | ||
|
|
821e989479 | ||
|
|
8f4246af63 | ||
|
|
8f6f7c7cde | ||
|
|
26f7abc1b3 | ||
|
|
4290d92d40 | ||
|
|
2d273afb8c | ||
|
|
8cc0afdaf2 | ||
|
|
306f1009ea | ||
|
|
15fe1a03b0 | ||
|
|
6e224b5603 | ||
|
|
2cdbddc1f6 | ||
|
|
71dedfa435 | ||
|
|
97f3366eb8 | ||
|
|
b5e4902101 | ||
|
|
853ca15c9e | ||
|
|
f019980188 | ||
|
|
7ac8dc461e | ||
|
|
3d0b8513c6 | ||
|
|
fdb268d9bb | ||
|
|
669fcc643d | ||
|
|
5a0970a36a | ||
|
|
7453405de9 | ||
|
|
63adac1c53 | ||
|
|
fcad93391a | ||
|
|
dc81ea4e31 | ||
|
|
89dd38bf5f | ||
|
|
a50ff2f1c9 | ||
|
|
c61cb618a3 | ||
|
|
1afb089e04 | ||
|
|
86b75663d3 | ||
|
|
6decfb7aea | ||
|
|
a14ba3a44a | ||
|
|
9d93f36a4b | ||
|
|
4eb1165f97 | ||
|
|
74a0c8a597 | ||
|
|
50df606d28 | ||
|
|
82d8663273 | ||
|
|
0e90c2f88d | ||
|
|
f8897cd0b7 | ||
|
|
fc83d860da | ||
|
|
448cc754ad | ||
|
|
e31b539285 | ||
|
|
b67b57a3d4 | ||
|
|
2a008a6945 | ||
|
|
5e07aabb3e | ||
|
|
df03fb6b26 | ||
|
|
c0202eb54d | ||
|
|
23c13f21c8 | ||
|
|
ffa9dbd70d | ||
|
|
f981341c23 | ||
|
|
6bbe613270 | ||
|
|
fa41eaa31e | ||
|
|
f58a9138f4 | ||
|
|
3bed35fcad | ||
|
|
aa74ccd2bf | ||
|
|
fd3b86ca67 | ||
|
|
dfc5080079 | ||
|
|
28159b5f2c | ||
|
|
c5a79cec41 | ||
|
|
057f4ed0f4 | ||
|
|
236adfb388 | ||
|
|
964cbbeaad | ||
|
|
aab3d33075 | ||
|
|
8dbfa0196a | ||
|
|
bc271a3f6a | ||
|
|
43e078c7d6 | ||
|
|
28574134e0 | ||
|
|
455ba0488e | ||
|
|
6aa5b53829 | ||
|
|
79e7103f00 | ||
|
|
35e6719e72 | ||
|
|
4ffbac63c2 | ||
|
|
410aca3cc3 | ||
|
|
4cfe084f40 |
@@ -1,14 +1,20 @@
|
||||
# editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
[*.py]
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
indent_size = 4
|
||||
end_of_line = LF
|
||||
|
||||
[*.bat]
|
||||
end_of_line = CRLF
|
||||
end_of_line = crlf
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
insert_final_newline = true
|
||||
|
||||
[*.py]
|
||||
indent_size = 4
|
||||
|
||||
@@ -2,3 +2,6 @@
|
||||
* text=auto eol=lf
|
||||
# Enforce Windows newlines for .bat files
|
||||
*.bat text eol=crlf
|
||||
|
||||
*.py linguist-detectable=true
|
||||
*.nb linguist-detectable=false
|
||||
|
||||
@@ -18,4 +18,4 @@ newPRWelcomeComment: >
|
||||
firstPRMergeComment: >
|
||||
Congratulations on merging your first pull request here! 🎉🎉🎉 You are now in our [list of contributors](https://github.com/StevenBlack/hosts/graphs/contributors). Welcome!
|
||||
|
||||
# It is recommend to include as many gifs and emojis as possible!
|
||||
# It is recommend to include as many gifs and emojis as possible!
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: monthly
|
||||
labels:
|
||||
- dependencies
|
||||
- github_actions
|
||||
- package-ecosystem: "pip"
|
||||
directory: "/"
|
||||
schedule:
|
||||
@@ -8,10 +15,3 @@ updates:
|
||||
- dependencies
|
||||
- python
|
||||
versioning-strategy: lockfile-only
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: monthly
|
||||
labels:
|
||||
- dependencies
|
||||
- github_actions
|
||||
|
||||
|
After Width: | Height: | Size: 27 KiB |
@@ -1,20 +0,0 @@
|
||||
# Number of days of inactivity before an issue becomes stale
|
||||
daysUntilStale: 120
|
||||
# Number of days of inactivity before a stale issue is closed
|
||||
daysUntilClose: 14
|
||||
# Issues with these labels will never be considered stale
|
||||
exemptLabels:
|
||||
- bug
|
||||
- discussion
|
||||
- monitor (ongoing)
|
||||
- enhancement
|
||||
# Label to use when marking an issue as stale
|
||||
staleLabel: wontfix
|
||||
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||
markComment: >
|
||||
This issue has been automatically marked as stale because it has not had
|
||||
recent activity. It will be closed in 14 days if no further activity occurs.
|
||||
Thank you for your contributions.
|
||||
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||
closeComment: >
|
||||
Closing.
|
||||
@@ -2,6 +2,9 @@ name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- "!dependabot/**"
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -17,21 +20,31 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python:
|
||||
- '3.7'
|
||||
- '3.8'
|
||||
- '3.9'
|
||||
- '3.10'
|
||||
- '3.11'
|
||||
- '3.12'
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- macos-latest
|
||||
- windows-latest
|
||||
include:
|
||||
- os: macos-latest
|
||||
python: '3.8'
|
||||
- os: macos-latest
|
||||
python: '3.12'
|
||||
- os: windows-latest
|
||||
python: '3.8'
|
||||
- os: windows-latest
|
||||
python: '3.12'
|
||||
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python }}
|
||||
cache: pip
|
||||
|
||||
@@ -6,7 +6,6 @@ on:
|
||||
- master
|
||||
- "!dependabot/**"
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches:
|
||||
- master
|
||||
- "!dependabot/**"
|
||||
@@ -24,13 +23,21 @@ jobs:
|
||||
security-events: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v2
|
||||
uses: github/codeql-action/init@v3
|
||||
with:
|
||||
languages: "python"
|
||||
queries: +security-and-quality
|
||||
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v3
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v2
|
||||
uses: github/codeql-action/analyze@v3
|
||||
with:
|
||||
category: "/language:python"
|
||||
|
||||
@@ -19,23 +19,29 @@ jobs:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract metadata (tags, labels)
|
||||
id: meta
|
||||
uses: docker/metadata-action@v4
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
|
||||
- name: Build and push container image
|
||||
uses: docker/build-push-action@v3
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
|
||||
@@ -8,7 +8,10 @@ jobs:
|
||||
dependency-review:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 'Checkout Repository'
|
||||
uses: actions/checkout@v3
|
||||
- name: 'Dependency Review'
|
||||
uses: actions/dependency-review-action@v2
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Dependency Review
|
||||
uses: actions/dependency-review-action@v4
|
||||
|
||||
@@ -8,3 +8,4 @@ hosts-*
|
||||
/__pycache__
|
||||
/node_modules/
|
||||
/package-lock.json
|
||||
/yarn.lock
|
||||
|
||||
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 40 KiB |
@@ -0,0 +1,674 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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)
|
||||
|
||||
# Limited to the extensions: fakenews, gambling
|
||||
|
||||
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.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: fakenews, gambling](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts)
|
||||
containing 10,584 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
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 can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are 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
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
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 will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names 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. 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
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
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 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.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file 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.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` 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.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**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
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
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.
|
||||
|
||||
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 `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (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
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, 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:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/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
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
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 AutoUpdate 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
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [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.
|
||||
- [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.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [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 to 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). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -0,0 +1,680 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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)
|
||||
|
||||
# Limited to the extensions: fakenews, gambling, porn
|
||||
|
||||
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.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: fakenews, gambling, porn](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts)
|
||||
containing 94,555 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
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 can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are 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
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
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 will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names 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. 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
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
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 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.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file 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.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` 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.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**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
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
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.
|
||||
|
||||
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 `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (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
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, 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:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/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
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
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 AutoUpdate 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
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [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.
|
||||
- [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.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [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 to 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). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -0,0 +1,682 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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)
|
||||
|
||||
# Limited to the extensions: fakenews, gambling, porn, social
|
||||
|
||||
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.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: fakenews, gambling, porn, social](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
containing 97,775 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
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 can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are 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
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
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 will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names 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. 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
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
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 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.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file 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.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` 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.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**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
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
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.
|
||||
|
||||
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 `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (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
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, 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:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/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
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
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 AutoUpdate 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
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [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.
|
||||
- [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.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [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 to 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). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -10,15 +10,15 @@ sources can be found in the `hosts/data/` directory.
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](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)
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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
|
||||
|
||||
@@ -30,17 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **July 19 2022**.
|
||||
- Last updated: **August 11 2024**.
|
||||
- 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 162,952 entries.
|
||||
- Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
[raw hosts file Unified hosts file with fakenews, gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts)
|
||||
containing 262,704 entries.
|
||||
|
||||
|
||||
|
||||
## 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.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -48,22 +49,37 @@ 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) | 112,291 | [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) | 114,486 | [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) | 114,835 | [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) | 155,399 | [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) | 115,106 | [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) | 117,030 | [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) | 157,593 | [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) | 117,301 | [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) | 157,943 | [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) | 117,650 | [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) | 158,213 | [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) | 160,138 | [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) | 119,845 | [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) | 160,407 | [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) | 160,757 | [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) | 162,952 | [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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -82,21 +98,21 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
@@ -193,6 +209,10 @@ pip3 install --user -r requirements.txt
|
||||
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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -256,6 +276,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -422,7 +445,7 @@ like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
@@ -489,6 +512,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -543,7 +568,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -646,9 +672,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
@@ -663,3 +695,5 @@ 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -10,15 +10,15 @@ sources can be found in the `hosts/data/` directory.
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](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)
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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
|
||||
|
||||
@@ -30,17 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **July 19 2022**.
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts)
|
||||
containing 160,138 entries.
|
||||
- Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
[raw hosts file Unified hosts file with fakenews, gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts)
|
||||
containing 259,513 entries.
|
||||
|
||||
|
||||
|
||||
## 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.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -48,22 +49,37 @@ 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) | 112,291 | [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) | 114,486 | [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) | 114,835 | [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) | 155,399 | [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) | 115,106 | [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) | 117,030 | [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) | 157,593 | [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) | 117,301 | [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) | 157,943 | [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) | 117,650 | [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) | 158,213 | [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) | 160,138 | [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) | 119,845 | [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) | 160,407 | [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) | 160,757 | [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) | 162,952 | [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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -82,21 +98,21 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
@@ -191,6 +207,10 @@ pip3 install --user -r requirements.txt
|
||||
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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -254,6 +274,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -420,7 +443,7 @@ like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
@@ -487,6 +510,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -541,7 +566,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -644,9 +670,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
@@ -661,3 +693,5 @@ 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -0,0 +1,676 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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)
|
||||
|
||||
# Limited to the extensions: fakenews, gambling, social
|
||||
|
||||
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.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: fakenews, gambling, social](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts)
|
||||
containing 13,805 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
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 can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are 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
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
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 will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names 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. 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
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
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 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.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file 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.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` 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.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**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
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
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.
|
||||
|
||||
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 `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (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
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, 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:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/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
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
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 AutoUpdate 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
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [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.
|
||||
- [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.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [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 to 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). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -10,15 +10,15 @@ sources can be found in the `hosts/data/` directory.
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](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)
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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
|
||||
|
||||
@@ -30,17 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **July 19 2022**.
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts)
|
||||
containing 119,845 entries.
|
||||
- Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
[raw hosts file Unified hosts file with fakenews, gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts)
|
||||
containing 179,430 entries.
|
||||
|
||||
|
||||
|
||||
## 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.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -48,22 +49,37 @@ 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) | 112,291 | [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) | 114,486 | [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) | 114,835 | [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) | 155,399 | [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) | 115,106 | [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) | 117,030 | [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) | 157,593 | [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) | 117,301 | [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) | 157,943 | [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) | 117,650 | [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) | 158,213 | [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) | 160,138 | [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) | 119,845 | [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) | 160,407 | [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) | 160,757 | [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) | 162,952 | [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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -82,20 +98,19 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
@@ -188,6 +203,10 @@ pip3 install --user -r requirements.txt
|
||||
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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -251,6 +270,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -417,7 +439,7 @@ like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
@@ -484,6 +506,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -538,7 +562,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -641,9 +666,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
@@ -658,3 +689,5 @@ 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -10,15 +10,15 @@ sources can be found in the `hosts/data/` directory.
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](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)
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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
|
||||
|
||||
@@ -30,17 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **July 19 2022**.
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts)
|
||||
containing 117,030 entries.
|
||||
- Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
[raw hosts file Unified hosts file with fakenews, gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts)
|
||||
containing 176,238 entries.
|
||||
|
||||
|
||||
|
||||
## 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.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -48,22 +49,37 @@ 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) | 112,291 | [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) | 114,486 | [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) | 114,835 | [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) | 155,399 | [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) | 115,106 | [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) | 117,030 | [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) | 157,593 | [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) | 117,301 | [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) | 157,943 | [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) | 117,650 | [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) | 158,213 | [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) | 160,138 | [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) | 119,845 | [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) | 160,407 | [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) | 160,757 | [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) | 162,952 | [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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -82,20 +98,19 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
|
||||
|
||||
@@ -186,6 +201,10 @@ pip3 install --user -r requirements.txt
|
||||
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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -249,6 +268,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -415,7 +437,7 @@ like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
@@ -482,6 +504,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -536,7 +560,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -639,9 +664,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
@@ -656,3 +687,5 @@ 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -0,0 +1,672 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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)
|
||||
|
||||
# Limited to the extensions: fakenews
|
||||
|
||||
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.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: fakenews](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts)
|
||||
containing 2,194 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
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 can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are 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
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
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 will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names 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. 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
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
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 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.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file 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.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` 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.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**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
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
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.
|
||||
|
||||
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 `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (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
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, 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:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/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
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
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 AutoUpdate 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
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [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.
|
||||
- [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.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [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 to 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). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -0,0 +1,678 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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)
|
||||
|
||||
# Limited to the extensions: fakenews, porn
|
||||
|
||||
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.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: fakenews, porn](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts)
|
||||
containing 86,165 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
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 can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are 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
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
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 will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names 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. 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
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
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 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.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file 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.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` 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.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**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
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
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.
|
||||
|
||||
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 `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (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
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, 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:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/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
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
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 AutoUpdate 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
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [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.
|
||||
- [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.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [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 to 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). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -0,0 +1,680 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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)
|
||||
|
||||
# Limited to the extensions: fakenews, porn, social
|
||||
|
||||
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.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: fakenews, porn, social](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts)
|
||||
containing 89,385 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
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 can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are 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
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
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 will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names 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. 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
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
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 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.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file 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.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` 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.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**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
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
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.
|
||||
|
||||
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 `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (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
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, 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:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/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
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
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 AutoUpdate 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
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [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.
|
||||
- [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.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [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 to 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). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -10,15 +10,15 @@ sources can be found in the `hosts/data/` directory.
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](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)
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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
|
||||
|
||||
@@ -30,17 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **July 19 2022**.
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts)
|
||||
containing 160,407 entries.
|
||||
- Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
[raw hosts file Unified hosts file with fakenews, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts)
|
||||
containing 254,326 entries.
|
||||
|
||||
|
||||
|
||||
## 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.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -48,22 +49,37 @@ 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) | 112,291 | [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) | 114,486 | [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) | 114,835 | [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) | 155,399 | [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) | 115,106 | [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) | 117,030 | [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) | 157,593 | [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) | 117,301 | [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) | 157,943 | [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) | 117,650 | [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) | 158,213 | [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) | 160,138 | [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) | 119,845 | [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) | 160,407 | [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) | 160,757 | [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) | 162,952 | [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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -82,20 +98,19 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
@@ -192,6 +207,10 @@ pip3 install --user -r requirements.txt
|
||||
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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -255,6 +274,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -421,7 +443,7 @@ like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
@@ -488,6 +510,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -542,7 +566,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -645,9 +670,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
@@ -662,3 +693,5 @@ 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -10,15 +10,15 @@ sources can be found in the `hosts/data/` directory.
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](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)
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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
|
||||
|
||||
@@ -30,17 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **July 19 2022**.
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts)
|
||||
containing 157,593 entries.
|
||||
- Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
[raw hosts file Unified hosts file with fakenews, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts)
|
||||
containing 251,135 entries.
|
||||
|
||||
|
||||
|
||||
## 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.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -48,22 +49,37 @@ 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) | 112,291 | [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) | 114,486 | [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) | 114,835 | [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) | 155,399 | [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) | 115,106 | [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) | 117,030 | [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) | 157,593 | [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) | 117,301 | [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) | 157,943 | [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) | 117,650 | [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) | 158,213 | [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) | 160,138 | [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) | 119,845 | [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) | 160,407 | [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) | 160,757 | [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) | 162,952 | [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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -82,20 +98,19 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
@@ -190,6 +205,10 @@ pip3 install --user -r requirements.txt
|
||||
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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -253,6 +272,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -419,7 +441,7 @@ like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
@@ -486,6 +508,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -540,7 +564,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -643,9 +668,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
@@ -660,3 +691,5 @@ 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -0,0 +1,674 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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)
|
||||
|
||||
# Limited to the extensions: fakenews, social
|
||||
|
||||
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.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: fakenews, social](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts)
|
||||
containing 5,415 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
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 can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are 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
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
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 will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names 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. 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
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
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 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.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file 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.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` 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.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**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
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
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.
|
||||
|
||||
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 `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (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
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, 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:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/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
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
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 AutoUpdate 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
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [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.
|
||||
- [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.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [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 to 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). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -10,15 +10,15 @@ sources can be found in the `hosts/data/` directory.
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](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)
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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
|
||||
|
||||
@@ -30,17 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **July 19 2022**.
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts)
|
||||
containing 117,301 entries.
|
||||
- Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
[raw hosts file Unified hosts file with fakenews, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts)
|
||||
containing 171,052 entries.
|
||||
|
||||
|
||||
|
||||
## 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.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -48,22 +49,37 @@ 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) | 112,291 | [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) | 114,486 | [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) | 114,835 | [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) | 155,399 | [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) | 115,106 | [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) | 117,030 | [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) | 157,593 | [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) | 117,301 | [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) | 157,943 | [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) | 117,650 | [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) | 158,213 | [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) | 160,138 | [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) | 119,845 | [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) | 160,407 | [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) | 160,757 | [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) | 162,952 | [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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -82,14 +98,12 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
@@ -187,6 +201,10 @@ pip3 install --user -r requirements.txt
|
||||
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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -250,6 +268,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -416,7 +437,7 @@ like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
@@ -483,6 +504,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -537,7 +560,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -640,9 +664,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
@@ -657,3 +687,5 @@ 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -10,15 +10,15 @@ sources can be found in the `hosts/data/` directory.
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](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)
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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
|
||||
|
||||
@@ -30,17 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **July 19 2022**.
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts)
|
||||
containing 114,486 entries.
|
||||
- Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
[raw hosts file Unified hosts file with fakenews extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts)
|
||||
containing 167,860 entries.
|
||||
|
||||
|
||||
|
||||
## 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.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -48,22 +49,37 @@ 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) | 112,291 | [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) | 114,486 | [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) | 114,835 | [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) | 155,399 | [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) | 115,106 | [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) | 117,030 | [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) | 157,593 | [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) | 117,301 | [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) | 157,943 | [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) | 117,650 | [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) | 158,213 | [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) | 160,138 | [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) | 119,845 | [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) | 160,407 | [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) | 160,757 | [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) | 162,952 | [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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -82,14 +98,12 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
@@ -185,6 +199,10 @@ pip3 install --user -r requirements.txt
|
||||
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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -248,6 +266,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -414,7 +435,7 @@ like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
@@ -481,6 +502,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -535,7 +558,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -638,9 +662,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
@@ -655,3 +685,5 @@ 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -0,0 +1,673 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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)
|
||||
|
||||
# Limited to the extensions: gambling
|
||||
|
||||
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.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: gambling](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts)
|
||||
containing 8,390 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
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 can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are 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
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
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 will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names 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. 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
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
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 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.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file 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.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` 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.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**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
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
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.
|
||||
|
||||
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 `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (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
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, 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:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/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
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
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 AutoUpdate 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
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [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.
|
||||
- [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.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [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 to 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). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -0,0 +1,679 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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)
|
||||
|
||||
# Limited to the extensions: gambling, porn
|
||||
|
||||
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.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: gambling, porn](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts)
|
||||
containing 92,361 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
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 can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are 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
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
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 will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names 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. 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
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
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 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.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file 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.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` 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.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**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
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
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.
|
||||
|
||||
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 `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (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
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, 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:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/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
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
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 AutoUpdate 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
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [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.
|
||||
- [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.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [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 to 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). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -0,0 +1,681 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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)
|
||||
|
||||
# Limited to the extensions: gambling, porn, social
|
||||
|
||||
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.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: gambling, porn, social](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts)
|
||||
containing 95,581 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
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 can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are 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
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
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 will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names 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. 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
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
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 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.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file 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.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` 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.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**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
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
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.
|
||||
|
||||
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 `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (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
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, 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:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/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
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
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 AutoUpdate 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
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [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.
|
||||
- [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.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [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 to 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). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -10,15 +10,15 @@ sources can be found in the `hosts/data/` directory.
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](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)
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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
|
||||
|
||||
@@ -30,17 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **July 19 2022**.
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts)
|
||||
containing 160,757 entries.
|
||||
- Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
[raw hosts file Unified hosts file with gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts)
|
||||
containing 260,510 entries.
|
||||
|
||||
|
||||
|
||||
## 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.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -48,22 +49,37 @@ 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) | 112,291 | [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) | 114,486 | [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) | 114,835 | [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) | 155,399 | [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) | 115,106 | [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) | 117,030 | [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) | 157,593 | [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) | 117,301 | [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) | 157,943 | [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) | 117,650 | [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) | 158,213 | [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) | 160,138 | [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) | 119,845 | [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) | 160,407 | [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) | 160,757 | [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) | 162,952 | [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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -82,20 +98,20 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
@@ -192,6 +208,10 @@ pip3 install --user -r requirements.txt
|
||||
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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -255,6 +275,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -421,7 +444,7 @@ like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
@@ -488,6 +511,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -542,7 +567,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -645,9 +671,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
@@ -662,3 +694,5 @@ 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -10,15 +10,15 @@ sources can be found in the `hosts/data/` directory.
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](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)
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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
|
||||
|
||||
@@ -30,17 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **July 19 2022**.
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts)
|
||||
containing 157,943 entries.
|
||||
- Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
[raw hosts file Unified hosts file with gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts)
|
||||
containing 257,319 entries.
|
||||
|
||||
|
||||
|
||||
## 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.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -48,22 +49,37 @@ 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) | 112,291 | [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) | 114,486 | [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) | 114,835 | [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) | 155,399 | [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) | 115,106 | [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) | 117,030 | [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) | 157,593 | [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) | 117,301 | [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) | 157,943 | [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) | 117,650 | [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) | 158,213 | [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) | 160,138 | [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) | 119,845 | [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) | 160,407 | [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) | 160,757 | [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) | 162,952 | [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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -82,20 +98,20 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
@@ -190,6 +206,10 @@ pip3 install --user -r requirements.txt
|
||||
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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -253,6 +273,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -419,7 +442,7 @@ like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
@@ -486,6 +509,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -540,7 +565,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -643,9 +669,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
@@ -660,3 +692,5 @@ 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -0,0 +1,675 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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)
|
||||
|
||||
# Limited to the extensions: gambling, social
|
||||
|
||||
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.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: gambling, social](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts)
|
||||
containing 11,611 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
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 can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are 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
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
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 will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names 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. 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
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
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 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.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file 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.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` 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.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**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
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
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.
|
||||
|
||||
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 `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (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
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, 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:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/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
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
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 AutoUpdate 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
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [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.
|
||||
- [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.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [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 to 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). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -10,15 +10,15 @@ sources can be found in the `hosts/data/` directory.
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](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)
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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
|
||||
|
||||
@@ -30,17 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **July 19 2022**.
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts)
|
||||
containing 117,650 entries.
|
||||
- Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
[raw hosts file Unified hosts file with gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts)
|
||||
containing 177,236 entries.
|
||||
|
||||
|
||||
|
||||
## 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.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -48,22 +49,37 @@ 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) | 112,291 | [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) | 114,486 | [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) | 114,835 | [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) | 155,399 | [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) | 115,106 | [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) | 117,030 | [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) | 157,593 | [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) | 117,301 | [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) | 157,943 | [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) | 117,650 | [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) | 158,213 | [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) | 160,138 | [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) | 119,845 | [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) | 160,407 | [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) | 160,757 | [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) | 162,952 | [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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -82,19 +98,18 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
@@ -187,6 +202,10 @@ pip3 install --user -r requirements.txt
|
||||
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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -250,6 +269,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -416,7 +438,7 @@ like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
@@ -483,6 +505,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -537,7 +561,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -640,9 +665,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
@@ -657,3 +688,5 @@ 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -10,15 +10,15 @@ sources can be found in the `hosts/data/` directory.
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](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)
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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
|
||||
|
||||
@@ -30,17 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **July 19 2022**.
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts)
|
||||
containing 114,835 entries.
|
||||
- Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
[raw hosts file Unified hosts file with gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts)
|
||||
containing 174,044 entries.
|
||||
|
||||
|
||||
|
||||
## 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.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -48,22 +49,37 @@ 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) | 112,291 | [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) | 114,486 | [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) | 114,835 | [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) | 155,399 | [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) | 115,106 | [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) | 117,030 | [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) | 157,593 | [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) | 117,301 | [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) | 157,943 | [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) | 117,650 | [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) | 158,213 | [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) | 160,138 | [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) | 119,845 | [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) | 160,407 | [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) | 160,757 | [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) | 162,952 | [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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -82,19 +98,18 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
|
||||
|
||||
@@ -185,6 +200,10 @@ pip3 install --user -r requirements.txt
|
||||
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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -248,6 +267,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -414,7 +436,7 @@ like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
@@ -481,6 +503,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -535,7 +559,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -638,9 +663,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
@@ -655,3 +686,5 @@ 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -0,0 +1,677 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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)
|
||||
|
||||
# Limited to the extensions: porn
|
||||
|
||||
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.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: porn](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts)
|
||||
containing 83,971 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
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 can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are 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
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
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 will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names 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. 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
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
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 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.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file 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.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` 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.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**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
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
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.
|
||||
|
||||
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 `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (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
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, 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:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/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
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
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 AutoUpdate 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
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [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.
|
||||
- [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.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [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 to 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). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -0,0 +1,679 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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)
|
||||
|
||||
# Limited to the extensions: porn, social
|
||||
|
||||
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.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: porn, social](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts)
|
||||
containing 87,191 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
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 can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are 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
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
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 will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names 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. 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
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
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 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.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file 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.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` 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.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**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
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
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.
|
||||
|
||||
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 `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (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
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, 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:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/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
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
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 AutoUpdate 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
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [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.
|
||||
- [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.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [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 to 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). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -10,15 +10,15 @@ sources can be found in the `hosts/data/` directory.
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](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)
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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
|
||||
|
||||
@@ -30,17 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **July 19 2022**.
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts)
|
||||
containing 158,213 entries.
|
||||
- Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
[raw hosts file Unified hosts file with porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts)
|
||||
containing 252,132 entries.
|
||||
|
||||
|
||||
|
||||
## 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.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -48,22 +49,37 @@ 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) | 112,291 | [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) | 114,486 | [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) | 114,835 | [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) | 155,399 | [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) | 115,106 | [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) | 117,030 | [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) | 157,593 | [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) | 117,301 | [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) | 157,943 | [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) | 117,650 | [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) | 158,213 | [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) | 160,138 | [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) | 119,845 | [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) | 160,407 | [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) | 160,757 | [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) | 162,952 | [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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -82,19 +98,18 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
@@ -191,6 +206,10 @@ pip3 install --user -r requirements.txt
|
||||
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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -254,6 +273,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -420,7 +442,7 @@ like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
@@ -487,6 +509,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -541,7 +565,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -644,9 +669,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
@@ -661,3 +692,5 @@ 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -10,15 +10,15 @@ sources can be found in the `hosts/data/` directory.
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](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)
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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
|
||||
|
||||
@@ -30,17 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **July 19 2022**.
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts)
|
||||
containing 155,399 entries.
|
||||
- Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
[raw hosts file Unified hosts file with porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts)
|
||||
containing 248,941 entries.
|
||||
|
||||
|
||||
|
||||
## 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.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -48,22 +49,37 @@ 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) | 112,291 | [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) | 114,486 | [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) | 114,835 | [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) | 155,399 | [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) | 115,106 | [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) | 117,030 | [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) | 157,593 | [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) | 117,301 | [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) | 157,943 | [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) | 117,650 | [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) | 158,213 | [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) | 160,138 | [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) | 119,845 | [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) | 160,407 | [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) | 160,757 | [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) | 162,952 | [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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -82,19 +98,18 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
@@ -189,6 +204,10 @@ pip3 install --user -r requirements.txt
|
||||
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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -252,6 +271,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -418,7 +440,7 @@ like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
@@ -485,6 +507,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -539,7 +563,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -642,9 +667,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
@@ -659,3 +690,5 @@ 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -0,0 +1,673 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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)
|
||||
|
||||
# Limited to the extensions: social
|
||||
|
||||
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.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: social](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts)
|
||||
containing 3,221 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
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 can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are 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
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
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 will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names 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. 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
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
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 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.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file 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.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` 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.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**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
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
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.
|
||||
|
||||
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 `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (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
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, 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:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/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
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
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 AutoUpdate 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
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [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.
|
||||
- [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.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [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 to 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). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -10,15 +10,15 @@ sources can be found in the `hosts/data/` directory.
|
||||
|
||||

|
||||
|
||||
[](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://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](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)
|
||||
[](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://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](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
|
||||
|
||||
@@ -30,17 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **July 19 2022**.
|
||||
- Last updated: **August 11 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts)
|
||||
containing 115,106 entries.
|
||||
- Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
[raw hosts file Unified hosts file with social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts)
|
||||
containing 168,858 entries.
|
||||
|
||||
|
||||
|
||||
## 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.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -48,22 +49,37 @@ 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) | 112,291 | [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) | 114,486 | [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) | 114,835 | [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) | 155,399 | [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) | 115,106 | [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) | 117,030 | [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) | 157,593 | [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) | 117,301 | [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) | 157,943 | [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) | 117,650 | [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) | 158,213 | [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) | 160,138 | [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) | 119,845 | [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) | 160,407 | [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) | 160,757 | [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) | 162,952 | [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) | 165,666 | [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) | 167,860 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/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) | 174,044 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 8,390 | [link](http://sbc.io/hosts/alternates/gambling-only/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) | 248,941 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 83,971 | [link](http://sbc.io/hosts/alternates/porn-only/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) | 168,858 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 3,221 | [link](http://sbc.io/hosts/alternates/social-only/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) | 176,238 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/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) | 251,135 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 86,165 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/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) | 171,052 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,415 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/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) | 257,319 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 92,361 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/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) | 177,236 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 11,611 | [link](http://sbc.io/hosts/alternates/gambling-social-only/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) | 252,132 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 87,191 | [link](http://sbc.io/hosts/alternates/porn-social-only/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) | 259,513 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 94,555 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/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) | 179,430 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 13,805 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/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) | 254,326 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 89,385 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/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) | 260,510 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 95,581 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/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) | 262,704 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 97,775 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -82,14 +98,12 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
@@ -186,6 +200,10 @@ pip3 install --user -r requirements.txt
|
||||
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).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -249,6 +267,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -415,7 +436,7 @@ like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
inputs.hosts.url = "github:StevenBlack/hosts";
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
@@ -482,6 +503,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -536,7 +559,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -639,9 +663,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
@@ -656,3 +686,5 @@ 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).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"name": "AdguardTeam cname trackers",
|
||||
"description": "CNAME-cloaked tracking abuses.",
|
||||
"homeurl": "https://github.com/AdguardTeam/cname-trackers",
|
||||
"frequency": "occasionally",
|
||||
"issues": "https://github.com/AdguardTeam/cname-trackers/issues",
|
||||
"url": "https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt",
|
||||
"license": "MIT"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# Source domain history
|
||||
|
||||
This page is only occasionally refreshed.
|
||||
|
||||

|
||||
|
||||
The file `stats.out` in this folder contains raw data for this graph.
|
||||
@@ -0,0 +1,312 @@
|
||||
2017-02-22,3976
|
||||
2017-02-22,3989
|
||||
2017-02-23,3984
|
||||
2017-02-23,3433
|
||||
2017-02-24,3427
|
||||
2017-02-24,3427
|
||||
2017-02-26,3450
|
||||
2017-03-01,3475
|
||||
2017-03-04,3516
|
||||
2017-03-07,3511
|
||||
2017-03-10,3523
|
||||
2017-03-15,3561
|
||||
2017-03-16,3567
|
||||
2017-03-20,3593
|
||||
2017-03-22,3599
|
||||
2017-03-25,3626
|
||||
2017-03-30,3656
|
||||
2017-04-05,3695
|
||||
2017-04-08,3715
|
||||
2017-04-11,3747
|
||||
2017-04-13,3759
|
||||
2017-04-15,3798
|
||||
2017-04-17,3817
|
||||
2017-04-18,3822
|
||||
2017-04-22,3886
|
||||
2017-04-25,3913
|
||||
2017-04-26,3926
|
||||
2017-05-02,3967
|
||||
2017-05-07,3973
|
||||
2017-05-10,4026
|
||||
2017-05-13,4185
|
||||
2017-05-15,4201
|
||||
2017-05-21,4254
|
||||
2017-05-23,4275
|
||||
2017-05-28,4389
|
||||
2017-05-29,4422
|
||||
2017-05-30,4432
|
||||
2017-06-02,4508
|
||||
2017-06-05,4531
|
||||
2017-06-11,4596
|
||||
2017-06-21,4806
|
||||
2017-06-22,4835
|
||||
2017-06-24,4866
|
||||
2017-06-28,4904
|
||||
2017-07-10,5003
|
||||
2017-07-11,5014
|
||||
2017-07-11,5013
|
||||
2017-07-12,5034
|
||||
2017-07-17,4930
|
||||
2017-07-18,4870
|
||||
2017-07-26,4975
|
||||
2017-07-28,4976
|
||||
2017-08-12,5391
|
||||
2017-08-15,8067
|
||||
2017-08-15,8027
|
||||
2017-08-18,7667
|
||||
2017-08-18,7407
|
||||
2017-08-20,7421
|
||||
2017-08-21,7420
|
||||
2017-08-28,7485
|
||||
2017-08-31,7490
|
||||
2017-09-05,7399
|
||||
2017-09-07,7441
|
||||
2017-09-13,7446
|
||||
2017-09-18,7407
|
||||
2017-09-21,7412
|
||||
2017-09-29,7420
|
||||
2017-10-05,7425
|
||||
2017-10-11,7391
|
||||
2017-10-15,11759
|
||||
2017-10-19,11726
|
||||
2017-10-24,11726
|
||||
2017-10-25,11725
|
||||
2017-11-01,11725
|
||||
2017-11-16,11770
|
||||
2017-11-25,11794
|
||||
2017-11-30,11812
|
||||
2017-12-07,11815
|
||||
2017-12-21,11824
|
||||
2018-01-06,11828
|
||||
2018-01-13,11832
|
||||
2018-01-21,11833
|
||||
2018-01-31,11846
|
||||
2018-02-02,11026
|
||||
2018-02-08,23964
|
||||
2018-02-13,23963
|
||||
2018-03-03,23963
|
||||
2018-03-08,23960
|
||||
2018-03-22,23958
|
||||
2018-04-02,23281
|
||||
2018-04-04,22629
|
||||
2018-04-06,22573
|
||||
2018-04-08,22495
|
||||
2018-04-16,22428
|
||||
2018-04-19,22136
|
||||
2018-04-25,22001
|
||||
2018-05-02,21771
|
||||
2018-05-08,21594
|
||||
2018-05-13,21593
|
||||
2018-05-17,21195
|
||||
2018-05-19,21194
|
||||
2018-05-22,21194
|
||||
2018-05-30,21194
|
||||
2018-06-05,21194
|
||||
2018-06-14,21194
|
||||
2018-06-20,21194
|
||||
2018-06-28,21194
|
||||
2018-07-04,21194
|
||||
2018-07-11,20443
|
||||
2018-07-23,19897
|
||||
2018-08-22,19417
|
||||
2018-08-24,18589
|
||||
2018-08-29,17652
|
||||
2018-09-04,17565
|
||||
2018-09-05,16701
|
||||
2018-09-08,16446
|
||||
2018-09-13,15422
|
||||
2018-09-18,14445
|
||||
2018-10-02,14207
|
||||
2018-10-05,13034
|
||||
2018-10-09,12829
|
||||
2018-10-22,10316
|
||||
2018-10-23,10146
|
||||
2018-11-01,8538
|
||||
2018-11-14,6809
|
||||
2018-11-20,5314
|
||||
2018-11-21,4869
|
||||
2018-11-26,4434
|
||||
2018-11-29,3658
|
||||
2018-12-04,3642
|
||||
2019-03-06,3104
|
||||
2019-03-15,3002
|
||||
2019-03-21,2939
|
||||
2019-03-26,2811
|
||||
2019-04-02,2746
|
||||
2019-04-07,2699
|
||||
2019-04-11,2361
|
||||
2019-04-17,1975
|
||||
2019-04-25,1899
|
||||
2019-05-02,1721
|
||||
2019-05-04,1674
|
||||
2019-05-10,1604
|
||||
2019-05-13,1591
|
||||
2019-05-23,1558
|
||||
2019-05-29,1555
|
||||
2019-06-05,1553
|
||||
2019-06-11,1551
|
||||
2019-06-17,1550
|
||||
2019-06-19,1549
|
||||
2019-06-22,1546
|
||||
2019-06-28,1545
|
||||
2019-07-04,1545
|
||||
2019-07-21,1528
|
||||
2019-07-27,1528
|
||||
2019-07-31,1527
|
||||
2019-08-06,1526
|
||||
2019-08-10,1525
|
||||
2019-08-13,1523
|
||||
2019-08-22,1520
|
||||
2019-08-30,1518
|
||||
2019-09-06,1516
|
||||
2019-09-09,1512
|
||||
2019-09-19,1510
|
||||
2019-09-23,1498
|
||||
2019-09-29,1488
|
||||
2019-09-30,1488
|
||||
2019-10-10,1480
|
||||
2019-10-18,1335
|
||||
2019-10-27,1327
|
||||
2019-10-30,1317
|
||||
2019-10-31,1315
|
||||
2019-11-03,1312
|
||||
2019-11-15,813
|
||||
2019-11-17,856
|
||||
2019-11-20,859
|
||||
2019-11-26,870
|
||||
2019-12-02,871
|
||||
2019-12-11,869
|
||||
2019-12-15,872
|
||||
2019-12-20,871
|
||||
2019-12-21,871
|
||||
2019-12-23,871
|
||||
2019-12-30,871
|
||||
2020-01-01,871
|
||||
2020-01-04,869
|
||||
2020-01-06,869
|
||||
2020-01-09,869
|
||||
2020-01-11,869
|
||||
2020-01-14,867
|
||||
2020-01-16,868
|
||||
2020-01-19,868
|
||||
2020-01-21,868
|
||||
2020-01-23,868
|
||||
2020-01-24,868
|
||||
2020-01-30,878
|
||||
2020-02-03,878
|
||||
2020-02-05,878
|
||||
2020-02-09,879
|
||||
2020-02-14,879
|
||||
2020-02-17,879
|
||||
2020-02-21,881
|
||||
2020-02-25,881
|
||||
2020-03-01,880
|
||||
2020-03-05,879
|
||||
2020-03-07,879
|
||||
2020-03-11,879
|
||||
2020-03-15,879
|
||||
2020-03-18,879
|
||||
2020-03-21,879
|
||||
2020-03-25,879
|
||||
2020-03-28,879
|
||||
2020-03-29,879
|
||||
2020-04-01,879
|
||||
2020-04-03,879
|
||||
2020-04-04,879
|
||||
2020-04-04,876
|
||||
2020-04-06,876
|
||||
2020-04-09,876
|
||||
2020-04-10,873
|
||||
2020-04-11,870
|
||||
2020-04-13,874
|
||||
2020-04-16,873
|
||||
2020-04-18,873
|
||||
2020-04-22,874
|
||||
2020-04-26,873
|
||||
2020-04-28,873
|
||||
2020-05-02,872
|
||||
2020-05-05,871
|
||||
2020-05-05,872
|
||||
2020-05-12,870
|
||||
2020-05-13,870
|
||||
2020-05-15,869
|
||||
2020-05-20,865
|
||||
2020-05-26,865
|
||||
2020-05-27,865
|
||||
2020-06-02,864
|
||||
2020-06-09,865
|
||||
2020-06-16,864
|
||||
2020-06-22,864
|
||||
2020-06-25,862
|
||||
2020-06-27,862
|
||||
2020-07-02,862
|
||||
2020-07-05,862
|
||||
2020-07-13,862
|
||||
2020-07-18,861
|
||||
2020-07-24,860
|
||||
2020-07-29,859
|
||||
2020-08-01,858
|
||||
2020-08-03,858
|
||||
2020-08-06,857
|
||||
2020-08-13,857
|
||||
2020-08-14,857
|
||||
2020-08-15,857
|
||||
2020-08-17,857
|
||||
2020-08-19,857
|
||||
2020-08-25,857
|
||||
2020-09-02,856
|
||||
2020-09-07,852
|
||||
2020-09-14,849
|
||||
2020-09-20,846
|
||||
2020-09-26,838
|
||||
2020-10-03,836
|
||||
2020-10-08,836
|
||||
2020-10-13,834
|
||||
2020-10-14,833
|
||||
2020-10-19,832
|
||||
2020-10-29,827
|
||||
2020-11-01,827
|
||||
2020-11-08,827
|
||||
2020-11-10,827
|
||||
2020-11-14,827
|
||||
2020-11-15,824
|
||||
2020-11-19,822
|
||||
2020-11-22,822
|
||||
2020-11-25,822
|
||||
2020-11-28,821
|
||||
2020-12-02,821
|
||||
2020-12-09,820
|
||||
2020-12-14,813
|
||||
2020-12-19,811
|
||||
2020-12-26,810
|
||||
2020-12-31,803
|
||||
2021-01-02,800
|
||||
2021-01-05,799
|
||||
2021-01-12,799
|
||||
2021-01-31,785
|
||||
2021-02-02,783
|
||||
2021-02-03,783
|
||||
2021-02-08,782
|
||||
2021-02-14,778
|
||||
2021-02-16,776
|
||||
2021-02-22,774
|
||||
2021-02-26,775
|
||||
2021-02-28,767
|
||||
2021-03-06,763
|
||||
2021-03-09,759
|
||||
2021-03-16,746
|
||||
2021-03-21,745
|
||||
2021-03-28,743
|
||||
2021-03-31,742
|
||||
2021-04-04,740
|
||||
2021-04-09,739
|
||||
2021-04-13,738
|
||||
2021-04-19,737
|
||||
2021-04-24,791
|
||||
2021-04-26,791
|
||||
2021-04-26,791
|
||||
2021-04-29,791
|
||||
2021-05-01,791
|
||||
2021-05-04,793
|
||||
2021-05-12,1386
|
||||
2022-06-07,1384
|
||||
|
After Width: | Height: | Size: 32 KiB |
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"name": "Mitchell Krog's - Badd Boyz Hosts",
|
||||
"description": "Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers",
|
||||
"homeurl": "https://github.com/mitchellkrogza/Badd-Boyz-Hosts",
|
||||
"frequency": "weekly",
|
||||
"issues": "https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues",
|
||||
"url": "https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts",
|
||||
"license": "MIT"
|
||||
}
|
||||
"name": "Mitchell Krog's - Badd Boyz Hosts",
|
||||
"description": "Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers",
|
||||
"homeurl": "https://github.com/mitchellkrogza/Badd-Boyz-Hosts",
|
||||
"frequency": "weekly",
|
||||
"issues": "https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues",
|
||||
"url": "https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts",
|
||||
"license": "MIT"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# Source domain history
|
||||
|
||||
This page is only occasionally refreshed.
|
||||
|
||||

|
||||
|
||||
The file `stats.out` in this folder contains raw data for this graph.
|
||||
@@ -0,0 +1,517 @@
|
||||
2016-11-20,1845
|
||||
2016-11-20,1845
|
||||
2016-11-25,1867
|
||||
2016-11-26,1874
|
||||
2016-11-27,1881
|
||||
2016-12-01,1909
|
||||
2016-12-02,1929
|
||||
2016-12-03,1933
|
||||
2016-12-09,1933
|
||||
2016-12-09,1940
|
||||
2016-12-10,1940
|
||||
2016-12-11,1948
|
||||
2016-12-15,1985
|
||||
2016-12-18,2013
|
||||
2016-12-28,2033
|
||||
2017-01-02,2038
|
||||
2017-01-05,2038
|
||||
2017-01-05,2038
|
||||
2017-01-05,2038
|
||||
2017-01-10,2109
|
||||
2017-01-18,2123
|
||||
2017-01-22,2149
|
||||
2017-01-31,2187
|
||||
2017-02-20,2256
|
||||
2017-02-22,2258
|
||||
2017-02-26,2273
|
||||
2017-03-01,2299
|
||||
2017-03-04,2306
|
||||
2017-03-15,2285
|
||||
2017-03-30,2304
|
||||
2017-04-08,2088
|
||||
2017-04-13,2100
|
||||
2017-04-26,2121
|
||||
2017-05-07,2153
|
||||
2017-05-21,2177
|
||||
2017-05-28,2192
|
||||
2017-06-02,2205
|
||||
2017-06-05,2216
|
||||
2017-06-21,2249
|
||||
2017-06-28,2260
|
||||
2017-07-04,2267
|
||||
2017-07-10,2279
|
||||
2017-07-17,2093
|
||||
2017-07-26,2087
|
||||
2017-07-31,2105
|
||||
2017-08-08,1748
|
||||
2017-08-15,1597
|
||||
2017-08-21,1545
|
||||
2017-08-31,1524
|
||||
2017-09-07,1531
|
||||
2017-09-21,1531
|
||||
2017-10-24,1531
|
||||
2017-10-28,1531
|
||||
2018-02-24,1304
|
||||
2018-07-16,1315
|
||||
2018-07-23,1190
|
||||
2018-08-01,1230
|
||||
2018-08-08,1244
|
||||
2018-08-13,1261
|
||||
2018-08-22,1258
|
||||
2018-08-24,1324
|
||||
2018-08-29,1316
|
||||
2018-09-05,1316
|
||||
2018-09-13,1372
|
||||
2018-09-18,1372
|
||||
2018-10-02,1372
|
||||
2018-10-05,1300
|
||||
2018-10-09,1300
|
||||
2018-10-14,1324
|
||||
2018-10-22,1324
|
||||
2018-11-01,1324
|
||||
2018-11-14,1480
|
||||
2018-11-20,1486
|
||||
2018-11-21,1486
|
||||
2018-11-29,1486
|
||||
2018-12-11,1506
|
||||
2018-12-15,1506
|
||||
2018-12-23,1506
|
||||
2018-12-29,1506
|
||||
2019-01-04,1526
|
||||
2019-01-10,1526
|
||||
2019-01-22,1526
|
||||
2019-01-26,1526
|
||||
2019-01-29,1551
|
||||
2019-02-06,1606
|
||||
2019-02-11,1613
|
||||
2019-02-18,1554
|
||||
2019-02-24,1582
|
||||
2019-03-02,1578
|
||||
2019-03-06,1616
|
||||
2019-03-15,1627
|
||||
2019-03-21,1630
|
||||
2019-03-26,1620
|
||||
2019-04-02,1627
|
||||
2019-04-07,1624
|
||||
2019-04-11,1619
|
||||
2019-04-17,1626
|
||||
2019-04-25,1722
|
||||
2019-05-02,1719
|
||||
2019-05-04,1719
|
||||
2019-05-05,1723
|
||||
2019-05-10,1729
|
||||
2019-05-13,1705
|
||||
2019-05-23,1746
|
||||
2019-05-24,1746
|
||||
2019-05-29,1760
|
||||
2019-06-05,1747
|
||||
2019-06-11,1746
|
||||
2019-06-17,3155
|
||||
2019-06-19,3163
|
||||
2019-06-22,3184
|
||||
2019-06-28,3231
|
||||
2019-07-04,3243
|
||||
2019-07-21,3311
|
||||
2019-07-27,3301
|
||||
2019-07-31,3305
|
||||
2019-08-06,3330
|
||||
2019-08-10,3299
|
||||
2019-08-13,3530
|
||||
2019-08-22,3547
|
||||
2019-08-30,3571
|
||||
2019-09-06,3581
|
||||
2019-09-09,3607
|
||||
2019-09-09,3619
|
||||
2019-09-19,3633
|
||||
2019-09-23,3637
|
||||
2019-09-29,3665
|
||||
2019-10-10,4244
|
||||
2019-10-12,4258
|
||||
2019-10-15,4270
|
||||
2019-10-18,4274
|
||||
2019-10-27,4304
|
||||
2019-10-27,4306
|
||||
2019-10-31,4404
|
||||
2019-11-03,4406
|
||||
2019-11-15,4491
|
||||
2019-11-17,4510
|
||||
2019-11-20,4526
|
||||
2019-11-26,4688
|
||||
2019-12-02,4688
|
||||
2019-12-02,4688
|
||||
2019-12-02,4689
|
||||
2019-12-11,4733
|
||||
2019-12-15,4737
|
||||
2019-12-20,4663
|
||||
2019-12-23,4625
|
||||
2019-12-30,4639
|
||||
2020-01-01,4617
|
||||
2020-01-04,4697
|
||||
2020-01-06,4619
|
||||
2020-01-09,5337
|
||||
2020-01-11,5663
|
||||
2020-01-14,5803
|
||||
2020-01-16,5876
|
||||
2020-01-19,5867
|
||||
2020-01-21,5837
|
||||
2020-01-23,5839
|
||||
2020-01-24,5903
|
||||
2020-01-30,6836
|
||||
2020-02-03,7084
|
||||
2020-02-05,7258
|
||||
2020-02-09,7262
|
||||
2020-02-14,7366
|
||||
2020-02-17,7412
|
||||
2020-02-21,7396
|
||||
2020-02-25,7377
|
||||
2020-03-01,7497
|
||||
2020-03-05,7557
|
||||
2020-03-07,7586
|
||||
2020-03-11,7816
|
||||
2020-03-15,7922
|
||||
2020-03-18,8154
|
||||
2020-03-21,8570
|
||||
2020-03-25,8730
|
||||
2020-03-21,8730
|
||||
2020-03-28,8938
|
||||
2020-03-29,8952
|
||||
2020-04-01,8968
|
||||
2020-04-03,9146
|
||||
2020-04-04,9184
|
||||
2020-04-06,9206
|
||||
2020-04-09,9370
|
||||
2020-04-10,9418
|
||||
2020-04-11,9440
|
||||
2020-04-13,9462
|
||||
2020-04-16,9665
|
||||
2020-04-18,9741
|
||||
2020-04-17,9741
|
||||
2020-04-22,9801
|
||||
2020-04-26,9859
|
||||
2020-04-28,9723
|
||||
2020-05-02,10395
|
||||
2020-05-05,10084
|
||||
2020-05-05,10114
|
||||
2020-05-12,10732
|
||||
2020-05-13,10814
|
||||
2020-05-15,10870
|
||||
2020-05-20,10881
|
||||
2020-05-26,10432
|
||||
2020-05-27,10532
|
||||
2020-06-02,10558
|
||||
2020-06-09,10510
|
||||
2020-06-16,10575
|
||||
2020-06-22,10689
|
||||
2020-07-02,11111
|
||||
2020-07-05,11029
|
||||
2020-07-06,10990
|
||||
2020-07-13,11148
|
||||
2020-07-18,11097
|
||||
2020-07-24,11065
|
||||
2020-07-29,11066
|
||||
2020-08-01,11185
|
||||
2020-08-03,10999
|
||||
2020-08-06,11036
|
||||
2020-08-13,11479
|
||||
2020-08-14,11497
|
||||
2020-08-15,11515
|
||||
2020-08-17,11475
|
||||
2020-08-19,11549
|
||||
2020-08-25,11924
|
||||
2020-09-02,12273
|
||||
2020-09-07,12486
|
||||
2020-09-14,12917
|
||||
2020-09-20,12969
|
||||
2020-09-26,13179
|
||||
2020-10-03,13241
|
||||
2020-10-08,13325
|
||||
2020-10-13,13064
|
||||
2020-10-14,13079
|
||||
2020-10-19,12907
|
||||
2020-10-29,13254
|
||||
2020-11-01,13353
|
||||
2020-11-03,13391
|
||||
2020-11-08,13915
|
||||
2020-11-10,14029
|
||||
2020-11-14,14193
|
||||
2020-11-15,14072
|
||||
2020-11-16,14139
|
||||
2020-11-19,14307
|
||||
2020-11-22,14391
|
||||
2020-11-25,14564
|
||||
2020-11-28,14775
|
||||
2020-12-02,14902
|
||||
2020-12-09,15156
|
||||
2020-12-14,15542
|
||||
2020-12-19,15762
|
||||
2020-12-26,15606
|
||||
2020-12-31,15606
|
||||
2020-12-31,14904
|
||||
2021-01-02,14916
|
||||
2021-01-05,15046
|
||||
2021-01-12,15130
|
||||
2021-01-17,15495
|
||||
2021-01-22,15737
|
||||
2021-01-24,15927
|
||||
2021-01-31,16294
|
||||
2021-02-02,16330
|
||||
2021-02-03,16445
|
||||
2021-02-08,16681
|
||||
2021-02-09,16745
|
||||
2021-02-14,17029
|
||||
2021-02-16,17078
|
||||
2021-02-21,17638
|
||||
2021-02-22,17654
|
||||
2021-02-26,17936
|
||||
2021-02-28,18005
|
||||
2021-03-06,18445
|
||||
2021-03-09,18661
|
||||
2021-03-10,18773
|
||||
2021-03-16,19063
|
||||
2021-03-21,19081
|
||||
2021-03-28,19832
|
||||
2021-03-31,20049
|
||||
2021-04-04,20393
|
||||
2021-04-09,21076
|
||||
2021-04-13,19067
|
||||
2021-04-19,19841
|
||||
2021-04-24,20528
|
||||
2021-04-26,20715
|
||||
2021-04-26,19965
|
||||
2021-04-29,20365
|
||||
2021-05-01,20427
|
||||
2021-05-04,19582
|
||||
2021-05-05,19645
|
||||
2021-05-06,19794
|
||||
2021-05-06,20171
|
||||
2021-05-12,20255
|
||||
2021-05-15,20587
|
||||
2021-05-17,20111
|
||||
2021-05-22,20727
|
||||
2021-05-25,20583
|
||||
2021-05-31,21195
|
||||
2021-06-07,21781
|
||||
2021-06-16,22102
|
||||
2021-06-22,21795
|
||||
2021-06-28,22235
|
||||
2021-07-01,22525
|
||||
2021-07-04,22369
|
||||
2021-07-13,23328
|
||||
2021-07-18,23858
|
||||
2021-07-19,23822
|
||||
2021-07-26,24665
|
||||
2021-07-29,25221
|
||||
2021-08-02,25457
|
||||
2021-08-09,26334
|
||||
2021-08-17,25942
|
||||
2021-08-20,26286
|
||||
2021-08-25,26663
|
||||
2021-08-26,26973
|
||||
2021-08-30,27320
|
||||
2021-09-02,28507
|
||||
2021-09-06,28957
|
||||
2021-09-07,29333
|
||||
2021-09-12,29847
|
||||
2021-09-17,30370
|
||||
2021-09-24,31652
|
||||
2021-09-30,32470
|
||||
2021-10-03,32786
|
||||
2021-10-05,32738
|
||||
2021-10-12,34062
|
||||
2021-10-14,34501
|
||||
2021-10-19,35338
|
||||
2021-10-23,35434
|
||||
2021-10-27,34379
|
||||
2021-11-04,34665
|
||||
2021-11-11,34816
|
||||
2021-11-14,34759
|
||||
2021-11-17,35318
|
||||
2021-11-21,35891
|
||||
2021-11-29,36245
|
||||
2021-12-05,36952
|
||||
2021-12-09,38195
|
||||
2021-12-12,38584
|
||||
2021-12-13,38100
|
||||
2021-12-16,38774
|
||||
2021-12-19,38966
|
||||
2021-12-20,39041
|
||||
2021-12-25,39551
|
||||
2021-12-30,40058
|
||||
2021-12-30,40068
|
||||
2022-01-02,40040
|
||||
2022-01-04,40436
|
||||
2022-01-07,40766
|
||||
2022-01-11,41502
|
||||
2022-01-18,42045
|
||||
2022-01-19,42333
|
||||
2022-01-21,42874
|
||||
2022-01-24,43200
|
||||
2022-01-28,44934
|
||||
2022-01-30,45208
|
||||
2022-01-31,45238
|
||||
2022-02-01,45489
|
||||
2022-02-07,46285
|
||||
2022-02-12,47356
|
||||
2022-02-13,47494
|
||||
2022-02-13,47502
|
||||
2022-02-17,48147
|
||||
2022-02-22,44066
|
||||
2022-02-26,44660
|
||||
2022-03-06,45414
|
||||
2022-03-07,45482
|
||||
2022-03-09,45772
|
||||
2022-03-12,46092
|
||||
2022-03-14,43748
|
||||
2022-03-19,44344
|
||||
2022-03-24,45177
|
||||
2022-03-29,44800
|
||||
2022-03-31,44955
|
||||
2022-04-05,45565
|
||||
2022-04-09,45911
|
||||
2022-04-13,46012
|
||||
2022-04-18,45732
|
||||
2022-04-21,46172
|
||||
2022-04-25,45790
|
||||
2022-04-29,36662
|
||||
2022-05-03,48213
|
||||
2022-05-05,48050
|
||||
2022-05-10,46723
|
||||
2022-05-14,47567
|
||||
2022-05-19,48621
|
||||
2022-05-25,48838
|
||||
2022-05-29,49332
|
||||
2022-05-31,49239
|
||||
2022-06-02,49659
|
||||
2022-06-07,49965
|
||||
2022-06-09,50207
|
||||
2022-06-16,51198
|
||||
2022-06-21,50974
|
||||
2022-06-21,51086
|
||||
2022-06-25,51697
|
||||
2022-06-29,51799
|
||||
2022-07-01,52089
|
||||
2022-07-04,52769
|
||||
2022-07-13,52305
|
||||
2022-07-16,52935
|
||||
2022-07-16,52939
|
||||
2022-07-18,53239
|
||||
2022-07-21,53945
|
||||
2022-07-23,54912
|
||||
2022-07-25,54029
|
||||
2022-07-29,55170
|
||||
2022-07-29,55170
|
||||
2022-08-03,56212
|
||||
2022-08-09,55363
|
||||
2022-08-12,56199
|
||||
2022-08-17,57242
|
||||
2022-08-20,58029
|
||||
2022-08-24,58671
|
||||
2022-08-25,59079
|
||||
2022-08-31,58909
|
||||
2022-09-04,59632
|
||||
2022-09-05,59801
|
||||
2022-09-08,60419
|
||||
2022-09-11,60871
|
||||
2022-09-13,61716
|
||||
2022-09-17,62637
|
||||
2022-09-23,69250
|
||||
2022-10-01,70975
|
||||
2022-10-06,71961
|
||||
2022-10-09,72393
|
||||
2022-10-13,73542
|
||||
2022-10-15,73812
|
||||
2022-10-17,74045
|
||||
2022-10-20,74663
|
||||
2022-10-27,75985
|
||||
2022-11-01,76659
|
||||
2022-11-09,77533
|
||||
2022-11-12,77958
|
||||
2022-11-13,78048
|
||||
2022-11-20,79200
|
||||
2022-11-21,79392
|
||||
2022-11-26,80074
|
||||
2022-11-28,80242
|
||||
2022-11-29,80593
|
||||
2022-12-03,81424
|
||||
2022-12-04,81480
|
||||
2022-12-05,81939
|
||||
2022-12-06,82151
|
||||
2022-12-11,83395
|
||||
2022-12-13,83729
|
||||
2022-12-15,84409
|
||||
2022-12-18,85143
|
||||
2022-12-20,85678
|
||||
2022-12-26,86493
|
||||
2022-12-29,87155
|
||||
2022-12-29,87249
|
||||
2023-01-01,87381
|
||||
2023-01-06,88183
|
||||
2023-01-08,88327
|
||||
2023-01-11,90282
|
||||
2023-01-13,90627
|
||||
2023-01-19,92889
|
||||
2023-01-23,93644
|
||||
2023-01-24,94292
|
||||
2023-01-27,95607
|
||||
2023-01-31,96093
|
||||
2023-02-05,98119
|
||||
2023-02-07,99720
|
||||
2023-02-16,103828
|
||||
2023-02-19,105052
|
||||
2023-02-23,105764
|
||||
2023-02-28,106639
|
||||
2023-03-03,107407
|
||||
2023-03-06,107829
|
||||
2023-03-07,108127
|
||||
2023-03-10,109968
|
||||
2023-03-14,111107
|
||||
2023-03-21,114538
|
||||
2023-03-25,115719
|
||||
2023-03-29,116916
|
||||
2023-04-07,123209
|
||||
2023-04-11,125209
|
||||
2023-04-16,127216
|
||||
2023-04-18,130388
|
||||
2023-04-19,130588
|
||||
2023-04-23,131577
|
||||
2023-04-26,134882
|
||||
2023-04-27,135241
|
||||
2023-04-30,135656
|
||||
2023-05-02,136074
|
||||
2023-05-05,136917
|
||||
2023-05-08,137729
|
||||
2023-05-11,138767
|
||||
2023-05-14,141533
|
||||
2023-05-15,142238
|
||||
2023-05-20,143946
|
||||
2023-05-21,144092
|
||||
2023-05-24,146074
|
||||
2023-06-02,148891
|
||||
2023-06-06,150385
|
||||
2023-06-10,151188
|
||||
2023-06-11,151275
|
||||
2023-06-13,151745
|
||||
2023-06-14,152002
|
||||
2023-06-14,152198
|
||||
2023-06-16,152956
|
||||
2023-06-17,153132
|
||||
2023-06-18,153288
|
||||
2023-06-23,154980
|
||||
2023-06-27,156185
|
||||
2023-07-01,157308
|
||||
2023-07-06,158737
|
||||
2023-07-09,159309
|
||||
2023-07-14,160857
|
||||
2023-07-15,160953
|
||||
2023-07-21,162723
|
||||
2023-07-23,162923
|
||||
2023-07-27,164181
|
||||
2023-08-01,165426
|
||||
2023-08-04,167551
|
||||
2023-08-05,167697
|
||||
2023-08-08,168343
|
||||
2023-08-13,170007
|
||||
2023-08-17,170776
|
||||
2023-08-21,171751
|
||||
2023-08-22,172007
|
||||
2023-08-26,173323
|
||||
|
After Width: | Height: | Size: 25 KiB |
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"name": "KADhosts",
|
||||
"description": "Fraud/adware/scam websites.",
|
||||
"homeurl": "https://kadantiscam.netlify.app/",
|
||||
"frequency": "frequently",
|
||||
"issues": "https://github.com/PolishFiltersTeam/KADhosts/issues",
|
||||
"url": "https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt",
|
||||
"license": "CC BY-SA 4.0"
|
||||
"name": "KADhosts",
|
||||
"description": "Fraud/adware/scam websites.",
|
||||
"homeurl": "https://kadantiscam.netlify.app/",
|
||||
"frequency": "frequently",
|
||||
"issues": "https://github.com/PolishFiltersTeam/KADhosts/issues",
|
||||
"url": "https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt",
|
||||
"license": "CC BY-SA 4.0"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# Source domain history
|
||||
|
||||
This page is only occasionally refreshed.
|
||||
|
||||

|
||||
|
||||
The file `stats.out` in this folder contains raw data for this graph.
|
||||
@@ -0,0 +1,6 @@
|
||||
2021-03-10,1071
|
||||
2021-03-10,1071
|
||||
2021-03-10,1070
|
||||
2021-10-05,1071
|
||||
2021-10-12,1072
|
||||
2022-01-11,1071
|
||||
|
After Width: | Height: | Size: 30 KiB |
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"name": "MetaMask eth-phishing-detect",
|
||||
"description": "Phishing domains targeting Ethereum users.",
|
||||
"homeurl": "https://github.com/MetaMask/eth-phishing-detect",
|
||||
"frequency": "frequent",
|
||||
"issues": "https://github.com/MetaMask/eth-phishing-detect/issues",
|
||||
"url": "https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt",
|
||||
"license": "DON'T BE A DICK PUBLIC LICENSE"
|
||||
"name": "MetaMask eth-phishing-detect",
|
||||
"description": "Phishing domains targeting Ethereum users.",
|
||||
"homeurl": "https://github.com/MetaMask/eth-phishing-detect",
|
||||
"frequency": "frequent",
|
||||
"issues": "https://github.com/MetaMask/eth-phishing-detect/issues",
|
||||
"url": "https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt",
|
||||
"license": "DON'T BE A DICK PUBLIC LICENSE"
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
# Title: Hosts contributed by Steven Black
|
||||
# http://stevenblack.com
|
||||
|
||||
0.0.0.0 ck.getcookiestxt.com
|
||||
0.0.0.0 eu1.clevertap-prod.com
|
||||
0.0.0.0 wizhumpgyros.com
|
||||
0.0.0.0 coccyxwickimp.com
|
||||
@@ -213,7 +214,7 @@
|
||||
0.0.0.0 api5.batmobil.net
|
||||
0.0.0.0 beauty-tea.com
|
||||
0.0.0.0 www.beauty-tea.com
|
||||
0.0.0.0 0.0.0.0.beeglivesex.com
|
||||
0.0.0.0 beeglivesex.com
|
||||
0.0.0.0 cdn.beginads.com
|
||||
0.0.0.0 www.cdn.beginads.com
|
||||
0.0.0.0 rotator.beginads.com
|
||||
@@ -824,7 +825,6 @@
|
||||
0.0.0.0 a.faymobi.com
|
||||
0.0.0.0 fdn-en.net
|
||||
0.0.0.0 ads.feedly.com
|
||||
0.0.0.0 feylibertad.org
|
||||
0.0.0.0 fgddl9szdof7.com
|
||||
0.0.0.0 fgoogle.com
|
||||
0.0.0.0 www.fgoogle.com
|
||||
@@ -864,7 +864,7 @@
|
||||
0.0.0.0 www.girlstofap.ga
|
||||
0.0.0.0 git-hub.co
|
||||
0.0.0.0 githb.co
|
||||
0.0.0.0 superlogout.github.io
|
||||
|
||||
0.0.0.0 goodblock.gladly.io
|
||||
0.0.0.0 www.goodblock.gladly.io
|
||||
0.0.0.0 ad-dev.globalnoticias.pt
|
||||
@@ -1017,7 +1017,6 @@
|
||||
0.0.0.0 samsung.apps.linkpc.net
|
||||
0.0.0.0 lismcanalys.fun
|
||||
0.0.0.0 nexus.officeapps.live.com
|
||||
0.0.0.0 nexusrules.officeapps.live.com
|
||||
0.0.0.0 livechatinc.org
|
||||
0.0.0.0 cradver.livejasmin.com
|
||||
0.0.0.0 crt.livejasmin.com
|
||||
@@ -2228,3 +2227,551 @@
|
||||
0.0.0.0 seductivegirls.cyou
|
||||
0.0.0.0 amusingdates.net
|
||||
0.0.0.0 honey-date4u.life
|
||||
|
||||
# Added August 9, 2022
|
||||
0.0.0.0 shopsplumbing.com
|
||||
|
||||
# Added August 12, 2022
|
||||
0.0.0.0 nl-crypto.com
|
||||
0.0.0.0 evri-package-gb.web.app
|
||||
|
||||
# Added August 13, 2022
|
||||
0.0.0.0 telemetry.acronis.com
|
||||
|
||||
# Added August 17, 2022
|
||||
0.0.0.0 mlbcash.com
|
||||
0.0.0.0 easy-extra-income-ways-makes-you-rich.store
|
||||
0.0.0.0 www.easy-extra-income-ways-makes-you-rich.store
|
||||
|
||||
# Added August 20, 2022
|
||||
0.0.0.0 arizona-golf-vacations.com
|
||||
|
||||
# Added August 25, 2022
|
||||
0.0.0.0 prd-lender.cdp.internal.unity3d.com
|
||||
0.0.0.0 config.uca.cloud.unity3d.com
|
||||
|
||||
0.0.0.0 didna-d.openx.net
|
||||
0.0.0.0 c2shb.ssp.yahoo.com
|
||||
|
||||
# Added August 26, 2022
|
||||
0.0.0.0 anmooq.deiicatedate.net
|
||||
0.0.0.0 www.pornsite123.com
|
||||
0.0.0.0 pornsite123.com
|
||||
0.0.0.0 www.xxxbullet.com
|
||||
0.0.0.0 xxxbullet.com
|
||||
0.0.0.0 www.packsdechicas.online
|
||||
0.0.0.0 packsdechicas.online
|
||||
|
||||
# Added August 27, 2022
|
||||
0.0.0.0 ip-info.ff.avast.com
|
||||
0.0.0.0 ipm-provider.ff.avast.com
|
||||
0.0.0.0 ipmcdn.avast.com
|
||||
0.0.0.0 ncc.avast.com
|
||||
0.0.0.0 shepherd.ff.avast.com
|
||||
0.0.0.0 clicktut.site
|
||||
|
||||
# Added Auguest 30, 2022
|
||||
0.0.0.0 secureaddisplay.com
|
||||
0.0.0.0 wiztube.xyz
|
||||
|
||||
# Added September 2, 2022
|
||||
0.0.0.0 yourgodess.com
|
||||
0.0.0.0 www.quinni.cyou
|
||||
0.0.0.0 quinni.cyou
|
||||
0.0.0.0 www.alenai.cyou
|
||||
0.0.0.0 alenai.cyou
|
||||
|
||||
# Added September 5, 2022
|
||||
0.0.0.0 telewizja-online.net
|
||||
0.0.0.0 bramka.org
|
||||
0.0.0.0 ustreamix.su
|
||||
0.0.0.0 inatv.pl
|
||||
|
||||
# Added September 7, 2022
|
||||
0.0.0.0 tracking.minitool.com
|
||||
|
||||
# Added September 9, 2022
|
||||
0.0.0.0 pasiekazlotoklos.pl
|
||||
|
||||
# Added September 12, 2022
|
||||
0.0.0.0 eu-commercialb.com
|
||||
|
||||
# Added September 29, 2022
|
||||
0.0.0.0 gratlfyingdates.net
|
||||
0.0.0.0 www.gratlfyingdates.net
|
||||
|
||||
# Added October 15, 2022
|
||||
0.0.0.0 filmsexeporno.com
|
||||
|
||||
# Added October 24, 2022
|
||||
0.0.0.0 supdqwepu.com
|
||||
0.0.0.0 vawardquac.com
|
||||
0.0.0.0 lemmingro.com
|
||||
|
||||
# Added October 27, 2022
|
||||
0.0.0.0 flashrewards.co
|
||||
|
||||
# Added November 13, 2022
|
||||
0.0.0.0 info-eastflirts.com
|
||||
0.0.0.0 www.info-eastflirts.com
|
||||
|
||||
# Added November 20, 2022
|
||||
0.0.0.0 reporting-api.gannettinnovation.com
|
||||
|
||||
# Added November 26, 2022
|
||||
0.0.0.0 1041598d1a.da1a0e7bb3.com
|
||||
0.0.0.0 12112336.pix-cdn.org
|
||||
0.0.0.0 1d3c8a1eaa.faeaeeaafa.com
|
||||
0.0.0.0 acceptable.a-ads.com
|
||||
0.0.0.0 addresseepaper.com
|
||||
0.0.0.0 banquetunarmedgrater.com
|
||||
0.0.0.0 cdn.barscreative1.com
|
||||
0.0.0.0 cdn.cloudimagesb.com
|
||||
0.0.0.0 cdn.creative-bars1.com
|
||||
0.0.0.0 cdn.tubecorp.com
|
||||
0.0.0.0 cdn18383040.ahacdn.me
|
||||
0.0.0.0 friendshipmale.com
|
||||
0.0.0.0 i.cdnkimg.com
|
||||
0.0.0.0 icon.eu.mndsrv.com
|
||||
0.0.0.0 iconcnd.net
|
||||
0.0.0.0 in16.zog.link
|
||||
0.0.0.0 js.canstrm.com
|
||||
0.0.0.0 js.natsdk.com
|
||||
0.0.0.0 js.wpadmngr.com
|
||||
0.0.0.0 lcdn.tsyndicate.com
|
||||
0.0.0.0 na.nawpush.com
|
||||
0.0.0.0 native-track.com
|
||||
0.0.0.0 parkingridiculous.com
|
||||
0.0.0.0 prombid.com
|
||||
0.0.0.0 pxl.tsyndicate.com
|
||||
0.0.0.0 s-img.adskeeper.com
|
||||
0.0.0.0 s.uuidksinc.net
|
||||
0.0.0.0 s.viiqvmfb.com
|
||||
0.0.0.0 soldierreproduceadmiration.com
|
||||
0.0.0.0 tcimp.zog.link
|
||||
0.0.0.0 tsyndicate.com
|
||||
0.0.0.0 unseenreport.com
|
||||
0.0.0.0 veilsuccessfully.com
|
||||
0.0.0.0 veneeringextremely.com
|
||||
0.0.0.0 bestgames-2022.com
|
||||
0.0.0.0 fp.metricswpsh.com
|
||||
0.0.0.0 spikereekvelocity.com
|
||||
0.0.0.0 www.gaming-adult.com
|
||||
0.0.0.0 mediasama.com
|
||||
0.0.0.0 danbo.org
|
||||
|
||||
# Added November 27, 2022
|
||||
0.0.0.0 crmt.livejasmin.com
|
||||
|
||||
# Added December 4, 2022. Malware domains using TXT record to transfer powershell scripts.
|
||||
0.0.0.0 wmail-endpoint.com
|
||||
0.0.0.0 wmail-blog.com
|
||||
0.0.0.0 wmail-chat.com
|
||||
0.0.0.0 wmail-cdn.com
|
||||
0.0.0.0 wmail-schnellvpn.com
|
||||
0.0.0.0 fairu-endpoint.com
|
||||
0.0.0.0 fairu-blog.com
|
||||
0.0.0.0 fairu-chat.com
|
||||
0.0.0.0 fairu-cdn.com
|
||||
0.0.0.0 fairu-schnellvpn.com
|
||||
0.0.0.0 bideo-endpoint.com
|
||||
0.0.0.0 bideo-blog.com
|
||||
0.0.0.0 bideo-chat.com
|
||||
0.0.0.0 bideo-cdn.com
|
||||
0.0.0.0 bideo-schnellvpn.com
|
||||
0.0.0.0 privatproxy-endpoint.com
|
||||
0.0.0.0 privatproxy-blog.com
|
||||
0.0.0.0 privatproxy-chat.com
|
||||
0.0.0.0 privatproxy-cdn.com
|
||||
0.0.0.0 privatproxy-schnellvpn.com
|
||||
0.0.0.0 ahoravideo-endpoint.com
|
||||
0.0.0.0 ahoravideo-blog.com
|
||||
0.0.0.0 ahoravideo-chat.com
|
||||
0.0.0.0 ahoravideo-cdn.com
|
||||
0.0.0.0 ahoravideo-schnellvpn.com
|
||||
0.0.0.0 wmail-endpoint.xyz
|
||||
0.0.0.0 wmail-blog.xyz
|
||||
0.0.0.0 wmail-chat.xyz
|
||||
0.0.0.0 wmail-cdn.xyz
|
||||
0.0.0.0 wmail-schnellvpn.xyz
|
||||
0.0.0.0 fairu-endpoint.xyz
|
||||
0.0.0.0 fairu-blog.xyz
|
||||
0.0.0.0 fairu-chat.xyz
|
||||
0.0.0.0 fairu-cdn.xyz
|
||||
0.0.0.0 fairu-schnellvpn.xyz
|
||||
0.0.0.0 bideo-endpoint.xyz
|
||||
0.0.0.0 bideo-blog.xyz
|
||||
0.0.0.0 bideo-chat.xyz
|
||||
0.0.0.0 bideo-cdn.xyz
|
||||
0.0.0.0 bideo-schnellvpn.xyz
|
||||
0.0.0.0 privatproxy-endpoint.xyz
|
||||
0.0.0.0 privatproxy-blog.xyz
|
||||
0.0.0.0 privatproxy-chat.xyz
|
||||
0.0.0.0 privatproxy-cdn.xyz
|
||||
0.0.0.0 privatproxy-schnellvpn.xyz
|
||||
0.0.0.0 ahoravideo-endpoint.xyz
|
||||
0.0.0.0 ahoravideo-blog.xyz
|
||||
0.0.0.0 ahoravideo-chat.xyz
|
||||
0.0.0.0 ahoravideo-cdn.xyz
|
||||
0.0.0.0 ahoravideo-schnellvpn.xyz
|
||||
|
||||
# Added December 4, 2022
|
||||
0.0.0.0 cesareurope.com
|
||||
0.0.0.0 cws-hotstar.conviva.com
|
||||
0.0.0.0 events-analytics.hotstar.com
|
||||
0.0.0.0 logs.hotstar.com
|
||||
0.0.0.0 service.hotstar.com
|
||||
0.0.0.0 settings-analytics.hotstar.com
|
||||
0.0.0.0 videoads.hotstar.com
|
||||
0.0.0.0 vs.hotstar.com
|
||||
|
||||
# Added December 11, 2022
|
||||
0.0.0.0 analytics.shein.com
|
||||
0.0.0.0 analytics.shein.co.uk
|
||||
|
||||
# Added December 29, 2022
|
||||
0.0.0.0 8a97175fd63e1d3a69f36979b9b34470.safeframe.googlesyndication.com
|
||||
0.0.0.0 c2shb.pubgw.yahoo.com
|
||||
0.0.0.0 cdn.confiant-integrations.net
|
||||
0.0.0.0 cdn.hadronid.net
|
||||
0.0.0.0 cdn.id5-sync.com
|
||||
0.0.0.0 cdn.prod.uidapi.com
|
||||
0.0.0.0 curvedhoney.com
|
||||
0.0.0.0 dnacdn.net
|
||||
0.0.0.0 freestar-d.openx.net
|
||||
0.0.0.0 freestar-io.videoplayerhub.com
|
||||
0.0.0.0 oa.openxcdn.net
|
||||
0.0.0.0 s2s.t13.io
|
||||
|
||||
# Added January 11, 2023
|
||||
0.0.0.0 btc8886.com
|
||||
0.0.0.0 en.xachinaproject.fun
|
||||
|
||||
# Added January 12, 2023
|
||||
0.0.0.0 antihohol.cloud
|
||||
0.0.0.0 hosteagle.club
|
||||
0.0.0.0 anz-shield-secure.com
|
||||
0.0.0.0 alert-bendigobank.com
|
||||
0.0.0.0 linkt-transport.top
|
||||
0.0.0.0 linkt-help.top
|
||||
|
||||
# Added January 13, 2023
|
||||
0.0.0.0 reviewmygov.tuquy.com
|
||||
0.0.0.0 auspost-record.com
|
||||
0.0.0.0 alert-auspost.com
|
||||
0.0.0.0 auspost-input.com
|
||||
|
||||
# Added January 22, 2023
|
||||
0.0.0.0 vep.hautnah-kosmetik-grafenau.de
|
||||
0.0.0.0 ttri.kanzlei-ecklmaier.de
|
||||
0.0.0.0 d-stuff.cfd
|
||||
0.0.0.0 ruhrboudoir.de
|
||||
0.0.0.0 d-bring.cfd
|
||||
0.0.0.0 obev.pauya.de
|
||||
0.0.0.0 dimoradellapizzuta.it
|
||||
0.0.0.0 misanoassicurazioni.it
|
||||
0.0.0.0 d-enemy.cfd
|
||||
0.0.0.0 sindelfingen-haarentfernung.de
|
||||
0.0.0.0 asdpoliziamunicipalepa.it
|
||||
0.0.0.0 mf-massoterapia.it
|
||||
0.0.0.0 tyty.lolokira.lol
|
||||
0.0.0.0 yord.serawent-pole.lol
|
||||
0.0.0.0 redivosrl.it
|
||||
|
||||
# Added January 23, 2023
|
||||
0.0.0.0 products.gobankingrates.com
|
||||
0.0.0.0 cdn.rates.consumertrack.com
|
||||
0.0.0.0 ads-api.twitter.com
|
||||
|
||||
# Added February 7, 2023
|
||||
0.0.0.0 aax-dtb-cf.amazon-adsystem.com
|
||||
0.0.0.0 assets-jpcust.jwpsrv.com
|
||||
0.0.0.0 fundingchoicesmessages.google.com
|
||||
0.0.0.0 images.twnmm.com
|
||||
0.0.0.0 prod.us-east-1.cxm-bcn.publisher-services.amazon.dev
|
||||
0.0.0.0 secure.cdn.fastclick.ne
|
||||
0.0.0.0 twngcpbidder.lb.engagecore.com
|
||||
0.0.0.0 assets-jpcust.jwpsrv.com
|
||||
|
||||
# Added March 7, 2023
|
||||
0.0.0.0 a125375509.cdn.optimizely.com
|
||||
0.0.0.0 cdn.cookielaw.org
|
||||
0.0.0.0 cdn.indexww.com
|
||||
|
||||
# Added March 25, 2023
|
||||
0.0.0.0 wpad.www.tendawifi.com
|
||||
0.0.0.0 crprt.livejasmin.com
|
||||
|
||||
# Added March 28, 2023
|
||||
0.0.0.0 grow.gab.com
|
||||
|
||||
# Added April 3, 2023
|
||||
0.0.0.0 transive.top
|
||||
0.0.0.0 warehousesale.shop
|
||||
|
||||
# Added April 4, 2023
|
||||
0.0.0.0 fpjscdn.net
|
||||
0.0.0.0 api.fpjs.io
|
||||
0.0.0.0 use1.fptls.com
|
||||
0.0.0.0 use1.fptls3.com
|
||||
|
||||
# Added April 7, 2023
|
||||
0.0.0.0 d2uap9jskdzp2.cloudfront.net
|
||||
0.0.0.0 steadfastseat.com
|
||||
0.0.0.0 eq97f.publishers.tremorhub.com
|
||||
|
||||
# Added April 13, 2023
|
||||
0.0.0.0 wota-tournament.com
|
||||
|
||||
# Added April 19, 2023
|
||||
0.0.0.0 rukalebi.ru
|
||||
0.0.0.0 bueromoebelservice.com
|
||||
|
||||
# Added April 21, 2023
|
||||
0.0.0.0 beautydates.cn
|
||||
0.0.0.0 www.beautydates.cn
|
||||
0.0.0.0 hhoneyann96.beautydates.cn
|
||||
0.0.0.0 nilaima.com
|
||||
0.0.0.0 www.nilaima.com
|
||||
|
||||
# Added April 27, 2023
|
||||
0.0.0.0 www.gameitlive.com
|
||||
0.0.0.0 gameitlive.com
|
||||
|
||||
# Added April 28, 2023
|
||||
0.0.0.0 stripchat.com
|
||||
|
||||
# Added April 29, 2023
|
||||
0.0.0.0 crmpt.livejasmin.com
|
||||
|
||||
# Added May 2, 2023
|
||||
0.0.0.0 claudfront.net
|
||||
0.0.0.0 allowlisted.net
|
||||
0.0.0.0 atlas-upd.com
|
||||
0.0.0.0 ads-tm-glb.click
|
||||
0.0.0.0 cbox4.ignorelist.com
|
||||
0.0.0.0 hsdps.cc
|
||||
0.0.0.0 api.sprig.com
|
||||
|
||||
# Added May 15, 2023
|
||||
0.0.0.0 telemetry-cii.api.playstation.com
|
||||
|
||||
# Added May 19, 2023
|
||||
0.0.0.0 clorec4.net
|
||||
0.0.0.0 wu.idismfonts.com
|
||||
0.0.0.0 xml-eu.flairadscpc.com
|
||||
|
||||
# Added May 30, 2023
|
||||
0.0.0.0 serasearchtop.com
|
||||
0.0.0.0 track.atom-ds.com
|
||||
|
||||
# Added June 3, 2023
|
||||
0.0.0.0 addatamarket.net
|
||||
0.0.0.0 backuprabbit.com
|
||||
0.0.0.0 businessvideonews.com
|
||||
0.0.0.0 cloudsponcer.com
|
||||
0.0.0.0 datamarketplace.net
|
||||
0.0.0.0 mobilegamerstats.com
|
||||
0.0.0.0 snoweeanalytics.com
|
||||
0.0.0.0 tagclick-cdn.com
|
||||
0.0.0.0 topographyupdates.com
|
||||
0.0.0.0 unlimitedteacup.com
|
||||
0.0.0.0 virtuallaughing.com
|
||||
0.0.0.0 web-trackers.com
|
||||
0.0.0.0 growthtransport.com
|
||||
0.0.0.0 anstv.net
|
||||
0.0.0.0 ans7tv.net
|
||||
0.0.0.0 123-vendasvoos25.lovestoblog.com
|
||||
0.0.0.0 c-123milhas.shop
|
||||
|
||||
# Added June 13, 2023
|
||||
0.0.0.0 assistant-chronopost.com
|
||||
0.0.0.0 zhihu-web-analytics.zhihu.com
|
||||
|
||||
# Added July 4, 2023
|
||||
0.0.0.0 stmicroelectronics.d3.sc.omtrdc.net
|
||||
|
||||
0.0.0.0 giyhub.com
|
||||
0.0.0.0 d2wzkjnj9pfptq.cloudfront.net
|
||||
0.0.0.0 storiesnexus.com
|
||||
0.0.0.0 rumadel.com
|
||||
|
||||
# Added August 8, 2023
|
||||
0.0.0.0 ms4.applvn.com
|
||||
0.0.0.0 adsninjacdn.b-cdn.net
|
||||
0.0.0.0 cdn.adsninja.ca
|
||||
0.0.0.0 nom.telemetrydeck.com
|
||||
0.0.0.0 api.ibeat-analytics.com
|
||||
0.0.0.0 mads.amazon.com
|
||||
|
||||
# Add August 9, 2023
|
||||
0.0.0.0 s2.bl-1.com
|
||||
|
||||
# Added August 10, 2023
|
||||
0.0.0.0 w61.1piecemanga.com
|
||||
0.0.0.0 fbet.com
|
||||
0.0.0.0 stemboastfulrattle.com
|
||||
0.0.0.0 onwardrespirationcommandment.com
|
||||
|
||||
# Added October 13, 2023
|
||||
0.0.0.0 s.dmmew.com
|
||||
|
||||
# Added November 2, 2023
|
||||
0.0.0.0 run.cntxtfl.com
|
||||
0.0.0.0 live-manifests-lln.warnermediacdn.com
|
||||
0.0.0.0 live-manifests-aka.warnermediacdn.com
|
||||
0.0.0.0 logs.browser-intake-datadoghq.com
|
||||
|
||||
# Added November 3, 2023
|
||||
0.0.0.0 b2b6d102cb7a4898bc54a3b73e31b759.safeframe.googlesyndication.com
|
||||
0.0.0.0 cpm.didna.io
|
||||
0.0.0.0 hb.minutemedia-prebid.com
|
||||
0.0.0.0 ox-rtb-us-east1.openx.net
|
||||
0.0.0.0 ox-rtb-us-east4.openx.net
|
||||
0.0.0.0 pbs.nextmillmedia.com
|
||||
0.0.0.0 report2.hb.brainlyads.com
|
||||
0.0.0.0 ssp-sync.criteo.com
|
||||
0.0.0.0 st.pubmatic.com
|
||||
|
||||
# Added November 9, 2023
|
||||
0.0.0.0 beacons5.gvt2.com
|
||||
0.0.0.0 beacons4.gvt2.com
|
||||
0.0.0.0 beacons3.gvt2.com
|
||||
0.0.0.0 beacons2.gvt2.com
|
||||
|
||||
# Added November 21, 2023
|
||||
0.0.0.0 pickanewdeliverytime.com
|
||||
|
||||
# Added November 24, 2023
|
||||
0.0.0.0 80d4b6e40cc712bf92fcdbabdd4345fd.safeframe.googlesyndication.com
|
||||
0.0.0.0 a6709203f34992a5095d2bc7ceaf2ec504f651a8.cws.conviva.com
|
||||
0.0.0.0 a.jsrdn.com
|
||||
0.0.0.0 atom.warnermedia.com
|
||||
0.0.0.0 d9esmwyn3ffr1.cloudfront.net
|
||||
0.0.0.0 dqif5bl25s0bf.cloudfront.net
|
||||
0.0.0.0 healthguides.cnn.com
|
||||
0.0.0.0 ipv4.cws.conviva.com
|
||||
0.0.0.0 licensing.bitmovin.com
|
||||
0.0.0.0 live-media-aka.warnermediacdn.com
|
||||
0.0.0.0 registry.api.cnn.io
|
||||
0.0.0.0 s.cdn.turner.com
|
||||
0.0.0.0 turnip.cdn.turner.com
|
||||
0.0.0.0 vi.ml314.com
|
||||
0.0.0.0 vod-media-aka.warnermediacdn.com
|
||||
0.0.0.0 warnermediagroup-com.videoplayerhub.com
|
||||
0.0.0.0 www.i.cdn.cnn.com
|
||||
0.0.0.0 d32ajg1ye8vnl9.cloudfront.net
|
||||
0.0.0.0 dvqcs4w0eo35b.cloudfront.net
|
||||
0.0.0.0 facf31c1c8559131d653f3c5ad4ecc78.safeframe.googlesyndication.com
|
||||
0.0.0.0 i.jsrdn.com
|
||||
0.0.0.0 lb.eu-1-id5-sync.com
|
||||
0.0.0.0 live-media-lln.warnermediacdn.com
|
||||
0.0.0.0 zion.api.cnn.io
|
||||
|
||||
# Added November 25, 2023
|
||||
0.0.0.0 bucket.cdnwebcloud.com
|
||||
0.0.0.0 c23811bc8d067cdb4f00f6af2c918f3d.safeframe.googlesyndication.com
|
||||
0.0.0.0 cadmus.script.ac
|
||||
0.0.0.0 cdn.topsrvimp.com
|
||||
0.0.0.0 cookies.nextmillmedia.com
|
||||
0.0.0.0 didna.b-cdn.net
|
||||
0.0.0.0 exchange.kueezrtb.com
|
||||
0.0.0.0 neural40.cdnwebcloud.com
|
||||
0.0.0.0 rt.marphezis.com
|
||||
0.0.0.0 sync.colossusssp.com
|
||||
0.0.0.0 sync.kueezrtb.com
|
||||
0.0.0.0 t.adx.opera.com
|
||||
0.0.0.0 web.hb.ad.cpe.dotomi.com
|
||||
|
||||
# Added December 17, 2023
|
||||
0.0.0.0 co.vaicore.site
|
||||
0.0.0.0 int.vaicore.site
|
||||
|
||||
# Added December 28, 2023
|
||||
0.0.0.0 rtnl.bxcl.de
|
||||
|
||||
# Added February 11, 2024
|
||||
0.0.0.0 product-cdn.liftoff-creatives.io
|
||||
0.0.0.0 preview.liftoff-creatives.io
|
||||
0.0.0.0 adexp.liftoff.io
|
||||
0.0.0.0 analytics.liftoff.io
|
||||
0.0.0.0 applovin-europe-rtb.liftoff.io
|
||||
0.0.0.0 appodeal-asia-rtb.liftoff.io
|
||||
0.0.0.0 appodeal-europe-rtb.liftoff.io
|
||||
0.0.0.0 appodeal-rtb.liftoff.io
|
||||
0.0.0.0 bigo-asia-rtb.liftoff.io
|
||||
0.0.0.0 bigo-europe-rtb.liftoff.io
|
||||
0.0.0.0 bigo-rtb.liftoff.io
|
||||
0.0.0.0 build-cdn.liftoff.io
|
||||
0.0.0.0 cdn.liftoff.io
|
||||
0.0.0.0 click4.liftoff.io
|
||||
0.0.0.0 click.liftoff.io
|
||||
0.0.0.0 impression-asia.liftoff.io
|
||||
0.0.0.0 impression-east.liftoff.io
|
||||
0.0.0.0 impression-europe.liftoff.io
|
||||
0.0.0.0 lb-rtb-europe.liftoff.io
|
||||
0.0.0.0 privacy.liftoff.io
|
||||
0.0.0.0 rtbnotify.liftoff.io
|
||||
0.0.0.0 biddingmax.apse.trk.rixserv.com
|
||||
0.0.0.0 et-l.w.inmobi.com
|
||||
0.0.0.0 i.l-new.inmobicdn.net
|
||||
0.0.0.0 cdn.liftoff-creatives.io
|
||||
0.0.0.0 statistik.changing-cities.org
|
||||
|
||||
# Added March 10, 2024
|
||||
0.0.0.0 mcgthfrqrs95vdbzkhtchf5fc0g4.device.marketingcloudapis.com
|
||||
|
||||
# Added March 12, 2024
|
||||
0.0.0.0 crpdt.livejasmin.com
|
||||
|
||||
# Added March 21, 2024
|
||||
0.0.0.0 justtrack-logs.justtrack.io
|
||||
0.0.0.0 sdk-api.justtrack.io
|
||||
0.0.0.0 prod.adjoe-programmatic.com
|
||||
|
||||
# Added March 28, 2024
|
||||
0.0.0.0 argo.svcmot.com
|
||||
|
||||
# Added April 3, 2024
|
||||
0.0.0.0 canadapost.ca-help-h.top
|
||||
|
||||
# Added April 8, 2024
|
||||
0.0.0.0 notepad.plus
|
||||
|
||||
# Added April 13, 2024
|
||||
0.0.0.0 alertcibcsecuremobile.com
|
||||
|
||||
# Added April 24, 2024
|
||||
0.0.0.0 sadostic.pl
|
||||
0.0.0.0 www.sadostic.pl
|
||||
|
||||
# Added April 28, 2024
|
||||
0.0.0.0 ejuiashsateam.info
|
||||
0.0.0.0 www.ejuiashsateam.info
|
||||
|
||||
# Added May 3, 2024
|
||||
0.0.0.0 twitterr.com
|
||||
0.0.0.0 ww25.twitterr.com
|
||||
|
||||
# Added May 19, 2024
|
||||
0.0.0.0 urdxh.com
|
||||
|
||||
# Added May 30, 2024
|
||||
0.0.0.0 logs.netflix.com
|
||||
|
||||
# Added June 26, 2024
|
||||
0.0.0.0 mailsupport-24f7f1500ed129bc71f2ad9c06fe1e73.pages.dev
|
||||
|
||||
# Added July 7, 2024
|
||||
0.0.0.0 aeventlog.beacon.qq.com
|
||||
0.0.0.0 astrategy.beacon.qq.com
|
||||
0.0.0.0 tdid.m.qq.com
|
||||
0.0.0.0 c.adsco.re
|
||||
0.0.0.0 4.adsco.re
|
||||
0.0.0.0 6.adsco.re
|
||||
0.0.0.0 frwrz661fasv.l4.adsco.re
|
||||
0.0.0.0 frwrz661fasv.n4.adsco.re
|
||||
0.0.0.0 frwrz661fasv.s4.adsco.re
|
||||
|
||||
# Added July 27, 2024
|
||||
0.0.0.0 tracker.nitropay.com
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# Source domain history
|
||||
|
||||
This page is only occasionally refreshed.
|
||||
|
||||

|
||||
|
||||
The file `stats.out` in this folder contains raw data for this graph.
|
||||
@@ -0,0 +1,429 @@
|
||||
2012-04-12,5
|
||||
2012-04-14,6
|
||||
2012-04-15,7
|
||||
2013-02-01,6
|
||||
2013-02-09,6
|
||||
2014-05-31,7
|
||||
2015-09-21,9
|
||||
2015-09-21,9
|
||||
2015-10-07,10
|
||||
2015-10-11,11
|
||||
2015-10-11,12
|
||||
2015-10-18,13
|
||||
2015-10-28,14
|
||||
2015-10-28,13
|
||||
2015-12-08,14
|
||||
2015-12-30,16
|
||||
2016-01-02,17
|
||||
2016-02-08,17
|
||||
2016-03-11,20
|
||||
2016-03-20,21
|
||||
2016-07-07,22
|
||||
2016-09-27,24
|
||||
2016-10-12,25
|
||||
2016-10-12,24
|
||||
2016-10-12,25
|
||||
2016-10-23,27
|
||||
2016-11-08,31
|
||||
2016-11-22,33
|
||||
2016-12-02,34
|
||||
2016-12-09,34
|
||||
2016-12-09,34
|
||||
2016-12-17,35
|
||||
2016-12-19,39
|
||||
2016-12-28,40
|
||||
2017-01-10,41
|
||||
2017-01-11,42
|
||||
2017-01-18,43
|
||||
2017-01-18,44
|
||||
2017-01-18,45
|
||||
2017-01-22,47
|
||||
2017-01-31,49
|
||||
2017-02-13,51
|
||||
2017-02-22,55
|
||||
2017-02-24,57
|
||||
2017-07-28,58
|
||||
2017-08-21,60
|
||||
2017-08-21,61
|
||||
2017-08-21,62
|
||||
2017-09-19,63
|
||||
2017-10-10,64
|
||||
2017-10-24,83
|
||||
2017-10-25,87
|
||||
2017-10-25,110
|
||||
2017-10-25,110
|
||||
2017-10-29,114
|
||||
2017-10-29,125
|
||||
2017-10-29,125
|
||||
2017-11-01,148
|
||||
2017-11-01,147
|
||||
2017-11-01,147
|
||||
2017-11-03,151
|
||||
2017-11-12,156
|
||||
2017-11-12,160
|
||||
2017-11-17,158
|
||||
2017-11-17,165
|
||||
2017-11-19,170
|
||||
2017-11-19,174
|
||||
2017-11-21,175
|
||||
2017-11-21,176
|
||||
2017-11-24,175
|
||||
2017-11-30,176
|
||||
2017-12-01,191
|
||||
2017-12-01,193
|
||||
2017-12-11,194
|
||||
2018-01-03,295
|
||||
2018-01-14,297
|
||||
2018-01-17,298
|
||||
2018-01-18,298
|
||||
2018-01-20,298
|
||||
2018-01-21,302
|
||||
2018-01-23,303
|
||||
2018-01-24,407
|
||||
2018-01-31,409
|
||||
2018-02-04,410
|
||||
2018-02-07,410
|
||||
2018-02-11,424
|
||||
2018-02-25,423
|
||||
2018-02-26,382
|
||||
2018-02-25,425
|
||||
2018-02-25,300
|
||||
2018-02-26,437
|
||||
2018-02-27,396
|
||||
2018-03-05,396
|
||||
2018-03-10,397
|
||||
2018-03-10,397
|
||||
2018-03-14,398
|
||||
2018-03-20,406
|
||||
2018-04-02,407
|
||||
2018-04-03,424
|
||||
2018-04-04,423
|
||||
2018-04-04,424
|
||||
2018-04-06,429
|
||||
2018-04-08,434
|
||||
2018-04-08,434
|
||||
2018-04-12,436
|
||||
2018-04-12,434
|
||||
2018-04-16,435
|
||||
2018-04-17,434
|
||||
2018-04-19,435
|
||||
2018-04-20,459
|
||||
2018-04-21,437
|
||||
2018-04-21,437
|
||||
2018-04-21,460
|
||||
2018-04-22,458
|
||||
2018-04-22,459
|
||||
2018-04-23,461
|
||||
2018-04-23,461
|
||||
2018-04-23,462
|
||||
2018-04-23,465
|
||||
2018-04-24,467
|
||||
2018-04-24,468
|
||||
2018-04-29,515
|
||||
2018-05-02,516
|
||||
2018-05-03,520
|
||||
2018-05-04,520
|
||||
2018-05-12,521
|
||||
2018-05-12,521
|
||||
2018-05-13,522
|
||||
2018-05-15,573
|
||||
2018-05-16,522
|
||||
2018-05-17,573
|
||||
2018-05-18,576
|
||||
2018-05-19,579
|
||||
2018-05-23,579
|
||||
2018-05-24,583
|
||||
2018-05-24,585
|
||||
2018-06-07,598
|
||||
2018-06-09,609
|
||||
2018-06-14,608
|
||||
2018-06-14,610
|
||||
2018-06-14,609
|
||||
2018-06-16,827
|
||||
2018-06-16,830
|
||||
2018-06-16,831
|
||||
2018-06-17,890
|
||||
2018-06-17,890
|
||||
2018-06-17,831
|
||||
2018-06-18,835
|
||||
2018-06-19,833
|
||||
2018-06-23,844
|
||||
2018-06-23,845
|
||||
2018-06-23,833
|
||||
2018-06-26,833
|
||||
2018-06-25,845
|
||||
2018-06-28,848
|
||||
2018-06-28,849
|
||||
2018-06-30,850
|
||||
2018-06-30,851
|
||||
2018-07-03,861
|
||||
2018-07-04,862
|
||||
2018-07-20,874
|
||||
2018-07-20,873
|
||||
2018-07-23,879
|
||||
2018-08-01,879
|
||||
2018-08-01,881
|
||||
2018-08-05,883
|
||||
2018-09-13,884
|
||||
2018-09-16,885
|
||||
2018-09-18,887
|
||||
2018-09-30,891
|
||||
2018-09-30,892
|
||||
2018-10-01,894
|
||||
2018-10-02,895
|
||||
2018-10-06,896
|
||||
2018-10-24,898
|
||||
2018-11-06,899
|
||||
2018-11-09,900
|
||||
2018-11-21,902
|
||||
2018-11-26,908
|
||||
2018-12-01,909
|
||||
2018-12-06,908
|
||||
2018-12-09,909
|
||||
2018-12-24,910
|
||||
2018-12-28,909
|
||||
2018-12-31,908
|
||||
2018-12-31,907
|
||||
2019-01-12,907
|
||||
2019-01-26,911
|
||||
2019-02-12,935
|
||||
2019-02-18,935
|
||||
2019-03-16,938
|
||||
2019-03-30,939
|
||||
2019-04-11,940
|
||||
2019-05-06,943
|
||||
2019-05-24,1174
|
||||
2019-06-11,1175
|
||||
2019-07-20,1142
|
||||
2019-08-09,1142
|
||||
2019-08-20,1143
|
||||
2019-08-28,1144
|
||||
2019-08-30,1145
|
||||
2019-08-30,1149
|
||||
2019-09-03,1150
|
||||
2019-09-10,1152
|
||||
2019-09-18,1157
|
||||
2019-09-22,1164
|
||||
2019-09-22,1165
|
||||
2019-10-09,1166
|
||||
2019-10-13,1167
|
||||
2019-10-29,1170
|
||||
2019-11-03,1171
|
||||
2019-11-15,1169
|
||||
2019-11-17,1170
|
||||
2019-11-19,1171
|
||||
2019-12-11,1187
|
||||
2019-12-20,1170
|
||||
2019-12-21,1149
|
||||
2019-12-21,1130
|
||||
2019-12-23,1132
|
||||
2019-12-23,1133
|
||||
2019-12-25,1134
|
||||
2020-01-06,1147
|
||||
2020-01-09,1150
|
||||
2020-01-10,1152
|
||||
2020-01-11,1154
|
||||
2020-01-11,1152
|
||||
2020-01-13,1155
|
||||
2020-01-14,1158
|
||||
2020-01-14,1188
|
||||
2020-01-14,1158
|
||||
2020-01-14,1158
|
||||
2020-01-15,1159
|
||||
2020-01-16,1162
|
||||
2020-01-16,1167
|
||||
2020-01-16,1168
|
||||
2020-01-16,1169
|
||||
2020-01-16,1171
|
||||
2020-01-16,1171
|
||||
2020-01-16,1171
|
||||
2020-01-19,1170
|
||||
2020-02-21,1172
|
||||
2020-02-21,1173
|
||||
2020-02-21,1172
|
||||
2020-03-02,1174
|
||||
2020-03-05,1176
|
||||
2020-03-10,1178
|
||||
2020-03-19,1174
|
||||
2020-03-24,1175
|
||||
2020-03-29,1176
|
||||
2020-03-29,1175
|
||||
2020-03-29,1176
|
||||
2020-03-31,1184
|
||||
2020-04-01,1187
|
||||
2020-04-01,1187
|
||||
2020-04-06,1188
|
||||
2020-04-06,1196
|
||||
2020-04-08,1196
|
||||
2020-04-10,1197
|
||||
2020-04-10,1198
|
||||
2020-04-10,1201
|
||||
2020-04-10,1202
|
||||
2020-04-11,1203
|
||||
2020-04-12,1206
|
||||
2020-04-16,1211
|
||||
2020-04-18,1233
|
||||
2020-04-18,1234
|
||||
2020-04-18,1237
|
||||
2020-04-18,1237
|
||||
2020-04-18,1237
|
||||
2020-04-20,1240
|
||||
2020-04-20,1243
|
||||
2020-04-22,1249
|
||||
2020-04-22,1250
|
||||
2020-04-27,1251
|
||||
2020-04-30,1253
|
||||
2020-04-30,1260
|
||||
2020-04-30,1261
|
||||
2020-05-02,1261
|
||||
2020-05-02,1262
|
||||
2020-05-02,1299
|
||||
2020-05-02,1301
|
||||
2020-05-02,1308
|
||||
2020-05-02,1309
|
||||
2020-05-03,1310
|
||||
2020-05-04,1327
|
||||
2020-05-05,1368
|
||||
2020-05-05,1368
|
||||
2020-05-09,1378
|
||||
2020-05-09,1490
|
||||
2020-05-08,1488
|
||||
2020-05-10,2356
|
||||
2020-05-09,2357
|
||||
2020-05-10,2753
|
||||
2020-05-11,2356
|
||||
2020-05-12,2752
|
||||
2020-05-13,2749
|
||||
2020-05-13,2750
|
||||
2020-05-13,2752
|
||||
2020-05-13,2750
|
||||
2020-05-15,2751
|
||||
2020-05-26,2752
|
||||
2020-06-06,2754
|
||||
2020-06-17,2755
|
||||
2020-06-24,2756
|
||||
2020-07-02,2757
|
||||
2020-07-02,2758
|
||||
2020-07-02,2758
|
||||
2020-07-04,2774
|
||||
2020-07-06,2782
|
||||
2020-07-08,2784
|
||||
2020-07-10,2787
|
||||
2020-07-10,2788
|
||||
2020-07-11,2789
|
||||
2020-07-12,2792
|
||||
2020-07-12,2804
|
||||
2020-07-13,2805
|
||||
2020-07-18,2823
|
||||
2020-07-18,2831
|
||||
2020-07-18,2832
|
||||
2020-07-18,2833
|
||||
2020-07-18,2906
|
||||
2020-07-18,2906
|
||||
2020-07-18,2903
|
||||
2020-07-23,2905
|
||||
2020-07-24,2906
|
||||
2020-07-30,2908
|
||||
2020-08-03,2910
|
||||
2020-08-03,2908
|
||||
2020-08-03,2907
|
||||
2020-08-04,2908
|
||||
2020-08-06,2909
|
||||
2020-08-10,2912
|
||||
2020-08-12,2914
|
||||
2020-08-12,2915
|
||||
2020-08-15,2916
|
||||
2020-08-15,2917
|
||||
2020-08-16,2920
|
||||
2020-08-17,2921
|
||||
2020-08-17,2923
|
||||
2020-08-24,2924
|
||||
2020-10-02,2926
|
||||
2020-10-19,2930
|
||||
2020-10-19,2926
|
||||
2020-10-20,2930
|
||||
2020-10-23,2937
|
||||
2020-11-01,2783
|
||||
2020-11-15,2806
|
||||
2020-11-16,2805
|
||||
2020-11-19,2806
|
||||
2020-11-22,2808
|
||||
2021-01-19,2809
|
||||
2021-01-19,2810
|
||||
2021-01-22,2811
|
||||
2021-01-22,2813
|
||||
2021-01-22,2813
|
||||
2021-01-23,2815
|
||||
2021-01-23,2818
|
||||
2021-01-23,3003
|
||||
2021-01-27,3005
|
||||
2021-01-27,3018
|
||||
2021-01-29,3016
|
||||
2021-02-02,3017
|
||||
2021-02-05,3021
|
||||
2021-02-09,3021
|
||||
2021-02-09,3022
|
||||
2021-02-26,3038
|
||||
2021-02-28,3039
|
||||
2021-03-15,3040
|
||||
2021-03-15,3043
|
||||
2021-04-02,3074
|
||||
2021-04-29,3078
|
||||
2021-05-04,3079
|
||||
2021-05-10,3107
|
||||
2021-05-10,3107
|
||||
2021-05-12,3108
|
||||
2021-05-22,3110
|
||||
2021-05-22,3119
|
||||
2021-05-25,3117
|
||||
2021-05-31,3134
|
||||
2021-06-03,1796
|
||||
2021-06-16,1798
|
||||
2021-06-16,1802
|
||||
2021-06-16,1803
|
||||
2021-06-16,1804
|
||||
2021-06-17,1812
|
||||
2021-06-22,1813
|
||||
2021-06-27,1814
|
||||
2021-06-28,1816
|
||||
2021-06-28,1816
|
||||
2021-06-30,1842
|
||||
2021-06-30,1844
|
||||
2021-07-29,1849
|
||||
2021-07-29,1849
|
||||
2021-07-29,1849
|
||||
2021-08-02,1865
|
||||
2021-08-08,1868
|
||||
2021-08-11,1869
|
||||
2021-09-17,1870
|
||||
2021-09-24,1871
|
||||
2021-10-02,1872
|
||||
2021-10-17,1874
|
||||
2021-10-19,1875
|
||||
2021-10-20,1874
|
||||
2021-10-24,1876
|
||||
2021-11-29,1877
|
||||
2021-12-13,1925
|
||||
2021-12-19,1926
|
||||
2021-12-19,1925
|
||||
2021-12-25,1927
|
||||
2021-12-30,1929
|
||||
2021-12-30,2113
|
||||
2021-12-30,2108
|
||||
2021-12-31,2110
|
||||
2022-01-02,2111
|
||||
2022-01-11,2112
|
||||
2022-01-12,2114
|
||||
2022-01-12,2115
|
||||
2022-01-12,2116
|
||||
2022-01-13,2117
|
||||
2022-01-30,2118
|
||||
2022-02-05,2120
|
||||
2022-02-09,2117
|
||||
2022-02-17,2118
|
||||
2022-02-28,2121
|
||||
2022-05-20,2124
|
||||
2022-06-21,2126
|
||||
2022-06-25,2127
|
||||
2022-06-28,2128
|
||||
2022-07-10,2131
|
||||
|
After Width: | Height: | Size: 31 KiB |
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"name": "Steven Black's ad-hoc list",
|
||||
"description": "Additional sketch domains as I come across them.",
|
||||
"homeurl": "https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts",
|
||||
"frequency": "occasionally",
|
||||
"issues": "https://github.com/StevenBlack/hosts/issues",
|
||||
"url": "https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts",
|
||||
"license": "MIT"
|
||||
"name": "Steven Black's ad-hoc list",
|
||||
"description": "Additional sketch domains as I come across them.",
|
||||
"homeurl": "https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts",
|
||||
"frequency": "occasionally",
|
||||
"issues": "https://github.com/StevenBlack/hosts/issues",
|
||||
"url": "https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts",
|
||||
"license": "MIT"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# Source domain history
|
||||
|
||||
This page is only occasionally refreshed.
|
||||
|
||||

|
||||
|
||||
The file `stats.out` in this folder contains raw data for this graph.
|
||||
@@ -0,0 +1,244 @@
|
||||
2020-03-14,814
|
||||
2020-03-14,1033
|
||||
2020-03-15,1113
|
||||
2020-03-18,1092
|
||||
2020-03-21,1022
|
||||
2020-03-25,1037
|
||||
2020-03-21,1037
|
||||
2020-03-28,1033
|
||||
2020-03-29,950
|
||||
2020-04-01,1010
|
||||
2020-04-03,990
|
||||
2020-04-04,904
|
||||
2020-04-06,912
|
||||
2020-04-09,964
|
||||
2020-04-10,947
|
||||
2020-04-11,939
|
||||
2020-04-13,861
|
||||
2020-04-16,922
|
||||
2020-04-18,881
|
||||
2020-04-22,946
|
||||
2020-04-26,818
|
||||
2020-04-28,891
|
||||
2020-05-02,927
|
||||
2020-05-05,846
|
||||
2020-05-05,869
|
||||
2020-05-12,779
|
||||
2020-05-13,838
|
||||
2020-05-13,843
|
||||
2020-05-15,847
|
||||
2020-05-20,808
|
||||
2020-05-26,900
|
||||
2020-05-27,836
|
||||
2020-06-02,955
|
||||
2020-06-09,964
|
||||
2020-06-16,1179
|
||||
2020-06-22,895
|
||||
2020-06-25,962
|
||||
2020-06-27,872
|
||||
2020-07-02,576
|
||||
2020-07-02,575
|
||||
2020-07-05,546
|
||||
2020-07-06,547
|
||||
2020-07-13,512
|
||||
2020-07-18,651
|
||||
2020-07-24,736
|
||||
2020-07-29,1576
|
||||
2020-08-01,1616
|
||||
2020-08-03,1124
|
||||
2020-08-06,1599
|
||||
2020-08-13,1888
|
||||
2020-08-14,1941
|
||||
2020-08-15,1876
|
||||
2020-08-17,1309
|
||||
2020-08-19,1893
|
||||
2020-08-25,1567
|
||||
2020-09-02,1675
|
||||
2020-09-07,1411
|
||||
2020-09-14,1609
|
||||
2020-09-20,1483
|
||||
2020-09-26,1612
|
||||
2020-10-03,1579
|
||||
2020-10-08,1130
|
||||
2020-10-13,1028
|
||||
2020-10-14,1242
|
||||
2020-10-19,1339
|
||||
2020-10-29,2341
|
||||
2020-11-01,1564
|
||||
2020-11-03,1376
|
||||
2020-11-08,901
|
||||
2020-11-10,1147
|
||||
2020-11-14,1083
|
||||
2020-11-15,1037
|
||||
2020-11-16,1005
|
||||
2020-11-19,984
|
||||
2020-11-22,896
|
||||
2020-11-25,993
|
||||
2020-11-28,866
|
||||
2020-12-02,873
|
||||
2020-12-09,1076
|
||||
2020-12-14,889
|
||||
2020-12-19,888
|
||||
2020-12-26,938
|
||||
2020-12-31,1246
|
||||
2021-01-02,1036
|
||||
2021-01-05,965
|
||||
2021-01-12,976
|
||||
2021-01-17,850
|
||||
2021-01-22,1179
|
||||
2021-01-22,1180
|
||||
2021-01-24,1106
|
||||
2021-01-31,959
|
||||
2021-02-02,1118
|
||||
2021-02-03,1152
|
||||
2021-02-08,961
|
||||
2021-02-09,1041
|
||||
2021-02-14,1028
|
||||
2021-02-16,982
|
||||
2021-02-21,1062
|
||||
2021-02-22,976
|
||||
2021-02-26,1018
|
||||
2021-02-28,967
|
||||
2021-03-06,1079
|
||||
2021-03-09,1132
|
||||
2021-03-10,1304
|
||||
2021-03-16,1131
|
||||
2021-03-21,971
|
||||
2021-03-28,1063
|
||||
2021-03-31,1352
|
||||
2021-04-04,1177
|
||||
2021-04-09,1158
|
||||
2021-04-13,1156
|
||||
2021-04-19,1259
|
||||
2021-04-24,1216
|
||||
2021-04-26,1216
|
||||
2021-04-26,1216
|
||||
2021-04-26,1006
|
||||
2021-04-27,1006
|
||||
2021-04-29,1430
|
||||
2021-05-01,1131
|
||||
2021-05-04,1131
|
||||
2021-05-05,1141
|
||||
2021-05-06,1118
|
||||
2021-05-06,1113
|
||||
2021-05-06,1112
|
||||
2021-05-12,1121
|
||||
2021-05-15,1168
|
||||
2021-05-17,1343
|
||||
2021-05-22,1702
|
||||
2021-05-25,1676
|
||||
2021-05-31,1237
|
||||
2021-06-07,1216
|
||||
2021-06-16,1022
|
||||
2021-06-22,1252
|
||||
2021-06-28,1106
|
||||
2021-07-01,1565
|
||||
2021-07-04,1701
|
||||
2021-07-13,1097
|
||||
2021-07-18,1061
|
||||
2021-07-19,1059
|
||||
2021-07-26,1008
|
||||
2021-07-29,1046
|
||||
2021-08-02,1003
|
||||
2021-08-09,1495
|
||||
2021-08-17,1370
|
||||
2021-08-20,1441
|
||||
2021-08-25,1130
|
||||
2021-08-26,1544
|
||||
2021-08-30,902
|
||||
2021-09-02,903
|
||||
2021-09-06,874
|
||||
2021-09-07,857
|
||||
2021-09-12,867
|
||||
2021-09-17,889
|
||||
2021-09-24,1455
|
||||
2021-09-30,939
|
||||
2021-09-30,952
|
||||
2021-10-03,910
|
||||
2021-10-05,1296
|
||||
2021-10-12,1192
|
||||
2021-10-14,1467
|
||||
2021-10-19,1507
|
||||
2021-10-23,1507
|
||||
2021-10-23,1507
|
||||
2021-10-27,1736
|
||||
2021-11-04,1305
|
||||
2021-11-11,1184
|
||||
2021-11-14,1195
|
||||
2021-11-17,941
|
||||
2021-11-21,1101
|
||||
2021-11-29,1064
|
||||
2021-11-29,1041
|
||||
2021-12-05,1489
|
||||
2021-12-09,1825
|
||||
2021-12-12,1506
|
||||
2021-12-13,1350
|
||||
2021-12-16,1386
|
||||
2021-12-19,1207
|
||||
2021-12-20,1470
|
||||
2021-12-25,2025
|
||||
2021-12-30,1375
|
||||
2021-12-30,1359
|
||||
2021-12-30,1353
|
||||
2022-01-02,1184
|
||||
2022-01-04,1137
|
||||
2022-01-07,1106
|
||||
2022-01-11,1416
|
||||
2022-01-18,1160
|
||||
2022-01-19,1429
|
||||
2022-01-21,1510
|
||||
2022-01-24,1096
|
||||
2022-01-28,1173
|
||||
2022-01-30,1040
|
||||
2022-01-31,1034
|
||||
2022-02-01,1186
|
||||
2022-02-07,1111
|
||||
2022-02-12,1051
|
||||
2022-02-13,1043
|
||||
2022-02-13,1035
|
||||
2022-02-17,968
|
||||
2022-02-22,1038
|
||||
2022-02-26,615
|
||||
2022-03-06,943
|
||||
2022-03-07,894
|
||||
2022-03-09,920
|
||||
2022-03-12,1017
|
||||
2022-03-14,1192
|
||||
2022-03-19,1156
|
||||
2022-03-24,1209
|
||||
2022-03-29,1306
|
||||
2022-03-31,1628
|
||||
2022-04-05,1129
|
||||
2022-04-09,1458
|
||||
2022-04-13,1118
|
||||
2022-04-18,1086
|
||||
2022-04-21,1384
|
||||
2022-04-25,1310
|
||||
2022-04-29,1543
|
||||
2022-05-03,1369
|
||||
2022-05-05,1778
|
||||
2022-05-10,1315
|
||||
2022-05-14,1217
|
||||
2022-05-19,1285
|
||||
2022-05-25,1141
|
||||
2022-05-29,1143
|
||||
2022-05-31,1137
|
||||
2022-06-02,1077
|
||||
2022-06-07,1045
|
||||
2022-06-09,1163
|
||||
2022-06-09,1164
|
||||
2022-06-16,1053
|
||||
2022-06-21,959
|
||||
2022-06-21,961
|
||||
2022-06-25,1327
|
||||
2022-06-29,1335
|
||||
2022-07-01,1292
|
||||
2022-07-04,1126
|
||||
2022-07-13,1099
|
||||
2022-07-16,1069
|
||||
2022-07-16,1058
|
||||
2022-07-18,1088
|
||||
2022-07-21,1060
|
||||
2022-07-23,854
|
||||
2022-07-25,829
|
||||
2022-07-29,814
|
||||
|
After Width: | Height: | Size: 37 KiB |
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"name": "URLHaus",
|
||||
"description": "A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.",
|
||||
"homeurl": "https://urlhaus.abuse.ch/",
|
||||
"frequency": "weekly",
|
||||
"issues": "mailto:contactme@abuse.ch",
|
||||
"url": "https://urlhaus.abuse.ch/downloads/hostfile/",
|
||||
"license": "CC0"
|
||||
"name": "URLHaus",
|
||||
"description": "A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.",
|
||||
"homeurl": "https://urlhaus.abuse.ch/",
|
||||
"frequency": "weekly",
|
||||
"issues": "mailto:contactme@abuse.ch",
|
||||
"url": "https://urlhaus.abuse.ch/downloads/hostfile/",
|
||||
"license": "CC0"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# Source domain history
|
||||
|
||||
This page is only occasionally refreshed.
|
||||
|
||||

|
||||
|
||||
The file `stats.out` in this folder contains raw data for this graph.
|
||||
@@ -0,0 +1,15 @@
|
||||
2016-08-29,34
|
||||
2016-09-29,34
|
||||
2016-12-09,34
|
||||
2016-12-10,34
|
||||
2016-12-11,34
|
||||
2016-12-20,34
|
||||
2017-01-05,34
|
||||
2017-07-26,17
|
||||
2017-10-24,17
|
||||
2017-10-25,17
|
||||
2018-01-10,11
|
||||
2018-03-30,11
|
||||
2018-07-16,10
|
||||
2020-04-18,10
|
||||
2021-07-19,9
|
||||
|
After Width: | Height: | Size: 31 KiB |