mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-09-25 22:05:28 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cd011f88f6 | ||
|
|
fda33828bd | ||
|
|
9cd1d30dec | ||
|
|
63fb683ca6 | ||
|
|
f974eb031a | ||
|
|
e0487c132b | ||
|
|
c2ceaa1721 | ||
|
|
567590f914 | ||
|
|
b933b7dc3f | ||
|
|
60daf1b4ea | ||
|
|
84a9a2fbe3 | ||
|
|
18b6f49b0c | ||
|
|
94dacdc288 | ||
|
|
9d8a4f0597 | ||
|
|
30128036d3 | ||
|
|
27213aebbd | ||
|
|
58ed572ba7 | ||
|
|
40c5d2806d | ||
|
|
4a6715f035 | ||
|
|
cc382ca70f | ||
|
|
b4b611e55a | ||
|
|
36ebe82fe0 | ||
|
|
628ef5ef74 | ||
|
|
708fc8ad43 | ||
|
|
b7f0f0a8aa | ||
|
|
143761d99b | ||
|
|
4f32220ea6 | ||
|
|
189e5b0551 | ||
|
|
037f143f2d | ||
|
|
122360c1c9 | ||
|
|
97766531df | ||
|
|
19302c4975 | ||
|
|
b813657131 | ||
|
|
13f9433284 | ||
|
|
560e40c1e5 | ||
|
|
8804c324a2 | ||
|
|
023eb7faa7 | ||
|
|
2b167dcce8 | ||
|
|
1d515c1de3 | ||
|
|
f87007cc61 | ||
|
|
0a022ab381 | ||
|
|
783764d0b4 | ||
|
|
227c83fbdf | ||
|
|
8c24637605 | ||
|
|
33823d682c | ||
|
|
e58b6f2cff | ||
|
|
c202dbda75 | ||
|
|
3753195d75 | ||
|
|
cdbcd45689 | ||
|
|
4dbe23da78 | ||
|
|
358526ed78 | ||
|
|
66a7f9b2c6 | ||
|
|
777ffdea9d | ||
|
|
65a12dcfa2 | ||
|
|
b7b29261db | ||
|
|
2b29fa67b5 | ||
|
|
5f5db225c9 | ||
|
|
71a7b2be4a | ||
|
|
d3c34ed854 | ||
|
|
4b1a939668 | ||
|
|
7971a0cbc9 | ||
|
|
261acf1dfa | ||
|
|
6e92030388 | ||
|
|
ab40f585ed | ||
|
|
8d805df2b2 | ||
|
|
0977726aa3 | ||
|
|
470308d391 | ||
|
|
8a6d3f49e3 | ||
|
|
385e7de3da | ||
|
|
54ccdaa119 | ||
|
|
22d1a77116 | ||
|
|
1dfd397901 | ||
|
|
76ea58a705 | ||
|
|
8bf7c52923 | ||
|
|
0d740f4f33 | ||
|
|
8f49b0667a | ||
|
|
f002fb33a3 | ||
|
|
e38b2f4ac7 | ||
|
|
81bd99cb19 | ||
|
|
f790da9067 | ||
|
|
82c18786de | ||
|
|
df10691d81 | ||
|
|
d2be343994 | ||
|
|
16070f1a77 | ||
|
|
c4df4ceb28 | ||
|
|
eff4dbe62e | ||
|
|
1485491816 | ||
|
|
99f3890c2f | ||
|
|
6aa31cb4ad | ||
|
|
b8c1ead93f | ||
|
|
d4fd41f558 | ||
|
|
23097a29af | ||
|
|
cbf8924292 | ||
|
|
5fe1f0c874 | ||
|
|
f4e7733873 | ||
|
|
3c38a5f666 | ||
|
|
f5790a9017 | ||
|
|
b1ab45ebdf | ||
|
|
3be28f5986 | ||
|
|
72fd592e61 | ||
|
|
6f0edd6767 | ||
|
|
b0edd803fc | ||
|
|
c6c6cb4463 | ||
|
|
fd783d4551 | ||
|
|
649034d269 | ||
|
|
cbeadb1e2b | ||
|
|
cba09a9cbf | ||
|
|
963c0def7e | ||
|
|
3f7e0b6b9a | ||
|
|
6f15c4a81a | ||
|
|
423cda56f0 | ||
|
|
26704e1b29 | ||
|
|
17915dc98e | ||
|
|
840ee7d5be | ||
|
|
6bf1f000d6 | ||
|
|
725f977d04 | ||
|
|
54be8d0be7 | ||
|
|
5a1b192fcd | ||
|
|
62d6b8c6cd | ||
|
|
3c50aed4ed | ||
|
|
7ac09a4f4d | ||
|
|
a4e722bf57 | ||
|
|
642e3d1b6a | ||
|
|
3418ef2cf3 | ||
|
|
69909796ec | ||
|
|
72233bbbec | ||
|
|
a946fb96c8 | ||
|
|
84e4dc1e0b | ||
|
|
5c38598d2d | ||
|
|
ee3bf86a36 | ||
|
|
e3505409a3 | ||
|
|
5a500b1f16 | ||
|
|
54a3d64743 | ||
|
|
140beebcb5 | ||
|
|
e1fbf7cd5f | ||
|
|
b384f3d324 | ||
|
|
82685dc144 | ||
|
|
46ff6ae276 | ||
|
|
90eb6858cb | ||
|
|
bfa3607c29 | ||
|
|
186c6aca5f | ||
|
|
b840587775 | ||
|
|
885d870134 | ||
|
|
91b65a8b79 | ||
|
|
db488f56f9 | ||
|
|
15ea6d0f6d | ||
|
|
0cee7eb988 | ||
|
|
0692e44515 | ||
|
|
69ea323cf6 | ||
|
|
a3abfc86d6 | ||
|
|
626711d2ba | ||
|
|
56f6051c2e | ||
|
|
1f52e1fd6e | ||
|
|
a204d5a1e9 | ||
|
|
f6d8977748 | ||
|
|
458804c51c | ||
|
|
2741273b20 | ||
|
|
38ab6803b0 | ||
|
|
575813f15f | ||
|
|
92ffe9fc14 | ||
|
|
b19a01ef73 | ||
|
|
bee8521bc6 | ||
|
|
5e4813cf9b | ||
|
|
69fa29ffaa | ||
|
|
5e6f3d86b6 | ||
|
|
b553a9f7fc | ||
|
|
2595829922 | ||
|
|
9b412a7cbf | ||
|
|
80b0ee1c4c | ||
|
|
1b62b56d99 | ||
|
|
aa377ddd14 | ||
|
|
dfb50bf3cf | ||
|
|
420113fb8d | ||
|
|
e1af4f45d9 | ||
|
|
f6a45ec8a2 | ||
|
|
7846075c25 | ||
|
|
5c614ca1d8 | ||
|
|
5c058ce332 | ||
|
|
ee8868cb65 | ||
|
|
d9273762bf | ||
|
|
88ca32af94 | ||
|
|
372c65f703 | ||
|
|
2e115c35d2 | ||
|
|
43ac279435 | ||
|
|
e200e600d5 | ||
|
|
de32eb3d33 | ||
|
|
af9cc115a9 | ||
|
|
ac175ae7ac | ||
|
|
048e83221b | ||
|
|
8d617d299e | ||
|
|
f6f5a6c6a6 | ||
|
|
91b00d9ff7 | ||
|
|
193c668aeb | ||
|
|
881fa64e6d | ||
|
|
b72648459c | ||
|
|
bc05e49afa | ||
|
|
e90044563d | ||
|
|
59d57e910d | ||
|
|
f109912442 | ||
|
|
833e3f8ef5 | ||
|
|
38abfff268 | ||
|
|
dea68fc51d | ||
|
|
c95763d3e1 | ||
|
|
422ce949c7 | ||
|
|
bc0b418251 | ||
|
|
b5da9af576 | ||
|
|
1cd35b6c75 | ||
|
|
b021448cfe | ||
|
|
079471f39a | ||
|
|
d8591c3294 | ||
|
|
d06c30d05f | ||
|
|
69a95807e4 | ||
|
|
e774b39101 | ||
|
|
750faf4b12 | ||
|
|
6547447448 | ||
|
|
babe52a977 | ||
|
|
9fcac05480 | ||
|
|
cce7894b3a | ||
|
|
aef9829fd7 | ||
|
|
e772566dc3 | ||
|
|
0d2f7da5d5 | ||
|
|
5a5016ab5b | ||
|
|
663fb2d434 | ||
|
|
586f4c2942 | ||
|
|
6faa4d8296 | ||
|
|
9876dde1c2 | ||
|
|
468ba5547a | ||
|
|
7c1365787b | ||
|
|
dccdf794a2 | ||
|
|
611c4a0bf7 | ||
|
|
6ebfc1ed2d | ||
|
|
32242792ba | ||
|
|
f60686d0ff | ||
|
|
dc595848b1 | ||
|
|
d06f3d2c1a | ||
|
|
9ae4f735ca | ||
|
|
f45e7e459a | ||
|
|
ea69ee1498 | ||
|
|
0060ef11a6 | ||
|
|
393b7c3bec | ||
|
|
a0e2e39a3f | ||
|
|
b350c68540 | ||
|
|
d85c96576a | ||
|
|
ad35681244 | ||
|
|
59ddd34d0e | ||
|
|
1019c6ae00 | ||
|
|
099954eb46 | ||
|
|
942aaae90c | ||
|
|
06483cca1d | ||
|
|
26b2ab9e5a | ||
|
|
083db6955e | ||
|
|
556545a612 | ||
|
|
b8c4dfdcc6 | ||
|
|
edb9eed554 | ||
|
|
9b8cce7b99 | ||
|
|
5c2a30d57f | ||
|
|
7823133745 | ||
|
|
aa9da1ee0d | ||
|
|
9380fe534e | ||
|
|
beca76acfe | ||
|
|
4fefecf2e3 | ||
|
|
44f41c317b | ||
|
|
4c8cab12ef | ||
|
|
140c0bd29e | ||
|
|
2814997df5 | ||
|
|
b40e703f52 | ||
|
|
79bd7d4122 | ||
|
|
5186071948 | ||
|
|
5340f9adfe | ||
|
|
bdaf8e8c50 | ||
|
|
31e3085a4c | ||
|
|
7fd3ef6213 | ||
|
|
fe3a74b6b3 | ||
|
|
a4e7c902ed | ||
|
|
da8c70744e | ||
|
|
37154d3b4f | ||
|
|
cc50ac4c5a | ||
|
|
e041213cc5 | ||
|
|
20056218db | ||
|
|
4892cf350e | ||
|
|
588fa4b1d5 | ||
|
|
30764ced55 | ||
|
|
539433a68e | ||
|
|
8796eff357 | ||
|
|
8a1908114f | ||
|
|
44273a5867 | ||
|
|
5fb6263090 | ||
|
|
24f7482fc6 | ||
|
|
ab1bbe7b53 | ||
|
|
2583decb40 | ||
|
|
6a85b83444 | ||
|
|
051689c5ea | ||
|
|
0f72470ae6 | ||
|
|
7e7e3954c0 | ||
|
|
275562c6f9 | ||
|
|
af409a9c15 | ||
|
|
b548b13d89 | ||
|
|
3d06f890b4 | ||
|
|
a1d34bdcc3 | ||
|
|
11cff28668 | ||
|
|
e95c816691 | ||
|
|
a4ff58d4cb | ||
|
|
06a7cd5876 | ||
|
|
9af02df877 | ||
|
|
a7d60624bf | ||
|
|
917579a7f4 | ||
|
|
9adfcd4ea4 | ||
|
|
1531b62139 | ||
|
|
3788f5845f | ||
|
|
178ea64f2d | ||
|
|
6940b842e7 | ||
|
|
8b4c837d59 | ||
|
|
58b36a7e01 | ||
|
|
d14541971b | ||
|
|
fdd7e3f34a | ||
|
|
bfe24eb87b | ||
|
|
5cf23a4cc3 | ||
|
|
337e5ada28 | ||
|
|
55f05d275c | ||
|
|
84fc36e3b8 | ||
|
|
3cbdc64998 | ||
|
|
afce9ec8f5 | ||
|
|
0f0465919a | ||
|
|
ca3a99a049 | ||
|
|
bdab2fbf78 | ||
|
|
f11b0c6cb3 | ||
|
|
a09e408c8a | ||
|
|
323174e45d | ||
|
|
2abefc7cfa | ||
|
|
abf763e9a0 | ||
|
|
b8b067b6ab | ||
|
|
c756858a1b | ||
|
|
82791b30c4 | ||
|
|
aea2e921b5 | ||
|
|
de3a3d9cb9 | ||
|
|
4f93a59b8b | ||
|
|
c9986cc960 | ||
|
|
f26168194b | ||
|
|
0a96dcad34 | ||
|
|
0f727b8bed | ||
|
|
12ee4e0218 | ||
|
|
be57b6208b | ||
|
|
aa5637dc7f | ||
|
|
bc8e4c92b8 | ||
|
|
bb1b8e81ae | ||
|
|
9e3db93d92 | ||
|
|
43fe30181b | ||
|
|
c2ebad946e | ||
|
|
73479bc632 | ||
|
|
ddafbadaf6 | ||
|
|
cf92814f1d | ||
|
|
a9a4aa2fe7 | ||
|
|
a907bc6477 | ||
|
|
6337998706 | ||
|
|
fd5fd3f05d | ||
|
|
6906938b48 | ||
|
|
5bab40d686 | ||
|
|
ad45f75de2 | ||
|
|
7fcfacf7d0 | ||
|
|
32fe8e0862 | ||
|
|
541841e8c6 | ||
|
|
8847a730e6 | ||
|
|
719cc0b086 | ||
|
|
490e4f835c | ||
|
|
fab5809c97 | ||
|
|
ddb8a61788 | ||
|
|
85112c9a48 | ||
|
|
dc68f96f8a | ||
|
|
a59f18a380 | ||
|
|
7ec3533725 | ||
|
|
4e2796aaa9 | ||
|
|
c7537d2b45 | ||
|
|
9a8b5df4f7 | ||
|
|
de675b71a9 | ||
|
|
6283d54d41 | ||
|
|
d9f031fd46 | ||
|
|
71dbcebe52 | ||
|
|
3fea881296 | ||
|
|
c92151d237 | ||
|
|
eb4d002f13 | ||
|
|
2565d15719 | ||
|
|
15df541200 | ||
|
|
5798b17132 | ||
|
|
6a216bf28d | ||
|
|
4fe6a30cc1 | ||
|
|
e9fdfc5445 | ||
|
|
308fce3413 | ||
|
|
8bc7172637 | ||
|
|
d6fc6efd04 | ||
|
|
40f4a1a695 | ||
|
|
00eb68b4fc | ||
|
|
6bdacd7936 | ||
|
|
a2008b78f9 | ||
|
|
3e06d4b8b5 | ||
|
|
a468781125 | ||
|
|
d232ef9a0c | ||
|
|
877814eb22 | ||
|
|
a4f21ffe18 | ||
|
|
2aa2903d92 | ||
|
|
c72ec82aca | ||
|
|
805f50b2a0 | ||
|
|
3a36077486 | ||
|
|
7181a06681 | ||
|
|
85564f8ccd | ||
|
|
2f9b11bae7 | ||
|
|
f9657f924c | ||
|
|
f72248b745 | ||
|
|
e2a23e8d10 | ||
|
|
b0e1d2b8a0 | ||
|
|
4d4ede2a23 | ||
|
|
87faa578be | ||
|
|
9ef031ba4a | ||
|
|
f217546d30 | ||
|
|
376ff41cf3 | ||
|
|
fcf74d2903 | ||
|
|
525f77236c | ||
|
|
45af8fd56b | ||
|
|
1fd99387e4 | ||
|
|
b24947d77a | ||
|
|
9328098363 | ||
|
|
990766f5ba | ||
|
|
0bd364f096 | ||
|
|
9edf42d819 | ||
|
|
ac44b4444c | ||
|
|
8dcbf8a3c2 | ||
|
|
52a04335a8 | ||
|
|
8bb05550be | ||
|
|
e0f3bfd2de | ||
|
|
f47fafedaa | ||
|
|
4164564b2c | ||
|
|
0224b74a6e | ||
|
|
ea73c698ad | ||
|
|
2cdc7cd5f9 | ||
|
|
c8f10f9ffa | ||
|
|
0be07583d5 | ||
|
|
547cf2161a | ||
|
|
7a82c707cd | ||
|
|
2b27276629 | ||
|
|
b2f128872c | ||
|
|
0d1a3e00e7 | ||
|
|
6709f769e4 | ||
|
|
454b3c2afa | ||
|
|
a32b5d82bf | ||
|
|
f3fbfd2079 | ||
|
|
e7721d35a8 | ||
|
|
652992750e | ||
|
|
6e0dbd6447 | ||
|
|
0cc3163dda | ||
|
|
47f9a28b81 | ||
|
|
3ab6d9d5e8 | ||
|
|
d002c5783e | ||
|
|
6c4268bdc7 | ||
|
|
79f628a09f | ||
|
|
0d35158c6c | ||
|
|
ec5723b926 | ||
|
|
bdcb4954e9 | ||
|
|
125d7c8745 | ||
|
|
5d8275411c | ||
|
|
96a84da45f | ||
|
|
5a0a1b53b3 | ||
|
|
4923194ff4 | ||
|
|
cd50dbb0d0 | ||
|
|
a3d8d83913 | ||
|
|
68c9d2f6b1 | ||
|
|
d7f8d5ef35 | ||
|
|
b40aa38ee6 | ||
|
|
ef6cff0702 | ||
|
|
e7c0ef495e | ||
|
|
f5358fd0b4 | ||
|
|
e2ce21ba3e | ||
|
|
68419f063d | ||
|
|
8d00a38425 | ||
|
|
15e433e5c3 | ||
|
|
564141c3a5 | ||
|
|
dd7904dcc8 | ||
|
|
665dc98191 | ||
|
|
6548b1af25 | ||
|
|
0c9ec0732d | ||
|
|
546a6587cb | ||
|
|
2e9fb614d5 | ||
|
|
2a742e7f99 | ||
|
|
cd426b4d8e | ||
|
|
7b00af4d07 | ||
|
|
5b25845933 | ||
|
|
ee37f38580 | ||
|
|
7cb8c82481 | ||
|
|
58d1cfc3b3 | ||
|
|
daf16c7eba | ||
|
|
05d4b42737 | ||
|
|
c34d990cf1 | ||
|
|
6004c65c41 | ||
|
|
6e71030b58 | ||
|
|
e84761d17d | ||
|
|
dcb32b0b1e | ||
|
|
a63fa1291b | ||
|
|
1a2e8765cc | ||
|
|
4aa8b65cc2 | ||
|
|
dd2d878e95 | ||
|
|
a2ab99d9b1 | ||
|
|
b655a57e76 | ||
|
|
6cc5d83fed | ||
|
|
832138b4bc | ||
|
|
3ea9dc7ca9 | ||
|
|
b91104aa64 | ||
|
|
f058719a56 | ||
|
|
3b7c7caa52 | ||
|
|
f5c028779c | ||
|
|
d281b49b9f | ||
|
|
de2de429c8 | ||
|
|
3e749f1f37 | ||
|
|
e091bcc185 | ||
|
|
b87c81f796 | ||
|
|
da2c5f86f2 | ||
|
|
8801e184d5 | ||
|
|
f3464b98bf | ||
|
|
3768103c1e | ||
|
|
0581b133b1 | ||
|
|
c6b54e9674 | ||
|
|
7dd582dac3 | ||
|
|
cac15b1c11 | ||
|
|
37bc3821f8 | ||
|
|
9c1b8b2579 | ||
|
|
aec3738838 | ||
|
|
787022fea2 | ||
|
|
4c3aa77895 | ||
|
|
699b52e1bd | ||
|
|
2d696a42d9 | ||
|
|
303a3eb63d | ||
|
|
8419c7cb56 | ||
|
|
95da11c2d3 | ||
|
|
6c5308a92f | ||
|
|
44504685f5 | ||
|
|
481524e849 | ||
|
|
5a8c104023 | ||
|
|
e8f9cfb833 | ||
|
|
ecd59a8aee | ||
|
|
86f27260f8 | ||
|
|
0868f11cf4 | ||
|
|
b4ac80f491 | ||
|
|
f4217f54d2 | ||
|
|
fb47b15121 | ||
|
|
50e37931a5 | ||
|
|
69bd6da5d4 | ||
|
|
3762f12d64 | ||
|
|
71f87691fa | ||
|
|
0dad81fced | ||
|
|
bb30e9367a | ||
|
|
18b1a7ae36 | ||
|
|
e1ea57fab7 | ||
|
|
51347c84a9 | ||
|
|
dc048b7d87 | ||
|
|
53754cf017 | ||
|
|
3d195b7da0 | ||
|
|
07050e6774 | ||
|
|
d63e22f8e3 | ||
|
|
7392ab26a7 | ||
|
|
bb24ec90c2 | ||
|
|
128cdc7c4f | ||
|
|
330cc4bdf4 | ||
|
|
7c1d988db6 | ||
|
|
fa17160860 | ||
|
|
b5ae218593 | ||
|
|
cedd97ed11 | ||
|
|
4c36cad8eb | ||
|
|
892f9f639d | ||
|
|
bae9bb27c0 | ||
|
|
f288ebc9ee | ||
|
|
72c82e9987 | ||
|
|
3be1bbdacb | ||
|
|
24d5d87e56 | ||
|
|
0ae9ef22b2 | ||
|
|
0e6e9f4aae | ||
|
|
d23ef9dadb | ||
|
|
67bbfe06d2 | ||
|
|
ce1459cff1 | ||
|
|
577b19b17d | ||
|
|
c4f7ea82ad | ||
|
|
445cf92073 | ||
|
|
6480c7f3c9 | ||
|
|
b4c50be4b5 | ||
|
|
aeefd4838d | ||
|
|
de7e2d186e | ||
|
|
4d295cc30f | ||
|
|
3511bd57ed | ||
|
|
aa4168a313 | ||
|
|
928bc0ba1e | ||
|
|
52efcaabf7 | ||
|
|
a81b2155f2 | ||
|
|
ff62ac2288 | ||
|
|
99aaaf9378 | ||
|
|
caae4085c8 | ||
|
|
86aa507aed | ||
|
|
ed59b5fc72 | ||
|
|
f994498593 | ||
|
|
2d597faf21 | ||
|
|
be6615ac3d | ||
|
|
4c3ca55a6d | ||
|
|
c429bcdfb0 | ||
|
|
bab0187cd4 | ||
|
|
1e3894c6e8 | ||
|
|
e168909d11 | ||
|
|
55fb6636b3 | ||
|
|
4e01a50017 | ||
|
|
aa4a0f7a46 | ||
|
|
f30182731f | ||
|
|
3abea87f37 | ||
|
|
6fae74b406 | ||
|
|
dc51c546be | ||
|
|
8a5ab54b17 | ||
|
|
f0ffddd599 | ||
|
|
76b41424a3 | ||
|
|
3798e0f8fe | ||
|
|
29e7c3ac14 | ||
|
|
4ac118ce0d | ||
|
|
b539172b6e | ||
|
|
556065e524 | ||
|
|
ba5559a38f | ||
|
|
7a19862cce | ||
|
|
d3a026bf34 | ||
|
|
f22d7bc3f0 | ||
|
|
e1ad037314 | ||
|
|
229b3593cf | ||
|
|
59ce889ff0 | ||
|
|
214dd955c2 | ||
|
|
2950600108 | ||
|
|
df0ea73da2 | ||
|
|
fefb67406f | ||
|
|
995c091d11 | ||
|
|
ba4b580892 | ||
|
|
d2566110ff | ||
|
|
98f6421f44 | ||
|
|
fa7e930926 | ||
|
|
0612199777 | ||
|
|
68239c2993 | ||
|
|
b0559fd56d | ||
|
|
036c903bd2 | ||
|
|
162d5cc9ce | ||
|
|
fc3ebbdabc | ||
|
|
47a15217b4 | ||
|
|
3f25b2bea6 | ||
|
|
5e39445218 | ||
|
|
97b203c246 | ||
|
|
6a3fb81ed5 | ||
|
|
5ca737de61 | ||
|
|
bc0970ba83 | ||
|
|
fc34070988 | ||
|
|
814fb8853b | ||
|
|
228fbf3f04 | ||
|
|
e50b5b88fb | ||
|
|
3ec743468a | ||
|
|
d9c9d7b983 | ||
|
|
df712804d8 | ||
|
|
c7acc198b4 | ||
|
|
f7de5e0acc | ||
|
|
43eaa7f5b7 | ||
|
|
a8477304ca | ||
|
|
0b94fa32fd | ||
|
|
5285aca0b4 | ||
|
|
5173494fdf | ||
|
|
8a1f2ff6da | ||
|
|
4d66186a70 | ||
|
|
a58d488376 | ||
|
|
79a3cb8651 | ||
|
|
6ed0e90e11 | ||
|
|
304cf3dfb5 | ||
|
|
a1c37790a3 | ||
|
|
8030d574b4 | ||
|
|
76d5fcfb50 | ||
|
|
b52b7e5704 | ||
|
|
f2533d1b59 | ||
|
|
84e62b4191 | ||
|
|
9f83708110 | ||
|
|
9c92190b31 | ||
|
|
71b0759a1d | ||
|
|
07741bb32c | ||
|
|
432edcf4b2 | ||
|
|
4fa04707f2 | ||
|
|
7460a11664 | ||
|
|
78e2c456db | ||
|
|
45eb2ea7f3 | ||
|
|
a0199a3dbe | ||
|
|
da2ef77f41 | ||
|
|
b59ef0ed55 | ||
|
|
1cd07101ce | ||
|
|
4368050e1a | ||
|
|
68d5c44164 | ||
|
|
1dd69415b8 | ||
|
|
94d47a1bca | ||
|
|
ef1e9fa8ad | ||
|
|
4af802374f | ||
|
|
cb0b365a5f | ||
|
|
014164e80e | ||
|
|
f0b543ebc6 | ||
|
|
089e55c5cd | ||
|
|
5c407067b1 | ||
|
|
dc6b16cb37 | ||
|
|
ae4e66b45e | ||
|
|
c966db058c | ||
|
|
e9eed28417 | ||
|
|
42846e4fe9 | ||
|
|
9126d65d05 | ||
|
|
c5159684dc | ||
|
|
30d71ef9b1 | ||
|
|
92f2ec27c3 | ||
|
|
7804fb2c68 | ||
|
|
baca30169e | ||
|
|
20d752f921 | ||
|
|
a134843ffe | ||
|
|
dd1170dec9 | ||
|
|
011c020641 | ||
|
|
6ddfffa055 | ||
|
|
3ba08aa3c8 | ||
|
|
2859530366 | ||
|
|
839b561b70 | ||
|
|
a114531dc1 | ||
|
|
da8e556071 | ||
|
|
f7f9178579 | ||
|
|
976fe60864 | ||
|
|
3d8e5510dc | ||
|
|
0d4c7b800a | ||
|
|
1011b0166f | ||
|
|
ab87ad9dd7 | ||
|
|
fe003c81fa | ||
|
|
470f79847f | ||
|
|
8544e91514 | ||
|
|
abf39a5d28 | ||
|
|
f143df691f | ||
|
|
1af37f633f | ||
|
|
b4c15c09a4 | ||
|
|
a19791fd4a | ||
|
|
d0654c9b00 | ||
|
|
5fdd5c802a | ||
|
|
d7472887b2 | ||
|
|
0aa67e7a7a | ||
|
|
518185c029 | ||
|
|
c9d95dbcc4 | ||
|
|
3f29c27a9c | ||
|
|
63687132bc | ||
|
|
2c886af8ff | ||
|
|
90da818f5c | ||
|
|
97c4b48778 | ||
|
|
d55678a632 | ||
|
|
3d5f78cefc | ||
|
|
669b4e50dd | ||
|
|
48009cbe2b | ||
|
|
18fb716945 |
@@ -6,6 +6,9 @@ trim_trailing_whitespace = true
|
||||
indent_size = 4
|
||||
end_of_line = LF
|
||||
|
||||
[*.bat]
|
||||
end_of_line = CRLF
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
insert_final_newline = true
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
# Enforce Unix newlines for all files
|
||||
* text=auto eol=lf
|
||||
# Enforce Windows newlines for .bat files
|
||||
*.bat text eol=crlf
|
||||
+1
-1
@@ -16,6 +16,6 @@ newPRWelcomeComment: >
|
||||
|
||||
# Comment to be posted to on pull requests merged by a first time user
|
||||
firstPRMergeComment: >
|
||||
Congratulations on merging your first pull request! 🎉🎉🎉
|
||||
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!
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
@@ -0,0 +1,20 @@
|
||||
# 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.
|
||||
@@ -0,0 +1,56 @@
|
||||
name: CI
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python:
|
||||
- 3.5
|
||||
- 3.6
|
||||
- 3.7
|
||||
- 3.8
|
||||
- 3.9
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- macos-latest
|
||||
- windows-latest
|
||||
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python }}
|
||||
|
||||
- run: python --version
|
||||
- run: pip --version
|
||||
|
||||
- name: Get pip cache directory
|
||||
id: pip-cache
|
||||
run: |
|
||||
echo "::set-output name=dir::$(pip cache dir)"
|
||||
|
||||
- name: Cache dependencies
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ${{ steps.pip-cache.outputs.dir }}
|
||||
key: ${{ runner.os }}-python-v${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-python-v${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}
|
||||
${{ runner.os }}-python-v${{ matrix.python }}-
|
||||
|
||||
- name: Install Python dependencies
|
||||
run: pip install -r requirements.txt
|
||||
|
||||
- name: Run lint
|
||||
run: flake8
|
||||
|
||||
- name: Run tests
|
||||
run: python testUpdateHostsFile.py
|
||||
@@ -0,0 +1,62 @@
|
||||
# For most projects, this workflow file will not need changing; you simply need
|
||||
# to commit it to your repository.
|
||||
#
|
||||
# You may wish to alter this file to override the set of languages analyzed,
|
||||
# or to provide custom queries or build logic.
|
||||
|
||||
name: "CodeQL"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: [master]
|
||||
schedule:
|
||||
- cron: "40 15 * * 4"
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
language: ['python']
|
||||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
||||
# Learn more...
|
||||
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v1
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
# By default, queries listed here will override any specified in a config file.
|
||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v1
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
|
||||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||||
# and modify them (or add more) to build your code if your project
|
||||
# uses a compiled language
|
||||
|
||||
#- run: |
|
||||
# make bootstrap
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v1
|
||||
+1
-5
@@ -8,10 +8,6 @@
|
||||
"release": true
|
||||
},
|
||||
"npm": {
|
||||
"publish": false,
|
||||
"publishPath": ".",
|
||||
"tag": "latest",
|
||||
"private": false,
|
||||
"access": null
|
||||
"publish": false
|
||||
}
|
||||
}
|
||||
|
||||
-36
@@ -1,36 +0,0 @@
|
||||
notifications:
|
||||
email: false
|
||||
|
||||
language: generic
|
||||
|
||||
sudo: false
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/miniconda3
|
||||
|
||||
before_cache:
|
||||
- rm -rf $HOME/miniconda3/pkgs/cache
|
||||
- rm -rf $HOME/miniconda3/envs/hosts
|
||||
- rm -rf $HOME/miniconda3/conda-meta/history
|
||||
- touch $HOME/miniconda3/conda-meta/history
|
||||
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
|
||||
env:
|
||||
- PYTHON_VERSION="3.5"
|
||||
- PYTHON_VERSION="3.6"
|
||||
- PYTHON_VERSION="3.7"
|
||||
|
||||
before_install:
|
||||
- export PATH="$HOME/miniconda3/bin:$PATH"
|
||||
|
||||
install:
|
||||
- ci/install_conda.sh
|
||||
- ci/setup_conda_env.sh
|
||||
|
||||
script:
|
||||
- ci/test.sh
|
||||
- ci/lint.sh
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
FROM python:3
|
||||
|
||||
WORKDIR /usr/src
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
RUN git clone --depth 1 https://github.com/StevenBlack/hosts.git
|
||||
WORKDIR /usr/src/hosts
|
||||
|
||||
# Now you launch this with
|
||||
# $ docker build ./
|
||||
# $ docker run -it (containerid) bash
|
||||
+97266
-41114
File diff suppressed because it is too large
Load Diff
@@ -1,14 +1,16 @@
|
||||
----
|
||||
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
**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://travis-ci.org/StevenBlack/hosts)
|
||||
[](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)
|
||||
@@ -19,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **November 01 2019**.
|
||||
* Here's the [raw hosts file with fakenews, gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) containing 63,026 entries.
|
||||
* Last updated: **May 12 2021**.
|
||||
* 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 114,522 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
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) | 42,999 | [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) | 43,941 | [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) | 45,271 | [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) | 57,338 | [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) | 45,474 | [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) | 46,213 | [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) | 58,280 | [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) | 46,416 | [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) | 59,610 | [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) | 47,746 | [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) | 59,812 | [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) | 60,552 | [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) | 48,688 | [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) | 60,754 | [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) | 62,084 | [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) | 63,026 | [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) | 80,994 | [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) | 83,189 | [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) | 83,375 | [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) | 107,142 | [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) | 83,799 | [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) | 85,570 | [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) | 109,337 | [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) | 85,994 | [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) | 109,523 | [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) | 86,180 | [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) | 109,946 | [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) | 111,718 | [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) | 88,375 | [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) | 112,141 | [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) | 112,327 | [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) | 114,522 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -62,65 +63,95 @@ included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | 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. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | 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. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
## 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 wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
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`.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
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
|
||||
|
||||
To generate your own unified hosts file you will need Python 3.5 or later.
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
|
||||
First install the dependencies with:
|
||||
### Option 1: Generate in a Docker container
|
||||
|
||||
pip3 install --user -r requirements.txt
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container 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 like this:
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 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).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
### Common steps regardless of your development environment.
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
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.
|
||||
|
||||
### Usage
|
||||
|
||||
#### Using Python 3:
|
||||
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
|
||||
@@ -162,6 +193,11 @@ in a subfolder. If the subfolder does not exist, it will be created.
|
||||
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.
|
||||
|
||||
`--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
|
||||
@@ -172,9 +208,32 @@ 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.
|
||||
|
||||
#### Using 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.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
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
|
||||
@@ -184,10 +243,10 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
* 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?
|
||||
|
||||
@@ -208,7 +267,7 @@ The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
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.
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
@@ -218,20 +277,18 @@ If you discover sketchy domains you feel should be included here, here are some
|
||||
|
||||
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: add your domains to Steven Black's personal data file
|
||||
### 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 and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
### 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
|
||||
@@ -247,94 +304,98 @@ and other irritants.
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
# 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...
|
||||
|
||||
```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.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
## 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.
|
||||
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**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
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
(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
|
||||
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 in order for this to work, you must be connected to the internet.
|
||||
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 XP**: Start → Run → `cmd`
|
||||
|
||||
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
|
||||
**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 ->
|
||||
**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 ->
|
||||
**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.cmd)
|
||||
for more details.
|
||||
|
||||
## 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
|
||||
:-----------------------------------------------------------------------------------------
|
||||
| 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
|
||||
```
|
||||
|
||||
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
|
||||
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```
|
||||
sc config "Dnscache" start= disabled
|
||||
sc stop "Dnscache"
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
@@ -357,30 +418,31 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### Mac OS X
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
```
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This 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.
|
||||
|
||||
@@ -390,7 +452,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -401,34 +463,34 @@ 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.
|
||||
|
||||
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
|
||||
is **not** included here because it is very large (780,000+ entries)
|
||||
and doesn't currently display a corresponding high level of curation activity.
|
||||
|
||||
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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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
|
||||
|
||||
* [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.
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the GitHub repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
* [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.
|
||||
* [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.
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This GitHub gist has a short shell script (bash, will work on any 'nix) and uses `wget` & `awk` present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports IPv4 and IPv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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.
|
||||
|
||||
## Contribute!
|
||||
|
||||
|
||||
+96925
-41108
File diff suppressed because it is too large
Load Diff
@@ -1,14 +1,16 @@
|
||||
----
|
||||
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
**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://travis-ci.org/StevenBlack/hosts)
|
||||
[](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)
|
||||
@@ -19,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **November 01 2019**.
|
||||
* Here's the [raw hosts file with fakenews, gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) containing 60,552 entries.
|
||||
* Last updated: **May 12 2021**.
|
||||
* Here's the [raw hosts file with fakenews, gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) containing 111,718 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
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) | 42,999 | [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) | 43,941 | [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) | 45,271 | [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) | 57,338 | [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) | 45,474 | [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) | 46,213 | [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) | 58,280 | [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) | 46,416 | [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) | 59,610 | [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) | 47,746 | [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) | 59,812 | [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) | 60,552 | [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) | 48,688 | [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) | 60,754 | [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) | 62,084 | [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) | 63,026 | [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) | 80,994 | [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) | 83,189 | [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) | 83,375 | [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) | 107,142 | [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) | 83,799 | [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) | 85,570 | [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) | 109,337 | [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) | 85,994 | [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) | 109,523 | [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) | 86,180 | [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) | 109,946 | [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) | 111,718 | [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) | 88,375 | [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) | 112,141 | [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) | 112,327 | [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) | 114,522 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -62,63 +63,93 @@ included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | 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. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | 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. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
## 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 wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
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`.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
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
|
||||
|
||||
To generate your own unified hosts file you will need Python 3.5 or later.
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
|
||||
First install the dependencies with:
|
||||
### Option 1: Generate in a Docker container
|
||||
|
||||
pip3 install --user -r requirements.txt
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container 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 like this:
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 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).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
### Common steps regardless of your development environment.
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
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.
|
||||
|
||||
### Usage
|
||||
|
||||
#### Using Python 3:
|
||||
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
|
||||
@@ -160,6 +191,11 @@ in a subfolder. If the subfolder does not exist, it will be created.
|
||||
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.
|
||||
|
||||
`--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
|
||||
@@ -170,9 +206,32 @@ 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.
|
||||
|
||||
#### Using 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.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
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
|
||||
@@ -182,10 +241,10 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
* 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?
|
||||
|
||||
@@ -206,7 +265,7 @@ The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
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.
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
@@ -216,20 +275,18 @@ If you discover sketchy domains you feel should be included here, here are some
|
||||
|
||||
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: add your domains to Steven Black's personal data file
|
||||
### 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 and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
### 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
|
||||
@@ -245,94 +302,98 @@ and other irritants.
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
# 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...
|
||||
|
||||
```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.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
## 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.
|
||||
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**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
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
(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
|
||||
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 in order for this to work, you must be connected to the internet.
|
||||
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 XP**: Start → Run → `cmd`
|
||||
|
||||
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
|
||||
**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 ->
|
||||
**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 ->
|
||||
**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.cmd)
|
||||
for more details.
|
||||
|
||||
## 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
|
||||
:-----------------------------------------------------------------------------------------
|
||||
| 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
|
||||
```
|
||||
|
||||
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
|
||||
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```
|
||||
sc config "Dnscache" start= disabled
|
||||
sc stop "Dnscache"
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
@@ -355,30 +416,31 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### Mac OS X
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
```
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This 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.
|
||||
|
||||
@@ -388,7 +450,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -399,34 +461,34 @@ 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.
|
||||
|
||||
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
|
||||
is **not** included here because it is very large (780,000+ entries)
|
||||
and doesn't currently display a corresponding high level of curation activity.
|
||||
|
||||
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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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
|
||||
|
||||
* [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.
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the GitHub repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
* [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.
|
||||
* [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.
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This GitHub gist has a short shell script (bash, will work on any 'nix) and uses `wget` & `awk` present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports IPv4 and IPv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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.
|
||||
|
||||
## Contribute!
|
||||
|
||||
|
||||
+79118
-34802
File diff suppressed because it is too large
Load Diff
@@ -1,14 +1,16 @@
|
||||
----
|
||||
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
**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://travis-ci.org/StevenBlack/hosts)
|
||||
[](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)
|
||||
@@ -19,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **November 01 2019**.
|
||||
* Here's the [raw hosts file with fakenews, gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) containing 48,688 entries.
|
||||
* Last updated: **May 12 2021**.
|
||||
* Here's the [raw hosts file with fakenews, gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) containing 88,375 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
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) | 42,999 | [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) | 43,941 | [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) | 45,271 | [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) | 57,338 | [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) | 45,474 | [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) | 46,213 | [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) | 58,280 | [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) | 46,416 | [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) | 59,610 | [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) | 47,746 | [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) | 59,812 | [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) | 60,552 | [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) | 48,688 | [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) | 60,754 | [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) | 62,084 | [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) | 63,026 | [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) | 80,994 | [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) | 83,189 | [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) | 83,375 | [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) | 107,142 | [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) | 83,799 | [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) | 85,570 | [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) | 109,337 | [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) | 85,994 | [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) | 109,523 | [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) | 86,180 | [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) | 109,946 | [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) | 111,718 | [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) | 88,375 | [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) | 112,141 | [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) | 112,327 | [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) | 114,522 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -62,61 +63,91 @@ included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
## 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 wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
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`.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
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
|
||||
|
||||
To generate your own unified hosts file you will need Python 3.5 or later.
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
|
||||
First install the dependencies with:
|
||||
### Option 1: Generate in a Docker container
|
||||
|
||||
pip3 install --user -r requirements.txt
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container 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 like this:
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 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).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
### Common steps regardless of your development environment.
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
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.
|
||||
|
||||
### Usage
|
||||
|
||||
#### Using Python 3:
|
||||
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
|
||||
@@ -158,6 +189,11 @@ in a subfolder. If the subfolder does not exist, it will be created.
|
||||
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.
|
||||
|
||||
`--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
|
||||
@@ -168,9 +204,32 @@ 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.
|
||||
|
||||
#### Using 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.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
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
|
||||
@@ -180,10 +239,10 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
* 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?
|
||||
|
||||
@@ -204,7 +263,7 @@ The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
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.
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
@@ -214,20 +273,18 @@ If you discover sketchy domains you feel should be included here, here are some
|
||||
|
||||
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: add your domains to Steven Black's personal data file
|
||||
### 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 and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
### 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
|
||||
@@ -243,94 +300,98 @@ and other irritants.
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
# 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...
|
||||
|
||||
```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.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
## 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.
|
||||
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**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
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
(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
|
||||
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 in order for this to work, you must be connected to the internet.
|
||||
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 XP**: Start → Run → `cmd`
|
||||
|
||||
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
|
||||
**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 ->
|
||||
**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 ->
|
||||
**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.cmd)
|
||||
for more details.
|
||||
|
||||
## 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
|
||||
:-----------------------------------------------------------------------------------------
|
||||
| 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
|
||||
```
|
||||
|
||||
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
|
||||
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```
|
||||
sc config "Dnscache" start= disabled
|
||||
sc stop "Dnscache"
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
@@ -353,30 +414,31 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### Mac OS X
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
```
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This 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.
|
||||
|
||||
@@ -386,7 +448,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -397,34 +459,34 @@ 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.
|
||||
|
||||
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
|
||||
is **not** included here because it is very large (780,000+ entries)
|
||||
and doesn't currently display a corresponding high level of curation activity.
|
||||
|
||||
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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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
|
||||
|
||||
* [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.
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the GitHub repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
* [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.
|
||||
* [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.
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This GitHub gist has a short shell script (bash, will work on any 'nix) and uses `wget` & `awk` present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports IPv4 and IPv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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.
|
||||
|
||||
## Contribute!
|
||||
|
||||
|
||||
+78777
-34796
File diff suppressed because it is too large
Load Diff
@@ -1,14 +1,16 @@
|
||||
----
|
||||
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
**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://travis-ci.org/StevenBlack/hosts)
|
||||
[](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)
|
||||
@@ -19,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **November 01 2019**.
|
||||
* Here's the [raw hosts file with fakenews, gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) containing 46,213 entries.
|
||||
* Last updated: **May 12 2021**.
|
||||
* Here's the [raw hosts file with fakenews, gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) containing 85,570 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
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) | 42,999 | [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) | 43,941 | [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) | 45,271 | [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) | 57,338 | [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) | 45,474 | [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) | 46,213 | [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) | 58,280 | [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) | 46,416 | [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) | 59,610 | [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) | 47,746 | [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) | 59,812 | [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) | 60,552 | [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) | 48,688 | [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) | 60,754 | [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) | 62,084 | [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) | 63,026 | [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) | 80,994 | [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) | 83,189 | [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) | 83,375 | [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) | 107,142 | [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) | 83,799 | [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) | 85,570 | [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) | 109,337 | [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) | 85,994 | [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) | 109,523 | [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) | 86,180 | [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) | 109,946 | [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) | 111,718 | [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) | 88,375 | [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) | 112,141 | [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) | 112,327 | [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) | 114,522 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -62,59 +63,89 @@ included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
|
||||
|
||||
## 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 wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
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`.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
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
|
||||
|
||||
To generate your own unified hosts file you will need Python 3.5 or later.
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
|
||||
First install the dependencies with:
|
||||
### Option 1: Generate in a Docker container
|
||||
|
||||
pip3 install --user -r requirements.txt
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container 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 like this:
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 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).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
### Common steps regardless of your development environment.
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
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.
|
||||
|
||||
### Usage
|
||||
|
||||
#### Using Python 3:
|
||||
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
|
||||
@@ -156,6 +187,11 @@ in a subfolder. If the subfolder does not exist, it will be created.
|
||||
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.
|
||||
|
||||
`--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
|
||||
@@ -166,9 +202,32 @@ 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.
|
||||
|
||||
#### Using 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.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
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
|
||||
@@ -178,10 +237,10 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
* 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?
|
||||
|
||||
@@ -202,7 +261,7 @@ The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
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.
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
@@ -212,20 +271,18 @@ If you discover sketchy domains you feel should be included here, here are some
|
||||
|
||||
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: add your domains to Steven Black's personal data file
|
||||
### 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 and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
### 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
|
||||
@@ -241,94 +298,98 @@ and other irritants.
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
# 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...
|
||||
|
||||
```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.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
## 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.
|
||||
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**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
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
(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
|
||||
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 in order for this to work, you must be connected to the internet.
|
||||
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 XP**: Start → Run → `cmd`
|
||||
|
||||
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
|
||||
**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 ->
|
||||
**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 ->
|
||||
**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.cmd)
|
||||
for more details.
|
||||
|
||||
## 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
|
||||
:-----------------------------------------------------------------------------------------
|
||||
| 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
|
||||
```
|
||||
|
||||
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
|
||||
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```
|
||||
sc config "Dnscache" start= disabled
|
||||
sc stop "Dnscache"
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
@@ -351,30 +412,31 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### Mac OS X
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
```
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This 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.
|
||||
|
||||
@@ -384,7 +446,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -395,34 +457,34 @@ 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.
|
||||
|
||||
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
|
||||
is **not** included here because it is very large (780,000+ entries)
|
||||
and doesn't currently display a corresponding high level of curation activity.
|
||||
|
||||
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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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
|
||||
|
||||
* [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.
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the GitHub repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
* [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.
|
||||
* [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.
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This GitHub gist has a short shell script (bash, will work on any 'nix) and uses `wget` & `awk` present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports IPv4 and IPv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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.
|
||||
|
||||
## Contribute!
|
||||
|
||||
|
||||
+95301
-39254
File diff suppressed because it is too large
Load Diff
@@ -1,14 +1,16 @@
|
||||
----
|
||||
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
**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://travis-ci.org/StevenBlack/hosts)
|
||||
[](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)
|
||||
@@ -19,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **November 01 2019**.
|
||||
* Here's the [raw hosts file with fakenews, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) containing 60,754 entries.
|
||||
* Last updated: **May 12 2021**.
|
||||
* Here's the [raw hosts file with fakenews, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) containing 112,141 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
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) | 42,999 | [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) | 43,941 | [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) | 45,271 | [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) | 57,338 | [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) | 45,474 | [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) | 46,213 | [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) | 58,280 | [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) | 46,416 | [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) | 59,610 | [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) | 47,746 | [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) | 59,812 | [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) | 60,552 | [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) | 48,688 | [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) | 60,754 | [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) | 62,084 | [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) | 63,026 | [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) | 80,994 | [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) | 83,189 | [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) | 83,375 | [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) | 107,142 | [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) | 83,799 | [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) | 85,570 | [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) | 109,337 | [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) | 85,994 | [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) | 109,523 | [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) | 86,180 | [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) | 109,946 | [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) | 111,718 | [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) | 88,375 | [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) | 112,141 | [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) | 112,327 | [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) | 114,522 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -62,64 +63,94 @@ included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | 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. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | 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. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
## 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 wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
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`.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
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
|
||||
|
||||
To generate your own unified hosts file you will need Python 3.5 or later.
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
|
||||
First install the dependencies with:
|
||||
### Option 1: Generate in a Docker container
|
||||
|
||||
pip3 install --user -r requirements.txt
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container 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 like this:
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 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).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
### Common steps regardless of your development environment.
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
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.
|
||||
|
||||
### Usage
|
||||
|
||||
#### Using Python 3:
|
||||
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
|
||||
@@ -161,6 +192,11 @@ in a subfolder. If the subfolder does not exist, it will be created.
|
||||
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.
|
||||
|
||||
`--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
|
||||
@@ -171,9 +207,32 @@ 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.
|
||||
|
||||
#### Using 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.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
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
|
||||
@@ -183,10 +242,10 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
* 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?
|
||||
|
||||
@@ -207,7 +266,7 @@ The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
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.
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
@@ -217,20 +276,18 @@ If you discover sketchy domains you feel should be included here, here are some
|
||||
|
||||
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: add your domains to Steven Black's personal data file
|
||||
### 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 and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
### 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
|
||||
@@ -246,94 +303,98 @@ and other irritants.
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
# 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...
|
||||
|
||||
```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.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
## 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.
|
||||
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**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
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
(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
|
||||
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 in order for this to work, you must be connected to the internet.
|
||||
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 XP**: Start → Run → `cmd`
|
||||
|
||||
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
|
||||
**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 ->
|
||||
**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 ->
|
||||
**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.cmd)
|
||||
for more details.
|
||||
|
||||
## 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
|
||||
:-----------------------------------------------------------------------------------------
|
||||
| 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
|
||||
```
|
||||
|
||||
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
|
||||
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```
|
||||
sc config "Dnscache" start= disabled
|
||||
sc stop "Dnscache"
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
@@ -356,30 +417,31 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### Mac OS X
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
```
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This 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.
|
||||
|
||||
@@ -389,7 +451,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -400,34 +462,34 @@ 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.
|
||||
|
||||
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
|
||||
is **not** included here because it is very large (780,000+ entries)
|
||||
and doesn't currently display a corresponding high level of curation activity.
|
||||
|
||||
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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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
|
||||
|
||||
* [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.
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the GitHub repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
* [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.
|
||||
* [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.
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This GitHub gist has a short shell script (bash, will work on any 'nix) and uses `wget` & `awk` present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports IPv4 and IPv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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.
|
||||
|
||||
## Contribute!
|
||||
|
||||
|
||||
+94960
-39248
File diff suppressed because it is too large
Load Diff
+188
-126
@@ -1,14 +1,16 @@
|
||||
----
|
||||
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
**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://travis-ci.org/StevenBlack/hosts)
|
||||
[](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)
|
||||
@@ -19,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **November 01 2019**.
|
||||
* Here's the [raw hosts file with fakenews, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) containing 58,280 entries.
|
||||
* Last updated: **May 12 2021**.
|
||||
* Here's the [raw hosts file with fakenews, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) containing 109,337 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
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) | 42,999 | [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) | 43,941 | [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) | 45,271 | [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) | 57,338 | [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) | 45,474 | [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) | 46,213 | [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) | 58,280 | [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) | 46,416 | [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) | 59,610 | [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) | 47,746 | [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) | 59,812 | [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) | 60,552 | [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) | 48,688 | [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) | 60,754 | [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) | 62,084 | [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) | 63,026 | [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) | 80,994 | [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) | 83,189 | [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) | 83,375 | [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) | 107,142 | [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) | 83,799 | [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) | 85,570 | [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) | 109,337 | [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) | 85,994 | [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) | 109,523 | [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) | 86,180 | [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) | 109,946 | [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) | 111,718 | [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) | 88,375 | [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) | 112,141 | [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) | 112,327 | [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) | 114,522 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -62,62 +63,92 @@ included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | 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. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | 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. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
## 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 wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
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`.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
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
|
||||
|
||||
To generate your own unified hosts file you will need Python 3.5 or later.
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
|
||||
First install the dependencies with:
|
||||
### Option 1: Generate in a Docker container
|
||||
|
||||
pip3 install --user -r requirements.txt
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container 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 like this:
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 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).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
### Common steps regardless of your development environment.
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
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.
|
||||
|
||||
### Usage
|
||||
|
||||
#### Using Python 3:
|
||||
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
|
||||
@@ -159,6 +190,11 @@ in a subfolder. If the subfolder does not exist, it will be created.
|
||||
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.
|
||||
|
||||
`--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
|
||||
@@ -169,9 +205,32 @@ 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.
|
||||
|
||||
#### Using 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.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
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
|
||||
@@ -181,10 +240,10 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
* 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?
|
||||
|
||||
@@ -205,7 +264,7 @@ The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
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.
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
@@ -215,20 +274,18 @@ If you discover sketchy domains you feel should be included here, here are some
|
||||
|
||||
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: add your domains to Steven Black's personal data file
|
||||
### 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 and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
### 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
|
||||
@@ -244,94 +301,98 @@ and other irritants.
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
# 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...
|
||||
|
||||
```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.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
## 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.
|
||||
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**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
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
(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
|
||||
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 in order for this to work, you must be connected to the internet.
|
||||
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 XP**: Start → Run → `cmd`
|
||||
|
||||
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
|
||||
**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 ->
|
||||
**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 ->
|
||||
**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.cmd)
|
||||
for more details.
|
||||
|
||||
## 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
|
||||
:-----------------------------------------------------------------------------------------
|
||||
| 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
|
||||
```
|
||||
|
||||
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
|
||||
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```
|
||||
sc config "Dnscache" start= disabled
|
||||
sc stop "Dnscache"
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
@@ -354,30 +415,31 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### Mac OS X
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
```
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This 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.
|
||||
|
||||
@@ -387,7 +449,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -398,34 +460,34 @@ 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.
|
||||
|
||||
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
|
||||
is **not** included here because it is very large (780,000+ entries)
|
||||
and doesn't currently display a corresponding high level of curation activity.
|
||||
|
||||
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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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
|
||||
|
||||
* [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.
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the GitHub repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
* [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.
|
||||
* [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.
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This GitHub gist has a short shell script (bash, will work on any 'nix) and uses `wget` & `awk` present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports IPv4 and IPv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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.
|
||||
|
||||
## Contribute!
|
||||
|
||||
|
||||
+77153
-32942
File diff suppressed because it is too large
Load Diff
@@ -1,14 +1,16 @@
|
||||
----
|
||||
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
**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://travis-ci.org/StevenBlack/hosts)
|
||||
[](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)
|
||||
@@ -19,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **November 01 2019**.
|
||||
* Here's the [raw hosts file with fakenews, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) containing 46,416 entries.
|
||||
* Last updated: **May 12 2021**.
|
||||
* Here's the [raw hosts file with fakenews, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) containing 85,994 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
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) | 42,999 | [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) | 43,941 | [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) | 45,271 | [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) | 57,338 | [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) | 45,474 | [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) | 46,213 | [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) | 58,280 | [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) | 46,416 | [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) | 59,610 | [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) | 47,746 | [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) | 59,812 | [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) | 60,552 | [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) | 48,688 | [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) | 60,754 | [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) | 62,084 | [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) | 63,026 | [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) | 80,994 | [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) | 83,189 | [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) | 83,375 | [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) | 107,142 | [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) | 83,799 | [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) | 85,570 | [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) | 109,337 | [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) | 85,994 | [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) | 109,523 | [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) | 86,180 | [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) | 109,946 | [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) | 111,718 | [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) | 88,375 | [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) | 112,141 | [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) | 112,327 | [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) | 114,522 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -62,60 +63,90 @@ included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
## 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 wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
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`.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
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
|
||||
|
||||
To generate your own unified hosts file you will need Python 3.5 or later.
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
|
||||
First install the dependencies with:
|
||||
### Option 1: Generate in a Docker container
|
||||
|
||||
pip3 install --user -r requirements.txt
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container 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 like this:
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 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).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
### Common steps regardless of your development environment.
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
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.
|
||||
|
||||
### Usage
|
||||
|
||||
#### Using Python 3:
|
||||
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
|
||||
@@ -157,6 +188,11 @@ in a subfolder. If the subfolder does not exist, it will be created.
|
||||
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.
|
||||
|
||||
`--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
|
||||
@@ -167,9 +203,32 @@ 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.
|
||||
|
||||
#### Using 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.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
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
|
||||
@@ -179,10 +238,10 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
* 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?
|
||||
|
||||
@@ -203,7 +262,7 @@ The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
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.
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
@@ -213,20 +272,18 @@ If you discover sketchy domains you feel should be included here, here are some
|
||||
|
||||
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: add your domains to Steven Black's personal data file
|
||||
### 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 and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
### 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
|
||||
@@ -242,94 +299,98 @@ and other irritants.
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
# 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...
|
||||
|
||||
```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.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
## 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.
|
||||
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**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
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
(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
|
||||
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 in order for this to work, you must be connected to the internet.
|
||||
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 XP**: Start → Run → `cmd`
|
||||
|
||||
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
|
||||
**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 ->
|
||||
**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 ->
|
||||
**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.cmd)
|
||||
for more details.
|
||||
|
||||
## 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
|
||||
:-----------------------------------------------------------------------------------------
|
||||
| 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
|
||||
```
|
||||
|
||||
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
|
||||
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```
|
||||
sc config "Dnscache" start= disabled
|
||||
sc stop "Dnscache"
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
@@ -352,30 +413,31 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### Mac OS X
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
```
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This 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.
|
||||
|
||||
@@ -385,7 +447,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -396,34 +458,34 @@ 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.
|
||||
|
||||
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
|
||||
is **not** included here because it is very large (780,000+ entries)
|
||||
and doesn't currently display a corresponding high level of curation activity.
|
||||
|
||||
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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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
|
||||
|
||||
* [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.
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the GitHub repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
* [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.
|
||||
* [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.
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This GitHub gist has a short shell script (bash, will work on any 'nix) and uses `wget` & `awk` present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports IPv4 and IPv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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.
|
||||
|
||||
## Contribute!
|
||||
|
||||
|
||||
+76812
-32936
File diff suppressed because it is too large
Load Diff
+184
-122
@@ -1,14 +1,16 @@
|
||||
----
|
||||
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
**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://travis-ci.org/StevenBlack/hosts)
|
||||
[](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)
|
||||
@@ -19,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **November 01 2019**.
|
||||
* Here's the [raw hosts file with fakenews extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) containing 43,941 entries.
|
||||
* Last updated: **May 12 2021**.
|
||||
* Here's the [raw hosts file with fakenews extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) containing 83,189 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
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) | 42,999 | [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) | 43,941 | [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) | 45,271 | [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) | 57,338 | [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) | 45,474 | [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) | 46,213 | [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) | 58,280 | [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) | 46,416 | [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) | 59,610 | [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) | 47,746 | [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) | 59,812 | [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) | 60,552 | [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) | 48,688 | [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) | 60,754 | [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) | 62,084 | [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) | 63,026 | [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) | 80,994 | [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) | 83,189 | [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) | 83,375 | [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) | 107,142 | [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) | 83,799 | [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) | 85,570 | [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) | 109,337 | [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) | 85,994 | [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) | 109,523 | [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) | 86,180 | [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) | 109,946 | [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) | 111,718 | [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) | 88,375 | [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) | 112,141 | [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) | 112,327 | [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) | 114,522 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -62,58 +63,88 @@ included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
|
||||
|
||||
## 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 wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
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`.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
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
|
||||
|
||||
To generate your own unified hosts file you will need Python 3.5 or later.
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
|
||||
First install the dependencies with:
|
||||
### Option 1: Generate in a Docker container
|
||||
|
||||
pip3 install --user -r requirements.txt
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container 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 like this:
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 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).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
### Common steps regardless of your development environment.
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
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.
|
||||
|
||||
### Usage
|
||||
|
||||
#### Using Python 3:
|
||||
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
|
||||
@@ -155,6 +186,11 @@ in a subfolder. If the subfolder does not exist, it will be created.
|
||||
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.
|
||||
|
||||
`--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
|
||||
@@ -165,9 +201,32 @@ 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.
|
||||
|
||||
#### Using 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.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
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
|
||||
@@ -177,10 +236,10 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
* 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?
|
||||
|
||||
@@ -201,7 +260,7 @@ The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
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.
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
@@ -211,20 +270,18 @@ If you discover sketchy domains you feel should be included here, here are some
|
||||
|
||||
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: add your domains to Steven Black's personal data file
|
||||
### 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 and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
### 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
|
||||
@@ -240,94 +297,98 @@ and other irritants.
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
# 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...
|
||||
|
||||
```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.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
## 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.
|
||||
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**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
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
(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
|
||||
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 in order for this to work, you must be connected to the internet.
|
||||
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 XP**: Start → Run → `cmd`
|
||||
|
||||
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
|
||||
**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 ->
|
||||
**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 ->
|
||||
**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.cmd)
|
||||
for more details.
|
||||
|
||||
## 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
|
||||
:-----------------------------------------------------------------------------------------
|
||||
| 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
|
||||
```
|
||||
|
||||
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
|
||||
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```
|
||||
sc config "Dnscache" start= disabled
|
||||
sc stop "Dnscache"
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
@@ -350,30 +411,31 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### Mac OS X
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
```
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This 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.
|
||||
|
||||
@@ -383,7 +445,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -394,34 +456,34 @@ 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.
|
||||
|
||||
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
|
||||
is **not** included here because it is very large (780,000+ entries)
|
||||
and doesn't currently display a corresponding high level of curation activity.
|
||||
|
||||
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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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
|
||||
|
||||
* [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.
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the GitHub repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
* [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.
|
||||
* [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.
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This GitHub gist has a short shell script (bash, will work on any 'nix) and uses `wget` & `awk` present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports IPv4 and IPv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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.
|
||||
|
||||
## Contribute!
|
||||
|
||||
|
||||
+96013
-41114
File diff suppressed because it is too large
Load Diff
@@ -1,14 +1,16 @@
|
||||
----
|
||||
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
**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://travis-ci.org/StevenBlack/hosts)
|
||||
[](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)
|
||||
@@ -19,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **November 01 2019**.
|
||||
* Here's the [raw hosts file with gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) containing 62,084 entries.
|
||||
* Last updated: **May 12 2021**.
|
||||
* Here's the [raw hosts file with gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) containing 112,327 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
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) | 42,999 | [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) | 43,941 | [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) | 45,271 | [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) | 57,338 | [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) | 45,474 | [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) | 46,213 | [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) | 58,280 | [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) | 46,416 | [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) | 59,610 | [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) | 47,746 | [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) | 59,812 | [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) | 60,552 | [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) | 48,688 | [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) | 60,754 | [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) | 62,084 | [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) | 63,026 | [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) | 80,994 | [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) | 83,189 | [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) | 83,375 | [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) | 107,142 | [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) | 83,799 | [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) | 85,570 | [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) | 109,337 | [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) | 85,994 | [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) | 109,523 | [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) | 86,180 | [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) | 109,946 | [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) | 111,718 | [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) | 88,375 | [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) | 112,141 | [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) | 112,327 | [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) | 114,522 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -62,64 +63,94 @@ included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | 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. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | 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. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
## 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 wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
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`.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
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
|
||||
|
||||
To generate your own unified hosts file you will need Python 3.5 or later.
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
|
||||
First install the dependencies with:
|
||||
### Option 1: Generate in a Docker container
|
||||
|
||||
pip3 install --user -r requirements.txt
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container 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 like this:
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 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).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
### Common steps regardless of your development environment.
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
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.
|
||||
|
||||
### Usage
|
||||
|
||||
#### Using Python 3:
|
||||
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
|
||||
@@ -161,6 +192,11 @@ in a subfolder. If the subfolder does not exist, it will be created.
|
||||
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.
|
||||
|
||||
`--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
|
||||
@@ -171,9 +207,32 @@ 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.
|
||||
|
||||
#### Using 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.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
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
|
||||
@@ -183,10 +242,10 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
* 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?
|
||||
|
||||
@@ -207,7 +266,7 @@ The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
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.
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
@@ -217,20 +276,18 @@ If you discover sketchy domains you feel should be included here, here are some
|
||||
|
||||
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: add your domains to Steven Black's personal data file
|
||||
### 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 and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
### 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
|
||||
@@ -246,94 +303,98 @@ and other irritants.
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
# 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...
|
||||
|
||||
```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.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
## 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.
|
||||
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**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
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
(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
|
||||
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 in order for this to work, you must be connected to the internet.
|
||||
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 XP**: Start → Run → `cmd`
|
||||
|
||||
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
|
||||
**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 ->
|
||||
**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 ->
|
||||
**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.cmd)
|
||||
for more details.
|
||||
|
||||
## 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
|
||||
:-----------------------------------------------------------------------------------------
|
||||
| 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
|
||||
```
|
||||
|
||||
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
|
||||
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```
|
||||
sc config "Dnscache" start= disabled
|
||||
sc stop "Dnscache"
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
@@ -356,30 +417,31 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### Mac OS X
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
```
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This 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.
|
||||
|
||||
@@ -389,7 +451,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -400,34 +462,34 @@ 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.
|
||||
|
||||
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
|
||||
is **not** included here because it is very large (780,000+ entries)
|
||||
and doesn't currently display a corresponding high level of curation activity.
|
||||
|
||||
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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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
|
||||
|
||||
* [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.
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the GitHub repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
* [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.
|
||||
* [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.
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This GitHub gist has a short shell script (bash, will work on any 'nix) and uses `wget` & `awk` present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports IPv4 and IPv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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.
|
||||
|
||||
## Contribute!
|
||||
|
||||
|
||||
+95672
-41108
File diff suppressed because it is too large
Load Diff
+188
-126
@@ -1,14 +1,16 @@
|
||||
----
|
||||
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
**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://travis-ci.org/StevenBlack/hosts)
|
||||
[](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)
|
||||
@@ -19,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **November 01 2019**.
|
||||
* Here's the [raw hosts file with gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) containing 59,610 entries.
|
||||
* Last updated: **May 12 2021**.
|
||||
* Here's the [raw hosts file with gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) containing 109,523 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
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) | 42,999 | [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) | 43,941 | [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) | 45,271 | [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) | 57,338 | [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) | 45,474 | [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) | 46,213 | [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) | 58,280 | [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) | 46,416 | [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) | 59,610 | [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) | 47,746 | [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) | 59,812 | [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) | 60,552 | [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) | 48,688 | [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) | 60,754 | [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) | 62,084 | [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) | 63,026 | [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) | 80,994 | [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) | 83,189 | [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) | 83,375 | [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) | 107,142 | [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) | 83,799 | [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) | 85,570 | [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) | 109,337 | [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) | 85,994 | [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) | 109,523 | [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) | 86,180 | [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) | 109,946 | [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) | 111,718 | [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) | 88,375 | [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) | 112,141 | [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) | 112,327 | [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) | 114,522 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -62,62 +63,92 @@ included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | 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. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | 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. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
## 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 wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
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`.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
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
|
||||
|
||||
To generate your own unified hosts file you will need Python 3.5 or later.
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
|
||||
First install the dependencies with:
|
||||
### Option 1: Generate in a Docker container
|
||||
|
||||
pip3 install --user -r requirements.txt
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container 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 like this:
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 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).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
### Common steps regardless of your development environment.
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
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.
|
||||
|
||||
### Usage
|
||||
|
||||
#### Using Python 3:
|
||||
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
|
||||
@@ -159,6 +190,11 @@ in a subfolder. If the subfolder does not exist, it will be created.
|
||||
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.
|
||||
|
||||
`--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
|
||||
@@ -169,9 +205,32 @@ 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.
|
||||
|
||||
#### Using 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.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
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
|
||||
@@ -181,10 +240,10 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
* 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?
|
||||
|
||||
@@ -205,7 +264,7 @@ The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
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.
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
@@ -215,20 +274,18 @@ If you discover sketchy domains you feel should be included here, here are some
|
||||
|
||||
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: add your domains to Steven Black's personal data file
|
||||
### 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 and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
### 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
|
||||
@@ -244,94 +301,98 @@ and other irritants.
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
# 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...
|
||||
|
||||
```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.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
## 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.
|
||||
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**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
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
(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
|
||||
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 in order for this to work, you must be connected to the internet.
|
||||
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 XP**: Start → Run → `cmd`
|
||||
|
||||
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
|
||||
**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 ->
|
||||
**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 ->
|
||||
**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.cmd)
|
||||
for more details.
|
||||
|
||||
## 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
|
||||
:-----------------------------------------------------------------------------------------
|
||||
| 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
|
||||
```
|
||||
|
||||
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
|
||||
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```
|
||||
sc config "Dnscache" start= disabled
|
||||
sc stop "Dnscache"
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
@@ -354,30 +415,31 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### Mac OS X
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
```
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This 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.
|
||||
|
||||
@@ -387,7 +449,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -398,34 +460,34 @@ 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.
|
||||
|
||||
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
|
||||
is **not** included here because it is very large (780,000+ entries)
|
||||
and doesn't currently display a corresponding high level of curation activity.
|
||||
|
||||
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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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
|
||||
|
||||
* [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.
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the GitHub repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
* [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.
|
||||
* [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.
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This GitHub gist has a short shell script (bash, will work on any 'nix) and uses `wget` & `awk` present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports IPv4 and IPv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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.
|
||||
|
||||
## Contribute!
|
||||
|
||||
|
||||
+77865
-34802
File diff suppressed because it is too large
Load Diff
@@ -1,14 +1,16 @@
|
||||
----
|
||||
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
**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://travis-ci.org/StevenBlack/hosts)
|
||||
[](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)
|
||||
@@ -19,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **November 01 2019**.
|
||||
* Here's the [raw hosts file with gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) containing 47,746 entries.
|
||||
* Last updated: **May 12 2021**.
|
||||
* Here's the [raw hosts file with gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) containing 86,180 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
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) | 42,999 | [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) | 43,941 | [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) | 45,271 | [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) | 57,338 | [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) | 45,474 | [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) | 46,213 | [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) | 58,280 | [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) | 46,416 | [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) | 59,610 | [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) | 47,746 | [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) | 59,812 | [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) | 60,552 | [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) | 48,688 | [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) | 60,754 | [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) | 62,084 | [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) | 63,026 | [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) | 80,994 | [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) | 83,189 | [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) | 83,375 | [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) | 107,142 | [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) | 83,799 | [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) | 85,570 | [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) | 109,337 | [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) | 85,994 | [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) | 109,523 | [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) | 86,180 | [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) | 109,946 | [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) | 111,718 | [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) | 88,375 | [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) | 112,141 | [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) | 112,327 | [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) | 114,522 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -62,60 +63,90 @@ included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
## 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 wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
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`.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
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
|
||||
|
||||
To generate your own unified hosts file you will need Python 3.5 or later.
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
|
||||
First install the dependencies with:
|
||||
### Option 1: Generate in a Docker container
|
||||
|
||||
pip3 install --user -r requirements.txt
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container 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 like this:
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 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).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
### Common steps regardless of your development environment.
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
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.
|
||||
|
||||
### Usage
|
||||
|
||||
#### Using Python 3:
|
||||
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
|
||||
@@ -157,6 +188,11 @@ in a subfolder. If the subfolder does not exist, it will be created.
|
||||
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.
|
||||
|
||||
`--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
|
||||
@@ -167,9 +203,32 @@ 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.
|
||||
|
||||
#### Using 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.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
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
|
||||
@@ -179,10 +238,10 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
* 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?
|
||||
|
||||
@@ -203,7 +262,7 @@ The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
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.
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
@@ -213,20 +272,18 @@ If you discover sketchy domains you feel should be included here, here are some
|
||||
|
||||
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: add your domains to Steven Black's personal data file
|
||||
### 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 and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
### 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
|
||||
@@ -242,94 +299,98 @@ and other irritants.
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
# 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...
|
||||
|
||||
```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.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
## 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.
|
||||
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**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
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
(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
|
||||
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 in order for this to work, you must be connected to the internet.
|
||||
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 XP**: Start → Run → `cmd`
|
||||
|
||||
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
|
||||
**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 ->
|
||||
**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 ->
|
||||
**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.cmd)
|
||||
for more details.
|
||||
|
||||
## 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
|
||||
:-----------------------------------------------------------------------------------------
|
||||
| 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
|
||||
```
|
||||
|
||||
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
|
||||
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```
|
||||
sc config "Dnscache" start= disabled
|
||||
sc stop "Dnscache"
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
@@ -352,30 +413,31 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### Mac OS X
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
```
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This 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.
|
||||
|
||||
@@ -385,7 +447,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -396,34 +458,34 @@ 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.
|
||||
|
||||
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
|
||||
is **not** included here because it is very large (780,000+ entries)
|
||||
and doesn't currently display a corresponding high level of curation activity.
|
||||
|
||||
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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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
|
||||
|
||||
* [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.
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the GitHub repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
* [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.
|
||||
* [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.
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This GitHub gist has a short shell script (bash, will work on any 'nix) and uses `wget` & `awk` present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports IPv4 and IPv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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.
|
||||
|
||||
## Contribute!
|
||||
|
||||
|
||||
+77524
-34796
File diff suppressed because it is too large
Load Diff
+184
-122
@@ -1,14 +1,16 @@
|
||||
----
|
||||
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
**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://travis-ci.org/StevenBlack/hosts)
|
||||
[](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)
|
||||
@@ -19,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **November 01 2019**.
|
||||
* Here's the [raw hosts file with gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) containing 45,271 entries.
|
||||
* Last updated: **May 12 2021**.
|
||||
* Here's the [raw hosts file with gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) containing 83,375 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
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) | 42,999 | [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) | 43,941 | [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) | 45,271 | [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) | 57,338 | [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) | 45,474 | [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) | 46,213 | [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) | 58,280 | [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) | 46,416 | [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) | 59,610 | [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) | 47,746 | [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) | 59,812 | [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) | 60,552 | [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) | 48,688 | [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) | 60,754 | [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) | 62,084 | [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) | 63,026 | [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) | 80,994 | [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) | 83,189 | [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) | 83,375 | [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) | 107,142 | [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) | 83,799 | [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) | 85,570 | [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) | 109,337 | [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) | 85,994 | [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) | 109,523 | [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) | 86,180 | [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) | 109,946 | [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) | 111,718 | [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) | 88,375 | [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) | 112,141 | [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) | 112,327 | [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) | 114,522 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -62,58 +63,88 @@ included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
|
||||
|
||||
## 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 wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
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`.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
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
|
||||
|
||||
To generate your own unified hosts file you will need Python 3.5 or later.
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
|
||||
First install the dependencies with:
|
||||
### Option 1: Generate in a Docker container
|
||||
|
||||
pip3 install --user -r requirements.txt
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container 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 like this:
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 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).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
### Common steps regardless of your development environment.
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
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.
|
||||
|
||||
### Usage
|
||||
|
||||
#### Using Python 3:
|
||||
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
|
||||
@@ -155,6 +186,11 @@ in a subfolder. If the subfolder does not exist, it will be created.
|
||||
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.
|
||||
|
||||
`--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
|
||||
@@ -165,9 +201,32 @@ 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.
|
||||
|
||||
#### Using 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.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
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
|
||||
@@ -177,10 +236,10 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
* 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?
|
||||
|
||||
@@ -201,7 +260,7 @@ The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
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.
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
@@ -211,20 +270,18 @@ If you discover sketchy domains you feel should be included here, here are some
|
||||
|
||||
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: add your domains to Steven Black's personal data file
|
||||
### 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 and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
### 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
|
||||
@@ -240,94 +297,98 @@ and other irritants.
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
# 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...
|
||||
|
||||
```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.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
## 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.
|
||||
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**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
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
(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
|
||||
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 in order for this to work, you must be connected to the internet.
|
||||
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 XP**: Start → Run → `cmd`
|
||||
|
||||
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
|
||||
**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 ->
|
||||
**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 ->
|
||||
**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.cmd)
|
||||
for more details.
|
||||
|
||||
## 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
|
||||
:-----------------------------------------------------------------------------------------
|
||||
| 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
|
||||
```
|
||||
|
||||
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
|
||||
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```
|
||||
sc config "Dnscache" start= disabled
|
||||
sc stop "Dnscache"
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
@@ -350,30 +411,31 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### Mac OS X
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
```
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This 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.
|
||||
|
||||
@@ -383,7 +445,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -394,34 +456,34 @@ 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.
|
||||
|
||||
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
|
||||
is **not** included here because it is very large (780,000+ entries)
|
||||
and doesn't currently display a corresponding high level of curation activity.
|
||||
|
||||
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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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
|
||||
|
||||
* [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.
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the GitHub repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
* [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.
|
||||
* [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.
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This GitHub gist has a short shell script (bash, will work on any 'nix) and uses `wget` & `awk` present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports IPv4 and IPv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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.
|
||||
|
||||
## Contribute!
|
||||
|
||||
|
||||
+94047
-39253
File diff suppressed because it is too large
Load Diff
+189
-127
@@ -1,14 +1,16 @@
|
||||
----
|
||||
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
**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://travis-ci.org/StevenBlack/hosts)
|
||||
[](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)
|
||||
@@ -19,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **November 01 2019**.
|
||||
* Here's the [raw hosts file with porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) containing 59,812 entries.
|
||||
* Last updated: **May 12 2021**.
|
||||
* Here's the [raw hosts file with porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) containing 109,946 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
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) | 42,999 | [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) | 43,941 | [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) | 45,271 | [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) | 57,338 | [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) | 45,474 | [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) | 46,213 | [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) | 58,280 | [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) | 46,416 | [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) | 59,610 | [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) | 47,746 | [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) | 59,812 | [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) | 60,552 | [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) | 48,688 | [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) | 60,754 | [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) | 62,084 | [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) | 63,026 | [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) | 80,994 | [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) | 83,189 | [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) | 83,375 | [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) | 107,142 | [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) | 83,799 | [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) | 85,570 | [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) | 109,337 | [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) | 85,994 | [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) | 109,523 | [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) | 86,180 | [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) | 109,946 | [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) | 111,718 | [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) | 88,375 | [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) | 112,141 | [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) | 112,327 | [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) | 114,522 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -62,63 +63,93 @@ included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | 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. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
pornhosts -- a consolidated anti porn hosts file | 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. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
## 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 wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
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`.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
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
|
||||
|
||||
To generate your own unified hosts file you will need Python 3.5 or later.
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
|
||||
First install the dependencies with:
|
||||
### Option 1: Generate in a Docker container
|
||||
|
||||
pip3 install --user -r requirements.txt
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container 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 like this:
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 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).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
### Common steps regardless of your development environment.
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
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.
|
||||
|
||||
### Usage
|
||||
|
||||
#### Using Python 3:
|
||||
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
|
||||
@@ -160,6 +191,11 @@ in a subfolder. If the subfolder does not exist, it will be created.
|
||||
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.
|
||||
|
||||
`--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
|
||||
@@ -170,9 +206,32 @@ 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.
|
||||
|
||||
#### Using 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.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
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
|
||||
@@ -182,10 +241,10 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
* 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?
|
||||
|
||||
@@ -206,7 +265,7 @@ The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
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.
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
@@ -216,20 +275,18 @@ If you discover sketchy domains you feel should be included here, here are some
|
||||
|
||||
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: add your domains to Steven Black's personal data file
|
||||
### 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 and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
### 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
|
||||
@@ -245,94 +302,98 @@ and other irritants.
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
# 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...
|
||||
|
||||
```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.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
## 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.
|
||||
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**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
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
(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
|
||||
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 in order for this to work, you must be connected to the internet.
|
||||
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 XP**: Start → Run → `cmd`
|
||||
|
||||
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
|
||||
**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 ->
|
||||
**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 ->
|
||||
**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.cmd)
|
||||
for more details.
|
||||
|
||||
## 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
|
||||
:-----------------------------------------------------------------------------------------
|
||||
| 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
|
||||
```
|
||||
|
||||
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
|
||||
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```
|
||||
sc config "Dnscache" start= disabled
|
||||
sc stop "Dnscache"
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
@@ -355,30 +416,31 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### Mac OS X
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
```
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This 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.
|
||||
|
||||
@@ -388,7 +450,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -399,34 +461,34 @@ 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.
|
||||
|
||||
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
|
||||
is **not** included here because it is very large (780,000+ entries)
|
||||
and doesn't currently display a corresponding high level of curation activity.
|
||||
|
||||
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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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
|
||||
|
||||
* [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.
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the GitHub repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
* [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.
|
||||
* [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.
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This GitHub gist has a short shell script (bash, will work on any 'nix) and uses `wget` & `awk` present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports IPv4 and IPv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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.
|
||||
|
||||
## Contribute!
|
||||
|
||||
|
||||
+93706
-39247
File diff suppressed because it is too large
Load Diff
+187
-125
@@ -1,14 +1,16 @@
|
||||
----
|
||||
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
**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://travis-ci.org/StevenBlack/hosts)
|
||||
[](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)
|
||||
@@ -19,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **November 01 2019**.
|
||||
* Here's the [raw hosts file with porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) containing 57,338 entries.
|
||||
* Last updated: **May 12 2021**.
|
||||
* Here's the [raw hosts file with porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) containing 107,142 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
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) | 42,999 | [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) | 43,941 | [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) | 45,271 | [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) | 57,338 | [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) | 45,474 | [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) | 46,213 | [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) | 58,280 | [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) | 46,416 | [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) | 59,610 | [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) | 47,746 | [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) | 59,812 | [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) | 60,552 | [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) | 48,688 | [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) | 60,754 | [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) | 62,084 | [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) | 63,026 | [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) | 80,994 | [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) | 83,189 | [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) | 83,375 | [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) | 107,142 | [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) | 83,799 | [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) | 85,570 | [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) | 109,337 | [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) | 85,994 | [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) | 109,523 | [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) | 86,180 | [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) | 109,946 | [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) | 111,718 | [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) | 88,375 | [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) | 112,141 | [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) | 112,327 | [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) | 114,522 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -62,61 +63,91 @@ included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | 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. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
pornhosts -- a consolidated anti porn hosts file | 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. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
## 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 wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
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`.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
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
|
||||
|
||||
To generate your own unified hosts file you will need Python 3.5 or later.
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
|
||||
First install the dependencies with:
|
||||
### Option 1: Generate in a Docker container
|
||||
|
||||
pip3 install --user -r requirements.txt
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container 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 like this:
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 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).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
### Common steps regardless of your development environment.
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
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.
|
||||
|
||||
### Usage
|
||||
|
||||
#### Using Python 3:
|
||||
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
|
||||
@@ -158,6 +189,11 @@ in a subfolder. If the subfolder does not exist, it will be created.
|
||||
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.
|
||||
|
||||
`--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
|
||||
@@ -168,9 +204,32 @@ 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.
|
||||
|
||||
#### Using 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.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
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
|
||||
@@ -180,10 +239,10 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
* 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?
|
||||
|
||||
@@ -204,7 +263,7 @@ The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
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.
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
@@ -214,20 +273,18 @@ If you discover sketchy domains you feel should be included here, here are some
|
||||
|
||||
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: add your domains to Steven Black's personal data file
|
||||
### 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 and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
### 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
|
||||
@@ -243,94 +300,98 @@ and other irritants.
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
# 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...
|
||||
|
||||
```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.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
## 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.
|
||||
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**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
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
(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
|
||||
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 in order for this to work, you must be connected to the internet.
|
||||
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 XP**: Start → Run → `cmd`
|
||||
|
||||
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
|
||||
**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 ->
|
||||
**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 ->
|
||||
**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.cmd)
|
||||
for more details.
|
||||
|
||||
## 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
|
||||
:-----------------------------------------------------------------------------------------
|
||||
| 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
|
||||
```
|
||||
|
||||
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
|
||||
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```
|
||||
sc config "Dnscache" start= disabled
|
||||
sc stop "Dnscache"
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
@@ -353,30 +414,31 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### Mac OS X
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
```
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This 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.
|
||||
|
||||
@@ -386,7 +448,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -397,34 +459,34 @@ 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.
|
||||
|
||||
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
|
||||
is **not** included here because it is very large (780,000+ entries)
|
||||
and doesn't currently display a corresponding high level of curation activity.
|
||||
|
||||
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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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
|
||||
|
||||
* [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.
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the GitHub repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
* [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.
|
||||
* [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.
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This GitHub gist has a short shell script (bash, will work on any 'nix) and uses `wget` & `awk` present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports IPv4 and IPv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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.
|
||||
|
||||
## Contribute!
|
||||
|
||||
|
||||
+75900
-32942
File diff suppressed because it is too large
Load Diff
+185
-123
@@ -1,14 +1,16 @@
|
||||
----
|
||||
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
**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://travis-ci.org/StevenBlack/hosts)
|
||||
[](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)
|
||||
@@ -19,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **November 01 2019**.
|
||||
* Here's the [raw hosts file with social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) containing 45,474 entries.
|
||||
* Last updated: **May 12 2021**.
|
||||
* Here's the [raw hosts file with social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) containing 83,799 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
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) | 42,999 | [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) | 43,941 | [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) | 45,271 | [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) | 57,338 | [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) | 45,474 | [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) | 46,213 | [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) | 58,280 | [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) | 46,416 | [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) | 59,610 | [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) | 47,746 | [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) | 59,812 | [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) | 60,552 | [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) | 48,688 | [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) | 60,754 | [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) | 62,084 | [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) | 63,026 | [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) | 80,994 | [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) | 83,189 | [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) | 83,375 | [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) | 107,142 | [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) | 83,799 | [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) | 85,570 | [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) | 109,337 | [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) | 85,994 | [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) | 109,523 | [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) | 86,180 | [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) | 109,946 | [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) | 111,718 | [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) | 88,375 | [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) | 112,141 | [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) | 112,327 | [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) | 114,522 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -62,59 +63,89 @@ included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
## 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 wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
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`.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
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
|
||||
|
||||
To generate your own unified hosts file you will need Python 3.5 or later.
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
|
||||
First install the dependencies with:
|
||||
### Option 1: Generate in a Docker container
|
||||
|
||||
pip3 install --user -r requirements.txt
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container 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 like this:
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 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).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
### Common steps regardless of your development environment.
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
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.
|
||||
|
||||
### Usage
|
||||
|
||||
#### Using Python 3:
|
||||
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
|
||||
@@ -156,6 +187,11 @@ in a subfolder. If the subfolder does not exist, it will be created.
|
||||
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.
|
||||
|
||||
`--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
|
||||
@@ -166,9 +202,32 @@ 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.
|
||||
|
||||
#### Using 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.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
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
|
||||
@@ -178,10 +237,10 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
* 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?
|
||||
|
||||
@@ -202,7 +261,7 @@ The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
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.
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
@@ -212,20 +271,18 @@ If you discover sketchy domains you feel should be included here, here are some
|
||||
|
||||
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: add your domains to Steven Black's personal data file
|
||||
### 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 and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
### 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
|
||||
@@ -241,94 +298,98 @@ and other irritants.
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
# 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...
|
||||
|
||||
```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.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
## 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.
|
||||
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**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
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
(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
|
||||
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 in order for this to work, you must be connected to the internet.
|
||||
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 XP**: Start → Run → `cmd`
|
||||
|
||||
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
|
||||
**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 ->
|
||||
**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 ->
|
||||
**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.cmd)
|
||||
for more details.
|
||||
|
||||
## 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
|
||||
:-----------------------------------------------------------------------------------------
|
||||
| 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
|
||||
```
|
||||
|
||||
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
|
||||
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```
|
||||
sc config "Dnscache" start= disabled
|
||||
sc stop "Dnscache"
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
@@ -351,30 +412,31 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### Mac OS X
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
```
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This 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.
|
||||
|
||||
@@ -384,7 +446,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -395,34 +457,34 @@ 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.
|
||||
|
||||
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
|
||||
is **not** included here because it is very large (780,000+ entries)
|
||||
and doesn't currently display a corresponding high level of curation activity.
|
||||
|
||||
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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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
|
||||
|
||||
* [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.
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the GitHub repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
* [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.
|
||||
* [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.
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This GitHub gist has a short shell script (bash, will work on any 'nix) and uses `wget` & `awk` present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports IPv4 and IPv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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.
|
||||
|
||||
## Contribute!
|
||||
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -d "$HOME/miniconda3" ] && [ -e "$HOME/miniconda3/bin/conda" ]; then
|
||||
echo "Miniconda install already present from cache: $HOME/miniconda3"
|
||||
rm -rf $HOME/miniconda3/envs/hosts # Just in case...
|
||||
else
|
||||
echo "Installing Miniconda..."
|
||||
rm -rf $HOME/miniconda3 # Just in case...
|
||||
|
||||
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
|
||||
wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh || exit 1
|
||||
else
|
||||
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh || exit 1
|
||||
fi
|
||||
|
||||
bash miniconda.sh -b -p "$HOME/miniconda3" || exit 1
|
||||
fi
|
||||
|
||||
echo "Configuring Miniconda..."
|
||||
conda config --set ssl_verify false || exit 1
|
||||
conda config --set always_yes true --set changeps1 false || exit 1
|
||||
|
||||
echo "Updating Miniconda"
|
||||
conda update conda
|
||||
conda update --all
|
||||
conda info -a || exit 1
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Linting repository..."
|
||||
source activate hosts
|
||||
|
||||
flake8 --max-line-length 120
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Creating a Python $PYTHON_VERSION environment"
|
||||
conda create -n hosts python=$PYTHON_VERSION || exit 1
|
||||
source activate hosts
|
||||
|
||||
echo "Installing packages..."
|
||||
conda install flake8 beautifulsoup4 lxml
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Running unittests..."
|
||||
source activate hosts
|
||||
|
||||
python testUpdateHostsFile.py
|
||||
@@ -8,24 +8,27 @@ There are two facets of the hosts files generated by
|
||||
[/updateHostsFile.py](https://github.com/StevenBlack/hosts/blob/master/updateHostsFile.py):
|
||||
|
||||
### Basic hosts
|
||||
|
||||
Basic hosts are domains that purvey advertising, malware, tracking, coin
|
||||
mining and other abominable behavior. These hosts are included in all our products.
|
||||
|
||||
The [/data](https://github.com/StevenBlack/hosts/tree/master/data) folder holds the
|
||||
metadata and latest hosts for all our basic hosts sources. The hosts are updated
|
||||
automatically by`/updateHostsFile.py` which iterates all the subfolders within `./data`.
|
||||
automatically by `/updateHostsFile.py` which iterates all the subfolders within `./data`.
|
||||
|
||||
### Optional hosts extensions
|
||||
|
||||
Hosts extensions include domains that push potentially addictive content like `porn`, `fake news`,
|
||||
`gambling`, and `social` media.
|
||||
|
||||
The [/extensions](https://github.com/StevenBlack/hosts/tree/master/extensions) folder holds
|
||||
metadata and latest hosts for all our basic hosts sources. The hosts are updated
|
||||
automatically by`/updateHostsFile.py` which iterates all the subfolders within `./extensions`.
|
||||
automatically by `/updateHostsFile.py` which iterates all the subfolders within `./extensions`.
|
||||
|
||||
## Product folders
|
||||
|
||||
### Basic hosts
|
||||
|
||||
The [basic hosts file](https://github.com/StevenBlack/hosts/blob/master/hosts), containing
|
||||
just adware, malware, etc, is stored in the root folder of this repository.
|
||||
|
||||
@@ -37,5 +40,5 @@ containing hosts that block adware, malware, tracking, etc.
|
||||
## Other notable files
|
||||
|
||||
+ [./readme_template.md](https://github.com/StevenBlack/hosts/blob/master/readme_template.md):
|
||||
This file is used to generate the all the various readme files in this repository. Therefore,
|
||||
This file is used to generate all the various readme files in this repository. Therefore,
|
||||
if you wish to change the readme, you need to change only this file.
|
||||
|
||||
+22
-13
@@ -3,6 +3,7 @@
|
||||
Contributing to Hosts is easy. This document shows you how to get started
|
||||
|
||||
## General
|
||||
|
||||
- The [Codebase Structure](https://github.com/StevenBlack/hosts/blob/master/codebase_structure.md) has
|
||||
detailed information about how the various folders and files in this project are structured.
|
||||
|
||||
@@ -12,28 +13,36 @@ detailed information about how the various folders and files in this project are
|
||||
- <https://github.com/StevenBlack/hosts/fork>
|
||||
- Check out a new branch based and name it to what you intend to do:
|
||||
- Example:
|
||||
````
|
||||
$ git checkout -b BRANCH_NAME
|
||||
````
|
||||
|
||||
```sh
|
||||
git checkout -b BRANCH_NAME
|
||||
```
|
||||
|
||||
If you get an error, you may need to fetch first, by using
|
||||
````
|
||||
$ git remote update && git fetch
|
||||
````
|
||||
|
||||
```sh
|
||||
git remote update && git fetch
|
||||
```
|
||||
|
||||
- Use one branch per fix / feature
|
||||
- Commit your changes
|
||||
- Please provide a git message that explains what you've done
|
||||
- Please make sure your commits follow the [conventions](https://gist.github.com/robertpainsi/b632364184e70900af4ab688decf6f53#file-commit-message-guidelines-md)
|
||||
- Commit to the forked repository
|
||||
- Example:
|
||||
````
|
||||
$ git commit -am 'Add some fooBar'
|
||||
````
|
||||
|
||||
```sh
|
||||
git commit -am 'Add some fooBar'
|
||||
```
|
||||
|
||||
- Push to the branch
|
||||
- Example:
|
||||
````
|
||||
$ git push origin BRANCH_NAME
|
||||
````
|
||||
|
||||
```sh
|
||||
git push origin BRANCH_NAME
|
||||
```
|
||||
|
||||
- Make a pull request
|
||||
- Make sure you send the PR to the <code>BRANCH_NAM</code> branch
|
||||
- Make sure you send the PR to the `BRANCH_NAME` branch
|
||||
|
||||
If you follow these instructions, your Pull Request will land safely!
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
+702
-631
File diff suppressed because it is too large
Load Diff
@@ -6,4 +6,4 @@
|
||||
"issues": "https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues",
|
||||
"url": "https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts",
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"name": "CoinBlocker",
|
||||
"description": "Simple lists that can help prevent cryptomining in the browser or other applications",
|
||||
"homeurl": "https://gitlab.com/ZeroDot1/CoinBlockerLists",
|
||||
"frequency": "frequently",
|
||||
"issues": "https://gitlab.com/ZeroDot1/CoinBlockerLists/issues",
|
||||
"url": "https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser",
|
||||
"license": "GPLv3"
|
||||
}
|
||||
+17879
-2015
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"name": "KADhosts",
|
||||
"description": "Fraud/adware/scam websites.",
|
||||
"homeurl": "https://github.com/azet12/KADhosts",
|
||||
"homeurl": "https://kadantiscam.netlify.app/",
|
||||
"frequency": "frequently",
|
||||
"issues": "https://github.com/azet12/KADhosts/issues",
|
||||
"url": "https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt",
|
||||
"license": "GPLv3"
|
||||
"issues": "https://github.com/PolishFiltersTeam/KADhosts/issues",
|
||||
"url": "https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt",
|
||||
"license": "CC BY-SA 4.0"
|
||||
}
|
||||
|
||||
+1071
File diff suppressed because it is too large
Load Diff
@@ -0,0 +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"
|
||||
}
|
||||
+2795
-902
File diff suppressed because it is too large
Load Diff
+1130
File diff suppressed because it is too large
Load Diff
@@ -0,0 +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"
|
||||
}
|
||||
@@ -4,5 +4,6 @@
|
||||
"homeurl": "https://github.com/FadeMind/hosts.extras",
|
||||
"frequency": "occasionally",
|
||||
"issues": "https://github.com/FadeMind/hosts.extras/issues",
|
||||
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts"
|
||||
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts",
|
||||
"license": "MIT"
|
||||
}
|
||||
|
||||
+13018
-478
File diff suppressed because it is too large
Load Diff
@@ -2,8 +2,8 @@
|
||||
"name": "AdAway",
|
||||
"description": "AdAway is an open source ad blocker for Android using the hosts file.",
|
||||
"homeurl": "https://adaway.org/",
|
||||
"frequency": "occasionally",
|
||||
"issues": "https://github.com/AdAway/AdAway/issues",
|
||||
"frequency": "frequently",
|
||||
"issues": "https://github.com/AdAway/adaway.github.io/issues",
|
||||
"url": "https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt",
|
||||
"license": "CC BY 3.0"
|
||||
}
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
"frequency": "occasionally",
|
||||
"issues": "https://github.com/FadeMind/hosts.extras/issues",
|
||||
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts",
|
||||
"license": "GPLv3+"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
"frequency": "occasionally",
|
||||
"issues": "https://github.com/FadeMind/hosts.extras/issues",
|
||||
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts",
|
||||
"license": "GPLv3+"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
||||
@@ -15,16 +15,13 @@
|
||||
0.0.0.0 123go.com
|
||||
0.0.0.0 188838.parkingcrew.net
|
||||
0.0.0.0 1gavcom.popunder.ru
|
||||
0.0.0.0 1.hidemyass.com
|
||||
0.0.0.0 1xxx.cqcounter.com
|
||||
0.0.0.0 21750.tctm.co
|
||||
0.0.0.0 2607.cn
|
||||
0.0.0.0 2.hidemyass.com
|
||||
0.0.0.0 2.rubanners.com
|
||||
0.0.0.0 302br.net
|
||||
0.0.0.0 32e1dff65ea4eb3627ed-f1ecc94c86a56d3e42e512fcfd192886.r6.cf1.rackcdn.com
|
||||
0.0.0.0 39dvd-999.com
|
||||
0.0.0.0 3.hidemyass.com
|
||||
0.0.0.0 404.xxxymovies.com
|
||||
0.0.0.0 4133.88.primosearch.com
|
||||
0.0.0.0 422653.parkingcrew.net
|
||||
@@ -33,7 +30,6 @@
|
||||
0.0.0.0 4.collecorvino.org
|
||||
0.0.0.0 4.dlevo.com
|
||||
0.0.0.0 4.e-why.net
|
||||
0.0.0.0 4.hidemyass.com
|
||||
0.0.0.0 4.whereinitaly.com
|
||||
0.0.0.0 4.whereinlazio.com
|
||||
0.0.0.0 4.whereinliguria.com
|
||||
@@ -51,14 +47,11 @@
|
||||
0.0.0.0 5490.spedads.primosearch.com
|
||||
0.0.0.0 5.estasiatica.com
|
||||
0.0.0.0 5.eventiduepuntozero.com
|
||||
0.0.0.0 5.hidemyass.com
|
||||
0.0.0.0 6266.570204.primosearch.com
|
||||
0.0.0.0 633642.parkingcrew.net
|
||||
0.0.0.0 6b8a953b2bf7788063d5-6e453f33ecbb90f11a62a5c376375af3.r71.cf5.rackcdn.com
|
||||
0.0.0.0 6.hidemyass.com
|
||||
0.0.0.0 6.mamaswishes.com
|
||||
0.0.0.0 77search.com
|
||||
0.0.0.0 7.hidemyass.com
|
||||
0.0.0.0 7metasearch.com
|
||||
0.0.0.0 7search.com
|
||||
0.0.0.0 7softwaredreams.com
|
||||
@@ -200,7 +193,6 @@
|
||||
0.0.0.0 avis.cm
|
||||
0.0.0.0 avrakougioumtzi.gr
|
||||
0.0.0.0 avskype.com
|
||||
0.0.0.0 ayada.zapto.org
|
||||
0.0.0.0 ayehcleaners.com
|
||||
0.0.0.0 a.zeroredirect1.com
|
||||
0.0.0.0 a.zeroredirect2.com
|
||||
@@ -320,7 +312,6 @@
|
||||
0.0.0.0 cdn.adtrace.org
|
||||
0.0.0.0 cdn.advancedmactools.com
|
||||
0.0.0.0 cdn.ndparking.com
|
||||
0.0.0.0 cdn.onesignal.com
|
||||
0.0.0.0 cdn.opensubcontent.com
|
||||
0.0.0.0 cecash.com
|
||||
0.0.0.0 centerfind.com
|
||||
@@ -695,7 +686,6 @@
|
||||
0.0.0.0 hapjes-maken.eu
|
||||
0.0.0.0 harmonyhollow.net
|
||||
0.0.0.0 haso.pubmatic.com
|
||||
0.0.0.0 havijrat.zapto.org
|
||||
0.0.0.0 heaptickets.com
|
||||
0.0.0.0 hefigo.com
|
||||
0.0.0.0 helpint.mywebsearch.com
|
||||
@@ -706,7 +696,6 @@
|
||||
0.0.0.0 hertzsales.com
|
||||
0.0.0.0 hgtzz.com
|
||||
0.0.0.0 hidebux.com
|
||||
0.0.0.0 hidemyass.com
|
||||
0.0.0.0 hira.hopto.org
|
||||
0.0.0.0 historykill.com
|
||||
0.0.0.0 hitwastedgarden.com
|
||||
@@ -915,7 +904,6 @@
|
||||
0.0.0.0 meetyourmessenger.co.uk
|
||||
0.0.0.0 meiluziai.info
|
||||
0.0.0.0 merrymilkfoods.com
|
||||
0.0.0.0 mesopotemia222.zapto.org
|
||||
0.0.0.0 messagetag.com
|
||||
0.0.0.0 meta.7search.com
|
||||
0.0.0.0 m.friendlyduck.com
|
||||
@@ -1055,7 +1043,6 @@
|
||||
0.0.0.0 paypal-exchange.com
|
||||
0.0.0.0 payperclickadvertising.org.uk
|
||||
0.0.0.0 pay-per-search.com
|
||||
0.0.0.0 payusatax.com
|
||||
0.0.0.0 pcash.imlive.com
|
||||
0.0.0.0 pcbutts1.ourtoolbar.com
|
||||
0.0.0.0 pcbutts1.software.informer.com
|
||||
@@ -1278,7 +1265,6 @@
|
||||
0.0.0.0 setup.advancedcleaner.com
|
||||
0.0.0.0 sevenstars7.com
|
||||
0.0.0.0 shareaza.com
|
||||
0.0.0.0 ships.zapto.org
|
||||
0.0.0.0 shore-view.com
|
||||
0.0.0.0 show.onenetworkdirect.net
|
||||
0.0.0.0 sijmp.com
|
||||
@@ -1389,7 +1375,6 @@
|
||||
0.0.0.0 statsv3.gaycash.com
|
||||
0.0.0.0 stepan007.popunder.ru
|
||||
0.0.0.0 stephens-laughlin.com
|
||||
0.0.0.0 stignita.zapto.org
|
||||
0.0.0.0 stop-sign.com
|
||||
0.0.0.0 stressx.org
|
||||
0.0.0.0 stripteas.com
|
||||
@@ -1503,7 +1488,6 @@
|
||||
0.0.0.0 trvelocity.com
|
||||
0.0.0.0 trx625.com
|
||||
0.0.0.0 t.svtrd.com
|
||||
0.0.0.0 tttbbbttt.zapto.org
|
||||
0.0.0.0 ttt.fwq101.tk
|
||||
0.0.0.0 tube8vidscjk.ddns.name
|
||||
0.0.0.0 tube8vidscqs.ddns.name
|
||||
@@ -1569,7 +1553,6 @@
|
||||
0.0.0.0 upproar.com
|
||||
0.0.0.0 uprour.com
|
||||
0.0.0.0 uptodatecontent.net
|
||||
0.0.0.0 urchman11.zapto.org
|
||||
0.0.0.0 v0.extreme-dm.com
|
||||
0.0.0.0 v1.extreme-dm.com
|
||||
0.0.0.0 v2.urlads.net
|
||||
@@ -2000,7 +1983,6 @@
|
||||
0.0.0.0 www.hertzsales.com
|
||||
0.0.0.0 www.hgtzz.com
|
||||
0.0.0.0 www.hidebux.com
|
||||
0.0.0.0 www.hidemyass.com
|
||||
0.0.0.0 www.historykill.com
|
||||
0.0.0.0 www.hlserve.com
|
||||
0.0.0.0 www.hnskorea.co.kr
|
||||
@@ -2153,7 +2135,6 @@
|
||||
0.0.0.0 www.paypal-exchange.com
|
||||
0.0.0.0 www.payperclickadvertising.org.uk
|
||||
0.0.0.0 www.pay-per-search.com
|
||||
0.0.0.0 www.payusatax.com
|
||||
0.0.0.0 www.pccleaner.com
|
||||
0.0.0.0 www.pccleanerpro.com
|
||||
0.0.0.0 www.pc-detox.com
|
||||
@@ -2309,7 +2290,6 @@
|
||||
0.0.0.0 www.stop-sign.com
|
||||
0.0.0.0 www.stripteas.com
|
||||
0.0.0.0 www.sttvisa.com
|
||||
0.0.0.0 www.sugarsync.com
|
||||
0.0.0.0 www.sunidaytravel.co.uk
|
||||
0.0.0.0 www.sunonsunday.com
|
||||
0.0.0.0 www.super8service.de
|
||||
@@ -2469,7 +2449,6 @@
|
||||
0.0.0.0 www.youtuhe.com
|
||||
0.0.0.0 www.yrals.com
|
||||
0.0.0.0 www.ytdownloader.com
|
||||
0.0.0.0 www.zapto.org
|
||||
0.0.0.0 www.zarrmarketing.co.uk
|
||||
0.0.0.0 www.zbest.in
|
||||
0.0.0.0 www.zeroredirect2.com
|
||||
@@ -2534,7 +2513,6 @@
|
||||
0.0.0.0 z1.extreme-dm.com
|
||||
0.0.0.0 za2.zeroredirect8.com
|
||||
0.0.0.0 zampolit1990.popunder.ru
|
||||
0.0.0.0 zapto.org
|
||||
0.0.0.0 zarrmarketing.co.uk
|
||||
0.0.0.0 za.zeroredirect1.com
|
||||
0.0.0.0 zbest.in
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
"frequency": "occasionally",
|
||||
"issues": "https://github.com/FadeMind/hosts.extras/issues",
|
||||
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts",
|
||||
"license": "GPLv3+"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
"frequency": "occasionally",
|
||||
"issues": "https://github.com/FadeMind/hosts.extras/issues",
|
||||
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts",
|
||||
"license": "GPLv3+"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
||||
+1196
-440
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"name": "Malware Domain List",
|
||||
"description": "Malware Domain List is a non-commercial community project.",
|
||||
"homeurl": "https://www.malwaredomainlist.com/",
|
||||
"frequency": "weekly",
|
||||
"issues": "https://www.malwaredomainlist.com/contact.php",
|
||||
"url": "https://www.malwaredomainlist.com/hostslist/hosts.txt",
|
||||
"license": "'can be used for free by anyone'"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
# minecraft-hosts - Tracking Domains
|
||||
# License: CC0
|
||||
|
||||
auxilium.ftb.team
|
||||
bstats.org
|
||||
mcmc.dev
|
||||
mcstats.org
|
||||
metrics.shmeeb.net
|
||||
openeye.openmods.info
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "minecraft-hosts",
|
||||
"description": "Minecraft related tracker hosts",
|
||||
"homeurl": "https://github.com/jamiemansfield/minecraft-hosts",
|
||||
"frequency": "occasionally",
|
||||
"issues": "https://github.com/jamiemansfield/minecraft-hosts/issues",
|
||||
"url": "https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt",
|
||||
"license": "CC0-1.0"
|
||||
}
|
||||
+12
-3289
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"name": "MVPS hosts file",
|
||||
"description": "The purpose of this site is to provide the user with a high quality custom HOSTS file.",
|
||||
"homeurl": "http://winhelp2002.mvps.org/",
|
||||
"homeurl": "https://winhelp2002.mvps.org/",
|
||||
"frequency": "monthly",
|
||||
"issues": "mailto:winhelp2002@gmail.com",
|
||||
"url": "http://winhelp2002.mvps.org/hosts.txt",
|
||||
"url": "https://winhelp2002.mvps.org/hosts.txt",
|
||||
"license": "CC BY-NC-SA 4.0"
|
||||
}
|
||||
|
||||
+3411
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "orca.pet",
|
||||
"description": "This is a domain list for blocking phishing and malware sites .",
|
||||
"homeurl": "https://orca.pet/notonmyshift/",
|
||||
"frequency": "frequent",
|
||||
"issues": "https://github.com/socram8888/not-on-my-shift",
|
||||
"url": "https://orca.pet/notonmyshift/hosts.txt",
|
||||
"license": "ISC"
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
#######################################################################
|
||||
# The list contains uniques domains collected over #
|
||||
# the last 7 days by OSINT.digitalside.it and shared in piHole format.#
|
||||
# The list is released without any warranty to the end users. #
|
||||
# INFO: info@digitalside.it #
|
||||
# PGP key ID: 30B31BDA #
|
||||
# PGP fingerprint: 0B4C F801 E8FF E9A3 A602 D2C7 9C36 93B2 30B3 1BDA #
|
||||
# Every link reported should be considered harmefull and should #
|
||||
# result in an unwanted malware download. Use this file carrefully #
|
||||
# Generated at: 2021-05-12 08:04:53 #
|
||||
#######################################################################
|
||||
0.0.0.0 adventphilomels.org
|
||||
0.0.0.0 araitrade.com
|
||||
0.0.0.0 beatyamerican.com
|
||||
0.0.0.0 bestwestinternatioanl.mangospot.net
|
||||
0.0.0.0 blogmandala.top
|
||||
0.0.0.0 carbinz.gq
|
||||
0.0.0.0 cloudstroageofofficedocumenttransfer.mangospot.net
|
||||
0.0.0.0 crm.powereng.in
|
||||
0.0.0.0 dakkada.ng
|
||||
0.0.0.0 golubtaxi.rs
|
||||
0.0.0.0 healthfinance.com.au
|
||||
0.0.0.0 jamesbond.camdvr.org
|
||||
0.0.0.0 jfus.top
|
||||
0.0.0.0 kurumsal.avantajbulvari.com
|
||||
0.0.0.0 meetthepriestessatl.com
|
||||
0.0.0.0 modem.pw
|
||||
0.0.0.0 molinaservice.com
|
||||
0.0.0.0 musicnote.soundcast.me
|
||||
0.0.0.0 myhostisstillgood11.zapto.org
|
||||
0.0.0.0 nbnbtwowsdydebateqgh.dns.army
|
||||
0.0.0.0 ntk-indo.com
|
||||
0.0.0.0 oicrobotics.org
|
||||
0.0.0.0 plajmarket.com
|
||||
0.0.0.0 pokalde.com
|
||||
0.0.0.0 reachglobal-in.com
|
||||
0.0.0.0 sriva.com.mx
|
||||
0.0.0.0 super-menu.it
|
||||
0.0.0.0 trendport.in
|
||||
0.0.0.0 vespang.ga
|
||||
0.0.0.0 website-demo.co.in
|
||||
0.0.0.0 will.kasraz.com
|
||||
0.0.0.0 wsdysuresbonescagehg.dns.army
|
||||
0.0.0.0 zaitia.com
|
||||
0.0.0.0 ziengineeringco.com
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "osint.digitalside.it",
|
||||
"description": "DigitalSide Threat-Intel malware domains list.",
|
||||
"homeurl": "https://github.com/davidonzo/Threat-Intel",
|
||||
"frequency": "daily",
|
||||
"issues": "https://github.com/davidonzo/Threat-Intel/issues",
|
||||
"url": "https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt",
|
||||
"license": "MIT"
|
||||
}
|
||||
@@ -0,0 +1,417 @@
|
||||
0.0.0.0 a.et.nytimes.com
|
||||
0.0.0.0 a.exdynsrv.com
|
||||
0.0.0.0 a.omappapi.com
|
||||
0.0.0.0 a.opmnstr.com
|
||||
0.0.0.0 a.pub.network
|
||||
0.0.0.0 abcnews.hb.omtrdc.net
|
||||
0.0.0.0 abcnews.tt.omtrdc.net
|
||||
0.0.0.0 acdn.adnxs.com
|
||||
0.0.0.0 adbserver.doceree.com
|
||||
0.0.0.0 adpushup.com
|
||||
0.0.0.0 ads-api.twitter.com
|
||||
0.0.0.0 ads.holid.io
|
||||
0.0.0.0 amazonwebservices.d2.sc.omtrdc.net
|
||||
0.0.0.0 analyti.uber.space
|
||||
0.0.0.0 analytics.getsocialeyes.com
|
||||
0.0.0.0 analytics.vadian.net
|
||||
0.0.0.0 analytics.write.as
|
||||
0.0.0.0 api-2-0.spot.im
|
||||
0.0.0.0 api-js.mixpanel.com
|
||||
0.0.0.0 api.airbrake.io
|
||||
0.0.0.0 api.b2c.com
|
||||
0.0.0.0 api.boxever.com
|
||||
0.0.0.0 api.btloader.com
|
||||
0.0.0.0 api2.branch.io
|
||||
0.0.0.0 ascendeum-d.openx.net
|
||||
0.0.0.0 backfills.ph.affinity.com
|
||||
0.0.0.0 bid.glass
|
||||
0.0.0.0 btloader.com
|
||||
0.0.0.0 by2.uservoice.com
|
||||
0.0.0.0 cdn-magiclinks.trackonomics.net
|
||||
0.0.0.0 cdn.engine.spotscenered.info
|
||||
0.0.0.0 cdn.insurads.com
|
||||
0.0.0.0 cdn.intergient.com
|
||||
0.0.0.0 cdn.izooto.com
|
||||
0.0.0.0 cdn.playwire.com
|
||||
0.0.0.0 cdn.snigelweb.com
|
||||
0.0.0.0 cdn.usefathom.com
|
||||
0.0.0.0 client.px-cloud.net
|
||||
0.0.0.0 dotmetrics.net
|
||||
0.0.0.0 ev.kck.st
|
||||
0.0.0.0 ezodn.com
|
||||
0.0.0.0 fast.appcues.com
|
||||
0.0.0.0 gc.zgo.at
|
||||
0.0.0.0 geo-eu.snigelweb.com
|
||||
0.0.0.0 geo-us.snigelweb.com
|
||||
0.0.0.0 go.ezodn.com
|
||||
0.0.0.0 ip.prvtx.net
|
||||
0.0.0.0 metrics.readme.io
|
||||
0.0.0.0 pixel-static.spotify.com
|
||||
0.0.0.0 pixel.ampry.com
|
||||
0.0.0.0 pixel.spotify.com
|
||||
0.0.0.0 plus.addkt.com
|
||||
0.0.0.0 powerad.ai
|
||||
0.0.0.0 prebid-server-production.herokuapp.com
|
||||
0.0.0.0 privatestats.whatsapp.net
|
||||
0.0.0.0 programmatic.doceree.com
|
||||
0.0.0.0 protected-by.clarium.io
|
||||
0.0.0.0 scripts.simpleanalyticscdn.com
|
||||
0.0.0.0 scripttags.justuno.com
|
||||
0.0.0.0 secure-sts-prod.imrworldwide.com
|
||||
0.0.0.0 server.ethicalads.io
|
||||
0.0.0.0 shynet.rmrm.io
|
||||
0.0.0.0 smetrics.cnn.com
|
||||
0.0.0.0 smetrics.elsevier.com
|
||||
0.0.0.0 snigelweb-com.videoplayerhub.com
|
||||
0.0.0.0 snigelweb.com
|
||||
0.0.0.0 static.addtoany.com
|
||||
0.0.0.0 static.cloudflareinsights.com
|
||||
0.0.0.0 stats.framasoft.org
|
||||
0.0.0.0 stats.kde.org
|
||||
0.0.0.0 stats.libretexts.org
|
||||
0.0.0.0 stats.nextcloud.com
|
||||
0.0.0.0 t.stripe.com
|
||||
0.0.0.0 tag.rmp.rakuten.com
|
||||
0.0.0.0 trackjs.com
|
||||
0.0.0.0 trapsaminohut.com
|
||||
0.0.0.0 trk.justanswer.com
|
||||
0.0.0.0 trk.justanswer.com
|
||||
0.0.0.0 u.o0bc.com
|
||||
0.0.0.0 uk-script.dotmetrics.net
|
||||
0.0.0.0 uk-script.dotmetrics.net
|
||||
0.0.0.0 uptime.com
|
||||
0.0.0.0 us-east-1.prod.pw.analytics.console.aws.a2z.com
|
||||
0.0.0.0 userreport.com
|
||||
0.0.0.0 vitals.vercel-insights.com
|
||||
0.0.0.0 vms.boldchat.com
|
||||
0.0.0.0 vt.myvisualiq.net
|
||||
0.0.0.0 web.vortex.data.microsoft.com
|
||||
0.0.0.0 web.vortex.data.msn.com
|
||||
0.0.0.0 www.datadoghq-browser-agent.com
|
||||
0.0.0.0 www.fastly-insights.com
|
||||
0.0.0.0 www.increaserev.com
|
||||
0.0.0.0 www.medtargetsystem.com
|
||||
0.0.0.0 www.npttech.com
|
||||
0.0.0.0 www.stack-sonar.com
|
||||
|
||||
#
|
||||
# From https://github.com/prebid/Prebid.js
|
||||
#
|
||||
|
||||
0.0.0.0 bidder.7xbid.com
|
||||
0.0.0.0 bidder.ablida.net
|
||||
0.0.0.0 mp.4dex.io
|
||||
0.0.0.0 stat.adfinity.pro
|
||||
0.0.0.0 api-test.scaleout.jp
|
||||
0.0.0.0 try.engine.adglare.net
|
||||
0.0.0.0 api.publishers.adlive.io
|
||||
0.0.0.0 pub.admanmedia.com
|
||||
0.0.0.0 ads4.admatic.com.tr
|
||||
0.0.0.0 prebid.admedia.com
|
||||
0.0.0.0 delivery.adnuntius.com
|
||||
0.0.0.0 rtb.adpone.com
|
||||
0.0.0.0 eu-ads.adpone.com
|
||||
0.0.0.0 delta.adprime.com
|
||||
0.0.0.0 ssp.adrelevantis.com
|
||||
0.0.0.0 rtb.com.ru
|
||||
0.0.0.0 ghb.console.adtarget.com.tr
|
||||
0.0.0.0 ghb.adtelligent.com
|
||||
0.0.0.0 ghb.ads.152media.com
|
||||
0.0.0.0 ghb.hbmp.mediafuse.com
|
||||
0.0.0.0 nep.advangelists.com
|
||||
0.0.0.0 ssp.advenuemedia.co.uk
|
||||
0.0.0.0 api.advertly.com
|
||||
0.0.0.0 analytics.wmgroup.us
|
||||
0.0.0.0 rtb.adwmg.com
|
||||
0.0.0.0 hbarxs.adxcg.net
|
||||
0.0.0.0 hbps.adxcg.net
|
||||
0.0.0.0 adxpremium.services
|
||||
0.0.0.0 hb-api.omnitagjs.com
|
||||
0.0.0.0 hb-api-fra01.omnitagjs.com
|
||||
0.0.0.0 ad.as.amanad.adtdp.com
|
||||
0.0.0.0 prebid.a-mo.net
|
||||
0.0.0.0 1x1.a-mo.net
|
||||
0.0.0.0 useast.quantumdex.io
|
||||
0.0.0.0 sync.quantumdex.io
|
||||
0.0.0.0 ad-jp.apx.appier.net
|
||||
0.0.0.0 mock-bapi.userreport.com
|
||||
0.0.0.0 bapi.userreport.com
|
||||
0.0.0.0 ssp.astraone.io
|
||||
0.0.0.0 d.audiencerun.com
|
||||
0.0.0.0 rtb2.automatad.com
|
||||
0.0.0.0 ads.avct.cloud
|
||||
0.0.0.0 bid.glass
|
||||
0.0.0.0 service.bidlab.ai
|
||||
0.0.0.0 exchange.bidphysics.com
|
||||
0.0.0.0 us-e-node1.bizzclick.com
|
||||
0.0.0.0 dev.pbs.bluebillywig.com
|
||||
0.0.0.0 pbs.bluebillywig.com
|
||||
0.0.0.0 ssp.videowalldirect.com
|
||||
0.0.0.0 cs.videowalldirect.com
|
||||
0.0.0.0 prebid.scupio.com
|
||||
0.0.0.0 brightcombid.marphezis.com
|
||||
0.0.0.0 console.brightmountainmedia.com
|
||||
0.0.0.0 px.britepool.com
|
||||
0.0.0.0 prebid.bksn.se
|
||||
0.0.0.0 exchange.buzzoola.com
|
||||
0.0.0.0 tube.buzzoola.com
|
||||
0.0.0.0 prebid.byplay.net
|
||||
0.0.0.0 h.cedatoplayer.com
|
||||
0.0.0.0 bidder.cleanmediaads.com
|
||||
0.0.0.0 ad.holmesmind.com
|
||||
0.0.0.0 appspb.cointraffic.io
|
||||
0.0.0.0 request.czilladx.com
|
||||
0.0.0.0 publishers.motionspots.com
|
||||
0.0.0.0 colossusssp.com
|
||||
0.0.0.0 tech.convergd.com
|
||||
0.0.0.0 bid.cosmoshq.com
|
||||
0.0.0.0 sync.cosmoshq.com
|
||||
0.0.0.0 dev.server.cpmstar.com
|
||||
0.0.0.0 staging.server.cpmstar.com
|
||||
0.0.0.0 gacraft.jp
|
||||
0.0.0.0 pbs.dailyhunt.in
|
||||
0.0.0.0 qa-pbs-van.dailyhunt.in
|
||||
0.0.0.0 prebid.datablocks.net
|
||||
0.0.0.0 supply.decenterads.com
|
||||
0.0.0.0 dmx.districtm.io
|
||||
0.0.0.0 cdn.districtm.io
|
||||
0.0.0.0 ad.divreach.com
|
||||
0.0.0.0 demo.reviveadservermod.com
|
||||
0.0.0.0 buyer.dspx.tv
|
||||
0.0.0.0 dcbuyer.dspx.tv
|
||||
0.0.0.0 service.e-volution.ai
|
||||
0.0.0.0 dsp.bnmla.com
|
||||
0.0.0.0 deep.edgequery.io
|
||||
0.0.0.0 prebid.emoteev.io
|
||||
0.0.0.0 prebid-staging.emoteev.io
|
||||
0.0.0.0 ad.nvivo.tv
|
||||
0.0.0.0 i.e-planning.net
|
||||
0.0.0.0 sk.search.etargetnet.com
|
||||
0.0.0.0 cz.search.etargetnet.com
|
||||
0.0.0.0 hu.search.etargetnet.com
|
||||
0.0.0.0 ro.search.etargetnet.com
|
||||
0.0.0.0 rs.search.etargetnet.com
|
||||
0.0.0.0 bg.search.etargetnet.com
|
||||
0.0.0.0 pl.search.etargetnet.com
|
||||
0.0.0.0 hr.search.etargetnet.com
|
||||
0.0.0.0 at.search.etargetnet.com
|
||||
0.0.0.0 co.search.etargetnet.com
|
||||
0.0.0.0 de.search.etargetnet.com
|
||||
0.0.0.0 en.search.etargetnet.com
|
||||
0.0.0.0 fid.agkn.com
|
||||
0.0.0.0 api.feedad.com
|
||||
0.0.0.0 content.mql5.com
|
||||
0.0.0.0 hb.adingo.jp
|
||||
0.0.0.0 rtb.gamoshi.io
|
||||
0.0.0.0 s.gamoshi.io
|
||||
0.0.0.0 wrappers.geoedge.be
|
||||
0.0.0.0 central.gjirafa.com
|
||||
0.0.0.0 api.glimpseprotocol.io
|
||||
0.0.0.0 grid.bidswitch.net
|
||||
0.0.0.0 bidder.h12-media.com
|
||||
0.0.0.0 seg.halo.ad.gt
|
||||
0.0.0.0 balancer.haxmedia.io
|
||||
0.0.0.0 banner.hpmdnetwork.ru
|
||||
0.0.0.0 hbe198.hybrid.ai
|
||||
0.0.0.0 ice.360yield.com
|
||||
0.0.0.0 px.owneriq.net
|
||||
0.0.0.0 bid.videostep.com
|
||||
0.0.0.0 k.r66net.com
|
||||
0.0.0.0 api.pymx5.com
|
||||
0.0.0.0 hb.yellowblue.io
|
||||
0.0.0.0 htlb.casalemedia.com
|
||||
0.0.0.0 hbtra.jixie.io
|
||||
0.0.0.0 scripts.jixie.io
|
||||
0.0.0.0 hb.jixie.io
|
||||
0.0.0.0 s.komoona.com
|
||||
0.0.0.0 tracker.konduit.me
|
||||
0.0.0.0 p.konduit.me
|
||||
0.0.0.0 ads4.krushmedia.com
|
||||
0.0.0.0 cs.krushmedia.com
|
||||
0.0.0.0 kssp.kbntx.ch
|
||||
0.0.0.0 kdmp.kbntx.ch
|
||||
0.0.0.0 ads.lemmatechnologies.com
|
||||
0.0.0.0 sync.lemmatechnologies.com
|
||||
0.0.0.0 lwadm.com
|
||||
0.0.0.0 pb.ladsp.com
|
||||
0.0.0.0 id.crwdcntrl.net
|
||||
0.0.0.0 nep.advangelists.com
|
||||
0.0.0.0 player-cdn.beachfrontmedia.com
|
||||
0.0.0.0 balancer.lmgssp.com
|
||||
0.0.0.0 rtb.adxpremium.services
|
||||
0.0.0.0 analytics.adxpremium.services
|
||||
0.0.0.0 central.mall.tv
|
||||
0.0.0.0 prebid_stats.mars.media
|
||||
0.0.0.0 hb.go2speed.media
|
||||
0.0.0.0 ping-hqx-1.go2speed.media
|
||||
0.0.0.0 rtb-filter.meazy.co
|
||||
0.0.0.0 sync.meazy.co
|
||||
0.0.0.0 rtb-us.mediago.io
|
||||
0.0.0.0 pb-logs.media.net
|
||||
0.0.0.0 pbs-front.mediasquare.fr
|
||||
0.0.0.0 bidder-test.mediasquare.fr
|
||||
0.0.0.0 mid.rkdms.com
|
||||
0.0.0.0 rtbtest.send.microad.jp
|
||||
0.0.0.0 bes.mobfox.com
|
||||
0.0.0.0 prebid.mobsmart.net
|
||||
0.0.0.0 tags.mobsmart.net
|
||||
0.0.0.0 nafdigitalbidder.com
|
||||
0.0.0.0 ad.audiencemanager.de
|
||||
0.0.0.0 adn.admixer.co.kr
|
||||
0.0.0.0 brainlyads.com
|
||||
0.0.0.0 qa-ads.nobid.com
|
||||
0.0.0.0 onetag-sys.com
|
||||
|
||||
# www.qatarairways.com
|
||||
0.0.0.0 smetrics.qatarairways.com
|
||||
0.0.0.0 qatarairways.tt.omtrdc.net
|
||||
0.0.0.0 api.boxever.com
|
||||
|
||||
# openstax.org
|
||||
0.0.0.0 js.pulseinsights.com
|
||||
|
||||
# www.osano.com
|
||||
0.0.0.0 snap.licdn.com
|
||||
|
||||
# www.quizexpo.com
|
||||
0.0.0.0 demand.supply
|
||||
0.0.0.0 live.demand.supply
|
||||
|
||||
# america.aljazeera.com
|
||||
0.0.0.0 cdn.gigya.com
|
||||
|
||||
# www.cplusplus.com
|
||||
0.0.0.0 cloud.setupad.com
|
||||
0.0.0.0 node.setupad.com
|
||||
0.0.0.0 prebid-stag.setupad.net
|
||||
|
||||
# www.jstor.org
|
||||
0.0.0.0 ja.jstor.org
|
||||
|
||||
# brilliant.org
|
||||
0.0.0.0 in.brilliant.org
|
||||
|
||||
# artixlinux.org
|
||||
0.0.0.0 stats.artixlinux.org
|
||||
|
||||
# ywc.thehindu.com
|
||||
0.0.0.0 csm.cxpublic.com
|
||||
0.0.0.0 tai.thehindu.com
|
||||
0.0.0.0 dm.thehindu.com
|
||||
0.0.0.0 go.automatad.com
|
||||
0.0.0.0 b2cdn.automatad.com
|
||||
0.0.0.0 cdn.automatad.com
|
||||
|
||||
# www.gourmetads.com
|
||||
0.0.0.0 bcdn.grmtas.com
|
||||
|
||||
# www.msn.com
|
||||
0.0.0.0 mssl.fwmrm.net
|
||||
0.0.0.0 visitor.omnitagjs.com
|
||||
|
||||
# www.digitalmarketer.com
|
||||
0.0.0.0 snippet.upviral.com
|
||||
0.0.0.0 app.upviral.com
|
||||
|
||||
# go.pendo.io
|
||||
0.0.0.0 js.driftt.com
|
||||
0.0.0.0 api.drift.com
|
||||
0.0.0.0 account.api.drift.com
|
||||
0.0.0.0 pages.api.driftqa.com
|
||||
0.0.0.0 conversation2.api.driftqa.com
|
||||
0.0.0.0 customer2.api.driftqa.com
|
||||
0.0.0.0 file2.api.driftqa.com
|
||||
0.0.0.0 ws.api.driftqa.com
|
||||
0.0.0.0 drift.click
|
||||
|
||||
# jsfiddle.net
|
||||
0.0.0.0 crbcdn.jsfiddle.net
|
||||
0.0.0.0 crbsrv.jsfiddle.net
|
||||
|
||||
# htwins.net
|
||||
0.0.0.0 queue.simpleanalyticscdn.com
|
||||
|
||||
# linkedin.github.io
|
||||
0.0.0.0 tracking.eskratch.com
|
||||
|
||||
# gizmodo.com
|
||||
0.0.0.0 sourcepoint.gizmodo.com
|
||||
|
||||
# awesomewm.org
|
||||
0.0.0.0 piwik.awesomewm.org
|
||||
|
||||
# www.aljazeera.com
|
||||
0.0.0.0 tags.aljazeera.com
|
||||
0.0.0.0 cdn.omnivirt.com
|
||||
|
||||
# 65521.org
|
||||
0.0.0.0 stats.0www.org
|
||||
|
||||
# dotcs.me
|
||||
0.0.0.0 analytics.home.dotcs.me
|
||||
|
||||
# speedtest.net.uk
|
||||
0.0.0.0 stats.custserv.net
|
||||
|
||||
# www.openstreetmap.org
|
||||
0.0.0.0 piwik.openstreetmap.org
|
||||
|
||||
# www.babbel.com
|
||||
0.0.0.0 marketing-tracker.babbel.com
|
||||
|
||||
# www.aparnaconstructions.com
|
||||
0.0.0.0 hspx.hotstar.com
|
||||
|
||||
# prepaid.t-mobile.com
|
||||
0.0.0.0 lptag.liveperson.net
|
||||
|
||||
# www.redbubble.com
|
||||
0.0.0.0 analytics-cdn.redbubble.com
|
||||
|
||||
# geeknet.me
|
||||
0.0.0.0 stats.harbauer.org
|
||||
|
||||
# amiunique.org
|
||||
0.0.0.0 analytics.amiunique.org
|
||||
|
||||
# blockchair.com
|
||||
0.0.0.0 stats.blockchair.com
|
||||
|
||||
# greenhost.net
|
||||
0.0.0.0 livestats.greenhost.nl
|
||||
|
||||
# maproulette.org
|
||||
0.0.0.0 analytics.maproulette.org
|
||||
|
||||
# alexei.pesic.dev
|
||||
0.0.0.0 cdn.panelbear.com
|
||||
|
||||
# thisstartupdoesnotexist.com
|
||||
0.0.0.0 reports.teamemo-solutions.de
|
||||
|
||||
# unsplash.com
|
||||
0.0.0.0 collector.unsplash.com
|
||||
|
||||
# musescore.com
|
||||
0.0.0.0 track.musescore.com
|
||||
|
||||
# ecmelberk.com
|
||||
0.0.0.0 ads.ebc.li
|
||||
|
||||
# kevq.uk
|
||||
0.0.0.0 stats.kevq.uk
|
||||
|
||||
# linuxjournal.com
|
||||
0.0.0.0 analytics.linuxjournal.com
|
||||
|
||||
# www.fsf.org
|
||||
0.0.0.0 piwik.fsf.org
|
||||
|
||||
# www.notion.so
|
||||
0.0.0.0 analytics.pgncs.notion.so
|
||||
|
||||
# netsyms.com
|
||||
0.0.0.0 analytics.netsyms.net
|
||||
|
||||
# remix.ethereum.org
|
||||
0.0.0.0 matomo.ethereum.org
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "shady-hosts",
|
||||
"description": "Analytics, ad, and activity monitoring hosts",
|
||||
"homeurl": "https://github.com/shreyasminocha/shady-hosts",
|
||||
"frequency": "occasionally",
|
||||
"issues": "https://github.com/shreyasminocha/shady-hosts/issues",
|
||||
"url": "https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts",
|
||||
"license": "CC0-1.0"
|
||||
}
|
||||
+4609
-3406
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"name": "Dan Pollock – [someonewhocares](https://someonewhocares.org)",
|
||||
"name": "Dan Pollock – [someonewhocares](https://someonewhocares.org/)",
|
||||
"description": "How to make the internet not suck (as much).",
|
||||
"homeurl": "https://someonewhocares.org/hosts/",
|
||||
"frequency": "frequently",
|
||||
"issues": "hosts@someonewhocares.org",
|
||||
"issues": "mailto:hosts@someonewhocares.org",
|
||||
"url": "https://someonewhocares.org/hosts/zero/hosts",
|
||||
"license": "non-commercial with attribution"
|
||||
}
|
||||
|
||||
+19
-4
@@ -1,4 +1,3 @@
|
||||
0.0.0.0 www.cyber-ad01.cc
|
||||
0.0.0.0 100234.advision-adnw.jp
|
||||
0.0.0.0 100291.adnico.jp
|
||||
0.0.0.0 100602.advision-adnw.jp
|
||||
@@ -307,6 +306,7 @@
|
||||
0.0.0.0 ads.mediams.mb.softbank.jp
|
||||
0.0.0.0 ads.mediasmart.es
|
||||
0.0.0.0 ads.metropolis.co.jp
|
||||
0.0.0.0 ads.missena.io
|
||||
0.0.0.0 ads.mixi.jp
|
||||
0.0.0.0 ads.mopub.com
|
||||
0.0.0.0 ads.mp.mydas.mobi
|
||||
@@ -356,6 +356,7 @@
|
||||
0.0.0.0 adtechjp.com
|
||||
0.0.0.0 adticker.net
|
||||
0.0.0.0 adtilt.com
|
||||
0.0.0.0 adtrack.appcpi.net
|
||||
0.0.0.0 adtrack.king.com
|
||||
0.0.0.0 adtracker.inmobi.com
|
||||
0.0.0.0 adtracker.jp
|
||||
@@ -426,7 +427,6 @@
|
||||
0.0.0.0 amazon.oret.jp
|
||||
0.0.0.0 amazoo.longseller.org
|
||||
0.0.0.0 ameba.d.ad-cloud.jp
|
||||
0.0.0.0 amiami.jp
|
||||
0.0.0.0 aml.valuecommerce.com
|
||||
0.0.0.0 amoad.com
|
||||
0.0.0.0 ams.exad.jp
|
||||
@@ -435,9 +435,13 @@
|
||||
0.0.0.0 an.mainichi.jp
|
||||
0.0.0.0 ana2.tatsumi-sys.jp
|
||||
0.0.0.0 analysiswebtool.com
|
||||
0.0.0.0 analytics-ingress-global.bitmovin.com
|
||||
0.0.0.0 analytics.cocolog-nifty.com
|
||||
0.0.0.0 analytics.global.sky.com
|
||||
0.0.0.0 analytics.grupogodo.com
|
||||
0.0.0.0 analytics.ooyala.com
|
||||
0.0.0.0 analytics.qlook.net
|
||||
0.0.0.0 analytics.sleeknote.com
|
||||
0.0.0.0 analyzer.fc2.com
|
||||
0.0.0.0 analyzer2.fc2.com
|
||||
0.0.0.0 analyzer5.fc2.com
|
||||
@@ -451,7 +455,6 @@
|
||||
0.0.0.0 android.public.astrsk.net
|
||||
0.0.0.0 androidads20.adcolony.com
|
||||
0.0.0.0 androidsdk.ads.mp.mydas.mobi
|
||||
0.0.0.0 animate.adobe.com
|
||||
0.0.0.0 aniview.com
|
||||
0.0.0.0 anonymousdemographics.com
|
||||
0.0.0.0 antennash.com
|
||||
@@ -492,12 +495,14 @@
|
||||
0.0.0.0 api.uca.cloud.unity3d.com
|
||||
0.0.0.0 api.unthem.com
|
||||
0.0.0.0 api.webpush.jp
|
||||
0.0.0.0 apiadapter.ad5track.com
|
||||
0.0.0.0 aplkp.valuecommerce.com
|
||||
0.0.0.0 app-adforce.jp
|
||||
0.0.0.0 app-c.net
|
||||
0.0.0.0 app-install-world.com
|
||||
0.0.0.0 app-measurement.com
|
||||
0.0.0.0 app.adjust.com
|
||||
0.0.0.0 app.adjust.net.in
|
||||
0.0.0.0 appad.click
|
||||
0.0.0.0 appad02.mbsp.jp
|
||||
0.0.0.0 appier.mobi
|
||||
@@ -755,7 +760,6 @@
|
||||
0.0.0.0 chibauni.com
|
||||
0.0.0.0 chikayo-dsp.shinobi.jp
|
||||
0.0.0.0 ciltbakimiveguzellik.com
|
||||
0.0.0.0 cint.com
|
||||
0.0.0.0 ck.jp.ap.valuecommerce.com
|
||||
0.0.0.0 ck.storematch.jp
|
||||
0.0.0.0 cleaningmovies.analytics.qlook.net
|
||||
@@ -942,6 +946,7 @@
|
||||
0.0.0.0 erotube69.pw
|
||||
0.0.0.0 et.w.inmobi.com
|
||||
0.0.0.0 etc.atja.jp
|
||||
0.0.0.0 eu-track.inside-graph.com
|
||||
0.0.0.0 eurocentrichandbags.com
|
||||
0.0.0.0 evelynswonderland.com
|
||||
0.0.0.0 events.appsflyer.com
|
||||
@@ -990,6 +995,7 @@
|
||||
0.0.0.0 g2.072m.com
|
||||
0.0.0.0 g2.gumgum.com
|
||||
0.0.0.0 gad.shinobi.jp
|
||||
0.0.0.0 gameanalysis.appcpi.net
|
||||
0.0.0.0 gamefeat.net
|
||||
0.0.0.0 gamewallet.jp
|
||||
0.0.0.0 gardeningst.men
|
||||
@@ -1383,6 +1389,7 @@
|
||||
0.0.0.0 mb-click.jp
|
||||
0.0.0.0 mcgm.sakura.ne.jp
|
||||
0.0.0.0 mcnt.jp
|
||||
0.0.0.0 mctd22d-xfy4kdg18w8cmd9bvhsq.device.marketingcloudapis.com
|
||||
0.0.0.0 md.m-space.jp
|
||||
0.0.0.0 mdn2015x1.com
|
||||
0.0.0.0 mdpl-jp.com
|
||||
@@ -1461,6 +1468,7 @@
|
||||
0.0.0.0 mxvp-feature-toggle-prod-1.zenmxapps.com
|
||||
0.0.0.0 my-softbank-jp.com
|
||||
0.0.0.0 my.mobfox.com
|
||||
0.0.0.0 mybbc-analytics.files.bbci.co.uk
|
||||
0.0.0.0 mybgbgclojp.com
|
||||
0.0.0.0 mycdn2.co
|
||||
0.0.0.0 mydas.mobi
|
||||
@@ -1611,6 +1619,7 @@
|
||||
0.0.0.0 projectpoi.com
|
||||
0.0.0.0 promotionalads.yahoo.co.jp
|
||||
0.0.0.0 proparm.jp
|
||||
0.0.0.0 propeller-tracking.com
|
||||
0.0.0.0 prscripts.com
|
||||
0.0.0.0 ps-jp.amazon-adsystem.com
|
||||
0.0.0.0 ps-us.amazon-adsystem.com
|
||||
@@ -1753,6 +1762,7 @@
|
||||
0.0.0.0 s11.j-a-net.jp
|
||||
0.0.0.0 s13.j-a-net.jp
|
||||
0.0.0.0 s2.nend.net
|
||||
0.0.0.0 s3-analytics-events.easybrain.com
|
||||
0.0.0.0 s3.buysellads.com
|
||||
0.0.0.0 s3.mobile.val.jp
|
||||
0.0.0.0 s7.addthis.com
|
||||
@@ -1978,11 +1988,15 @@
|
||||
0.0.0.0 track.richmediaads.com
|
||||
0.0.0.0 track.somewrite.jp
|
||||
0.0.0.0 track.tenjin.io
|
||||
0.0.0.0 tracker.bt.uol.com.br
|
||||
0.0.0.0 tracker.iws.vc
|
||||
0.0.0.0 tracker.kantan-access.com
|
||||
0.0.0.0 tracker.mca-analytics.com
|
||||
0.0.0.0 tracker.publico.pt
|
||||
0.0.0.0 tracker.remp.impresa.pt
|
||||
0.0.0.0 trackfeed.com
|
||||
0.0.0.0 tracking-server-prod-1.zenmxapps.com
|
||||
0.0.0.0 tracking.yohoads.com
|
||||
0.0.0.0 trackword.net
|
||||
0.0.0.0 tradedoubler.com
|
||||
0.0.0.0 traffic-staff.com
|
||||
@@ -2087,6 +2101,7 @@
|
||||
0.0.0.0 www.buzzimpress.jp
|
||||
0.0.0.0 www.clicksgear.com
|
||||
0.0.0.0 www.clicktx.jp
|
||||
0.0.0.0 www.cyber-ad01.cc
|
||||
0.0.0.0 www.doubleclick.ne.jp
|
||||
0.0.0.0 www.g-af.com
|
||||
0.0.0.0 www.gamefeat.net
|
||||
|
||||
+801
-245
File diff suppressed because it is too large
Load Diff
@@ -6,5 +6,3 @@
|
||||
"issues": "mailto:pgl@yoyo.org",
|
||||
"url": "https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0"
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
@ECHO OFF
|
||||
:: Check if we are administrator. If not, exit immediately.
|
||||
:: BatchGotAdmin
|
||||
:-------------------------------------
|
||||
REM --> Check for permissions
|
||||
IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" (
|
||||
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"
|
||||
) ELSE (
|
||||
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
|
||||
)
|
||||
|
||||
REM --> If error flag set, we do not have admin.
|
||||
if '%errorlevel%' NEQ '0' (
|
||||
echo Requesting administrative privileges...
|
||||
goto UACPrompt
|
||||
) else ( goto gotAdmin )
|
||||
|
||||
:UACPrompt
|
||||
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
|
||||
set params= %*
|
||||
echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params:"=""%", "", "runas", 1 >> "%temp%\getadmin.vbs"
|
||||
|
||||
"%temp%\getadmin.vbs"
|
||||
del "%temp%\getadmin.vbs"
|
||||
exit /B
|
||||
|
||||
:gotAdmin
|
||||
pushd "%CD%"
|
||||
CD /D "%~dp0"
|
||||
goto SCset
|
||||
|
||||
:SCset
|
||||
:: https://superuser.com/a/1217703
|
||||
:: https://stackoverflow.com/a/133926
|
||||
::sc config Dnscache start= disabled
|
||||
::sc stop Dnscache
|
||||
|
||||
:: VALUE
|
||||
:: 2 (Automatic) (DEFAULT)
|
||||
:: 4 (Disabled) (prevent freeze network after applying huge hosts file)
|
||||
::
|
||||
:: Latest changes in security Windows 10 denied access to changing services via other tools except registry hack
|
||||
::
|
||||
:: See https://superuser.com/a/1277960
|
||||
::
|
||||
REG add "HKLM\SYSTEM\CurrentControlSet\services\Dnscache" /v Start /t REG_DWORD /d 4 /f
|
||||
echo "Reboot your system now!"
|
||||
echo .
|
||||
@PAUSE
|
||||
File diff suppressed because it is too large
Load Diff
+1971
-1869
File diff suppressed because it is too large
Load Diff
+9409
-1391
File diff suppressed because it is too large
Load Diff
@@ -12,7 +12,9 @@
|
||||
127.0.0.1 theync.com
|
||||
127.0.0.1 miscopy.com
|
||||
127.0.0.1 mixtape.moe
|
||||
127.0.0.1 sickjunk.com
|
||||
127.0.0.1 elblogdelnarco.com
|
||||
127.0.0.1 kaotic.com
|
||||
127.0.0.1 ogrish.tv
|
||||
127.0.0.1 thepinsta.com
|
||||
127.0.0.1 vidmax.com
|
||||
|
||||
+15116
-9334
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,21 @@
|
||||
0.0.0.0 002.pinknotora.net
|
||||
0.0.0.0 85tube.com
|
||||
0.0.0.0 ac-pink.net
|
||||
0.0.0.0 actionjav.com
|
||||
0.0.0.0 adult-gazou.me
|
||||
0.0.0.0 ancensored.com
|
||||
0.0.0.0 antenna.i-like-movie.net
|
||||
0.0.0.0 asexon.com
|
||||
0.0.0.0 asiamoviepass.com
|
||||
0.0.0.0 asianscandal.net
|
||||
0.0.0.0 asianstreetmeat.com
|
||||
0.0.0.0 av-photograph.com
|
||||
0.0.0.0 avcrempie.com
|
||||
0.0.0.0 avli.me
|
||||
0.0.0.0 avwend.com
|
||||
0.0.0.0 azzporn.com
|
||||
0.0.0.0 babarooba.x.fc2.com
|
||||
0.0.0.0 bakufu.jp
|
||||
0.0.0.0 bbscamp.net
|
||||
0.0.0.0 boyporn.pro
|
||||
0.0.0.0 candybbwporn.com
|
||||
@@ -14,10 +28,21 @@
|
||||
0.0.0.0 dennou2.x.fc2.com
|
||||
0.0.0.0 duga.jp
|
||||
0.0.0.0 en.dmm.co.jp
|
||||
0.0.0.0 ero-shame.com
|
||||
0.0.0.0 eroangle.net
|
||||
0.0.0.0 eroerozip.com
|
||||
0.0.0.0 erogazo-sekurosu.com
|
||||
0.0.0.0 erogazoo555.com
|
||||
0.0.0.0 erogazooo.club
|
||||
0.0.0.0 erogazou-choice.com
|
||||
0.0.0.0 erogazou-porn.com
|
||||
0.0.0.0 erogazou.gallery
|
||||
0.0.0.0 erogazouman.net
|
||||
0.0.0.0 erogazounosuke.com
|
||||
0.0.0.0 esboss.com
|
||||
0.0.0.0 explorejapan.pw
|
||||
0.0.0.0 expo2.ranks1.apserver.net
|
||||
0.0.0.0 fevian.orgdojin
|
||||
0.0.0.0 fob.jp
|
||||
0.0.0.0 freefullporno.info
|
||||
0.0.0.0 freepornvs.com
|
||||
@@ -27,7 +52,9 @@
|
||||
0.0.0.0 gfporntube.com
|
||||
0.0.0.0 hairytubeporno.com
|
||||
0.0.0.0 hakusuiriki.tv
|
||||
0.0.0.0 hentaihand.com
|
||||
0.0.0.0 hentaipornpics.net
|
||||
0.0.0.0 hipup.net
|
||||
0.0.0.0 hitozumagazo.com
|
||||
0.0.0.0 hiyoko0.x.fc2.com
|
||||
0.0.0.0 home.uchu.co.jp
|
||||
@@ -37,21 +64,54 @@
|
||||
0.0.0.0 idolzone.blog137.fc2.com
|
||||
0.0.0.0 inaka.x.fc2.com
|
||||
0.0.0.0 jams.kir.jp
|
||||
0.0.0.0 japanesefuckers.com
|
||||
0.0.0.0 jav.land
|
||||
0.0.0.0 javbulk.com
|
||||
0.0.0.0 javbuz.com
|
||||
0.0.0.0 javengsub.com
|
||||
0.0.0.0 javfinder.la
|
||||
0.0.0.0 javfree.biz
|
||||
0.0.0.0 javhay.net
|
||||
0.0.0.0 javhdmovies.com
|
||||
0.0.0.0 javhihi.me
|
||||
0.0.0.0 javhub.me
|
||||
0.0.0.0 javladies.com
|
||||
0.0.0.0 javmodel.com
|
||||
0.0.0.0 javpedia.org
|
||||
0.0.0.0 javpool.com
|
||||
0.0.0.0 javrave.club
|
||||
0.0.0.0 javsun.net
|
||||
0.0.0.0 javupdatedaily.blogspot.com
|
||||
0.0.0.0 javwide.tv
|
||||
0.0.0.0 javx.cc
|
||||
0.0.0.0 javxspot.com
|
||||
0.0.0.0 javxxxvideos.com
|
||||
0.0.0.0 javynow.com
|
||||
0.0.0.0 jitsuroku.kir.jp
|
||||
0.0.0.0 jkdaisuki.ad55.net
|
||||
0.0.0.0 kyobibbs.ranks1.apserver.net
|
||||
0.0.0.0 live.fc2.com
|
||||
0.0.0.0 lolip.org
|
||||
0.0.0.0 magopro2.ero-spo.com
|
||||
0.0.0.0 manhwa18.com
|
||||
0.0.0.0 mankist.com
|
||||
0.0.0.0 marrion-av.com
|
||||
0.0.0.0 megaporn.blogspot.es
|
||||
0.0.0.0 momon-ga.com
|
||||
0.0.0.0 mother-av.com
|
||||
0.0.0.0 motherpornvideos.com
|
||||
0.0.0.0 mutekiya.net
|
||||
0.0.0.0 mvideoporno.xxx
|
||||
0.0.0.0 nadeshiko.tv
|
||||
0.0.0.0 nekopoi.care
|
||||
0.0.0.0 newero1.blog.fc2.com
|
||||
0.0.0.0 news.tokimeki-s.com
|
||||
0.0.0.0 niccori.jp
|
||||
0.0.0.0 nikkanerog.com
|
||||
0.0.0.0 o-r-g-a-s-m-o-s.tumblr.com
|
||||
0.0.0.0 okkisokuho.com
|
||||
0.0.0.0 pakomanmama.com
|
||||
0.0.0.0 peepspider.com
|
||||
0.0.0.0 pics.dmm.com
|
||||
0.0.0.0 pornbimbo.com
|
||||
0.0.0.0 porndude.com
|
||||
@@ -62,6 +122,7 @@
|
||||
0.0.0.0 porntopic.com
|
||||
0.0.0.0 pornve.com
|
||||
0.0.0.0 pornvideoq.com
|
||||
0.0.0.0 sexopowiadania.pl
|
||||
0.0.0.0 sexyisamazing.tumblr.com
|
||||
0.0.0.0 shiroutotv.com
|
||||
0.0.0.0 siroutoinfo.net
|
||||
@@ -72,15 +133,21 @@
|
||||
0.0.0.0 sportseye.muvc.net
|
||||
0.0.0.0 ssl.ktfactory.co.jp
|
||||
0.0.0.0 star-porn.ml
|
||||
0.0.0.0 summertimesaga.com
|
||||
0.0.0.0 suppinpin.com
|
||||
0.0.0.0 surebbs.ranks1.apserver.net
|
||||
0.0.0.0 svjav.com
|
||||
0.0.0.0 switch1.jp
|
||||
0.0.0.0 teatroporno.com
|
||||
0.0.0.0 teppan-av.com
|
||||
0.0.0.0 top.togeko.net
|
||||
0.0.0.0 toujyuku.ranks1.apserver.net
|
||||
0.0.0.0 tousatu-douga-youpeeber.com
|
||||
0.0.0.0 ukrafoto.com
|
||||
0.0.0.0 unjav.com
|
||||
0.0.0.0 venus-av.com
|
||||
0.0.0.0 veporns.com
|
||||
0.0.0.0 vipcle2.com
|
||||
0.0.0.0 voyeurporntube.me
|
||||
0.0.0.0 vqporn.com
|
||||
0.0.0.0 www.100kabijin.com
|
||||
@@ -145,7 +212,9 @@
|
||||
0.0.0.0 www.e-corona.com
|
||||
0.0.0.0 www.elog-ch.net
|
||||
0.0.0.0 www.emmanuelle-av.com
|
||||
0.0.0.0 www.erogazou-mirunavi.com
|
||||
0.0.0.0 www.eroita.net
|
||||
0.0.0.0 www.erokkuma.com
|
||||
0.0.0.0 www.eroshearts.com
|
||||
0.0.0.0 www.fa-pro.com
|
||||
0.0.0.0 www.fantadream.com
|
||||
@@ -249,7 +318,9 @@
|
||||
0.0.0.0 www.saiminou.com
|
||||
0.0.0.0 www.sakurakikaku.net
|
||||
0.0.0.0 www.sexia.tv
|
||||
0.0.0.0 www.sexopowiadania.pl
|
||||
0.0.0.0 www.shanimuni.net
|
||||
0.0.0.0 www.sharesome.com
|
||||
0.0.0.0 www.shinoda-av.com
|
||||
0.0.0.0 www.shitagi.org
|
||||
0.0.0.0 www.shuttle-japan.com
|
||||
@@ -272,7 +343,7 @@
|
||||
0.0.0.0 www.to-satsu.com
|
||||
0.0.0.0 www.tokyomotion.net
|
||||
0.0.0.0 www.top1-net.com
|
||||
0.0.0.0 www.town-net.jp/post
|
||||
0.0.0.0 www.town-net.jp
|
||||
0.0.0.0 www.tumanude.com
|
||||
0.0.0.0 www.uandk-idea.co.jp
|
||||
0.0.0.0 www.uicupid.net
|
||||
@@ -284,6 +355,7 @@
|
||||
0.0.0.0 www.wanz-factory.com
|
||||
0.0.0.0 www.woman-otona.com
|
||||
0.0.0.0 www.yamiboard.com
|
||||
0.0.0.0 www.yamigama.com
|
||||
0.0.0.0 www.yellow-movie.com
|
||||
0.0.0.0 www.yellowbox.co.jp
|
||||
0.0.0.0 www.yellowduck.jp
|
||||
@@ -293,4 +365,5 @@
|
||||
0.0.0.0 xvideosporno.org
|
||||
0.0.0.0 xxxpornasian.com
|
||||
0.0.0.0 yamidas.yamiboard.com
|
||||
0.0.0.0 yamigama.com
|
||||
0.0.0.0 yespornplease.com
|
||||
|
||||
@@ -16,9 +16,12 @@ Here are some sample calls, which vary which extensions are included.
|
||||
|
||||
Create a hosts file that includes domain blocking for porn, social media, and gambling.
|
||||
|
||||
python3 updateHostsFile.py --auto --extensions porn social gambling
|
||||
```sh
|
||||
python3 updateHostsFile.py --auto --extensions porn social gambling
|
||||
```
|
||||
|
||||
or, in short form:
|
||||
|
||||
python3 updateHostsFile.py -a -e porn social gambling
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py -a -e porn social gambling
|
||||
```
|
||||
|
||||
@@ -1732,11 +1732,23 @@
|
||||
127.0.0.1 zh-tw.facebook.com
|
||||
|
||||
# Instagram
|
||||
127.0.0.1 a.ns.cdninstagram.com
|
||||
127.0.0.1 api.instagram.com
|
||||
127.0.0.1 b.ns.cdninstagram.com
|
||||
127.0.0.1 badges.instagram.com
|
||||
127.0.0.1 black.ish.instagram.com
|
||||
127.0.0.1 business.instagram.com
|
||||
127.0.0.1 c.ns.cdninstagram.com
|
||||
127.0.0.1 cdninstagram.com
|
||||
127.0.0.1 creative.cdninstagram.com
|
||||
127.0.0.1 d.ns.cdninstagram.com
|
||||
127.0.0.1 dragon.cdninstagram.com
|
||||
127.0.0.1 engineering.instagram.com
|
||||
127.0.0.1 external-prg1-1.cdninstagram.com
|
||||
127.0.0.1 external-vie1-1.cdninstagram.com
|
||||
127.0.0.1 external-waw1-1.cdninstagram.com
|
||||
127.0.0.1 external.cdninstagram.com
|
||||
127.0.0.1 fundingchoicesmessages.google.com
|
||||
127.0.0.1 help.instagram.com
|
||||
127.0.0.1 i.instagram.com
|
||||
127.0.0.1 images.instagram.com
|
||||
@@ -1795,31 +1807,309 @@
|
||||
127.0.0.1 instagramstatic-a.akamaihd.net.edgesuite.net
|
||||
127.0.0.1 l.instagram.com
|
||||
127.0.0.1 logger.instagram.com
|
||||
127.0.0.1 openvpn.cdninstagram.com
|
||||
127.0.0.1 platform.cdninstagram.com
|
||||
127.0.0.1 platform.instagram.com
|
||||
127.0.0.1 scontent-a-ams.cdninstagram.com
|
||||
127.0.0.1 scontent-a-amt.cdninstagram.com
|
||||
127.0.0.1 scontent-a-arn.cdninstagram.com
|
||||
127.0.0.1 scontent-a-atl.cdninstagram.com
|
||||
127.0.0.1 scontent-a-bog.cdninstagram.com
|
||||
127.0.0.1 scontent-a-bru.cdninstagram.com
|
||||
127.0.0.1 scontent-a-cdg.cdninstagram.com
|
||||
127.0.0.1 scontent-a-dfw.cdninstagram.com
|
||||
127.0.0.1 scontent-a-eze.cdninstagram.com
|
||||
127.0.0.1 scontent-a-frt.cdninstagram.com
|
||||
127.0.0.1 scontent-a-frx.cdninstagram.com
|
||||
127.0.0.1 scontent-a-gru.cdninstagram.com
|
||||
127.0.0.1 scontent-a-hkg.cdninstagram.com
|
||||
127.0.0.1 scontent-a-iad.cdninstagram.com
|
||||
127.0.0.1 scontent-a-kut.cdninstagram.com
|
||||
127.0.0.1 scontent-a-lax.cdninstagram.com
|
||||
127.0.0.1 scontent-a-lga.cdninstagram.com
|
||||
127.0.0.1 scontent-a-lht.cdninstagram.com
|
||||
127.0.0.1 scontent-a-mad.cdninstagram.com
|
||||
127.0.0.1 scontent-a-mia.cdninstagram.com
|
||||
127.0.0.1 scontent-a-mrs.cdninstagram.com
|
||||
127.0.0.1 scontent-a-mxp.cdninstagram.com
|
||||
127.0.0.1 scontent-a-nrt.cdninstagram.com
|
||||
127.0.0.1 scontent-a-ort.cdninstagram.com
|
||||
127.0.0.1 scontent-a-otp.cdninstagram.com
|
||||
127.0.0.1 scontent-a-scl.cdninstagram.com
|
||||
127.0.0.1 scontent-a-sea.cdninstagram.com
|
||||
127.0.0.1 scontent-a-sin.cdninstagram.com
|
||||
127.0.0.1 scontent-a-sjc.cdninstagram.com
|
||||
127.0.0.1 scontent-a-sof.cdninstagram.com
|
||||
127.0.0.1 scontent-a-syd.cdninstagram.com
|
||||
127.0.0.1 scontent-a-tpe.cdninstagram.com
|
||||
127.0.0.1 scontent-a-vie.cdninstagram.com
|
||||
127.0.0.1 scontent-a-waw.cdninstagram.com
|
||||
127.0.0.1 scontent-a-yyz.cdninstagram.com
|
||||
127.0.0.1 scontent-a.cdninstagram.com
|
||||
127.0.0.1 scontent-ams.cdninstagram.com
|
||||
127.0.0.1 scontent-ams3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-ams4-1.cdninstagram.com
|
||||
127.0.0.1 scontent-amt2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-arn.cdninstagram.com
|
||||
127.0.0.1 scontent-arn2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-arn2-2.cdninstagram.com
|
||||
127.0.0.1 scontent-atl.cdninstagram.com
|
||||
127.0.0.1 scontent-atl3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-b-ams.cdninstagram.com
|
||||
127.0.0.1 scontent-b-amt.cdninstagram.com
|
||||
127.0.0.1 scontent-b-arn.cdninstagram.com
|
||||
127.0.0.1 scontent-b-atl.cdninstagram.com
|
||||
127.0.0.1 scontent-b-bog.cdninstagram.com
|
||||
127.0.0.1 scontent-b-bru.cdninstagram.com
|
||||
127.0.0.1 scontent-b-cdg.cdninstagram.com
|
||||
127.0.0.1 scontent-b-dfw.cdninstagram.com
|
||||
127.0.0.1 scontent-b-eze.cdninstagram.com
|
||||
127.0.0.1 scontent-b-frt.cdninstagram.com
|
||||
127.0.0.1 scontent-b-frx.cdninstagram.com
|
||||
127.0.0.1 scontent-b-gru.cdninstagram.com
|
||||
127.0.0.1 scontent-b-hkg.cdninstagram.com
|
||||
127.0.0.1 scontent-b-iad.cdninstagram.com
|
||||
127.0.0.1 scontent-b-icn.cdninstagram.com
|
||||
127.0.0.1 scontent-b-kut.cdninstagram.com
|
||||
127.0.0.1 scontent-b-lax.cdninstagram.com
|
||||
127.0.0.1 scontent-b-lga.cdninstagram.com
|
||||
127.0.0.1 scontent-b-lhr.cdninstagram.com
|
||||
127.0.0.1 scontent-b-lht.cdninstagram.com
|
||||
127.0.0.1 scontent-b-mad.cdninstagram.com
|
||||
127.0.0.1 scontent-b-mia.cdninstagram.com
|
||||
127.0.0.1 scontent-b-mrs.cdninstagram.com
|
||||
127.0.0.1 scontent-b-mxp.cdninstagram.com
|
||||
127.0.0.1 scontent-b-nrt.cdninstagram.com
|
||||
127.0.0.1 scontent-b-ord.cdninstagram.com
|
||||
127.0.0.1 scontent-b-ort.cdninstagram.com
|
||||
127.0.0.1 scontent-b-otp.cdninstagram.com
|
||||
127.0.0.1 scontent-b-pao.cdninstagram.com
|
||||
127.0.0.1 scontent-b-scl.cdninstagram.com
|
||||
127.0.0.1 scontent-b-sea.cdninstagram.com
|
||||
127.0.0.1 scontent-b-sin.cdninstagram.com
|
||||
127.0.0.1 scontent-b-sjc.cdninstagram.com
|
||||
127.0.0.1 scontent-b-sof.cdninstagram.com
|
||||
127.0.0.1 scontent-b-syd.cdninstagram.com
|
||||
127.0.0.1 scontent-b-tpe.cdninstagram.com
|
||||
127.0.0.1 scontent-b-vie.cdninstagram.com
|
||||
127.0.0.1 scontent-b-waw.cdninstagram.com
|
||||
127.0.0.1 scontent-b-yyz.cdninstagram.com
|
||||
127.0.0.1 scontent-b.cdninstagram.com
|
||||
127.0.0.1 scontent-ber1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-bog1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-bom1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-bos3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-bru.cdninstagram.com
|
||||
127.0.0.1 scontent-bru2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-cai1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-cdg.cdninstagram.com
|
||||
127.0.0.1 scontent-cdg2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-cdt.cdninstagram.com
|
||||
127.0.0.1 scontent-cdt1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-cgk.cdninstagram.com
|
||||
127.0.0.1 scontent-cgk1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-cph2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-del1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-den4-1.cdninstagram.com
|
||||
127.0.0.1 scontent-dft4-1.cdninstagram.com
|
||||
127.0.0.1 scontent-dft4-2.cdninstagram.com
|
||||
127.0.0.1 scontent-dft4-3.cdninstagram.com
|
||||
127.0.0.1 scontent-dfw.cdninstagram.com
|
||||
127.0.0.1 scontent-dfw1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-dfw5-1.cdninstagram.com
|
||||
127.0.0.1 scontent-dfw5-2.cdninstagram.com
|
||||
127.0.0.1 scontent-dub4-1.cdninstagram.com
|
||||
127.0.0.1 scontent-dus.cdninstagram.com
|
||||
127.0.0.1 scontent-dus1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-eze1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-fco1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-fml1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-fml2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-for1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-fra3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-frt.cdninstagram.com
|
||||
127.0.0.1 scontent-frt3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-frt3-2.cdninstagram.com
|
||||
127.0.0.1 scontent-frx.cdninstagram.com
|
||||
127.0.0.1 scontent-frx5-1.cdninstagram.com
|
||||
127.0.0.1 scontent-gig2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-gmp1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-gru.cdninstagram.com
|
||||
127.0.0.1 scontent-gru1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-gru2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-gru2-2.cdninstagram.com
|
||||
127.0.0.1 scontent-ham3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-hbe1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-hel2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-hkg.cdninstagram.com
|
||||
127.0.0.1 scontent-hkg3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-hkg3-2.cdninstagram.com
|
||||
127.0.0.1 scontent-hkt1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-iad.cdninstagram.com
|
||||
127.0.0.1 scontent-iad3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-icn1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-itm1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-jnb1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-kul1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-kut2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-kut2-2.cdninstagram.com
|
||||
127.0.0.1 scontent-lax.cdninstagram.com
|
||||
127.0.0.1 scontent-lax3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-lax3-2.cdninstagram.com
|
||||
127.0.0.1 scontent-lga.cdninstagram.com
|
||||
127.0.0.1 scontent-lga3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-lhr.cdninstagram.com
|
||||
127.0.0.1 scontent-lhr3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-lhr8-1.cdninstagram.com
|
||||
127.0.0.1 scontent-lht6-1.cdninstagram.com
|
||||
127.0.0.1 scontent-lim1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-lis1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-maa2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-maa2-2.cdninstagram.com
|
||||
127.0.0.1 scontent-mad.cdninstagram.com
|
||||
127.0.0.1 scontent-mad1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-mba1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-mia.cdninstagram.com
|
||||
127.0.0.1 scontent-mia1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-mia1-2.cdninstagram.com
|
||||
127.0.0.1 scontent-mia3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-mia3-2.cdninstagram.com
|
||||
127.0.0.1 scontent-mrs.cdninstagram.com
|
||||
127.0.0.1 scontent-mrs1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-mrs2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-mrs2-2.cdninstagram.com
|
||||
127.0.0.1 scontent-msp1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-mxp.cdninstagram.com
|
||||
127.0.0.1 scontent-mxp1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-nrt.cdninstagram.com
|
||||
127.0.0.1 scontent-nrt1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-ord.cdninstagram.com
|
||||
127.0.0.1 scontent-ord1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-ort2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-ort2-2.cdninstagram.com
|
||||
127.0.0.1 scontent-otp1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-prg1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-qro1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-scl1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-scl2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-sea.cdninstagram.com
|
||||
127.0.0.1 scontent-sea1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-sin.cdninstagram.com
|
||||
127.0.0.1 scontent-sin2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-sin2-2.cdninstagram.com
|
||||
127.0.0.1 scontent-sin6-1.cdninstagram.com
|
||||
127.0.0.1 scontent-sin6-2.cdninstagram.com
|
||||
127.0.0.1 scontent-sin9-1.cdninstagram.com
|
||||
127.0.0.1 scontent-sit4-1.cdninstagram.com
|
||||
127.0.0.1 scontent-sjc.cdninstagram.com
|
||||
127.0.0.1 scontent-sjc2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-sjc3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-sju1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-sof.cdninstagram.com
|
||||
127.0.0.1 scontent-sof1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-ssn1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-syd2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-tpe.cdninstagram.com
|
||||
127.0.0.1 scontent-tpe1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-vie.cdninstagram.com
|
||||
127.0.0.1 scontent-vie1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-waw1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-xsp.cdninstagram.com
|
||||
127.0.0.1 scontent-xsp1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-xsp1-2.cdninstagram.com
|
||||
127.0.0.1 scontent-yyz1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-zrh1-1.cdninstagram.com
|
||||
127.0.0.1 scontent.cdninstagram.com
|
||||
127.0.0.1 static.cdninstagram.com
|
||||
127.0.0.1 telegraph-ash.instagram.com
|
||||
127.0.0.1 video-nrt1-1.cdninstagram.com
|
||||
127.0.0.1 video-ort2-1.cdninstagram.com
|
||||
127.0.0.1 video-ort2-2.cdninstagram.com
|
||||
127.0.0.1 video-prg1-1.cdninstagram.com
|
||||
127.0.0.1 video-vie1-1.cdninstagram.com
|
||||
127.0.0.1 video-waw1-1.cdninstagram.com
|
||||
127.0.0.1 video.cdninstagram.com
|
||||
127.0.0.1 white.ish.instagram.com
|
||||
127.0.0.1 www.cdninstagram.com
|
||||
127.0.0.1 www.instagram.com
|
||||
127.0.0.1 z-p15-scontent-bru2-1.cdninstagram.com
|
||||
127.0.0.1 z-p15-scontent-cdg2-1.cdninstagram.com
|
||||
127.0.0.1 z-p15-scontent-cdt1-1.cdninstagram.com
|
||||
127.0.0.1 z-p15-scontent-lhr3-1.cdninstagram.com
|
||||
127.0.0.1 z-p15-scontent-lht6-1.cdninstagram.com
|
||||
127.0.0.1 z-p15-scontent.cdninstagram.com
|
||||
127.0.0.1 z-p4-scontent-ams3-1.cdninstagram.com
|
||||
127.0.0.1 z-p4-scontent-ams4-1.cdninstagram.com
|
||||
127.0.0.1 z-p4-scontent-amt2-1.cdninstagram.com
|
||||
127.0.0.1 z-p4-scontent-arn2-1.cdninstagram.com
|
||||
127.0.0.1 z-p4-scontent-arn2-2.cdninstagram.com
|
||||
127.0.0.1 z-p4-scontent-bru2-1.cdninstagram.com
|
||||
127.0.0.1 z-p4-scontent-cdg2-1.cdninstagram.com
|
||||
127.0.0.1 z-p4-scontent-cdt1-1.cdninstagram.com
|
||||
127.0.0.1 z-p4-scontent-dfw5-1.cdninstagram.com
|
||||
127.0.0.1 z-p4-scontent-frt3-1.cdninstagram.com
|
||||
127.0.0.1 z-p4-scontent-frt3-2.cdninstagram.com
|
||||
127.0.0.1 z-p4-scontent-frx5-1.cdninstagram.com
|
||||
127.0.0.1 z-p4-scontent-lax3-1.cdninstagram.com
|
||||
127.0.0.1 z-p4-scontent-lga3-1.cdninstagram.com
|
||||
127.0.0.1 z-p4-scontent-lhr3-1.cdninstagram.com
|
||||
127.0.0.1 z-p4-scontent-lht6-1.cdninstagram.com
|
||||
127.0.0.1 z-p4-scontent-mrs1-1.cdninstagram.com
|
||||
127.0.0.1 z-p4-scontent-mxp1-1.cdninstagram.com
|
||||
127.0.0.1 z-p4-scontent-otp1-1.cdninstagram.com
|
||||
127.0.0.1 z-p4-scontent-waw1-1.cdninstagram.com
|
||||
127.0.0.1 z-p4-scontent.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-ams3-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-amt2-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-arn2-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-arn2-2.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-atl3-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-ber1-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-bom1-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-bom1-2.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-bru2-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-cdg2-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-cdt1-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-dfw5-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-dfw5-2.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-dub4-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-dus1-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-frt3-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-frt3-2.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-frx5-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-hbe1-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-hkg3-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-iad3-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-icn1-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-jnb1-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-lax3-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-lax3-2.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-lga3-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-lhr3-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-lht6-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-los2-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-mad1-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-mia3-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-mia3-2.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-mrs1-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-msp1-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-mxp1-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-nrt1-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-ort2-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-ort2-2.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-sea1-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-sin2-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-sin2-2.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-sin6-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-sin6-2.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-sjc3-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-sof1-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-syd2-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-vie1-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-waw1-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-yyz1-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent.cdninstagram.com
|
||||
127.0.0.1 z-p42-static.cdninstagram.com
|
||||
|
||||
# Whatsapp
|
||||
127.0.0.1 account.whatsapp.com
|
||||
@@ -2502,3 +2792,55 @@
|
||||
127.0.0.1 www.redditinc.com
|
||||
127.0.0.1 www.redditmedia.com
|
||||
127.0.0.1 www.redditstatic.com
|
||||
|
||||
127.0.0.1 pinpages.alwaysdata.net
|
||||
127.0.0.1 allotalk.com
|
||||
|
||||
# Tik-Toc
|
||||
127.0.0.1 abtest-va-tiktok.byteoversea.com
|
||||
127.0.0.1 dm-maliva16.byteoversea.com
|
||||
127.0.0.1 dm.bytedance.com
|
||||
127.0.0.1 ibytedtos.com
|
||||
127.0.0.1 mon-va.byteoversea.com
|
||||
127.0.0.1 mon.byteoversea.com
|
||||
127.0.0.1 muscdn.com
|
||||
127.0.0.1 musical.ly
|
||||
127.0.0.1 musically.ly
|
||||
127.0.0.1 p16-tiktokcdn-com.akamaized.net
|
||||
127.0.0.1 p16.hypstarcdn.com
|
||||
127.0.0.1 s16.tiktokcdn.com
|
||||
127.0.0.1 sf-tb-sg.ibytedtos.com
|
||||
127.0.0.1 sgali3.l.byteoversea.net
|
||||
127.0.0.1 tiktok.com
|
||||
127.0.0.1 tiktok.org
|
||||
127.0.0.1 tiktokcdn-com.akamaized.net
|
||||
127.0.0.1 tiktokcdn.com
|
||||
127.0.0.1 tiktokv.com
|
||||
127.0.0.1 v16-tiktokcdn-com.akamaized.net
|
||||
127.0.0.1 verification-va.byteoversea.com
|
||||
127.0.0.1 www.tiktok.com
|
||||
127.0.0.1 xlog-va.byteoversea.com
|
||||
|
||||
# DateMeme
|
||||
127.0.0.1 datememe.com
|
||||
127.0.0.1 www.datememe.com
|
||||
127.0.0.1 admin.datememe.com
|
||||
127.0.0.1 blog.datememe.com
|
||||
127.0.0.1 bn.datememe.com
|
||||
127.0.0.1 c1.datememe.com
|
||||
127.0.0.1 c2.datememe.com
|
||||
127.0.0.1 c3.datememe.com
|
||||
127.0.0.1 de.datememe.com
|
||||
127.0.0.1 en.datememe.com
|
||||
127.0.0.1 es.datememe.com
|
||||
127.0.0.1 fr.datememe.com
|
||||
127.0.0.1 hi.datememe.com
|
||||
127.0.0.1 id.datememe.com
|
||||
127.0.0.1 ja.datememe.com
|
||||
127.0.0.1 jv.datememe.com
|
||||
127.0.0.1 ko.datememe.com
|
||||
127.0.0.1 pt.datememe.com
|
||||
127.0.0.1 ru.datememe.com
|
||||
127.0.0.1 th.datememe.com
|
||||
127.0.0.1 vi.datememe.com
|
||||
127.0.0.1 zh-cn.datememe.com
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2019 Steven Black
|
||||
Copyright © 2021 Steven Black
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the “Software”), to deal in
|
||||
|
||||
+3
-2
@@ -1,8 +1,9 @@
|
||||
{
|
||||
"name": "hosts",
|
||||
"version": "2.5.21",
|
||||
"version": "3.7.2",
|
||||
"description": "Extending and consolidating hosts files from several well-curated sources like adaway.org, mvps.org, malwaredomainlist.com, someonewhocares.org, and potentially others. You can optionally invoke extensions to block additional sites by category.",
|
||||
"main": "",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"test": "python3 testUpdateHostsFile.py",
|
||||
"start": "python3 makeHosts.py",
|
||||
@@ -34,6 +35,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/StevenBlack/hosts#readme",
|
||||
"devDependencies": {
|
||||
"release-it": "^12.4.3"
|
||||
"release-it": "^14.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
----
|
||||
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
**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://travis-ci.org/StevenBlack/hosts)
|
||||
[](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)
|
||||
@@ -19,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **November 01 2019**.
|
||||
* Here's the [raw hosts file with base extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) containing 42,999 entries.
|
||||
* Last updated: **May 12 2021**.
|
||||
* Here's the [raw hosts file with base extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) containing 80,994 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
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) | 42,999 | [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) | 43,941 | [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) | 45,271 | [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) | 57,338 | [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) | 45,474 | [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) | 46,213 | [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) | 58,280 | [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) | 46,416 | [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) | 59,610 | [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) | 47,746 | [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) | 59,812 | [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) | 60,552 | [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) | 48,688 | [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) | 60,754 | [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) | 62,084 | [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) | 63,026 | [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) | 80,994 | [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) | 83,189 | [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) | 83,375 | [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) | 107,142 | [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) | 83,799 | [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) | 85,570 | [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) | 109,337 | [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) | 85,994 | [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) | 109,523 | [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) | 86,180 | [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) | 109,946 | [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) | 111,718 | [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) | 88,375 | [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) | 112,141 | [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) | 112,327 | [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) | 114,522 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -62,57 +63,87 @@ included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
|
||||
|
||||
## 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 wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
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`.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
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
|
||||
|
||||
To generate your own unified hosts file you will need Python 3.5 or later.
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
|
||||
First install the dependencies with:
|
||||
### Option 1: Generate in a Docker container
|
||||
|
||||
pip3 install --user -r requirements.txt
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container 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 like this:
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 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).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
### Common steps regardless of your development environment.
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
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.
|
||||
|
||||
### Usage
|
||||
|
||||
#### Using Python 3:
|
||||
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
|
||||
@@ -154,6 +185,11 @@ in a subfolder. If the subfolder does not exist, it will be created.
|
||||
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.
|
||||
|
||||
`--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
|
||||
@@ -164,9 +200,32 @@ 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.
|
||||
|
||||
#### Using 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.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
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
|
||||
@@ -176,10 +235,10 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
* 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?
|
||||
|
||||
@@ -200,7 +259,7 @@ The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
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.
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
@@ -210,20 +269,18 @@ If you discover sketchy domains you feel should be included here, here are some
|
||||
|
||||
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: add your domains to Steven Black's personal data file
|
||||
### 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 and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
### 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
|
||||
@@ -239,94 +296,98 @@ and other irritants.
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
# 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...
|
||||
|
||||
```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.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
## 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.
|
||||
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**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
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
(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
|
||||
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 in order for this to work, you must be connected to the internet.
|
||||
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 XP**: Start → Run → `cmd`
|
||||
|
||||
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
|
||||
**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 ->
|
||||
**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 ->
|
||||
**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.cmd)
|
||||
for more details.
|
||||
|
||||
## 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
|
||||
:-----------------------------------------------------------------------------------------
|
||||
| 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
|
||||
```
|
||||
|
||||
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
|
||||
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```
|
||||
sc config "Dnscache" start= disabled
|
||||
sc stop "Dnscache"
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
@@ -349,30 +410,31 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### Mac OS X
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
```
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This 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.
|
||||
|
||||
@@ -382,7 +444,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -393,34 +455,34 @@ 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.
|
||||
|
||||
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
|
||||
is **not** included here because it is very large (780,000+ entries)
|
||||
and doesn't currently display a corresponding high level of curation activity.
|
||||
|
||||
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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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
|
||||
|
||||
* [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.
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the GitHub repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
* [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.
|
||||
* [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.
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This GitHub gist has a short shell script (bash, will work on any 'nix) and uses `wget` & `awk` present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports IPv4 and IPv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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.
|
||||
|
||||
## Contribute!
|
||||
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+144
-87
@@ -1,14 +1,16 @@
|
||||
----
|
||||
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
**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://travis-ci.org/StevenBlack/hosts)
|
||||
[](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)
|
||||
@@ -23,16 +25,15 @@ into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
* Here's the [raw hosts file @EXTENSIONS_HEADER@](https://raw.githubusercontent.com/StevenBlack/hosts/master/@SUBFOLDER@hosts) containing @NUM_ENTRIES@ entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
### List of all hosts file variants
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
|
||||
with Github download links.
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
||||
Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror
|
||||
---------------- |:------:|:---------:|:--------------:|:-------------:
|
||||
@TOCROWS@
|
||||
|
||||
@@ -48,39 +49,64 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
@SOURCEROWS@
|
||||
|
||||
|
||||
## 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 wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
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`.
|
||||
|
||||
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
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
|
||||
|
||||
To generate your own unified hosts file you will need Python 3.5 or later.
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
|
||||
First install the dependencies with:
|
||||
### Option 1: Generate in a Docker container
|
||||
|
||||
pip3 install --user -r requirements.txt
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container 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 like this:
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 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).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
### Common steps regardless of your development environment.
|
||||
|
||||
python3 testUpdateHostsFile.py
|
||||
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.
|
||||
|
||||
### Usage
|
||||
|
||||
#### Using Python 3:
|
||||
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
|
||||
@@ -122,6 +148,11 @@ in a subfolder. If the subfolder does not exist, it will be created.
|
||||
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.
|
||||
|
||||
`--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
|
||||
@@ -132,9 +163,32 @@ 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.
|
||||
|
||||
#### Using 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.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
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
|
||||
@@ -144,10 +198,10 @@ extension finds its updates.
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you desire.
|
||||
included, and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
* 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?
|
||||
|
||||
@@ -168,7 +222,7 @@ The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
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.
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
@@ -178,20 +232,18 @@ If you discover sketchy domains you feel should be included here, here are some
|
||||
|
||||
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: add your domains to Steven Black's personal data file
|
||||
### 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 and what you've just done is created more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on Github
|
||||
### 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
|
||||
@@ -207,94 +259,98 @@ and other irritants.
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
# 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...
|
||||
|
||||
```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.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
|
||||
## Why not use just `0` instead of `0.0.0.0`?
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
|
||||
## 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.
|
||||
|
||||
**mac OS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts` file.
|
||||
**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
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
|
||||
work is required due to compatibility issues in implementing some of the functionality
|
||||
for Windows. It is preferable to run the batch file as follows:
|
||||
(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
|
||||
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 in order for this to work, you must be connected to the internet.
|
||||
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 XP**: Start → Run → `cmd`
|
||||
|
||||
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
|
||||
**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 ->
|
||||
**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 ->
|
||||
**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.cmd)
|
||||
for more details.
|
||||
|
||||
## 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
|
||||
:-----------------------------------------------------------------------------------------
|
||||
| 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
|
||||
```
|
||||
|
||||
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
|
||||
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```
|
||||
sc config "Dnscache" start= disabled
|
||||
sc stop "Dnscache"
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
@@ -317,30 +373,31 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### Mac OS X
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
```
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
|
||||
tool for Github repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This 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.
|
||||
|
||||
@@ -350,7 +407,7 @@ The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide easy extensions,
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
@@ -361,34 +418,34 @@ 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.
|
||||
|
||||
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
|
||||
is **not** included here because it is very large (780,000+ entries)
|
||||
and doesn't currently display a corresponding high level of curation activity.
|
||||
|
||||
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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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
|
||||
|
||||
* [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.
|
||||
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the GitHub repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
|
||||
|
||||
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
|
||||
* [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.
|
||||
* [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.
|
||||
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
|
||||
|
||||
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
|
||||
* [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This GitHub gist has a short shell script (bash, will work on any 'nix) and uses `wget` & `awk` present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports IPv4 and IPv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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.
|
||||
|
||||
## Contribute!
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user