Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
85fd0ee9ce | ||
|
|
bbd606a2dd | ||
|
|
88ca322261 | ||
|
|
523117d97d | ||
|
|
3ef37886ca | ||
|
|
07a0b7bfc5 | ||
|
|
8ba66c7795 | ||
|
|
8fb51bef59 | ||
|
|
b6ca8ecb6e | ||
|
|
0c204b58b9 | ||
|
|
6c4416ffdb | ||
|
|
b05eca9505 | ||
|
|
14d41542ed | ||
|
|
bc8d4dfc88 | ||
|
|
05cdb4d0a2 | ||
|
|
171b9b5978 | ||
|
|
3f49ee8ee9 | ||
|
|
dc4dae96f5 | ||
|
|
5b03c5f9c1 | ||
|
|
1a8e75f1cb | ||
|
|
59b1c275ef | ||
|
|
ef75b456a7 | ||
|
|
9b6cb1109a | ||
|
|
084de54c10 | ||
|
|
be423f999d | ||
|
|
b00edef74c | ||
|
|
57f952e03b | ||
|
|
4a8813eba6 | ||
|
|
6e55708c64 | ||
|
|
469ba4b3cc | ||
|
|
581cc63395 | ||
|
|
83b54bcbfd | ||
|
|
cc00a44552 | ||
|
|
eba6ecf910 | ||
|
|
8467c14270 | ||
|
|
b46f32728d | ||
|
|
a84c71c8fb | ||
|
|
8fdb1c49cd | ||
|
|
1cdb3159b9 | ||
|
|
a9ac7f44f2 | ||
|
|
c557e2e856 | ||
|
|
df52f06ff4 | ||
|
|
232ec8443f | ||
|
|
79958bb0e6 | ||
|
|
f806474ab2 | ||
|
|
5cca0e924c | ||
|
|
d28f94c9dd | ||
|
|
0a0ca47ac6 | ||
|
|
51995304ea | ||
|
|
257b52c13b | ||
|
|
72a4183fb8 | ||
|
|
554e938fc5 | ||
|
|
234b370284 | ||
|
|
5a2a084ef8 | ||
|
|
1d7db04fb5 | ||
|
|
6334082982 | ||
|
|
65feee2b48 | ||
|
|
38e53dd654 | ||
|
|
7b50a1feb9 | ||
|
|
99a6d7c18a | ||
|
|
6cc3bece8b | ||
|
|
ec5b916223 | ||
|
|
ab5aad0f5a | ||
|
|
6199ccd528 | ||
|
|
f91afbf85c | ||
|
|
9dc3f29c1b | ||
|
|
3f8a528df8 | ||
|
|
1f74593459 | ||
|
|
80d72b6688 | ||
|
|
e998360d33 | ||
|
|
f2eaf7a704 | ||
|
|
783c3bc710 | ||
|
|
e2348bceb4 | ||
|
|
870ade3522 | ||
|
|
16f0e134ab | ||
|
|
7467798d5c | ||
|
|
e652c0e815 | ||
|
|
85e88e9d42 | ||
|
|
0b939e499b | ||
|
|
3b4709f25f | ||
|
|
422d6a5d98 | ||
|
|
32f96d5492 | ||
|
|
88214ffcd2 | ||
|
|
7ad2811572 | ||
|
|
6a3a329abf | ||
|
|
65ebac6bf8 | ||
|
|
da98969cf1 | ||
|
|
34735e32c9 | ||
|
|
f1d2ff31cf | ||
|
|
6d10be852c | ||
|
|
0c117e8c1c | ||
|
|
38185015b4 | ||
|
|
6f9ab23c66 | ||
|
|
d919b0e25d | ||
|
|
272659110c | ||
|
|
fed5590f26 | ||
|
|
33bd0df131 | ||
|
|
8fc7f948a8 | ||
|
|
15da4c8406 | ||
|
|
b3f93f1528 | ||
|
|
85cc9dff95 | ||
|
|
34ba3638fb | ||
|
|
87950f72ee | ||
|
|
eb73e9a07a | ||
|
|
4579444412 | ||
|
|
fb03756f6b | ||
|
|
66f6e9c3d3 | ||
|
|
3e7548ea87 | ||
|
|
bca2e76b4f | ||
|
|
ca08e62e5b | ||
|
|
1c25bd1693 | ||
|
|
03e1e33213 | ||
|
|
94c0ac2cdf | ||
|
|
7311969c45 | ||
|
|
23b74c7756 | ||
|
|
479b5923a3 | ||
|
|
560615dd7f | ||
|
|
2415078892 | ||
|
|
4574a4a48c | ||
|
|
616408666f | ||
|
|
f0b6120075 | ||
|
|
369b483787 | ||
|
|
0bf24bb5b0 | ||
|
|
df85659d54 | ||
|
|
b52e6db372 | ||
|
|
7ecb84e53b | ||
|
|
682bb73b6d | ||
|
|
e9f679312b | ||
|
|
17b5fcb344 | ||
|
|
96a0e1bf72 | ||
|
|
1aa462c141 | ||
|
|
8695605224 | ||
|
|
17f6bb4d88 | ||
|
|
497e52d7a4 | ||
|
|
3b2c9dda2b | ||
|
|
1f3f3236ed | ||
|
|
8f208abb74 | ||
|
|
ef9a61fec0 | ||
|
|
072062f9e8 | ||
|
|
35ea9abbb4 | ||
|
|
439665cb9a | ||
|
|
726763af69 | ||
|
|
19478b8a0d | ||
|
|
178907f54e | ||
|
|
1892e80aa4 | ||
|
|
a3f202074b | ||
|
|
7e25ed039a | ||
|
|
93f0d86d46 | ||
|
|
fd703f9baa | ||
|
|
98ce8df763 | ||
|
|
7e881e6cfb | ||
|
|
ef1ac68038 | ||
|
|
78c092dcb0 | ||
|
|
fa33288ca3 | ||
|
|
80c0db326d | ||
|
|
8f50a92d29 | ||
|
|
0318c66170 | ||
|
|
b5e0ad141a | ||
|
|
dd58715041 | ||
|
|
4733e70ce6 | ||
|
|
e1aed14323 | ||
|
|
4565eef107 | ||
|
|
9e0fa8dbf4 | ||
|
|
cfdf2526b2 | ||
|
|
bdf4bafbf9 | ||
|
|
5bf0802369 | ||
|
|
cd382a63df | ||
|
|
da336f2745 | ||
|
|
adbbd807d6 | ||
|
|
735f9bcdde | ||
|
|
ab9caa3969 | ||
|
|
570fb4302a | ||
|
|
0ab1237b15 | ||
|
|
f94289b856 | ||
|
|
95b0381560 | ||
|
|
6b64d2e573 | ||
|
|
3c3de5ed84 | ||
|
|
b2512fcd57 | ||
|
|
c6b0aae93f | ||
|
|
bbe11d622e | ||
|
|
d1b1d87dea | ||
|
|
29435ac463 | ||
|
|
6729005309 | ||
|
|
d6fd71fa66 | ||
|
|
f731939d98 | ||
|
|
677a036d68 | ||
|
|
e86d6b8a97 | ||
|
|
828dc13cb0 | ||
|
|
506a33f5aa | ||
|
|
343eec32af | ||
|
|
107082b0e2 | ||
|
|
c2cc10cc0e | ||
|
|
d1807cf543 | ||
|
|
2c5ea4e113 | ||
|
|
1c11dc2a8b | ||
|
|
510502de68 | ||
|
|
0ea9a40158 | ||
|
|
6d48930c6f | ||
|
|
a4d9fb6c4c | ||
|
|
0a76a88a38 | ||
|
|
fcdf163ba5 | ||
|
|
060ebf2f47 | ||
|
|
aacd2b02a2 | ||
|
|
b9a92daf6b | ||
|
|
a7d1521e95 | ||
|
|
3157d55049 | ||
|
|
7b45134c8d | ||
|
|
97b0146fdb | ||
|
|
cbadab339b | ||
|
|
72b69bb5c8 | ||
|
|
8007e17d0a | ||
|
|
e1a2bf21c2 | ||
|
|
bdc96809c8 | ||
|
|
b5173215a1 | ||
|
|
7a452ee537 | ||
|
|
9f2ba78232 | ||
|
|
aafa4e38c8 | ||
|
|
6380b4fe12 | ||
|
|
c02d6979dd | ||
|
|
899887ebe7 | ||
|
|
bf508140d3 | ||
|
|
adf011ee2c | ||
|
|
afa0f14165 | ||
|
|
3bcdb558ed | ||
|
|
bc70259936 | ||
|
|
fb212d5e3d | ||
|
|
e9388c231a | ||
|
|
3544f23526 | ||
|
|
6fbc23a744 | ||
|
|
50a2374b5f | ||
|
|
a41b71d575 | ||
|
|
c6858c32f9 | ||
|
|
8faee7e842 | ||
|
|
61cad9cc60 | ||
|
|
791dd9d631 | ||
|
|
baf0d9e97d | ||
|
|
42ef3a636e | ||
|
|
9ef33db684 | ||
|
|
0541b566f9 | ||
|
|
60e7bfb923 | ||
|
|
094d288156 | ||
|
|
de91e825b0 | ||
|
|
fc9955dfb6 | ||
|
|
dd5c96eded | ||
|
|
9b615e0515 | ||
|
|
aab69c5e99 | ||
|
|
83cf6bd55f | ||
|
|
469b5807ed | ||
|
|
653fff0086 | ||
|
|
ee62be66e3 | ||
|
|
9b1d7dae7a | ||
|
|
3d13675436 | ||
|
|
cef27e5f39 | ||
|
|
8d6757b438 | ||
|
|
82c81b5464 | ||
|
|
97a767378e | ||
|
|
1b1d5ee477 | ||
|
|
c73b18f0a2 | ||
|
|
8005747237 | ||
|
|
eadefb5b2b | ||
|
|
68d54e8ecb | ||
|
|
f66fe4f833 | ||
|
|
ee692bbaa3 | ||
|
|
ba2d5b0c64 | ||
|
|
9cd835f38d | ||
|
|
5765195960 | ||
|
|
9fd4a05b0c | ||
|
|
cd216e0471 | ||
|
|
63b6919d42 | ||
|
|
181a4fd249 | ||
|
|
a7202ed30a | ||
|
|
b3daa3082f | ||
|
|
29b1147673 | ||
|
|
77fc3d574f | ||
|
|
dd6bee0fc1 | ||
|
|
212526755e | ||
|
|
749ef97dc0 | ||
|
|
fc54380680 | ||
|
|
c6419ff4ee | ||
|
|
75c8366ea7 | ||
|
|
263fba630b | ||
|
|
3dc0b5f962 | ||
|
|
587ccf9c93 | ||
|
|
9954343eee | ||
|
|
d3d4124e7e | ||
|
|
5de92647b9 | ||
|
|
54c1fdbacb | ||
|
|
82e6358811 | ||
|
|
42ec6b05c0 | ||
|
|
2212792da2 | ||
|
|
f089044807 | ||
|
|
338128eb81 | ||
|
|
283b4ac6de | ||
|
|
ca6044af06 | ||
|
|
2cbcc2e97e | ||
|
|
4f140bed91 | ||
|
|
9b57ed7b76 | ||
|
|
8bc7fd9bcd | ||
|
|
b4cdd5885d | ||
|
|
00078216e1 | ||
|
|
a952f2496f | ||
|
|
35508cba80 | ||
|
|
db28f852b7 | ||
|
|
7bf2686660 | ||
|
|
3887abb459 | ||
|
|
5731f0bb02 | ||
|
|
fc10d0f81d | ||
|
|
b8280ec542 | ||
|
|
618a6dfa7e | ||
|
|
868c462e93 | ||
|
|
845595b8b7 | ||
|
|
dce5a49ecd | ||
|
|
ed825369c5 | ||
|
|
9474bcba5c | ||
|
|
0e517585c2 | ||
|
|
7838700f42 | ||
|
|
6655419869 | ||
|
|
d91315aea2 | ||
|
|
34a72f16e1 | ||
|
|
7cf6ac9b4c | ||
|
|
66fca632ca | ||
|
|
1416af98f7 | ||
|
|
aa36fa98cb | ||
|
|
b6d5cce60a | ||
|
|
763fa43211 | ||
|
|
6d4674abda | ||
|
|
cc27cac7fb | ||
|
|
52ade02448 | ||
|
|
887663ab9c | ||
|
|
543acefaf7 | ||
|
|
23d5348533 | ||
|
|
8069502194 | ||
|
|
b2d9f7df1e | ||
|
|
52087c55ff | ||
|
|
003f3475ea | ||
|
|
5b06b5df6e | ||
|
|
ab5f56defd | ||
|
|
74c7c548ab | ||
|
|
1904ff0369 | ||
|
|
627205edd9 | ||
|
|
ca61e9ef45 | ||
|
|
68c493c706 | ||
|
|
cd091ee9c3 | ||
|
|
7e6aafb935 | ||
|
|
293dcbebe6 | ||
|
|
9c17dc5f71 | ||
|
|
da3d242482 | ||
|
|
58ce1e4b14 | ||
|
|
44d3da136a | ||
|
|
5ca7ad2279 | ||
|
|
ce8fcab4a6 | ||
|
|
32edd9298d | ||
|
|
9bcc4f2bcf | ||
|
|
e77f3cb3be | ||
|
|
b676693b0c | ||
|
|
ff3e8fad81 | ||
|
|
76b4c814f6 | ||
|
|
ddcdde5e8f | ||
|
|
bd67b45a69 | ||
|
|
a3a9e18a89 | ||
|
|
060895a3a1 | ||
|
|
7264d1f0b3 | ||
|
|
1e787fbe28 | ||
|
|
353924a650 | ||
|
|
a21fac3bca | ||
|
|
9048a9aa0e | ||
|
|
157474a558 | ||
|
|
ffd36bb4af | ||
|
|
47d6b2a17b | ||
|
|
013412b1ff | ||
|
|
b7122ca245 | ||
|
|
30cbbc8cb5 | ||
|
|
757cd0f69a | ||
|
|
c2ee8bc9b9 | ||
|
|
0a413cf53e | ||
|
|
6baefdbed2 | ||
|
|
88580e9347 | ||
|
|
c40ae56d53 | ||
|
|
c082532abc | ||
|
|
be5b911ba8 | ||
|
|
d9b145e08b | ||
|
|
8ca8fce63c | ||
|
|
e5282f9cee | ||
|
|
0d86e16986 | ||
|
|
2661255189 | ||
|
|
634204965a | ||
|
|
2a241c5de5 | ||
|
|
f91285ebe7 | ||
|
|
fd33c82b9e | ||
|
|
eb6bd673bd | ||
|
|
0ae5bd1eb7 | ||
|
|
f461d30274 | ||
|
|
a5922a992d | ||
|
|
0b32cf2fd8 | ||
|
|
87767a0209 | ||
|
|
4121bd1726 | ||
|
|
c9417f9ae6 | ||
|
|
35390a1e65 | ||
|
|
6dae72cf7d | ||
|
|
d2cbb55e2a | ||
|
|
9e0309f107 | ||
|
|
78f0457f9e | ||
|
|
2d886edeef | ||
|
|
115afb056e | ||
|
|
5161c2c362 | ||
|
|
39238e0432 | ||
|
|
75cdfd2fa1 | ||
|
|
4902553855 | ||
|
|
b083f18125 | ||
|
|
d4c698985a | ||
|
|
66ee4a2a71 | ||
|
|
fda58dddd6 | ||
|
|
5e2d7fc391 | ||
|
|
64ba96ee22 | ||
|
|
f063ea479e | ||
|
|
fb9b72feff | ||
|
|
0a55ff4c18 | ||
|
|
8d65d989ef | ||
|
|
3856d176ad | ||
|
|
fd09a65975 | ||
|
|
9b502d99e6 | ||
|
|
ccb00842f8 | ||
|
|
5ca0d2e2eb | ||
|
|
8587c5a550 | ||
|
|
8ace3a1cc9 | ||
|
|
b28c3994e7 | ||
|
|
0428bc7ee8 | ||
|
|
96f7d0e33d | ||
|
|
346b0b4bd7 | ||
|
|
a8d0b8cd76 | ||
|
|
6c23ad7f84 | ||
|
|
309fb9083a | ||
|
|
92be34d608 | ||
|
|
0014dfaa33 | ||
|
|
b1296f198e | ||
|
|
560d3394a8 | ||
|
|
0c0e2691b4 | ||
|
|
147b6d4e55 | ||
|
|
f86527e7b4 | ||
|
|
74bc8a7d72 | ||
|
|
3bcbc1c422 | ||
|
|
8d6c47929c | ||
|
|
83183eca09 | ||
|
|
eccb2df38a | ||
|
|
0434ec0798 | ||
|
|
cac3a30556 | ||
|
|
4bf50b3779 | ||
|
|
db1541fc3c | ||
|
|
8e90178973 | ||
|
|
d188f2c70d | ||
|
|
e034061875 | ||
|
|
fcfe4bb556 | ||
|
|
3709b007a8 | ||
|
|
f4cd177932 | ||
|
|
20a9517407 | ||
|
|
62f5fe59dc | ||
|
|
c270c20b3f | ||
|
|
d0f02ba284 | ||
|
|
f9a8908b24 | ||
|
|
5b8e0707fe | ||
|
|
56e34ab5a6 | ||
|
|
b1a9eb74f8 | ||
|
|
7d2f736725 | ||
|
|
0ddc2096ec | ||
|
|
10bcb945e8 | ||
|
|
bbb72c6956 | ||
|
|
9b6e856458 | ||
|
|
78790dfacc | ||
|
|
7552198b18 | ||
|
|
e4a1346515 | ||
|
|
e1bb5f08e6 | ||
|
|
2249fb30e2 | ||
|
|
b77b66bb04 | ||
|
|
b604074698 | ||
|
|
4e40772365 | ||
|
|
d19ec68c32 | ||
|
|
bd77c39661 | ||
|
|
ff99602ea0 | ||
|
|
98be2dea8c | ||
|
|
341b621cc2 | ||
|
|
83d734fdcf | ||
|
|
cec39f13f5 | ||
|
|
74b5288fa2 | ||
|
|
391a50096b | ||
|
|
7c558a9973 | ||
|
|
6c9377b400 | ||
|
|
5d33b0a9dd | ||
|
|
9c39a06447 | ||
|
|
57d02f3e32 | ||
|
|
0947a7e064 | ||
|
|
c3d95ce3fe | ||
|
|
ff7d9bed83 | ||
|
|
2924bf615c | ||
|
|
03202d41bf | ||
|
|
3087ac60b9 | ||
|
|
4651bd2d09 | ||
|
|
e3a8909cab | ||
|
|
76453b4ca4 | ||
|
|
e120e0a894 | ||
|
|
c8c1cea835 | ||
|
|
2dd03c636e | ||
|
|
f57dddee01 | ||
|
|
2602f13a27 | ||
|
|
7577f67157 | ||
|
|
4b00782ca0 | ||
|
|
97c04a1f38 | ||
|
|
ac4971ba6c | ||
|
|
ff181d1456 | ||
|
|
d04c00df13 | ||
|
|
17e9a71c1d | ||
|
|
9c7deb6e79 | ||
|
|
70bf2b38a7 | ||
|
|
4d87cf744f | ||
|
|
dbab99c164 | ||
|
|
db16b1e6b7 | ||
|
|
c76e9fb4be | ||
|
|
17170b0236 | ||
|
|
05272f9a1f | ||
|
|
606b0f0216 | ||
|
|
2d47027aa0 | ||
|
|
76c2dd7386 | ||
|
|
56fb74cc80 | ||
|
|
ef44bd722e | ||
|
|
1c183a4304 | ||
|
|
d5c2f60064 | ||
|
|
92f8ca90a1 | ||
|
|
1da50a7fb8 | ||
|
|
a931d6e418 | ||
|
|
aefca99e8d | ||
|
|
22c0019689 | ||
|
|
62be4929e9 | ||
|
|
5235695bfe | ||
|
|
80e8c197a3 | ||
|
|
26c4439195 | ||
|
|
a9de56dfc4 | ||
|
|
6fe7aecccf | ||
|
|
ac23e6b71d | ||
|
|
19a0d812ba | ||
|
|
13e67aec2c | ||
|
|
350a638374 | ||
|
|
2917a466e8 | ||
|
|
c2ec63cad1 | ||
|
|
0777496e82 | ||
|
|
8e5e0ca84d | ||
|
|
821e989479 | ||
|
|
8f4246af63 | ||
|
|
8f6f7c7cde | ||
|
|
26f7abc1b3 | ||
|
|
4290d92d40 | ||
|
|
2d273afb8c | ||
|
|
8cc0afdaf2 | ||
|
|
306f1009ea | ||
|
|
15fe1a03b0 | ||
|
|
6e224b5603 | ||
|
|
2cdbddc1f6 |
@@ -1,14 +1,20 @@
|
||||
# editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
[*.py]
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
indent_size = 4
|
||||
end_of_line = LF
|
||||
|
||||
[*.bat]
|
||||
end_of_line = CRLF
|
||||
end_of_line = crlf
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
insert_final_newline = true
|
||||
|
||||
[*.py]
|
||||
indent_size = 4
|
||||
|
||||
|
After Width: | Height: | Size: 27 KiB |
@@ -1,20 +0,0 @@
|
||||
# Number of days of inactivity before an issue becomes stale
|
||||
daysUntilStale: 120
|
||||
# Number of days of inactivity before a stale issue is closed
|
||||
daysUntilClose: 14
|
||||
# Issues with these labels will never be considered stale
|
||||
exemptLabels:
|
||||
- bug
|
||||
- discussion
|
||||
- monitor (ongoing)
|
||||
- enhancement
|
||||
# Label to use when marking an issue as stale
|
||||
staleLabel: wontfix
|
||||
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||
markComment: >
|
||||
This issue has been automatically marked as stale because it has not had
|
||||
recent activity. It will be closed in 14 days if no further activity occurs.
|
||||
Thank you for your contributions.
|
||||
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||
closeComment: >
|
||||
Closing.
|
||||
@@ -2,6 +2,9 @@ name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- "!dependabot/**"
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -21,6 +24,7 @@ jobs:
|
||||
- '3.8'
|
||||
- '3.9'
|
||||
- '3.10'
|
||||
- '3.11'
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- macos-latest
|
||||
@@ -28,7 +32,9 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
|
||||
@@ -6,7 +6,6 @@ on:
|
||||
- master
|
||||
- "!dependabot/**"
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches:
|
||||
- master
|
||||
- "!dependabot/**"
|
||||
@@ -24,13 +23,21 @@ jobs:
|
||||
security-events: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v2
|
||||
with:
|
||||
languages: "python"
|
||||
queries: +security-and-quality
|
||||
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v2
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v2
|
||||
with:
|
||||
category: "/language:python"
|
||||
|
||||
@@ -19,23 +19,29 @@ jobs:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract metadata (tags, labels)
|
||||
id: meta
|
||||
uses: docker/metadata-action@v4
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
|
||||
- name: Build and push container image
|
||||
uses: docker/build-push-action@v3
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
|
||||
@@ -8,7 +8,10 @@ jobs:
|
||||
dependency-review:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 'Checkout Repository'
|
||||
uses: actions/checkout@v3
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: 'Dependency Review'
|
||||
uses: actions/dependency-review-action@v2
|
||||
uses: actions/dependency-review-action@v3
|
||||
|
||||
@@ -8,3 +8,4 @@ hosts-*
|
||||
/__pycache__
|
||||
/node_modules/
|
||||
/package-lock.json
|
||||
/yarn.lock
|
||||
|
||||
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 40 KiB |
@@ -0,0 +1,674 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
# Limited to the extensions: fakenews, gambling
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: fakenews, gambling](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts)
|
||||
containing 9,889 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts`
|
||||
file.
|
||||
- **macOS Catalina:** `/private/etc/hosts` file.
|
||||
- **Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
Please read our
|
||||
[Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md).
|
||||
Among other things, this explains how we organize files and folders in this
|
||||
repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -0,0 +1,680 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
# Limited to the extensions: fakenews, gambling, porn
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: fakenews, gambling, porn](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts)
|
||||
containing 63,785 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts`
|
||||
file.
|
||||
- **macOS Catalina:** `/private/etc/hosts` file.
|
||||
- **Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
Please read our
|
||||
[Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md).
|
||||
Among other things, this explains how we organize files and folders in this
|
||||
repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -0,0 +1,682 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
# Limited to the extensions: fakenews, gambling, porn, social
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: fakenews, gambling, porn, social](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
containing 66,625 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts`
|
||||
file.
|
||||
- **macOS Catalina:** `/private/etc/hosts` file.
|
||||
- **Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
Please read our
|
||||
[Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md).
|
||||
Among other things, this explains how we organize files and folders in this
|
||||
repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -14,7 +14,7 @@ sources can be found in the `hosts/data/` directory.
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 25 2022**.
|
||||
- Last updated: **November 08 2023**.
|
||||
- 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 188,282 entries.
|
||||
[raw hosts file Unified hosts file with fakenews, gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts)
|
||||
containing 219,241 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,943 | [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) | 139,138 | [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) | 139,505 | [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) | 180,700 | [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) | 139,769 | [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) | 141,700 | [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) | 182,894 | [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) | 141,964 | [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) | 183,262 | [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) | 142,331 | [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) | 183,525 | [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) | 185,457 | [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) | 144,526 | [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) | 185,719 | [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) | 186,087 | [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) | 188,282 | [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) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -83,7 +98,6 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
@@ -97,7 +111,9 @@ UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://ra
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
@@ -194,6 +210,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -257,6 +277,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -490,6 +513,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -544,7 +569,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -647,9 +673,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ sources can be found in the `hosts/data/` directory.
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 25 2022**.
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts)
|
||||
containing 185,457 entries.
|
||||
[raw hosts file Unified hosts file with fakenews, gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts)
|
||||
containing 216,418 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,943 | [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) | 139,138 | [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) | 139,505 | [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) | 180,700 | [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) | 139,769 | [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) | 141,700 | [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) | 182,894 | [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) | 141,964 | [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) | 183,262 | [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) | 142,331 | [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) | 183,525 | [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) | 185,457 | [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) | 144,526 | [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) | 185,719 | [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) | 186,087 | [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) | 188,282 | [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) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -83,7 +98,6 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
@@ -97,7 +111,9 @@ UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://ra
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
@@ -192,6 +208,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -255,6 +275,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -488,6 +511,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -542,7 +567,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -645,9 +671,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
|
||||
@@ -0,0 +1,676 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
# Limited to the extensions: fakenews, gambling, social
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: fakenews, gambling, social](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts)
|
||||
containing 12,730 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts`
|
||||
file.
|
||||
- **macOS Catalina:** `/private/etc/hosts` file.
|
||||
- **Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
Please read our
|
||||
[Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md).
|
||||
Among other things, this explains how we organize files and folders in this
|
||||
repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -14,7 +14,7 @@ sources can be found in the `hosts/data/` directory.
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 25 2022**.
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts)
|
||||
containing 144,526 entries.
|
||||
[raw hosts file Unified hosts file with fakenews, gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts)
|
||||
containing 165,985 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,943 | [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) | 139,138 | [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) | 139,505 | [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) | 180,700 | [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) | 139,769 | [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) | 141,700 | [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) | 182,894 | [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) | 141,964 | [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) | 183,262 | [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) | 142,331 | [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) | 183,525 | [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) | 185,457 | [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) | 144,526 | [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) | 185,719 | [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) | 186,087 | [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) | 188,282 | [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) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -83,7 +98,6 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
@@ -97,6 +111,7 @@ UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://ra
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
@@ -189,6 +204,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -252,6 +271,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -485,6 +507,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -539,7 +563,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -642,9 +667,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ sources can be found in the `hosts/data/` directory.
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 25 2022**.
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts)
|
||||
containing 141,700 entries.
|
||||
[raw hosts file Unified hosts file with fakenews, gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts)
|
||||
containing 163,161 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,943 | [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) | 139,138 | [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) | 139,505 | [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) | 180,700 | [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) | 139,769 | [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) | 141,700 | [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) | 182,894 | [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) | 141,964 | [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) | 183,262 | [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) | 142,331 | [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) | 183,525 | [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) | 185,457 | [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) | 144,526 | [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) | 185,719 | [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) | 186,087 | [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) | 188,282 | [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) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -83,7 +98,6 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
@@ -97,6 +111,7 @@ UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://ra
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
|
||||
|
||||
@@ -187,6 +202,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -250,6 +269,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -483,6 +505,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -537,7 +561,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -640,9 +665,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
|
||||
@@ -0,0 +1,672 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
# Limited to the extensions: fakenews
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: fakenews](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts)
|
||||
containing 2,194 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts`
|
||||
file.
|
||||
- **macOS Catalina:** `/private/etc/hosts` file.
|
||||
- **Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
Please read our
|
||||
[Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md).
|
||||
Among other things, this explains how we organize files and folders in this
|
||||
repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -0,0 +1,678 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
# Limited to the extensions: fakenews, porn
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: fakenews, porn](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts)
|
||||
containing 56,090 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts`
|
||||
file.
|
||||
- **macOS Catalina:** `/private/etc/hosts` file.
|
||||
- **Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
Please read our
|
||||
[Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md).
|
||||
Among other things, this explains how we organize files and folders in this
|
||||
repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -0,0 +1,680 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
# Limited to the extensions: fakenews, porn, social
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: fakenews, porn, social](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts)
|
||||
containing 58,930 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts`
|
||||
file.
|
||||
- **macOS Catalina:** `/private/etc/hosts` file.
|
||||
- **Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
Please read our
|
||||
[Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md).
|
||||
Among other things, this explains how we organize files and folders in this
|
||||
repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -14,7 +14,7 @@ sources can be found in the `hosts/data/` directory.
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 25 2022**.
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts)
|
||||
containing 185,719 entries.
|
||||
[raw hosts file Unified hosts file with fakenews, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts)
|
||||
containing 211,558 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,943 | [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) | 139,138 | [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) | 139,505 | [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) | 180,700 | [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) | 139,769 | [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) | 141,700 | [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) | 182,894 | [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) | 141,964 | [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) | 183,262 | [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) | 142,331 | [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) | 183,525 | [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) | 185,457 | [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) | 144,526 | [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) | 185,719 | [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) | 186,087 | [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) | 188,282 | [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) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -83,7 +98,6 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
@@ -97,6 +111,7 @@ UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://ra
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
@@ -193,6 +208,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -256,6 +275,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -489,6 +511,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -543,7 +567,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -646,9 +671,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ sources can be found in the `hosts/data/` directory.
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 25 2022**.
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts)
|
||||
containing 182,894 entries.
|
||||
[raw hosts file Unified hosts file with fakenews, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts)
|
||||
containing 208,735 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,943 | [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) | 139,138 | [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) | 139,505 | [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) | 180,700 | [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) | 139,769 | [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) | 141,700 | [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) | 182,894 | [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) | 141,964 | [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) | 183,262 | [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) | 142,331 | [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) | 183,525 | [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) | 185,457 | [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) | 144,526 | [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) | 185,719 | [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) | 186,087 | [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) | 188,282 | [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) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -83,7 +98,6 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
@@ -97,6 +111,7 @@ UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://ra
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
@@ -191,6 +206,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -254,6 +273,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -487,6 +509,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -541,7 +565,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -644,9 +669,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
|
||||
@@ -0,0 +1,674 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
# Limited to the extensions: fakenews, social
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: fakenews, social](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts)
|
||||
containing 5,035 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts`
|
||||
file.
|
||||
- **macOS Catalina:** `/private/etc/hosts` file.
|
||||
- **Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
Please read our
|
||||
[Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md).
|
||||
Among other things, this explains how we organize files and folders in this
|
||||
repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -14,7 +14,7 @@ sources can be found in the `hosts/data/` directory.
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 25 2022**.
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts)
|
||||
containing 141,964 entries.
|
||||
[raw hosts file Unified hosts file with fakenews, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts)
|
||||
containing 158,302 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,943 | [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) | 139,138 | [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) | 139,505 | [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) | 180,700 | [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) | 139,769 | [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) | 141,700 | [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) | 182,894 | [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) | 141,964 | [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) | 183,262 | [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) | 142,331 | [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) | 183,525 | [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) | 185,457 | [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) | 144,526 | [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) | 185,719 | [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) | 186,087 | [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) | 188,282 | [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) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -83,7 +98,6 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
@@ -188,6 +202,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -251,6 +269,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -484,6 +505,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -538,7 +561,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -641,9 +665,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ sources can be found in the `hosts/data/` directory.
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 25 2022**.
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts)
|
||||
containing 139,138 entries.
|
||||
[raw hosts file Unified hosts file with fakenews extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts)
|
||||
containing 155,478 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,943 | [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) | 139,138 | [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) | 139,505 | [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) | 180,700 | [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) | 139,769 | [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) | 141,700 | [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) | 182,894 | [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) | 141,964 | [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) | 183,262 | [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) | 142,331 | [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) | 183,525 | [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) | 185,457 | [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) | 144,526 | [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) | 185,719 | [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) | 186,087 | [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) | 188,282 | [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) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -83,7 +98,6 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
@@ -186,6 +200,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -249,6 +267,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -482,6 +503,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -536,7 +559,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -639,9 +663,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
|
||||
@@ -0,0 +1,673 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
# Limited to the extensions: gambling
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: gambling](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts)
|
||||
containing 7,695 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts`
|
||||
file.
|
||||
- **macOS Catalina:** `/private/etc/hosts` file.
|
||||
- **Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
Please read our
|
||||
[Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md).
|
||||
Among other things, this explains how we organize files and folders in this
|
||||
repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -0,0 +1,679 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
# Limited to the extensions: gambling, porn
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: gambling, porn](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts)
|
||||
containing 61,591 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts`
|
||||
file.
|
||||
- **macOS Catalina:** `/private/etc/hosts` file.
|
||||
- **Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
Please read our
|
||||
[Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md).
|
||||
Among other things, this explains how we organize files and folders in this
|
||||
repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -0,0 +1,681 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
# Limited to the extensions: gambling, porn, social
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: gambling, porn, social](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts)
|
||||
containing 64,431 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts`
|
||||
file.
|
||||
- **macOS Catalina:** `/private/etc/hosts` file.
|
||||
- **Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
Please read our
|
||||
[Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md).
|
||||
Among other things, this explains how we organize files and folders in this
|
||||
repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -14,7 +14,7 @@ sources can be found in the `hosts/data/` directory.
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 25 2022**.
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file with gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts)
|
||||
containing 186,087 entries.
|
||||
[raw hosts file Unified hosts file with gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts)
|
||||
containing 217,047 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,943 | [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) | 139,138 | [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) | 139,505 | [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) | 180,700 | [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) | 139,769 | [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) | 141,700 | [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) | 182,894 | [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) | 141,964 | [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) | 183,262 | [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) | 142,331 | [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) | 183,525 | [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) | 185,457 | [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) | 144,526 | [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) | 185,719 | [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) | 186,087 | [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) | 188,282 | [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) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -83,7 +98,6 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
@@ -96,7 +110,9 @@ Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
@@ -193,6 +209,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -256,6 +276,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -489,6 +512,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -543,7 +568,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -646,9 +672,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ sources can be found in the `hosts/data/` directory.
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 25 2022**.
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file with gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts)
|
||||
containing 183,262 entries.
|
||||
[raw hosts file Unified hosts file with gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts)
|
||||
containing 214,224 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,943 | [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) | 139,138 | [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) | 139,505 | [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) | 180,700 | [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) | 139,769 | [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) | 141,700 | [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) | 182,894 | [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) | 141,964 | [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) | 183,262 | [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) | 142,331 | [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) | 183,525 | [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) | 185,457 | [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) | 144,526 | [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) | 185,719 | [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) | 186,087 | [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) | 188,282 | [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) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -83,7 +98,6 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
@@ -96,7 +110,9 @@ Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
@@ -191,6 +207,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -254,6 +274,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -487,6 +510,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -541,7 +566,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -644,9 +670,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
|
||||
@@ -0,0 +1,675 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
# Limited to the extensions: gambling, social
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: gambling, social](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts)
|
||||
containing 10,536 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts`
|
||||
file.
|
||||
- **macOS Catalina:** `/private/etc/hosts` file.
|
||||
- **Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
Please read our
|
||||
[Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md).
|
||||
Among other things, this explains how we organize files and folders in this
|
||||
repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -14,7 +14,7 @@ sources can be found in the `hosts/data/` directory.
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 25 2022**.
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file with gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts)
|
||||
containing 142,331 entries.
|
||||
[raw hosts file Unified hosts file with gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts)
|
||||
containing 163,791 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,943 | [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) | 139,138 | [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) | 139,505 | [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) | 180,700 | [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) | 139,769 | [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) | 141,700 | [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) | 182,894 | [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) | 141,964 | [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) | 183,262 | [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) | 142,331 | [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) | 183,525 | [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) | 185,457 | [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) | 144,526 | [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) | 185,719 | [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) | 186,087 | [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) | 188,282 | [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) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -83,7 +98,6 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
@@ -96,6 +110,7 @@ Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
@@ -188,6 +203,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -251,6 +270,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -484,6 +506,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -538,7 +562,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -641,9 +666,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ sources can be found in the `hosts/data/` directory.
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 25 2022**.
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file with gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts)
|
||||
containing 139,505 entries.
|
||||
[raw hosts file Unified hosts file with gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts)
|
||||
containing 160,967 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,943 | [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) | 139,138 | [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) | 139,505 | [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) | 180,700 | [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) | 139,769 | [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) | 141,700 | [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) | 182,894 | [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) | 141,964 | [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) | 183,262 | [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) | 142,331 | [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) | 183,525 | [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) | 185,457 | [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) | 144,526 | [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) | 185,719 | [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) | 186,087 | [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) | 188,282 | [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) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -83,7 +98,6 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
@@ -96,6 +110,7 @@ Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
BigDargon's gambling domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
|
||||
|
||||
@@ -186,6 +201,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -249,6 +268,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -482,6 +504,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -536,7 +560,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -639,9 +664,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
|
||||
@@ -0,0 +1,677 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
# Limited to the extensions: porn
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: porn](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts)
|
||||
containing 53,896 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts`
|
||||
file.
|
||||
- **macOS Catalina:** `/private/etc/hosts` file.
|
||||
- **Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
Please read our
|
||||
[Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md).
|
||||
Among other things, this explains how we organize files and folders in this
|
||||
repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -0,0 +1,679 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
# Limited to the extensions: porn, social
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: porn, social](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts)
|
||||
containing 56,736 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts`
|
||||
file.
|
||||
- **macOS Catalina:** `/private/etc/hosts` file.
|
||||
- **Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
Please read our
|
||||
[Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md).
|
||||
Among other things, this explains how we organize files and folders in this
|
||||
repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -14,7 +14,7 @@ sources can be found in the `hosts/data/` directory.
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 25 2022**.
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file with porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts)
|
||||
containing 183,525 entries.
|
||||
[raw hosts file Unified hosts file with porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts)
|
||||
containing 209,364 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,943 | [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) | 139,138 | [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) | 139,505 | [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) | 180,700 | [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) | 139,769 | [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) | 141,700 | [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) | 182,894 | [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) | 141,964 | [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) | 183,262 | [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) | 142,331 | [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) | 183,525 | [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) | 185,457 | [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) | 144,526 | [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) | 185,719 | [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) | 186,087 | [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) | 188,282 | [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) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -83,7 +98,6 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
@@ -96,6 +110,7 @@ Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
@@ -192,6 +207,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -255,6 +274,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -488,6 +510,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -542,7 +566,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -645,9 +670,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ sources can be found in the `hosts/data/` directory.
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 25 2022**.
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file with porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts)
|
||||
containing 180,700 entries.
|
||||
[raw hosts file Unified hosts file with porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts)
|
||||
containing 206,541 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,943 | [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) | 139,138 | [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) | 139,505 | [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) | 180,700 | [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) | 139,769 | [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) | 141,700 | [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) | 182,894 | [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) | 141,964 | [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) | 183,262 | [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) | 142,331 | [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) | 183,525 | [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) | 185,457 | [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) | 144,526 | [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) | 185,719 | [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) | 186,087 | [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) | 188,282 | [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) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -83,7 +98,6 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
@@ -96,6 +110,7 @@ Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
BigDargon's adult domain blocking hosts file |[link](https://github.com/bigdargon/hostsVN/) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Extension from the project hostsVN
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
@@ -190,6 +205,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -253,6 +272,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -486,6 +508,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -540,7 +564,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -643,9 +668,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
|
||||
@@ -0,0 +1,673 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[](https://github.com/StevenBlack/hosts/releases)
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
# Limited to the extensions: social
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file Limited to the extensions: social](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts)
|
||||
containing 2,841 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
of OS.
|
||||
|
||||
## Sources of hosts data unified in this variant
|
||||
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
```sh
|
||||
pip3 install --user -r requirements.txt
|
||||
```
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
```sh
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
|
||||
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
|
||||
each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I prevent domains from being included?
|
||||
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
|
||||
For example, to nullify requests to some doubleclick.net servers, adding these
|
||||
lines to your hosts file will do it:
|
||||
|
||||
```text
|
||||
# block doubleClick's servers
|
||||
0.0.0.0 ad.ae.doubleclick.net
|
||||
0.0.0.0 ad.ar.doubleclick.net
|
||||
0.0.0.0 ad.at.doubleclick.net
|
||||
0.0.0.0 ad.au.doubleclick.net
|
||||
0.0.0.0 ad.be.doubleclick.net
|
||||
# etc...
|
||||
```
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
|
||||
## Location of your hosts file
|
||||
|
||||
To modify your current `hosts` file, look for it in the following places and
|
||||
modify it with a text editor.
|
||||
|
||||
- **macOS (until 10.14.x macOS Mojave), iOS, Android, Linux**: `/etc/hosts`
|
||||
file.
|
||||
- **macOS Catalina:** `/private/etc/hosts` file.
|
||||
- **Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
|
||||
|
||||
## Gentoo
|
||||
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
- **Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click
|
||||
Command Prompt → "Run as Administrator"
|
||||
- **Windows 10**: Start Button → type `cmd` → right-click Command Prompt → "Run
|
||||
as Administrator"
|
||||
|
||||
You can also refer to the "Third-Party Hosts Managers" section for further
|
||||
recommended solutions from third parties.
|
||||
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
following commands to manually flush your DNS cache once the new hosts file is
|
||||
in place.
|
||||
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on
|
||||
`chrome://net-internals/#dns` page to thereafter see the changes in your hosts
|
||||
file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
Open a command prompt with administrator privileges and run this command:
|
||||
|
||||
```bat
|
||||
ipconfig /flushdns
|
||||
```
|
||||
|
||||
### Linux
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
- **Debian/Ubuntu** `sudo service network-manager restart`
|
||||
- **Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
- **Linux with systemd**: `sudo systemctl restart network.service`
|
||||
- **Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Network Manager**:
|
||||
`sudo systemctl restart NetworkManager.service`
|
||||
- **Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
|
||||
- **RHEL/Centos**: `sudo /etc/init.d/network restart`
|
||||
- **FreeBSD**: `sudo service nscd restart`
|
||||
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the
|
||||
following commands:
|
||||
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the
|
||||
following:
|
||||
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
- **NixOS**: The `nscd.service` is automatically restarted when the option
|
||||
`networking.extraHosts` was changed.
|
||||
- **Others**: Consult
|
||||
[this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
|
||||
### macOS
|
||||
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
```
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
2. provide situation-appropriate extensions,
|
||||
3. de-dupe the resultant combined list,
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
Please read our
|
||||
[Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md).
|
||||
Among other things, this explains how we organize files and folders in this
|
||||
repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
@@ -14,7 +14,7 @@ sources can be found in the `hosts/data/` directory.
|
||||
[](https://github.com/StevenBlack/hosts/blob/master/license.txt)
|
||||
[](https://github.com/StevenBlack/hosts)
|
||||
[](https://github.com/StevenBlack/hosts/graphs/contributors)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/StevenBlack/hosts/actions/workflows/ci.yml?query=branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 25 2022**.
|
||||
- Last updated: **November 08 2023**.
|
||||
- Here's the
|
||||
[raw hosts file with social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts)
|
||||
containing 139,769 entries.
|
||||
[raw hosts file Unified hosts file with social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts)
|
||||
containing 156,108 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,943 | [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) | 139,138 | [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) | 139,505 | [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) | 180,700 | [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) | 139,769 | [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) | 141,700 | [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) | 182,894 | [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) | 141,964 | [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) | 183,262 | [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) | 142,331 | [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) | 183,525 | [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) | 185,457 | [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) | 144,526 | [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) | 185,719 | [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) | 186,087 | [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) | 188,282 | [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) | 153,284 | [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) | 155,478 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 160,967 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,695 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 206,541 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 53,896 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 156,108 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,841 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 163,161 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 9,889 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 208,735 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 56,090 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 158,302 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,035 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 214,224 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 61,591 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 163,791 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,536 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 209,364 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 56,736 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 216,418 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 63,785 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 165,985 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,730 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 211,558 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 58,930 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 217,047 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 64,431 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 219,241 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 66,625 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -83,7 +98,6 @@ add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
@@ -187,6 +201,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -250,6 +268,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -483,6 +504,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -537,7 +560,8 @@ Open a Terminal and run with root privileges:
|
||||
|
||||
### macOS
|
||||
|
||||
Open a Terminal and run:
|
||||
As described in [this article](https://osxdaily.com/2022/11/21/how-clear-dns-cache-macos-ventura-monterey/),
|
||||
open a Terminal and run:
|
||||
|
||||
```sh
|
||||
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
@@ -640,9 +664,15 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
- [Control D](https://controld.com/free-dns)
|
||||
offers a public anycast network hosted mirror of the Unified (Adware + Malware) blocklist:
|
||||
- Legacy DNS: `76.76.2.35`, `76.76.10.35`, `2606:1a40::35`, `2606:1a40:1::35`
|
||||
- DNS-over-HTTPS/TLS/DOQ: `https://freedns.controld.com/x-stevenblack`, `x-stevenblack.freedns.controld.com`
|
||||
|
||||
## Contribute
|
||||
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
2021-03-31,39485
|
||||
2021-03-31,9168
|
||||
2021-04-19,11486
|
||||
2021-04-24,14304
|
||||
2021-04-26,11720
|
||||
2021-05-04,11052
|
||||
2021-05-12,11711
|
||||
2021-05-17,11233
|
||||
2021-05-25,12703
|
||||
2021-05-31,12304
|
||||
2021-06-07,12400
|
||||
2021-06-16,11750
|
||||
2021-06-22,11674
|
||||
2021-06-28,11880
|
||||
2021-07-13,12219
|
||||
2021-07-19,8082
|
||||
2021-07-26,12381
|
||||
2021-08-02,13398
|
||||
2021-08-09,13630
|
||||
2021-08-17,13690
|
||||
2021-08-20,13885
|
||||
2021-08-25,14801
|
||||
2021-08-30,13963
|
||||
2021-09-07,15429
|
||||
2021-09-17,14573
|
||||
2021-09-24,14029
|
||||
2021-09-30,13780
|
||||
2021-10-05,14081
|
||||
2021-10-12,13729
|
||||
2021-10-19,13100
|
||||
2021-10-27,13305
|
||||
2021-11-04,14015
|
||||
2021-11-11,14823
|
||||
2021-11-17,14951
|
||||
2021-11-21,17033
|
||||
2021-11-29,15939
|
||||
2021-12-09,14123
|
||||
2021-12-13,15292
|
||||
2021-12-20,15361
|
||||
2021-12-30,15274
|
||||
2022-01-04,15183
|
||||
2022-01-11,15921
|
||||
2022-01-18,16845
|
||||
2022-01-24,20709
|
||||
2022-01-31,17110
|
||||
2022-02-17,16569
|
||||
2022-02-22,16032
|
||||
2022-03-06,19026
|
||||
2022-03-07,17826
|
||||
2022-03-14,18173
|
||||
2022-03-24,49835
|
||||
2022-03-29,25405
|
||||
2022-04-05,26583
|
||||
2022-04-13,27556
|
||||
2022-04-18,27836
|
||||
2022-04-25,25377
|
||||
2022-05-03,27259
|
||||
2022-05-10,26933
|
||||
2022-05-19,28737
|
||||
2022-05-25,56601
|
||||
2022-05-31,25229
|
||||
2022-06-07,22038
|
||||
2022-06-16,39876
|
||||
2022-06-21,19978
|
||||
2022-06-29,32240
|
||||
2022-07-04,19668
|
||||
2022-07-13,55668
|
||||
2022-07-16,45929
|
||||
2022-07-18,21489
|
||||
2022-07-21,39485
|
||||
2022-07-29,39485
|
||||
|
Before Width: | Height: | Size: 37 KiB |
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"name": "AdguardTeam cname trackers",
|
||||
"description": "CNAME-cloaked tracking abuses.",
|
||||
"homeurl": "https://github.com/AdguardTeam/cname-trackers",
|
||||
"frequency": "occasionally",
|
||||
"issues": "https://github.com/AdguardTeam/cname-trackers/issues",
|
||||
"url": "https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt",
|
||||
"license": "MIT",
|
||||
"pause": true
|
||||
}
|
||||
@@ -399,3 +399,119 @@
|
||||
2022-07-23,54912
|
||||
2022-07-25,54029
|
||||
2022-07-29,55170
|
||||
2022-07-29,55170
|
||||
2022-08-03,56212
|
||||
2022-08-09,55363
|
||||
2022-08-12,56199
|
||||
2022-08-17,57242
|
||||
2022-08-20,58029
|
||||
2022-08-24,58671
|
||||
2022-08-25,59079
|
||||
2022-08-31,58909
|
||||
2022-09-04,59632
|
||||
2022-09-05,59801
|
||||
2022-09-08,60419
|
||||
2022-09-11,60871
|
||||
2022-09-13,61716
|
||||
2022-09-17,62637
|
||||
2022-09-23,69250
|
||||
2022-10-01,70975
|
||||
2022-10-06,71961
|
||||
2022-10-09,72393
|
||||
2022-10-13,73542
|
||||
2022-10-15,73812
|
||||
2022-10-17,74045
|
||||
2022-10-20,74663
|
||||
2022-10-27,75985
|
||||
2022-11-01,76659
|
||||
2022-11-09,77533
|
||||
2022-11-12,77958
|
||||
2022-11-13,78048
|
||||
2022-11-20,79200
|
||||
2022-11-21,79392
|
||||
2022-11-26,80074
|
||||
2022-11-28,80242
|
||||
2022-11-29,80593
|
||||
2022-12-03,81424
|
||||
2022-12-04,81480
|
||||
2022-12-05,81939
|
||||
2022-12-06,82151
|
||||
2022-12-11,83395
|
||||
2022-12-13,83729
|
||||
2022-12-15,84409
|
||||
2022-12-18,85143
|
||||
2022-12-20,85678
|
||||
2022-12-26,86493
|
||||
2022-12-29,87155
|
||||
2022-12-29,87249
|
||||
2023-01-01,87381
|
||||
2023-01-06,88183
|
||||
2023-01-08,88327
|
||||
2023-01-11,90282
|
||||
2023-01-13,90627
|
||||
2023-01-19,92889
|
||||
2023-01-23,93644
|
||||
2023-01-24,94292
|
||||
2023-01-27,95607
|
||||
2023-01-31,96093
|
||||
2023-02-05,98119
|
||||
2023-02-07,99720
|
||||
2023-02-16,103828
|
||||
2023-02-19,105052
|
||||
2023-02-23,105764
|
||||
2023-02-28,106639
|
||||
2023-03-03,107407
|
||||
2023-03-06,107829
|
||||
2023-03-07,108127
|
||||
2023-03-10,109968
|
||||
2023-03-14,111107
|
||||
2023-03-21,114538
|
||||
2023-03-25,115719
|
||||
2023-03-29,116916
|
||||
2023-04-07,123209
|
||||
2023-04-11,125209
|
||||
2023-04-16,127216
|
||||
2023-04-18,130388
|
||||
2023-04-19,130588
|
||||
2023-04-23,131577
|
||||
2023-04-26,134882
|
||||
2023-04-27,135241
|
||||
2023-04-30,135656
|
||||
2023-05-02,136074
|
||||
2023-05-05,136917
|
||||
2023-05-08,137729
|
||||
2023-05-11,138767
|
||||
2023-05-14,141533
|
||||
2023-05-15,142238
|
||||
2023-05-20,143946
|
||||
2023-05-21,144092
|
||||
2023-05-24,146074
|
||||
2023-06-02,148891
|
||||
2023-06-06,150385
|
||||
2023-06-10,151188
|
||||
2023-06-11,151275
|
||||
2023-06-13,151745
|
||||
2023-06-14,152002
|
||||
2023-06-14,152198
|
||||
2023-06-16,152956
|
||||
2023-06-17,153132
|
||||
2023-06-18,153288
|
||||
2023-06-23,154980
|
||||
2023-06-27,156185
|
||||
2023-07-01,157308
|
||||
2023-07-06,158737
|
||||
2023-07-09,159309
|
||||
2023-07-14,160857
|
||||
2023-07-15,160953
|
||||
2023-07-21,162723
|
||||
2023-07-23,162923
|
||||
2023-07-27,164181
|
||||
2023-08-01,165426
|
||||
2023-08-04,167551
|
||||
2023-08-05,167697
|
||||
2023-08-08,168343
|
||||
2023-08-13,170007
|
||||
2023-08-17,170776
|
||||
2023-08-21,171751
|
||||
2023-08-22,172007
|
||||
2023-08-26,173323
|
||||
|
||||
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 25 KiB |
@@ -2,6 +2,7 @@
|
||||
# Title: Hosts contributed by Steven Black
|
||||
# http://stevenblack.com
|
||||
|
||||
0.0.0.0 ck.getcookiestxt.com
|
||||
0.0.0.0 eu1.clevertap-prod.com
|
||||
0.0.0.0 wizhumpgyros.com
|
||||
0.0.0.0 coccyxwickimp.com
|
||||
@@ -213,7 +214,7 @@
|
||||
0.0.0.0 api5.batmobil.net
|
||||
0.0.0.0 beauty-tea.com
|
||||
0.0.0.0 www.beauty-tea.com
|
||||
0.0.0.0 0.0.0.0.beeglivesex.com
|
||||
0.0.0.0 beeglivesex.com
|
||||
0.0.0.0 cdn.beginads.com
|
||||
0.0.0.0 www.cdn.beginads.com
|
||||
0.0.0.0 rotator.beginads.com
|
||||
@@ -824,7 +825,6 @@
|
||||
0.0.0.0 a.faymobi.com
|
||||
0.0.0.0 fdn-en.net
|
||||
0.0.0.0 ads.feedly.com
|
||||
0.0.0.0 feylibertad.org
|
||||
0.0.0.0 fgddl9szdof7.com
|
||||
0.0.0.0 fgoogle.com
|
||||
0.0.0.0 www.fgoogle.com
|
||||
@@ -864,7 +864,7 @@
|
||||
0.0.0.0 www.girlstofap.ga
|
||||
0.0.0.0 git-hub.co
|
||||
0.0.0.0 githb.co
|
||||
0.0.0.0 superlogout.github.io
|
||||
|
||||
0.0.0.0 goodblock.gladly.io
|
||||
0.0.0.0 www.goodblock.gladly.io
|
||||
0.0.0.0 ad-dev.globalnoticias.pt
|
||||
@@ -1017,7 +1017,6 @@
|
||||
0.0.0.0 samsung.apps.linkpc.net
|
||||
0.0.0.0 lismcanalys.fun
|
||||
0.0.0.0 nexus.officeapps.live.com
|
||||
0.0.0.0 nexusrules.officeapps.live.com
|
||||
0.0.0.0 livechatinc.org
|
||||
0.0.0.0 cradver.livejasmin.com
|
||||
0.0.0.0 crt.livejasmin.com
|
||||
@@ -2229,9 +2228,6 @@
|
||||
0.0.0.0 amusingdates.net
|
||||
0.0.0.0 honey-date4u.life
|
||||
|
||||
# Added August 3, 2022
|
||||
0.0.0.0 secur.hopp.to
|
||||
|
||||
# Added August 9, 2022
|
||||
0.0.0.0 shopsplumbing.com
|
||||
|
||||
@@ -2256,3 +2252,383 @@
|
||||
|
||||
0.0.0.0 didna-d.openx.net
|
||||
0.0.0.0 c2shb.ssp.yahoo.com
|
||||
|
||||
# Added August 26, 2022
|
||||
0.0.0.0 anmooq.deiicatedate.net
|
||||
0.0.0.0 www.pornsite123.com
|
||||
0.0.0.0 pornsite123.com
|
||||
0.0.0.0 www.xxxbullet.com
|
||||
0.0.0.0 xxxbullet.com
|
||||
0.0.0.0 www.packsdechicas.online
|
||||
0.0.0.0 packsdechicas.online
|
||||
|
||||
# Added August 27, 2022
|
||||
0.0.0.0 ip-info.ff.avast.com
|
||||
0.0.0.0 ipm-provider.ff.avast.com
|
||||
0.0.0.0 ipmcdn.avast.com
|
||||
0.0.0.0 ncc.avast.com
|
||||
0.0.0.0 shepherd.ff.avast.com
|
||||
0.0.0.0 clicktut.site
|
||||
|
||||
# Added Auguest 30, 2022
|
||||
0.0.0.0 secureaddisplay.com
|
||||
0.0.0.0 wiztube.xyz
|
||||
|
||||
# Added September 2, 2022
|
||||
0.0.0.0 yourgodess.com
|
||||
0.0.0.0 www.quinni.cyou
|
||||
0.0.0.0 quinni.cyou
|
||||
0.0.0.0 www.alenai.cyou
|
||||
0.0.0.0 alenai.cyou
|
||||
|
||||
# Added September 5, 2022
|
||||
0.0.0.0 telewizja-online.net
|
||||
0.0.0.0 bramka.org
|
||||
0.0.0.0 ustreamix.su
|
||||
0.0.0.0 inatv.pl
|
||||
|
||||
# Added September 7, 2022
|
||||
0.0.0.0 tracking.minitool.com
|
||||
|
||||
# Added September 9, 2022
|
||||
0.0.0.0 pasiekazlotoklos.pl
|
||||
|
||||
# Added September 12, 2022
|
||||
0.0.0.0 eu-commercialb.com
|
||||
|
||||
# Added September 29, 2022
|
||||
0.0.0.0 gratlfyingdates.net
|
||||
0.0.0.0 www.gratlfyingdates.net
|
||||
|
||||
# Added October 15, 2022
|
||||
0.0.0.0 filmsexeporno.com
|
||||
|
||||
# Added October 24, 2022
|
||||
0.0.0.0 supdqwepu.com
|
||||
0.0.0.0 vawardquac.com
|
||||
0.0.0.0 lemmingro.com
|
||||
|
||||
# Added October 27, 2022
|
||||
0.0.0.0 flashrewards.co
|
||||
|
||||
# Added November 13, 2022
|
||||
0.0.0.0 info-eastflirts.com
|
||||
0.0.0.0 www.info-eastflirts.com
|
||||
|
||||
# Added November 20, 2022
|
||||
0.0.0.0 reporting-api.gannettinnovation.com
|
||||
|
||||
# Added November 26, 2022
|
||||
0.0.0.0 1041598d1a.da1a0e7bb3.com
|
||||
0.0.0.0 12112336.pix-cdn.org
|
||||
0.0.0.0 1d3c8a1eaa.faeaeeaafa.com
|
||||
0.0.0.0 acceptable.a-ads.com
|
||||
0.0.0.0 addresseepaper.com
|
||||
0.0.0.0 banquetunarmedgrater.com
|
||||
0.0.0.0 cdn.barscreative1.com
|
||||
0.0.0.0 cdn.cloudimagesb.com
|
||||
0.0.0.0 cdn.creative-bars1.com
|
||||
0.0.0.0 cdn.tubecorp.com
|
||||
0.0.0.0 cdn18383040.ahacdn.me
|
||||
0.0.0.0 friendshipmale.com
|
||||
0.0.0.0 i.cdnkimg.com
|
||||
0.0.0.0 icon.eu.mndsrv.com
|
||||
0.0.0.0 iconcnd.net
|
||||
0.0.0.0 in16.zog.link
|
||||
0.0.0.0 js.canstrm.com
|
||||
0.0.0.0 js.natsdk.com
|
||||
0.0.0.0 js.wpadmngr.com
|
||||
0.0.0.0 lcdn.tsyndicate.com
|
||||
0.0.0.0 na.nawpush.com
|
||||
0.0.0.0 native-track.com
|
||||
0.0.0.0 parkingridiculous.com
|
||||
0.0.0.0 prombid.com
|
||||
0.0.0.0 pxl.tsyndicate.com
|
||||
0.0.0.0 s-img.adskeeper.com
|
||||
0.0.0.0 s.uuidksinc.net
|
||||
0.0.0.0 s.viiqvmfb.com
|
||||
0.0.0.0 soldierreproduceadmiration.com
|
||||
0.0.0.0 tcimp.zog.link
|
||||
0.0.0.0 tsyndicate.com
|
||||
0.0.0.0 unseenreport.com
|
||||
0.0.0.0 veilsuccessfully.com
|
||||
0.0.0.0 veneeringextremely.com
|
||||
0.0.0.0 bestgames-2022.com
|
||||
0.0.0.0 fp.metricswpsh.com
|
||||
0.0.0.0 spikereekvelocity.com
|
||||
0.0.0.0 www.gaming-adult.com
|
||||
0.0.0.0 mediasama.com
|
||||
0.0.0.0 danbo.org
|
||||
|
||||
# Added November 27, 2022
|
||||
0.0.0.0 crmt.livejasmin.com
|
||||
|
||||
# Added December 4, 2022. Malware domains using TXT record to transfer powershell scripts.
|
||||
0.0.0.0 wmail-endpoint.com
|
||||
0.0.0.0 wmail-blog.com
|
||||
0.0.0.0 wmail-chat.com
|
||||
0.0.0.0 wmail-cdn.com
|
||||
0.0.0.0 wmail-schnellvpn.com
|
||||
0.0.0.0 fairu-endpoint.com
|
||||
0.0.0.0 fairu-blog.com
|
||||
0.0.0.0 fairu-chat.com
|
||||
0.0.0.0 fairu-cdn.com
|
||||
0.0.0.0 fairu-schnellvpn.com
|
||||
0.0.0.0 bideo-endpoint.com
|
||||
0.0.0.0 bideo-blog.com
|
||||
0.0.0.0 bideo-chat.com
|
||||
0.0.0.0 bideo-cdn.com
|
||||
0.0.0.0 bideo-schnellvpn.com
|
||||
0.0.0.0 privatproxy-endpoint.com
|
||||
0.0.0.0 privatproxy-blog.com
|
||||
0.0.0.0 privatproxy-chat.com
|
||||
0.0.0.0 privatproxy-cdn.com
|
||||
0.0.0.0 privatproxy-schnellvpn.com
|
||||
0.0.0.0 ahoravideo-endpoint.com
|
||||
0.0.0.0 ahoravideo-blog.com
|
||||
0.0.0.0 ahoravideo-chat.com
|
||||
0.0.0.0 ahoravideo-cdn.com
|
||||
0.0.0.0 ahoravideo-schnellvpn.com
|
||||
0.0.0.0 wmail-endpoint.xyz
|
||||
0.0.0.0 wmail-blog.xyz
|
||||
0.0.0.0 wmail-chat.xyz
|
||||
0.0.0.0 wmail-cdn.xyz
|
||||
0.0.0.0 wmail-schnellvpn.xyz
|
||||
0.0.0.0 fairu-endpoint.xyz
|
||||
0.0.0.0 fairu-blog.xyz
|
||||
0.0.0.0 fairu-chat.xyz
|
||||
0.0.0.0 fairu-cdn.xyz
|
||||
0.0.0.0 fairu-schnellvpn.xyz
|
||||
0.0.0.0 bideo-endpoint.xyz
|
||||
0.0.0.0 bideo-blog.xyz
|
||||
0.0.0.0 bideo-chat.xyz
|
||||
0.0.0.0 bideo-cdn.xyz
|
||||
0.0.0.0 bideo-schnellvpn.xyz
|
||||
0.0.0.0 privatproxy-endpoint.xyz
|
||||
0.0.0.0 privatproxy-blog.xyz
|
||||
0.0.0.0 privatproxy-chat.xyz
|
||||
0.0.0.0 privatproxy-cdn.xyz
|
||||
0.0.0.0 privatproxy-schnellvpn.xyz
|
||||
0.0.0.0 ahoravideo-endpoint.xyz
|
||||
0.0.0.0 ahoravideo-blog.xyz
|
||||
0.0.0.0 ahoravideo-chat.xyz
|
||||
0.0.0.0 ahoravideo-cdn.xyz
|
||||
0.0.0.0 ahoravideo-schnellvpn.xyz
|
||||
|
||||
# Added December 4, 2022
|
||||
0.0.0.0 cesareurope.com
|
||||
0.0.0.0 cws-hotstar.conviva.com
|
||||
0.0.0.0 events-analytics.hotstar.com
|
||||
0.0.0.0 logs.hotstar.com
|
||||
0.0.0.0 service.hotstar.com
|
||||
0.0.0.0 settings-analytics.hotstar.com
|
||||
0.0.0.0 videoads.hotstar.com
|
||||
0.0.0.0 vs.hotstar.com
|
||||
|
||||
# Added December 11, 2022
|
||||
0.0.0.0 analytics.shein.com
|
||||
0.0.0.0 analytics.shein.co.uk
|
||||
|
||||
# Added December 29, 2022
|
||||
0.0.0.0 8a97175fd63e1d3a69f36979b9b34470.safeframe.googlesyndication.com
|
||||
0.0.0.0 c2shb.pubgw.yahoo.com
|
||||
0.0.0.0 cdn.confiant-integrations.net
|
||||
0.0.0.0 cdn.hadronid.net
|
||||
0.0.0.0 cdn.id5-sync.com
|
||||
0.0.0.0 cdn.prod.uidapi.com
|
||||
0.0.0.0 curvedhoney.com
|
||||
0.0.0.0 dnacdn.net
|
||||
0.0.0.0 freestar-d.openx.net
|
||||
0.0.0.0 freestar-io.videoplayerhub.com
|
||||
0.0.0.0 oa.openxcdn.net
|
||||
0.0.0.0 s2s.t13.io
|
||||
|
||||
# Added January 11, 2023
|
||||
0.0.0.0 btc8886.com
|
||||
0.0.0.0 en.xachinaproject.fun
|
||||
|
||||
# Added January 12, 2023
|
||||
0.0.0.0 antihohol.cloud
|
||||
0.0.0.0 hosteagle.club
|
||||
0.0.0.0 anz-shield-secure.com
|
||||
0.0.0.0 alert-bendigobank.com
|
||||
0.0.0.0 linkt-transport.top
|
||||
0.0.0.0 linkt-help.top
|
||||
|
||||
# Added January 13, 2023
|
||||
0.0.0.0 reviewmygov.tuquy.com
|
||||
0.0.0.0 auspost-record.com
|
||||
0.0.0.0 alert-auspost.com
|
||||
0.0.0.0 auspost-input.com
|
||||
|
||||
# Added January 22, 2023
|
||||
0.0.0.0 vep.hautnah-kosmetik-grafenau.de
|
||||
0.0.0.0 ttri.kanzlei-ecklmaier.de
|
||||
0.0.0.0 d-stuff.cfd
|
||||
0.0.0.0 ruhrboudoir.de
|
||||
0.0.0.0 d-bring.cfd
|
||||
0.0.0.0 obev.pauya.de
|
||||
0.0.0.0 dimoradellapizzuta.it
|
||||
0.0.0.0 misanoassicurazioni.it
|
||||
0.0.0.0 d-enemy.cfd
|
||||
0.0.0.0 sindelfingen-haarentfernung.de
|
||||
0.0.0.0 asdpoliziamunicipalepa.it
|
||||
0.0.0.0 mf-massoterapia.it
|
||||
0.0.0.0 tyty.lolokira.lol
|
||||
0.0.0.0 yord.serawent-pole.lol
|
||||
0.0.0.0 redivosrl.it
|
||||
|
||||
# Added January 23, 2023
|
||||
0.0.0.0 products.gobankingrates.com
|
||||
0.0.0.0 cdn.rates.consumertrack.com
|
||||
0.0.0.0 ads-api.twitter.com
|
||||
|
||||
# Added February 7, 2023
|
||||
0.0.0.0 aax-dtb-cf.amazon-adsystem.com
|
||||
0.0.0.0 assets-jpcust.jwpsrv.com
|
||||
0.0.0.0 fundingchoicesmessages.google.com
|
||||
0.0.0.0 images.twnmm.com
|
||||
0.0.0.0 prod.us-east-1.cxm-bcn.publisher-services.amazon.dev
|
||||
0.0.0.0 secure.cdn.fastclick.ne
|
||||
0.0.0.0 twngcpbidder.lb.engagecore.com
|
||||
0.0.0.0 assets-jpcust.jwpsrv.com
|
||||
|
||||
# Added March 7, 2023
|
||||
0.0.0.0 a125375509.cdn.optimizely.com
|
||||
0.0.0.0 cdn.cookielaw.org
|
||||
0.0.0.0 cdn.indexww.com
|
||||
|
||||
# Added March 25, 2023
|
||||
0.0.0.0 wpad.www.tendawifi.com
|
||||
0.0.0.0 crprt.livejasmin.com
|
||||
|
||||
# Added March 28, 2023
|
||||
0.0.0.0 grow.gab.com
|
||||
|
||||
# Added April 3, 2023
|
||||
0.0.0.0 transive.top
|
||||
0.0.0.0 warehousesale.shop
|
||||
|
||||
# Added April 4, 2023
|
||||
0.0.0.0 fpjscdn.net
|
||||
0.0.0.0 api.fpjs.io
|
||||
0.0.0.0 use1.fptls.com
|
||||
0.0.0.0 use1.fptls3.com
|
||||
|
||||
# Added April 7, 2023
|
||||
0.0.0.0 d2uap9jskdzp2.cloudfront.net
|
||||
0.0.0.0 steadfastseat.com
|
||||
0.0.0.0 eq97f.publishers.tremorhub.com
|
||||
|
||||
# Added April 13, 2023
|
||||
0.0.0.0 wota-tournament.com
|
||||
|
||||
# Added April 19, 2023
|
||||
0.0.0.0 rukalebi.ru
|
||||
0.0.0.0 bueromoebelservice.com
|
||||
|
||||
# Added April 21, 2023
|
||||
0.0.0.0 beautydates.cn
|
||||
0.0.0.0 www.beautydates.cn
|
||||
0.0.0.0 hhoneyann96.beautydates.cn
|
||||
0.0.0.0 nilaima.com
|
||||
0.0.0.0 www.nilaima.com
|
||||
|
||||
# Added April 27, 2023
|
||||
0.0.0.0 www.gameitlive.com
|
||||
0.0.0.0 gameitlive.com
|
||||
|
||||
# Added April 28, 2023
|
||||
0.0.0.0 stripchat.com
|
||||
|
||||
# Added April 29, 2023
|
||||
0.0.0.0 crmpt.livejasmin.com
|
||||
|
||||
# Added May 2, 2023
|
||||
0.0.0.0 claudfront.net
|
||||
0.0.0.0 allowlisted.net
|
||||
0.0.0.0 atlas-upd.com
|
||||
0.0.0.0 ads-tm-glb.click
|
||||
0.0.0.0 cbox4.ignorelist.com
|
||||
0.0.0.0 hsdps.cc
|
||||
0.0.0.0 api.sprig.com
|
||||
|
||||
# Added May 15, 2023
|
||||
0.0.0.0 telemetry-cii.api.playstation.com
|
||||
|
||||
# Added May 19, 2023
|
||||
0.0.0.0 clorec4.net
|
||||
0.0.0.0 wu.idismfonts.com
|
||||
0.0.0.0 xml-eu.flairadscpc.com
|
||||
|
||||
# Added May 30, 2023
|
||||
0.0.0.0 serasearchtop.com
|
||||
0.0.0.0 track.atom-ds.com
|
||||
|
||||
# Added June 3, 2023
|
||||
0.0.0.0 addatamarket.net
|
||||
0.0.0.0 backuprabbit.com
|
||||
0.0.0.0 businessvideonews.com
|
||||
0.0.0.0 cloudsponcer.com
|
||||
0.0.0.0 datamarketplace.net
|
||||
0.0.0.0 mobilegamerstats.com
|
||||
0.0.0.0 snoweeanalytics.com
|
||||
0.0.0.0 tagclick-cdn.com
|
||||
0.0.0.0 topographyupdates.com
|
||||
0.0.0.0 unlimitedteacup.com
|
||||
0.0.0.0 virtuallaughing.com
|
||||
0.0.0.0 web-trackers.com
|
||||
0.0.0.0 growthtransport.com
|
||||
0.0.0.0 anstv.net
|
||||
0.0.0.0 ans7tv.net
|
||||
0.0.0.0 123-vendasvoos25.lovestoblog.com
|
||||
0.0.0.0 c-123milhas.shop
|
||||
|
||||
# Added June 13, 2023
|
||||
0.0.0.0 assistant-chronopost.com
|
||||
0.0.0.0 zhihu-web-analytics.zhihu.com
|
||||
|
||||
# Added July 4, 2023
|
||||
0.0.0.0 stmicroelectronics.d3.sc.omtrdc.net
|
||||
|
||||
0.0.0.0 giyhub.com
|
||||
0.0.0.0 d2wzkjnj9pfptq.cloudfront.net
|
||||
0.0.0.0 storiesnexus.com
|
||||
0.0.0.0 rumadel.com
|
||||
|
||||
# Added August 8, 2023
|
||||
0.0.0.0 ms4.applvn.com
|
||||
0.0.0.0 adsninjacdn.b-cdn.net
|
||||
0.0.0.0 cdn.adsninja.ca
|
||||
0.0.0.0 nom.telemetrydeck.com
|
||||
0.0.0.0 api.ibeat-analytics.com
|
||||
0.0.0.0 mads.amazon.com
|
||||
|
||||
# Add August 9, 2023
|
||||
0.0.0.0 s2.bl-1.com
|
||||
|
||||
# Added August 10, 2023
|
||||
0.0.0.0 w61.1piecemanga.com
|
||||
0.0.0.0 fbet.com
|
||||
0.0.0.0 stemboastfulrattle.com
|
||||
0.0.0.0 onwardrespirationcommandment.com
|
||||
|
||||
# Added October 13, 2023
|
||||
0.0.0.0 s.dmmew.com
|
||||
|
||||
# Added November 2, 2023
|
||||
0.0.0.0 run.cntxtfl.com
|
||||
0.0.0.0 live-manifests-lln.warnermediacdn.com
|
||||
0.0.0.0 live-manifests-aka.warnermediacdn.com
|
||||
0.0.0.0 logs.browser-intake-datadoghq.com
|
||||
|
||||
# Added November 3, 2023
|
||||
0.0.0.0 b2b6d102cb7a4898bc54a3b73e31b759.safeframe.googlesyndication.com
|
||||
0.0.0.0 cpm.didna.io
|
||||
0.0.0.0 hb.minutemedia-prebid.com
|
||||
0.0.0.0 ox-rtb-us-east1.openx.net
|
||||
0.0.0.0 ox-rtb-us-east4.openx.net
|
||||
0.0.0.0 pbs.nextmillmedia.com
|
||||
0.0.0.0 report2.hb.brainlyads.com
|
||||
0.0.0.0 ssp-sync.criteo.com
|
||||
0.0.0.0 st.pubmatic.com
|
||||
|
||||
@@ -354,6 +354,8 @@
|
||||
127.0.0.1 androidads23.adcolony.com
|
||||
127.0.0.1 androidads4-3.adcolony.com
|
||||
127.0.0.1 androidads4-5.adcolony.com
|
||||
127.0.0.1 androidads4-7.adcolony.com
|
||||
127.0.0.1 androidads4-8.adcolony.com
|
||||
127.0.0.1 c4d-cdn.adcolony.com
|
||||
127.0.0.1 c4dm.adcolony.com
|
||||
127.0.0.1 cpa.adcolony.com
|
||||
@@ -658,7 +660,9 @@
|
||||
|
||||
# [admitad.com]
|
||||
127.0.0.1 admitad.com
|
||||
127.0.0.1 ad.admitad.com
|
||||
127.0.0.1 fonts.ad.admitad.com
|
||||
127.0.0.1 cdn.admitad.com
|
||||
|
||||
# [admixer.co.kr]
|
||||
127.0.0.1 admixer.co.kr
|
||||
@@ -700,6 +704,7 @@
|
||||
|
||||
# [adnxs-simple.com]
|
||||
127.0.0.1 acdn.adnxs-simple.com
|
||||
127.0.0.1 ib.adnxs-simple.com
|
||||
127.0.0.1 nym1-ib.adnxs-simple.com
|
||||
|
||||
# [adnxs.com]
|
||||
@@ -927,6 +932,9 @@
|
||||
127.0.0.1 ih.adscale.de
|
||||
127.0.0.1 js.adscale.de
|
||||
|
||||
# [adserve.work]
|
||||
127.0.0.1 adserve.work
|
||||
|
||||
# [adsfast.com]
|
||||
127.0.0.1 track.adsfast.com
|
||||
|
||||
@@ -1119,6 +1127,9 @@
|
||||
# [adtiming.com]
|
||||
127.0.0.1 img.adtiming.com
|
||||
127.0.0.1 m.adtiming.com
|
||||
127.0.0.1 ociasb.adtiming.com
|
||||
127.0.0.1 rt.adtiming.com
|
||||
127.0.0.1 rtb.adtiming.com
|
||||
127.0.0.1 sdk.adtiming.com
|
||||
|
||||
# [adtlgc.com]
|
||||
@@ -1312,6 +1323,9 @@
|
||||
# [adxpose.com]
|
||||
127.0.0.1 servedby.adxpose.com
|
||||
|
||||
# [adxserve.com]
|
||||
127.0.0.1 www.adxserve.com
|
||||
|
||||
# [adywind.com]
|
||||
127.0.0.1 adywind.com
|
||||
127.0.0.1 app.adywind.com
|
||||
@@ -1423,12 +1437,6 @@
|
||||
127.0.0.1 api.airpush.com
|
||||
127.0.0.1 apportal.airpush.com
|
||||
|
||||
# [aiv-cdn.net]
|
||||
127.0.0.1 pop-iad-2.cf.dash.row.aiv-cdn.net
|
||||
127.0.0.1 s3-iad-2.cf.dash.row.aiv-cdn.net
|
||||
127.0.0.1 s3-iad-ww.cf.videorolls.row.aiv-cdn.net
|
||||
127.0.0.1 s3.ll.videorolls.row.aiv-cdn.net
|
||||
|
||||
# [aiv-delivery.net]
|
||||
127.0.0.1 api.us-east-1.aiv-delivery.net
|
||||
|
||||
@@ -1510,11 +1518,14 @@
|
||||
127.0.0.1 ntvcld-a.akamaihd.net
|
||||
|
||||
# [akamaized.net]
|
||||
127.0.0.1 113vod-adaptive.akamaized.net
|
||||
127.0.0.1 appsflyer.com.akamaized.net
|
||||
127.0.0.1 fvalid.appsflyer.com.akamaized.net
|
||||
127.0.0.1 jioads.akamaized.net
|
||||
127.0.0.1 abcd.mdc.akamaized.net
|
||||
127.0.0.1 speee-ad.akamaized.net
|
||||
127.0.0.1 statics-marketingsites-eus-ms-com.akamaized.net
|
||||
127.0.0.1 statics-marketingsites-neu-ms-com.akamaized.net
|
||||
|
||||
# [akisinn.info]
|
||||
127.0.0.1 co.akisinn.info
|
||||
@@ -1595,6 +1606,7 @@
|
||||
127.0.0.1 mads.amazon-adsystem.com
|
||||
127.0.0.1 s.amazon-adsystem.com
|
||||
127.0.0.1 ws-eu.amazon-adsystem.com
|
||||
127.0.0.1 ws-na.amazon-adsystem.com
|
||||
127.0.0.1 z-eu.amazon-adsystem.com
|
||||
127.0.0.1 z-na.amazon-adsystem.com
|
||||
|
||||
@@ -1780,6 +1792,9 @@
|
||||
# [us-west-1.amazonaws.com]
|
||||
127.0.0.1 huq-query-loggers-california-3cec807da3e9dc0d.elb.us-west-1.amazonaws.com
|
||||
|
||||
# [amnyescsmgcagjj.com]
|
||||
127.0.0.1 amnyescsmgcagjj.com
|
||||
|
||||
# [amoad.com]
|
||||
127.0.0.1 amoad.com
|
||||
127.0.0.1 m.amoad.com
|
||||
@@ -2007,6 +2022,10 @@
|
||||
127.0.0.1 stocks-analytics-events.apple.com
|
||||
127.0.0.1 weather-analytics-events.apple.com
|
||||
|
||||
# [appleads-trk.com]
|
||||
127.0.0.1 appleads-trk.com
|
||||
127.0.0.1 redirect.appleads-trk.com
|
||||
|
||||
# [applicaster.com]
|
||||
127.0.0.1 assets-secure.applicaster.com
|
||||
|
||||
@@ -2016,6 +2035,7 @@
|
||||
# [applovin.com]
|
||||
127.0.0.1 applovin.com
|
||||
127.0.0.1 a.applovin.com
|
||||
127.0.0.1 a4.applovin.com
|
||||
127.0.0.1 assets.applovin.com
|
||||
127.0.0.1 d.applovin.com
|
||||
127.0.0.1 dash.applovin.com
|
||||
@@ -2218,6 +2238,11 @@
|
||||
127.0.0.1 dptr.areyouahuman.com
|
||||
127.0.0.1 n-cdn.areyouahuman.com
|
||||
|
||||
# [areyouwatchingthis.com]
|
||||
127.0.0.1 metabet.api.areyouwatchingthis.com
|
||||
127.0.0.1 metabet.static.api.areyouwatchingthis.com
|
||||
127.0.0.1 metabet.static.areyouwatchingthis.com
|
||||
|
||||
# [arity.com]
|
||||
127.0.0.1 api.arity.com
|
||||
|
||||
@@ -2284,6 +2309,9 @@
|
||||
127.0.0.1 api.attentivemobile.com
|
||||
127.0.0.1 events.attentivemobile.com
|
||||
|
||||
# [attn.tv]
|
||||
127.0.0.1 cdn.attn.tv
|
||||
|
||||
# [atwola.com]
|
||||
127.0.0.1 at.atwola.com
|
||||
127.0.0.1 cdn.at.atwola.com
|
||||
@@ -2358,6 +2386,7 @@
|
||||
127.0.0.1 api.b2c.com
|
||||
|
||||
# [banggood.com]
|
||||
127.0.0.1 collect.banggood.com
|
||||
127.0.0.1 dc.banggood.com
|
||||
|
||||
# [bango.net]
|
||||
@@ -2412,6 +2441,9 @@
|
||||
127.0.0.1 t.beanstalkdata.com
|
||||
127.0.0.1 t2.beanstalkdata.com
|
||||
|
||||
# [bebi.com]
|
||||
127.0.0.1 st.bebi.com
|
||||
|
||||
# [bee7.com]
|
||||
127.0.0.1 api.bee7.com
|
||||
127.0.0.1 api-proxy.bee7.com
|
||||
@@ -2487,6 +2519,9 @@
|
||||
# [bidsopt.com]
|
||||
127.0.0.1 bidsopt.com
|
||||
|
||||
# [bidstack.com]
|
||||
127.0.0.1 server.bidstack.com
|
||||
|
||||
# [bidswitch.net]
|
||||
127.0.0.1 gce-or.bidswitch.net
|
||||
127.0.0.1 gce-sc.bidswitch.net
|
||||
@@ -2723,6 +2758,12 @@
|
||||
127.0.0.1 biddr-cloud.brealtime.com
|
||||
127.0.0.1 cookie.brealtime.com
|
||||
|
||||
# [brid.tv]
|
||||
127.0.0.1 cdn.brid.tv
|
||||
127.0.0.1 p.brid.tv
|
||||
127.0.0.1 services.brid.tv
|
||||
127.0.0.1 stats-dev.brid.tv
|
||||
|
||||
# [bridgebase.com]
|
||||
127.0.0.1 ads.bridgebase.com
|
||||
127.0.0.1 adserver.bridgebase.com
|
||||
@@ -2810,6 +2851,9 @@
|
||||
# [buzzfeed.com]
|
||||
127.0.0.1 pixiedust.buzzfeed.com
|
||||
|
||||
# [byteoversea.com]
|
||||
127.0.0.1 mon-va.byteoversea.com
|
||||
|
||||
# [c1exchange.com]
|
||||
127.0.0.1 c1exchange.com
|
||||
|
||||
@@ -3009,9 +3053,8 @@
|
||||
|
||||
# [cauly.co.kr]
|
||||
127.0.0.1 ad.cauly.co.kr
|
||||
|
||||
# [cbsi.com]
|
||||
127.0.0.1 production-cmp.isgprivacy.cbsi.com
|
||||
127.0.0.1 image.cauly.co.kr
|
||||
127.0.0.1 xconf.cauly.co.kr
|
||||
|
||||
# [cbsnews.com]
|
||||
127.0.0.1 tealium.cbsnews.com
|
||||
@@ -3134,10 +3177,14 @@
|
||||
# [claspws.tv]
|
||||
127.0.0.1 config.claspws.tv
|
||||
127.0.0.1 events.claspws.tv
|
||||
127.0.0.1 metrics.claspws.tv
|
||||
|
||||
# [clean.gg]
|
||||
127.0.0.1 i.clean.gg
|
||||
|
||||
# [clearbit.com]
|
||||
127.0.0.1 marketo.clearbit.com
|
||||
|
||||
# [cleverjp.com]
|
||||
127.0.0.1 net.cleverjp.com
|
||||
|
||||
@@ -3235,6 +3282,9 @@
|
||||
127.0.0.1 api.cloudmobi.net
|
||||
127.0.0.1 logger.cloudmobi.net
|
||||
|
||||
# [cludo.com]
|
||||
127.0.0.1 customer.cludo.com
|
||||
|
||||
# [cluep.com]
|
||||
127.0.0.1 cas.cluep.com
|
||||
127.0.0.1 dev-as.cluep.com
|
||||
@@ -3425,6 +3475,9 @@
|
||||
127.0.0.1 events-stream-svc.usw2.cordial.com
|
||||
127.0.0.1 message-hub-svc.usw2.cordial.com
|
||||
|
||||
# [coremedia.cloud]
|
||||
127.0.0.1 sitegenesis.production.deckers.coremedia.cloud
|
||||
|
||||
# [coremetrics.com]
|
||||
127.0.0.1 coremetrics.com
|
||||
127.0.0.1 data.coremetrics.com
|
||||
@@ -3946,6 +3999,9 @@
|
||||
# [dotmetrics.net]
|
||||
127.0.0.1 uk-script.dotmetrics.net
|
||||
|
||||
# [dotomi.com]
|
||||
127.0.0.1 prebid-match.dotomi.com
|
||||
|
||||
# [doubleclick.net]
|
||||
127.0.0.1 doubleclick.net
|
||||
127.0.0.1 accounts.doubleclick.net
|
||||
@@ -3955,6 +4011,8 @@
|
||||
127.0.0.1 fls.doubleclick.net
|
||||
127.0.0.1 3243857.fls.doubleclick.net
|
||||
127.0.0.1 4394967.fls.doubleclick.net
|
||||
127.0.0.1 5290727.fls.doubleclick.net
|
||||
127.0.0.1 8168974.fls.doubleclick.net
|
||||
127.0.0.1 8272590.fls.doubleclick.net
|
||||
127.0.0.1 8397396.fls.doubleclick.net
|
||||
127.0.0.1 g.doubleclick.net
|
||||
@@ -4098,6 +4156,17 @@
|
||||
# [eacdn.com]
|
||||
127.0.0.1 eacdn.com
|
||||
|
||||
# [eagllwin.com]
|
||||
127.0.0.1 api.eagllwin.com
|
||||
127.0.0.1 creative.eagllwin.com
|
||||
|
||||
# [easebar.com]
|
||||
127.0.0.1 applog.matrix.easebar.com
|
||||
127.0.0.1 mcount.easebar.com
|
||||
127.0.0.1 appdump.nie.easebar.com
|
||||
127.0.0.1 sigma-statistics-push.proxima.nie.easebar.com
|
||||
127.0.0.1 who.nie.easebar.com
|
||||
|
||||
# [easy-ads.com]
|
||||
127.0.0.1 ads.easy-ads.com
|
||||
|
||||
@@ -4314,6 +4383,7 @@
|
||||
127.0.0.1 wpsconfig4svr.elasticbeanstalk.com
|
||||
|
||||
# [emarsys.net]
|
||||
127.0.0.1 assets.emarsys.net
|
||||
127.0.0.1 me-client.eservice.emarsys.net
|
||||
127.0.0.1 mobile-sdk-config.gservice.emarsys.net
|
||||
|
||||
@@ -4458,6 +4528,9 @@
|
||||
127.0.0.1 sync.extend.tv
|
||||
127.0.0.1 telariaeventsbidder-east.extend.tv
|
||||
|
||||
# [extole.io]
|
||||
127.0.0.1 everlywell.extole.io
|
||||
|
||||
# [extreme-ip-lookup.com]
|
||||
127.0.0.1 extreme-ip-lookup.com
|
||||
|
||||
@@ -4478,6 +4551,9 @@
|
||||
127.0.0.1 filter.ezmob.com
|
||||
127.0.0.1 xml.ezmob.com
|
||||
|
||||
# [ezoic.net]
|
||||
127.0.0.1 go.ezoic.net
|
||||
|
||||
# [fabric.io]
|
||||
127.0.0.1 fabric.io
|
||||
|
||||
@@ -4534,8 +4610,12 @@
|
||||
# [fitanalytics.com]
|
||||
127.0.0.1 widget.fitanalytics.com
|
||||
|
||||
# [fixel.ai]
|
||||
127.0.0.1 script.fixel.ai
|
||||
|
||||
# [flashtalking.com]
|
||||
127.0.0.1 flashtalking.com
|
||||
127.0.0.1 ad-events.flashtalking.com
|
||||
127.0.0.1 d9.flashtalking.com
|
||||
127.0.0.1 fdz.flashtalking.com
|
||||
127.0.0.1 i.flashtalking.com
|
||||
@@ -4708,6 +4788,11 @@
|
||||
127.0.0.1 tracker.fyber.com
|
||||
127.0.0.1 video.fyber.com
|
||||
|
||||
# [g2afse.com]
|
||||
127.0.0.1 appsclicks.g2afse.com
|
||||
127.0.0.1 aterru.g2afse.com
|
||||
127.0.0.1 tarsan.g2afse.com
|
||||
|
||||
# [g5e.com]
|
||||
127.0.0.1 cdn.g5e.com
|
||||
127.0.0.1 ceg.g5e.com
|
||||
@@ -4799,6 +4884,9 @@
|
||||
127.0.0.1 api-telemetry.servers.getgo.com
|
||||
127.0.0.1 telemetry.servers.getgo.com
|
||||
|
||||
# [getrockerbox.com]
|
||||
127.0.0.1 everlywell.cname.getrockerbox.com
|
||||
|
||||
# [getshogun.com]
|
||||
127.0.0.1 analytics.getshogun.com
|
||||
|
||||
@@ -4808,8 +4896,8 @@
|
||||
# [getui.net]
|
||||
127.0.0.1 sdk.open.talk.getui.net
|
||||
|
||||
# [gigya.com]
|
||||
127.0.0.1 socialize.eu1.gigya.com
|
||||
# [getwoohoo.com]
|
||||
127.0.0.1 app.getwoohoo.com
|
||||
|
||||
# [gimbal.com]
|
||||
127.0.0.1 analytics-server.gimbal.com
|
||||
@@ -4878,6 +4966,9 @@
|
||||
# [go2speed.org]
|
||||
127.0.0.1 media.go2speed.org
|
||||
|
||||
# [goabode.com]
|
||||
127.0.0.1 marketing.goabode.com
|
||||
|
||||
# [goadservices.com]
|
||||
127.0.0.1 goadservices.com
|
||||
127.0.0.1 bo.goadservices.com
|
||||
@@ -4945,6 +5036,33 @@
|
||||
# [gotoip55.com]
|
||||
127.0.0.1 gotoip55.com
|
||||
|
||||
# [gotrackier.com]
|
||||
127.0.0.1 adapace.gotrackier.com
|
||||
127.0.0.1 adjar.gotrackier.com
|
||||
127.0.0.1 adsapp.gotrackier.com
|
||||
127.0.0.1 adstacks.gotrackier.com
|
||||
127.0.0.1 adstory.gotrackier.com
|
||||
127.0.0.1 adyogis.gotrackier.com
|
||||
127.0.0.1 affilsoft.gotrackier.com
|
||||
127.0.0.1 appmontize.gotrackier.com
|
||||
127.0.0.1 auctera.gotrackier.com
|
||||
127.0.0.1 blendai.gotrackier.com
|
||||
127.0.0.1 click2commission.gotrackier.com
|
||||
127.0.0.1 conup.gotrackier.com
|
||||
127.0.0.1 harvest.gotrackier.com
|
||||
127.0.0.1 hyperads.gotrackier.com
|
||||
127.0.0.1 inkrevenue.gotrackier.com
|
||||
127.0.0.1 kormzi.gotrackier.com
|
||||
127.0.0.1 mediaxpedia.gotrackier.com
|
||||
127.0.0.1 mobisaturn.gotrackier.com
|
||||
127.0.0.1 momentus.gotrackier.com
|
||||
127.0.0.1 netsetgo.gotrackier.com
|
||||
127.0.0.1 phono.gotrackier.com
|
||||
127.0.0.1 playdigo.gotrackier.com
|
||||
127.0.0.1 quickadsmedia.gotrackier.com
|
||||
127.0.0.1 vihit.gotrackier.com
|
||||
127.0.0.1 vytomi.gotrackier.com
|
||||
|
||||
# [gotraffic.net]
|
||||
127.0.0.1 cdn.gotraffic.net
|
||||
|
||||
@@ -5072,6 +5190,12 @@
|
||||
# [hexagon-analytics.com]
|
||||
127.0.0.1 hexagon-analytics.com
|
||||
|
||||
# [heytapdl.com]
|
||||
127.0.0.1 mdp-appconf-sg.heytapdl.com
|
||||
|
||||
# [heytapmobi.com]
|
||||
127.0.0.1 client-uc.heytapmobi.com
|
||||
|
||||
# [heyzap.com]
|
||||
127.0.0.1 ads.heyzap.com
|
||||
127.0.0.1 fyc.heyzap.com
|
||||
@@ -5086,6 +5210,9 @@
|
||||
# [hiconversion.com]
|
||||
127.0.0.1 h30-deploy.hiconversion.com
|
||||
|
||||
# [highperformancecpm.com]
|
||||
127.0.0.1 pl15402247.highperformancecpm.com
|
||||
|
||||
# [hiido.com]
|
||||
127.0.0.1 config.hiido.com
|
||||
127.0.0.1 hlog.hiido.com
|
||||
@@ -5536,6 +5663,9 @@
|
||||
127.0.0.1 service.innovid.com
|
||||
127.0.0.1 static.innovid.com
|
||||
|
||||
# [insent.ai]
|
||||
127.0.0.1 perimeterx.widget.insent.ai
|
||||
|
||||
# [inshorts.com]
|
||||
127.0.0.1 analytics-events.inshorts.com
|
||||
|
||||
@@ -5737,6 +5867,9 @@
|
||||
127.0.0.1 cdnimg.izooto.com
|
||||
127.0.0.1 err.izooto.com
|
||||
|
||||
# [ja2n2u30a6rgyd.com]
|
||||
127.0.0.1 ja2n2u30a6rgyd.com
|
||||
|
||||
# [jampp.com]
|
||||
127.0.0.1 jampp.com
|
||||
127.0.0.1 cdn.jampp.com
|
||||
@@ -5790,6 +5923,9 @@
|
||||
127.0.0.1 c.jsrdn.com
|
||||
127.0.0.1 s.jsrdn.com
|
||||
|
||||
# [jst.ai]
|
||||
127.0.0.1 cdn.jst.ai
|
||||
|
||||
# [juiceadv.com]
|
||||
127.0.0.1 juiceadv.com
|
||||
|
||||
@@ -5823,6 +5959,9 @@
|
||||
# [justuno.com]
|
||||
127.0.0.1 cdn.justuno.com
|
||||
|
||||
# [justwatch.com]
|
||||
127.0.0.1 sentry.justwatch.com
|
||||
|
||||
# [jwplayer.com]
|
||||
127.0.0.1 entitlements.jwplayer.com
|
||||
|
||||
@@ -5955,6 +6094,14 @@
|
||||
127.0.0.1 entitlements.kochava.com
|
||||
127.0.0.1 icm.kochava.com
|
||||
|
||||
# [koneomobiledsp.com]
|
||||
127.0.0.1 koneomobiledsp.com
|
||||
127.0.0.1 inmobi.koneomobiledsp.com
|
||||
127.0.0.1 eu.inmobi.koneomobiledsp.com
|
||||
127.0.0.1 sg.inmobi.koneomobiledsp.com
|
||||
127.0.0.1 us.inmobi.koneomobiledsp.com
|
||||
127.0.0.1 js.koneomobiledsp.com
|
||||
|
||||
# [kongregate.io]
|
||||
127.0.0.1 analytics.kongregate.io
|
||||
|
||||
@@ -6002,10 +6149,6 @@
|
||||
# [largosoft.co.kr]
|
||||
127.0.0.1 largosoft.co.kr
|
||||
|
||||
# [launchdarkly.com]
|
||||
127.0.0.1 events.launchdarkly.com
|
||||
127.0.0.1 mobile.launchdarkly.com
|
||||
|
||||
# [lavanetwork.net]
|
||||
127.0.0.1 lavanetwork.net
|
||||
127.0.0.1 delivery.lavanetwork.net
|
||||
@@ -6018,6 +6161,12 @@
|
||||
# [lbesecapi.com]
|
||||
127.0.0.1 events.lbesecapi.com
|
||||
|
||||
# [ldmnq.com]
|
||||
127.0.0.1 storeen.ldmnq.com
|
||||
|
||||
# [ldplayer.net]
|
||||
127.0.0.1 advertise.ldplayer.net
|
||||
|
||||
# [leadbolt.net]
|
||||
127.0.0.1 leadbolt.net
|
||||
127.0.0.1 ad.leadbolt.net
|
||||
@@ -6417,6 +6566,7 @@
|
||||
# [marketingcloudapis.com]
|
||||
127.0.0.1 device.marketingcloudapis.com
|
||||
127.0.0.1 mc-kzgvx04-jk8n38gyn7s08m1d8.device.marketingcloudapis.com
|
||||
127.0.0.1 mcf4wh-jdfmxrzzzttwqcrf-d3b4.device.marketingcloudapis.com
|
||||
127.0.0.1 mcvsb5ngty4dzxx8jp80yt3q5614.device.marketingcloudapis.com
|
||||
127.0.0.1 mcy8q-n2f8ttyv729bcg5v83dsp4.device.marketingcloudapis.com
|
||||
|
||||
@@ -6618,6 +6768,9 @@
|
||||
# [measurementapi.com]
|
||||
127.0.0.1 measurementapi.com
|
||||
|
||||
# [media-412.com]
|
||||
127.0.0.1 tarsan.media-412.com
|
||||
|
||||
# [media.net]
|
||||
127.0.0.1 abd.media.net
|
||||
127.0.0.1 adservetx.media.net
|
||||
@@ -6728,6 +6881,10 @@
|
||||
127.0.0.1 app.meltwater.com
|
||||
127.0.0.1 ins-services.meltwater.com
|
||||
|
||||
# [memob.com]
|
||||
127.0.0.1 ads.memob.com
|
||||
127.0.0.1 creatives.ads.memob.com
|
||||
|
||||
# [merchantadvantage.com]
|
||||
127.0.0.1 chanalytics.merchantadvantage.com
|
||||
127.0.0.1 secure.merchantadvantage.com
|
||||
@@ -6833,6 +6990,10 @@
|
||||
# [minimob.com]
|
||||
127.0.0.1 minimob.com
|
||||
|
||||
# [mintegral.net]
|
||||
127.0.0.1 analytics-tcp.mintegral.net
|
||||
127.0.0.1 pok.mintegral.net
|
||||
|
||||
# [minute.ly]
|
||||
127.0.0.1 apv-launcher.minute.ly
|
||||
127.0.0.1 snippet.minute.ly
|
||||
@@ -7156,6 +7317,12 @@
|
||||
# [mobitech-content.xyz]
|
||||
127.0.0.1 api.mobitech-content.xyz
|
||||
|
||||
# [mobiuspace.net]
|
||||
127.0.0.1 ad.mobiuspace.net
|
||||
127.0.0.1 api.ad.mobiuspace.net
|
||||
127.0.0.1 creative-accelerate.ad.mobiuspace.net
|
||||
127.0.0.1 api-ad-callback.mobiuspace.net
|
||||
|
||||
# [mobivity.com]
|
||||
127.0.0.1 mobivity.com
|
||||
|
||||
@@ -7301,7 +7468,6 @@
|
||||
127.0.0.1 mpnrs.com
|
||||
|
||||
# [mradx.net]
|
||||
127.0.0.1 r.mradx.net
|
||||
127.0.0.1 r0.mradx.net
|
||||
|
||||
# [mrtnsvr.com]
|
||||
@@ -7316,7 +7482,6 @@
|
||||
127.0.0.1 b.ads1.msn.com
|
||||
127.0.0.1 ads2.msn.com
|
||||
127.0.0.1 a.ads2.msn.com
|
||||
127.0.0.1 c.msn.com
|
||||
127.0.0.1 mobileads.msn.com
|
||||
127.0.0.1 rads.msn.com
|
||||
127.0.0.1 srtb.msn.com
|
||||
@@ -7330,6 +7495,9 @@
|
||||
# [mtrcss.com]
|
||||
127.0.0.1 mtrcss.com
|
||||
|
||||
# [mtvnservices.com]
|
||||
127.0.0.1 cdn-aka.ts.mtvnservices.com
|
||||
|
||||
# [mxmcdn.net]
|
||||
127.0.0.1 adv.mxmcdn.net
|
||||
|
||||
@@ -7399,6 +7567,9 @@
|
||||
# [narrative.io]
|
||||
127.0.0.1 io.narrative.io
|
||||
|
||||
# [narvar.com]
|
||||
127.0.0.1 assets.narvar.com
|
||||
|
||||
# [native.ai]
|
||||
127.0.0.1 api.native.ai
|
||||
127.0.0.1 cdn.native.ai
|
||||
@@ -7491,6 +7662,7 @@
|
||||
127.0.0.1 www.newsbreak.com
|
||||
|
||||
# [newscgp.com]
|
||||
127.0.0.1 v2.pixel.newscgp.com
|
||||
127.0.0.1 us.tags.newscgp.com
|
||||
|
||||
# [nex8.net]
|
||||
@@ -7577,6 +7749,9 @@
|
||||
127.0.0.1 a.et.nytimes.com
|
||||
127.0.0.1 meter-svc.nytimes.com
|
||||
|
||||
# [o18.click]
|
||||
127.0.0.1 twotreymedia10001697.o18.click
|
||||
|
||||
# [o333o.com]
|
||||
127.0.0.1 cdn.o333o.com
|
||||
|
||||
@@ -7636,6 +7811,7 @@
|
||||
127.0.0.1 espn.hb.omtrdc.net
|
||||
127.0.0.1 foxnews.hb.omtrdc.net
|
||||
127.0.0.1 hulu.hb.omtrdc.net
|
||||
127.0.0.1 nbcume.hb.omtrdc.net
|
||||
127.0.0.1 nbcume.hb-api.omtrdc.net
|
||||
127.0.0.1 sc.omtrdc.net
|
||||
127.0.0.1 allstate.sc.omtrdc.net
|
||||
@@ -7648,11 +7824,13 @@
|
||||
127.0.0.1 philipslighting.d3.sc.omtrdc.net
|
||||
127.0.0.1 deutschebahn.sc.omtrdc.net
|
||||
127.0.0.1 kroger.sc.omtrdc.net
|
||||
127.0.0.1 lplfinancial.sc.omtrdc.net
|
||||
127.0.0.1 nbcstreaming.sc.omtrdc.net
|
||||
127.0.0.1 nbcume.sc.omtrdc.net
|
||||
127.0.0.1 subwayfranchiseeadvertising.sc.omtrdc.net
|
||||
127.0.0.1 unitedparcelservice.sc.omtrdc.net
|
||||
127.0.0.1 viacom.sc.omtrdc.net
|
||||
127.0.0.1 vodafonetr.sc.omtrdc.net
|
||||
127.0.0.1 tt.omtrdc.net
|
||||
127.0.0.1 abcnews.tt.omtrdc.net
|
||||
127.0.0.1 adobe.tt.omtrdc.net
|
||||
@@ -7667,6 +7845,7 @@
|
||||
127.0.0.1 homedepot.tt.omtrdc.net
|
||||
127.0.0.1 mboxedge17.tt.omtrdc.net
|
||||
127.0.0.1 mboxedge28.tt.omtrdc.net
|
||||
127.0.0.1 mboxedge34.tt.omtrdc.net
|
||||
127.0.0.1 southwestairlines.tt.omtrdc.net
|
||||
127.0.0.1 subway2016.tt.omtrdc.net
|
||||
127.0.0.1 verizontelecom.tt.omtrdc.net
|
||||
@@ -7746,6 +7925,7 @@
|
||||
127.0.0.1 s.update.openx.com
|
||||
|
||||
# [openx.net]
|
||||
127.0.0.1 nytimes-d.openx.net
|
||||
127.0.0.1 rtb.openx.net
|
||||
127.0.0.1 samyonews-d.openx.net
|
||||
127.0.0.1 u.openx.net
|
||||
@@ -7812,6 +7992,9 @@
|
||||
# [optnmstr.com]
|
||||
127.0.0.1 a.optnmstr.com
|
||||
|
||||
# [orangeclickmedia.com]
|
||||
127.0.0.1 cdn.orangeclickmedia.com
|
||||
|
||||
# [otherlevels.com]
|
||||
127.0.0.1 otherlevels.com
|
||||
127.0.0.1 api.otherlevels.com
|
||||
@@ -7970,10 +8153,6 @@
|
||||
# [performancehorizon.com]
|
||||
127.0.0.1 performancehorizon.com
|
||||
|
||||
# [perimeterx.net]
|
||||
127.0.0.1 collector-pxuarm9b04.perimeterx.net
|
||||
127.0.0.1 px-conf.perimeterx.net
|
||||
|
||||
# [period-calendar.com]
|
||||
127.0.0.1 ad.period-calendar.com
|
||||
|
||||
@@ -8070,6 +8249,9 @@
|
||||
# [pixel.watch]
|
||||
127.0.0.1 pixel.watch
|
||||
|
||||
# [pixels.ai]
|
||||
127.0.0.1 pub.pixels.ai
|
||||
|
||||
# [placed.com]
|
||||
127.0.0.1 placed.com
|
||||
127.0.0.1 api.placed.com
|
||||
@@ -8370,9 +8552,6 @@
|
||||
# [qgraph.io]
|
||||
127.0.0.1 sdk.api.qgraph.io
|
||||
|
||||
# [qikify.com]
|
||||
127.0.0.1 sdk.qikify.com
|
||||
|
||||
# [qq.com]
|
||||
127.0.0.1 lcsdk.3g.qq.com
|
||||
127.0.0.1 masdk.3g.qq.com
|
||||
@@ -8424,6 +8603,9 @@
|
||||
# [qualtrics.com]
|
||||
127.0.0.1 siteintercept.qualtrics.com
|
||||
|
||||
# [quantcast.com]
|
||||
127.0.0.1 cmp.quantcast.com
|
||||
|
||||
# [quantcount.com]
|
||||
127.0.0.1 quantcount.com
|
||||
127.0.0.1 assets.quantcount.com
|
||||
@@ -8484,7 +8666,6 @@
|
||||
127.0.0.1 client.rave-api.com
|
||||
|
||||
# [ravm.tv]
|
||||
127.0.0.1 ravm.tv
|
||||
127.0.0.1 display.ravm.tv
|
||||
127.0.0.1 hb-t5u9.raps.ravm.tv
|
||||
|
||||
@@ -8523,13 +8704,22 @@
|
||||
|
||||
# [rbl.ms]
|
||||
127.0.0.1 assets.rbl.ms
|
||||
127.0.0.1 pages-stats.rbl.ms
|
||||
127.0.0.1 user-stats.rbl.ms
|
||||
|
||||
# [rbnt.org]
|
||||
127.0.0.1 rbnt.org
|
||||
|
||||
# [rbthre.work]
|
||||
127.0.0.1 rbthre.work
|
||||
|
||||
# [realclever.com]
|
||||
127.0.0.1 realclever.com
|
||||
|
||||
# [realme.com]
|
||||
127.0.0.1 iot-eu-logser.realme.com
|
||||
127.0.0.1 iot-logser.realme.com
|
||||
|
||||
# [realvu.net]
|
||||
127.0.0.1 ac.realvu.net
|
||||
|
||||
@@ -8615,6 +8805,9 @@
|
||||
# [retentionscience.com]
|
||||
127.0.0.1 waves.retentionscience.com
|
||||
|
||||
# [returngo.ai]
|
||||
127.0.0.1 static.returngo.ai
|
||||
|
||||
# [revcontent.com]
|
||||
127.0.0.1 assets.revcontent.com
|
||||
127.0.0.1 cdn.revcontent.com
|
||||
@@ -8734,6 +8927,9 @@
|
||||
# [rtk.io]
|
||||
127.0.0.1 bidder.rtk.io
|
||||
|
||||
# [rtmark.net]
|
||||
127.0.0.1 my.rtmark.net
|
||||
|
||||
# [rubiconproject.com]
|
||||
127.0.0.1 ads.rubiconproject.com
|
||||
127.0.0.1 aws.rubiconproject.com
|
||||
@@ -8889,17 +9085,22 @@
|
||||
127.0.0.1 sc-static.net
|
||||
|
||||
# [scarabresearch.com]
|
||||
127.0.0.1 cdn.scarabresearch.com
|
||||
127.0.0.1 recommender.scarabresearch.com
|
||||
|
||||
# [scopely.io]
|
||||
127.0.0.1 aprod.scopely.io
|
||||
127.0.0.1 adsgard.aprod.scopely.io
|
||||
127.0.0.1 fenrir-resolver.aprod.scopely.io
|
||||
127.0.0.1 raven.aprod.scopely.io
|
||||
127.0.0.1 static.aprod.scopely.io
|
||||
127.0.0.1 collector.scopely.io
|
||||
127.0.0.1 event.collector.scopely.io
|
||||
127.0.0.1 489a19fa-d831-4954-858d-46436d5cdb20.event.collector.scopely.io
|
||||
127.0.0.1 register.collector.scopely.io
|
||||
127.0.0.1 489a19fa-d831-4954-858d-46436d5cdb20.register.collector.scopely.io
|
||||
127.0.0.1 4af7c20b-7646-4fb7-b64f-ae0a8c51c1f1.register.collector.scopely.io
|
||||
127.0.0.1 6b73d00a-d4a1-4350-825a-cd3f49afa460.register.collector.scopely.io
|
||||
127.0.0.1 sdk.scopely.io
|
||||
127.0.0.1 config.sdk.scopely.io
|
||||
|
||||
@@ -8993,6 +9194,9 @@
|
||||
# [sentiance.com]
|
||||
127.0.0.1 api.sentiance.com
|
||||
|
||||
# [sentry.io]
|
||||
127.0.0.1 o861134.ingest.sentry.io
|
||||
|
||||
# [servebom.com]
|
||||
127.0.0.1 servebom.com
|
||||
127.0.0.1 ads.servebom.com
|
||||
@@ -9004,6 +9208,7 @@
|
||||
|
||||
# [serverbid.com]
|
||||
127.0.0.1 e.serverbid.com
|
||||
127.0.0.1 sync.serverbid.com
|
||||
|
||||
# [serving-sys.com]
|
||||
127.0.0.1 serving-sys.com
|
||||
@@ -9022,6 +9227,9 @@
|
||||
# [sgdmobile.com]
|
||||
127.0.0.1 track.sgdmobile.com
|
||||
|
||||
# [shalltry.com]
|
||||
127.0.0.1 shalltry.com
|
||||
|
||||
# [shareaholic.com]
|
||||
127.0.0.1 analytics.shareaholic.com
|
||||
127.0.0.1 apps.shareaholic.com
|
||||
@@ -9031,6 +9239,9 @@
|
||||
127.0.0.1 pixel.shareaholic.com
|
||||
127.0.0.1 recs.shareaholic.com
|
||||
|
||||
# [shareasale.com]
|
||||
127.0.0.1 static.shareasale.com
|
||||
|
||||
# [sharedid.org]
|
||||
127.0.0.1 id.sharedid.org
|
||||
|
||||
@@ -9183,6 +9394,7 @@
|
||||
127.0.0.1 sdk-android.ad.smaato.net
|
||||
127.0.0.1 sdk-ios.ad.smaato.net
|
||||
127.0.0.1 unifiedbidding.ad.smaato.net
|
||||
127.0.0.1 geoclue.smaato.net
|
||||
127.0.0.1 log.smaato.net
|
||||
127.0.0.1 hbsdk-config.log.smaato.net
|
||||
127.0.0.1 hbsdk-event.log.smaato.net
|
||||
@@ -9411,7 +9623,6 @@
|
||||
127.0.0.1 auth.split.io
|
||||
127.0.0.1 cdn.split.io
|
||||
127.0.0.1 events.split.io
|
||||
127.0.0.1 sdk.split.io
|
||||
|
||||
# [splkmobile.com]
|
||||
127.0.0.1 api.splkmobile.com
|
||||
@@ -9482,6 +9693,9 @@
|
||||
127.0.0.1 vid-io-sin.springserve.com
|
||||
127.0.0.1 vpaid.springserve.com
|
||||
|
||||
# [spylog.com]
|
||||
127.0.0.1 spylog.com
|
||||
|
||||
# [srmdata-us.com]
|
||||
127.0.0.1 www.srmdata-us.com
|
||||
|
||||
@@ -9610,6 +9824,9 @@
|
||||
# [summerhamster.com]
|
||||
127.0.0.1 www.summerhamster.com
|
||||
|
||||
# [sumo.com]
|
||||
127.0.0.1 load.sumo.com
|
||||
|
||||
# [sumome.com]
|
||||
127.0.0.1 sumome.com
|
||||
127.0.0.1 load.sumome.com
|
||||
@@ -9968,6 +10185,9 @@
|
||||
127.0.0.1 content.cdn.targetspot.com
|
||||
127.0.0.1 nodeny.targetspot.com
|
||||
|
||||
# [tbs.com]
|
||||
127.0.0.1 sanalytics.tbs.com
|
||||
|
||||
# [tdameritrade.com]
|
||||
127.0.0.1 analytics.tdameritrade.com
|
||||
127.0.0.1 appdeumext.tdameritrade.com
|
||||
@@ -10097,6 +10317,11 @@
|
||||
# [tiktok.com]
|
||||
127.0.0.1 analytics.tiktok.com
|
||||
|
||||
# [tiktokv.com]
|
||||
127.0.0.1 log-va.tiktokv.com
|
||||
127.0.0.1 mon.tiktokv.com
|
||||
127.0.0.1 mon-va.tiktokv.com
|
||||
|
||||
# [tiltingpoint.io]
|
||||
127.0.0.1 registration.tiltingpoint.io
|
||||
127.0.0.1 utctime.tiltingpoint.io
|
||||
@@ -10145,9 +10370,16 @@
|
||||
# [today.com]
|
||||
127.0.0.1 aamt.today.com
|
||||
|
||||
# [togothermany.cn]
|
||||
127.0.0.1 adscfg.togothermany.cn
|
||||
127.0.0.1 adsup.togothermany.cn
|
||||
|
||||
# [tohsoft.com]
|
||||
127.0.0.1 adservice.tohsoft.com
|
||||
|
||||
# [toolmatrix.plus]
|
||||
127.0.0.1 apitm.toolmatrix.plus
|
||||
|
||||
# [topaz-analytics.com]
|
||||
127.0.0.1 android-com-wildlife-games-battle-royale-free-zooba.topaz-analytics.com
|
||||
127.0.0.1 playtest-api.topaz-analytics.com
|
||||
@@ -10168,6 +10400,9 @@
|
||||
# [tpctrust.com]
|
||||
127.0.0.1 s.tpctrust.com
|
||||
|
||||
# [tpdads.com]
|
||||
127.0.0.1 cdn.tpdads.com
|
||||
|
||||
# [trackingio.com]
|
||||
127.0.0.1 log.trackingio.com
|
||||
127.0.0.1 slog.trackingio.com
|
||||
@@ -10485,6 +10720,7 @@
|
||||
127.0.0.1 plbslog.umeng.com
|
||||
127.0.0.1 sec.umeng.com
|
||||
127.0.0.1 ulogs.umeng.com
|
||||
127.0.0.1 uop.umeng.com
|
||||
|
||||
# [umengcloud.com]
|
||||
127.0.0.1 umengcloud.com
|
||||
@@ -10541,12 +10777,14 @@
|
||||
127.0.0.1 adserver.unityads.unity3d.com
|
||||
127.0.0.1 adsx.unityads.unity3d.com
|
||||
127.0.0.1 auction.unityads.unity3d.com
|
||||
127.0.0.1 auction-banner.unityads.unity3d.com
|
||||
127.0.0.1 auction-load.unityads.unity3d.com
|
||||
127.0.0.1 auiopt.unityads.unity3d.com
|
||||
127.0.0.1 cdn.unityads.unity3d.com
|
||||
127.0.0.1 cdn-creatives-highwinds-prd.unityads.unity3d.com
|
||||
127.0.0.1 cdn-webview-pge.unityads.unity3d.com
|
||||
127.0.0.1 config.unityads.unity3d.com
|
||||
127.0.0.1 configv2.unityads.unity3d.com
|
||||
127.0.0.1 dsp-tracking.unityads.unity3d.com
|
||||
127.0.0.1 dsp-vast.unityads.unity3d.com
|
||||
127.0.0.1 geocdn.unityads.unity3d.com
|
||||
@@ -10860,6 +11098,11 @@
|
||||
127.0.0.1 vcardsdkservice.vivo.com.cn
|
||||
|
||||
# [vivoglobal.com]
|
||||
127.0.0.1 asia-analyzer-appstore.vivoglobal.com
|
||||
127.0.0.1 asia-comonrt-stsdk.vivoglobal.com
|
||||
127.0.0.1 asia-comort-stsdk.vivoglobal.com
|
||||
127.0.0.1 asia-ex-adlog.vivoglobal.com
|
||||
127.0.0.1 asia-exstsdk.vivoglobal.com
|
||||
127.0.0.1 asia-monitor-stsdk.vivoglobal.com
|
||||
127.0.0.1 asia-onrt-stsdk.vivoglobal.com
|
||||
127.0.0.1 asia-ort-stsdk.vivoglobal.com
|
||||
@@ -10870,6 +11113,12 @@
|
||||
127.0.0.1 stsdk.vivoglobal.com
|
||||
127.0.0.1 onrt.stsdk.vivoglobal.com
|
||||
127.0.0.1 prt.stsdk.vivoglobal.com
|
||||
127.0.0.1 tr-domaincfg.vivoglobal.com
|
||||
127.0.0.1 tr-romsp-unifyconfig.vivoglobal.com
|
||||
127.0.0.1 tr-st-sl.vivoglobal.com
|
||||
127.0.0.1 tr-timesync.vivoglobal.com
|
||||
127.0.0.1 tr-vcode-api.vivoglobal.com
|
||||
127.0.0.1 tr-vcode-od.vivoglobal.com
|
||||
|
||||
# [vm5apis.com]
|
||||
127.0.0.1 vm5apis.com
|
||||
@@ -10888,6 +11137,13 @@
|
||||
127.0.0.1 cdn1.vntsm.com
|
||||
127.0.0.1 hb.vntsm.com
|
||||
|
||||
# [vodafone.com]
|
||||
127.0.0.1 mplusps.ims.vodafone.com
|
||||
127.0.0.1 mpluswf.ims.vodafone.com
|
||||
|
||||
# [vodafone.com.tr]
|
||||
127.0.0.1 netperform-is.vodafone.com.tr
|
||||
|
||||
# [voiceads.cn]
|
||||
127.0.0.1 ai.voiceads.cn
|
||||
127.0.0.1 api.voiceads.cn
|
||||
@@ -10993,6 +11249,9 @@
|
||||
# [watchingthat.net]
|
||||
127.0.0.1 cdn.watchingthat.net
|
||||
|
||||
# [wattpad.com]
|
||||
127.0.0.1 track.wattpad.com
|
||||
|
||||
# [waust.at]
|
||||
127.0.0.1 waust.at
|
||||
|
||||
@@ -11208,10 +11467,14 @@
|
||||
127.0.0.1 sdk6.ibm.xtify.com
|
||||
127.0.0.1 sdk8.ibm.xtify.com
|
||||
|
||||
# [yadro.ru]
|
||||
127.0.0.1 counter.yadro.ru
|
||||
|
||||
# [yahoo.com]
|
||||
127.0.0.1 3p-geo.yahoo.com
|
||||
127.0.0.1 3p-udc.yahoo.com
|
||||
127.0.0.1 ads.yahoo.com
|
||||
127.0.0.1 api.ads.yahoo.com
|
||||
127.0.0.1 adserver.yahoo.com
|
||||
127.0.0.1 global.adserver.yahoo.com
|
||||
127.0.0.1 us.adserver.yahoo.com
|
||||
@@ -11245,6 +11508,9 @@
|
||||
127.0.0.1 pr-bh.ybp.yahoo.com
|
||||
127.0.0.1 partnerads.ysm.yahoo.com
|
||||
|
||||
# [yandex.net]
|
||||
127.0.0.1 report.appmetrica.yandex.net
|
||||
|
||||
# [yandexadexchange.net]
|
||||
127.0.0.1 yandexadexchange.net
|
||||
127.0.0.1 mobile.yandexadexchange.net
|
||||
@@ -11314,9 +11580,6 @@
|
||||
127.0.0.1 analytics-chi-nfl.yinzcam.com
|
||||
127.0.0.1 analytics-phi-nfl.yinzcam.com
|
||||
127.0.0.1 analytics-pit-nfl.yinzcam.com
|
||||
127.0.0.1 cards-sea-nfl.yinzcam.com
|
||||
127.0.0.1 config-sea-nfl.yinzcam.com
|
||||
127.0.0.1 resources-us.yinzcam.com
|
||||
|
||||
# [ylx-1.com]
|
||||
127.0.0.1 ylx-1.com
|
||||
|
||||
@@ -5,5 +5,6 @@
|
||||
"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"
|
||||
"license": "CC BY 3.0",
|
||||
"pause": true
|
||||
}
|
||||
|
||||
@@ -814,7 +814,6 @@
|
||||
0.0.0.0 paraskov.com
|
||||
0.0.0.0 parking.parklogic.com
|
||||
0.0.0.0 partners.xhamster.com
|
||||
0.0.0.0 pastie.org
|
||||
0.0.0.0 pay-per-search.com
|
||||
0.0.0.0 payn.me
|
||||
0.0.0.0 paypal-exchange.com
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Title: hostsVN
|
||||
# Last modified: 25 Aug 2022 11:58 UTC+7
|
||||
# Version: 2208251158
|
||||
# Blocked: 1.841 domains
|
||||
# Last modified: 08 Nov 2023 14:37 UTC+7
|
||||
# Version: 2311081437
|
||||
# Blocked: 1,810 domains
|
||||
# Only include advertisers in Vietnam
|
||||
# Homepage: https://bigdargon.github.io/hostsVN/
|
||||
# GitHub: https://github.com/bigdargon/hostsVN
|
||||
@@ -387,6 +387,12 @@
|
||||
0.0.0.0 tracking.vietnamnetad.vn
|
||||
0.0.0.0 vietnamnetad.vn
|
||||
0.0.0.0 widget.vietnamnetad.vn
|
||||
#[vnncdn.net]
|
||||
0.0.0.0 analytics.vnncdn.net
|
||||
0.0.0.0 tracking.vnncdn.net
|
||||
0.0.0.0 tracking2.vnncdn.net
|
||||
0.0.0.0 tracking3.vnncdn.net
|
||||
0.0.0.0 vnn-tracking.vnncdn.net
|
||||
#[zing.vn]
|
||||
0.0.0.0 ad.zing.vn
|
||||
0.0.0.0 adsbanner.game.zing.vn
|
||||
@@ -395,12 +401,18 @@
|
||||
0.0.0.0 log.news.zing.vn
|
||||
0.0.0.0 log.tv.zing.vn
|
||||
0.0.0.0 logv2.mp3.zing.vn
|
||||
0.0.0.0 stat.play.zing.vn
|
||||
0.0.0.0 tracking.banner.g6.zing.vn
|
||||
0.0.0.0 tracking.playzing.g6.zing.vn
|
||||
0.0.0.0 tracking.tv.zing.vn
|
||||
0.0.0.0 zlog.mp3.zing.vn
|
||||
#[me.zing.vn]
|
||||
0.0.0.0 zads.me.zing.vn
|
||||
0.0.0.0 zt.me.zing.vn
|
||||
0.0.0.0 zt1.me.zing.vn
|
||||
#[brand.zing.vn]
|
||||
0.0.0.0 adtima.brand.zing.vn
|
||||
0.0.0.0 adtimabot.brand.zing.vn
|
||||
0.0.0.0 adtimabox.brand.zing.vn
|
||||
0.0.0.0 app.brand.zing.vn
|
||||
0.0.0.0 banner.brand.zing.vn
|
||||
@@ -415,28 +427,54 @@
|
||||
#[zingnews.vn]
|
||||
0.0.0.0 log.zingnews.vn
|
||||
0.0.0.0 za.zingnews.vn
|
||||
#[zingnews.com.vn]
|
||||
0.0.0.0 log.zingnews.com.vn
|
||||
0.0.0.0 za.zingnews.com.vn
|
||||
#[zalo.me]
|
||||
0.0.0.0 ads-platform.zalo.me
|
||||
0.0.0.0 ads.platform.zalo.me
|
||||
0.0.0.0 ads.zalo.me
|
||||
0.0.0.0 api.widget.zalo.me
|
||||
0.0.0.0 button-call.zalo.me
|
||||
0.0.0.0 button-follow.zalo.me
|
||||
0.0.0.0 button-share.zalo.me
|
||||
0.0.0.0 page.widget.zalo.me
|
||||
0.0.0.0 groupstats.event.zalo.me
|
||||
0.0.0.0 px.za.zalo.me
|
||||
0.0.0.0 stats.hc.score.dmp.zalo.me
|
||||
#[ads.zalo.me]
|
||||
0.0.0.0 ads.zalo.me
|
||||
0.0.0.0 beta.ads.zalo.me
|
||||
0.0.0.0 jr.ads.zalo.me
|
||||
0.0.0.0 jr.stg.ads.zalo.me
|
||||
0.0.0.0 m.ads.zalo.me
|
||||
0.0.0.0 preview.ads.zalo.me
|
||||
#[chat.zalo.me]
|
||||
0.0.0.0 groupstats.chat.zalo.me
|
||||
0.0.0.0 widget.chat.zalo.me
|
||||
#[widget.zalo.me]
|
||||
0.0.0.0 api.widget.zalo.me
|
||||
0.0.0.0 page.widget.zalo.me
|
||||
#[zalo.ai]
|
||||
0.0.0.0 stats.lab.zalo.ai
|
||||
#[log.zalo.video]
|
||||
0.0.0.0 log.zalo.video
|
||||
#[zaloapp.com]
|
||||
0.0.0.0 ads.zaloapp.com
|
||||
0.0.0.0 centralized.zaloapp.com
|
||||
0.0.0.0 log.api.zaloapp.com
|
||||
0.0.0.0 photo-ads.zaloapp.com
|
||||
0.0.0.0 px.dmp.zaloapp.com
|
||||
0.0.0.0 px.za.zaloapp.com
|
||||
0.0.0.0 static-ads.zaloapp.com
|
||||
0.0.0.0 stats.dev.zaloapp.com
|
||||
0.0.0.0 stats.stg.zaloapp.com
|
||||
0.0.0.0 stats.zaloapp.com
|
||||
0.0.0.0 trk-pcweb.api.zaloapp.com
|
||||
0.0.0.0 wg.zaloapp.com
|
||||
0.0.0.0 zminer.zaloapp.com
|
||||
0.0.0.0 ztevents.zaloapp.com
|
||||
#[ads.zaloapp.com]
|
||||
0.0.0.0 ads.zaloapp.com
|
||||
0.0.0.0 jr.ads.zaloapp.com
|
||||
0.0.0.0 media-ads.zaloapp.com
|
||||
0.0.0.0 photo-ads.zaloapp.com
|
||||
0.0.0.0 static-ads.zaloapp.com
|
||||
#[api.zaloapp.com]
|
||||
0.0.0.0 log.api.zaloapp.com
|
||||
0.0.0.0 trk-pcweb.api.zaloapp.com
|
||||
#[zadn.vn]
|
||||
0.0.0.0 adtima-common.zadn.vn
|
||||
0.0.0.0 adtima-media-td.zadn.vn
|
||||
@@ -444,6 +482,7 @@
|
||||
0.0.0.0 adtima-static-td.zadn.vn
|
||||
0.0.0.0 adtima-static.zadn.vn
|
||||
0.0.0.0 adtima-video.zadn.vn
|
||||
0.0.0.0 mda.zadn.vn
|
||||
0.0.0.0 mplaylist-ads.zadn.vn
|
||||
0.0.0.0 zalo-ads-240-td.zadn.vn
|
||||
0.0.0.0 zalo-ads-240.zadn.vn
|
||||
@@ -451,7 +490,26 @@
|
||||
0.0.0.0 zalo-ads-480.zadn.vn
|
||||
0.0.0.0 zalo-ads-td.zadn.vn
|
||||
0.0.0.0 zalo-ads.zadn.vn
|
||||
#[log-*.zadn.vn]
|
||||
0.0.0.0 log-anninhthudo.zadn.vn
|
||||
0.0.0.0 log-baobackan.zadn.vn
|
||||
0.0.0.0 log-baonghean.zadn.vn
|
||||
0.0.0.0 log-baophapluat.zadn.vn
|
||||
0.0.0.0 log-bizlive.zadn.vn
|
||||
0.0.0.0 log-giacngo.zadn.vn
|
||||
0.0.0.0 log-giaoduc.zadn.vn
|
||||
0.0.0.0 log-giaoducthoidai.zadn.vn
|
||||
0.0.0.0 log-kienthucnet.zadn.vn
|
||||
0.0.0.0 log-nhandan.zadn.vn
|
||||
0.0.0.0 log-plo.zadn.vn
|
||||
0.0.0.0 log-sggp.zadn.vn
|
||||
0.0.0.0 log-thanhnien.zadn.vn
|
||||
0.0.0.0 log-tienphong.zadn.vn
|
||||
0.0.0.0 log-tinnhanhchungkhoan.zadn.vn
|
||||
0.0.0.0 log-vietnamdaily.zadn.vn
|
||||
0.0.0.0 log-vovworld.zadn.vn
|
||||
#[zascdn.me]
|
||||
0.0.0.0 ads.zascdn.me
|
||||
0.0.0.0 adtima-common.zascdn.me
|
||||
0.0.0.0 adtima-media.zascdn.me
|
||||
0.0.0.0 adtima-static.zascdn.me
|
||||
@@ -463,10 +521,10 @@
|
||||
#[ads.zdn.vn]
|
||||
0.0.0.0 240.zaloapp.ads.zdn.vn
|
||||
0.0.0.0 480.zaloapp.ads.zdn.vn
|
||||
0.0.0.0 org.zaloapp.ads.zdn.vn
|
||||
#[aka.zdn.vn]
|
||||
0.0.0.0 adtima-static.aka.zdn.vn
|
||||
#[zdn.vn]
|
||||
0.0.0.0 stc-support-app-brand.zdn.vn
|
||||
0.0.0.0 za.zdn.vn
|
||||
0.0.0.0 zaloads-480.zdn.vn
|
||||
0.0.0.0 zplayer-trk.zdn.vn
|
||||
#[zapps.vn]
|
||||
@@ -497,11 +555,9 @@
|
||||
0.0.0.0 cleverads.vn
|
||||
0.0.0.0 showcase.cleverads.vn
|
||||
0.0.0.0 tool.cleverads.vn
|
||||
0.0.0.0 tracking.cleverads.vn
|
||||
0.0.0.0 widget.cleverads.vn
|
||||
0.0.0.0 wifiads.cleverads.vn
|
||||
0.0.0.0 www.cleverads.vn
|
||||
0.0.0.0 youtube.cleverads.vn
|
||||
#[klick]
|
||||
0.0.0.0 adv.klick.vn
|
||||
0.0.0.0 demo.klick.vn
|
||||
@@ -768,37 +824,6 @@
|
||||
0.0.0.0 push2.yoads.net
|
||||
0.0.0.0 www.yoads.net
|
||||
0.0.0.0 yoads.network
|
||||
#[adsplay.xyz]
|
||||
0.0.0.0 a.adsplay.xyz
|
||||
0.0.0.0 a1.adsplay.xyz
|
||||
0.0.0.0 a3.adsplay.xyz
|
||||
0.0.0.0 a4.adsplay.xyz
|
||||
0.0.0.0 admin.adsplay.xyz
|
||||
0.0.0.0 adsplay.xyz
|
||||
0.0.0.0 api.adsplay.xyz
|
||||
0.0.0.0 api4report.adsplay.xyz
|
||||
0.0.0.0 cdn.adsplay.xyz
|
||||
0.0.0.0 cp.adsplay.xyz
|
||||
0.0.0.0 cp1.adsplay.xyz
|
||||
0.0.0.0 cpd.adsplay.xyz
|
||||
0.0.0.0 d.adsplay.xyz
|
||||
0.0.0.0 d7.adsplay.xyz
|
||||
0.0.0.0 gw01.adsplay.xyz
|
||||
0.0.0.0 id.adsplay.xyz
|
||||
0.0.0.0 ingress.adsplay.xyz
|
||||
0.0.0.0 log.adsplay.xyz
|
||||
0.0.0.0 log7.adsplay.xyz
|
||||
0.0.0.0 omo.adsplay.xyz
|
||||
0.0.0.0 report.adsplay.xyz
|
||||
0.0.0.0 sdk.adsplay.xyz
|
||||
0.0.0.0 sony.adsplay.xyz
|
||||
0.0.0.0 sony1.adsplay.xyz
|
||||
0.0.0.0 wifi.adsplay.xyz
|
||||
0.0.0.0 wifi-api.adsplay.xyz
|
||||
0.0.0.0 wifi-api1.adsplay.xyz
|
||||
0.0.0.0 wifi-api2.adsplay.xyz
|
||||
0.0.0.0 wifi-api3.adsplay.xyz
|
||||
0.0.0.0 wifi-api4.adsplay.xyz
|
||||
#[viam.com.vn]
|
||||
0.0.0.0 hc.viam.com.vn
|
||||
0.0.0.0 viam.com.vn
|
||||
@@ -825,7 +850,6 @@
|
||||
0.0.0.0 static.hbplatform.com
|
||||
#[fuseplatform.net]
|
||||
0.0.0.0 adasia.fuseplatform.net
|
||||
0.0.0.0 adfill.fuseplatform.net
|
||||
0.0.0.0 adireto.fuseplatform.net
|
||||
0.0.0.0 api.fuseplatform.net
|
||||
0.0.0.0 cdn.fuseplatform.net
|
||||
@@ -1090,9 +1114,6 @@
|
||||
0.0.0.0 static.subiz.com
|
||||
0.0.0.0 widget.subiz.com
|
||||
0.0.0.0 widgetv4.subiz.com
|
||||
#[sbz.vn]
|
||||
0.0.0.0 api.sbz.vn
|
||||
0.0.0.0 widget.sbz.vn
|
||||
#[subiz.net]
|
||||
0.0.0.0 api.subiz.net
|
||||
0.0.0.0 widget.subiz.net
|
||||
@@ -1123,9 +1144,7 @@
|
||||
0.0.0.0 mon.adx.vn
|
||||
#[matomo.*.vn]
|
||||
0.0.0.0 matomo.ecoe.vn
|
||||
0.0.0.0 matomo.energyfacility.vn
|
||||
0.0.0.0 matomo.hicity.vn
|
||||
0.0.0.0 matomo.magicmarketing.vn
|
||||
0.0.0.0 matomo.shac.vn
|
||||
0.0.0.0 matomo.vepg.vn
|
||||
#[mautic.*.vn]
|
||||
@@ -1133,8 +1152,6 @@
|
||||
0.0.0.0 mautic.casso.vn
|
||||
0.0.0.0 mautic.chetaomaysaigon.vn
|
||||
0.0.0.0 mautic.cloudify.vn
|
||||
0.0.0.0 mautic.datium.vn
|
||||
0.0.0.0 mautic.dongdomedia.vn
|
||||
0.0.0.0 mautic.easygroup.vn
|
||||
0.0.0.0 mautic.educa.vn
|
||||
0.0.0.0 mautic.educe.vn
|
||||
@@ -1147,9 +1164,6 @@
|
||||
0.0.0.0 mautic.sts.vn
|
||||
0.0.0.0 mautic.thietkexaynhadep.vn
|
||||
0.0.0.0 mautic.vmax.vn
|
||||
0.0.0.0 mautic.yte-suckhoe.vn
|
||||
#[mautic.*.com.vn]
|
||||
0.0.0.0 mautic.itnavi.com.vn
|
||||
#[piwik.*.vn]
|
||||
0.0.0.0 piwik.rta.vn
|
||||
#[piwik.*.com.vn]
|
||||
@@ -1164,6 +1178,7 @@
|
||||
0.0.0.0 a.cdp.asia
|
||||
0.0.0.0 app.cdp.asia
|
||||
0.0.0.0 cdp.asia
|
||||
0.0.0.0 delivery-cloud.cdp.asia
|
||||
0.0.0.0 delivery.cdp.asia
|
||||
0.0.0.0 st-a.cdp.asia
|
||||
0.0.0.0 st-e.cdp.asia
|
||||
@@ -1174,12 +1189,6 @@
|
||||
0.0.0.0 loind.mobio.vn
|
||||
0.0.0.0 mobio.vn
|
||||
0.0.0.0 www.mobio.vn
|
||||
#[stats.vng.com.vn]
|
||||
0.0.0.0 bm.stats.vng.com.vn
|
||||
0.0.0.0 kpi.stats.vng.com.vn
|
||||
0.0.0.0 notebook.stats.vng.com.vn
|
||||
0.0.0.0 oss.stats.vng.com.vn
|
||||
0.0.0.0 sso.stats.vng.com.vn
|
||||
#[tpmedia.online]
|
||||
0.0.0.0 cdn.tpmedia.online
|
||||
0.0.0.0 cdn1.tpmedia.online
|
||||
@@ -1194,6 +1203,7 @@
|
||||
0.0.0.0 google-shopping.sapoapps.vn
|
||||
0.0.0.0 googleshopping.sapoapps.vn
|
||||
0.0.0.0 popup.sapoapps.vn
|
||||
0.0.0.0 promotionbar.sapoapps.vn
|
||||
0.0.0.0 promotionpopup.sapoapps.vn
|
||||
0.0.0.0 statistic-blog-v2.sapoapps.vn
|
||||
#[onmarketer.net]
|
||||
@@ -1209,13 +1219,8 @@
|
||||
0.0.0.0 sbbanner-com.cdn.ampproject.org
|
||||
0.0.0.0 static-addtoany-com.cdn.ampproject.org
|
||||
0.0.0.0 v9banners-com.cdn.ampproject.org
|
||||
#[chin-adnetwork.com]
|
||||
0.0.0.0 chin-adnetwork.com
|
||||
0.0.0.0 js.chin-adnetwork.com
|
||||
#[myad.vn]
|
||||
0.0.0.0 academy.myad.vn
|
||||
0.0.0.0 adscare.myad.vn
|
||||
0.0.0.0 campaign.myad.vn
|
||||
0.0.0.0 cdn.myad.vn
|
||||
0.0.0.0 dmp.myad.vn
|
||||
0.0.0.0 www.myad.vn
|
||||
@@ -1289,16 +1294,20 @@
|
||||
0.0.0.0 ccxj.opencoccoc.com
|
||||
0.0.0.0 sr.opencoccoc.com
|
||||
#[aiactiv.io]
|
||||
0.0.0.0 adnetwork-adserver.aiactiv.io
|
||||
0.0.0.0 adnetwork-core-lb7.aiactiv.io
|
||||
0.0.0.0 adnetwork-core.aiactiv.io
|
||||
0.0.0.0 aiactiv.io
|
||||
0.0.0.0 identify.aiactiv.io
|
||||
0.0.0.0 sdk-cdn.aiactiv.io
|
||||
0.0.0.0 static.aiactiv.io
|
||||
0.0.0.0 tag-cdn.aiactiv.io
|
||||
0.0.0.0 tags.aiactiv.io
|
||||
#[smartadnetwork.net]
|
||||
0.0.0.0 delivery.smartadnetwork.net
|
||||
0.0.0.0 smartadnetwork.net
|
||||
0.0.0.0 tracking.smartadnetwork.net
|
||||
0.0.0.0 www.smartadnetwork.net
|
||||
#[metaconex.io]
|
||||
0.0.0.0 ads.metaconex.io
|
||||
0.0.0.0 metaconex.io
|
||||
0.0.0.0 pub.metaconex.io
|
||||
0.0.0.0 www.metaconex.io
|
||||
@@ -1318,11 +1327,6 @@
|
||||
0.0.0.0 delivery1.lavamedia.vn
|
||||
0.0.0.0 lavamedia.vn
|
||||
0.0.0.0 pub.lavamedia.vn
|
||||
#[unibots.in]
|
||||
0.0.0.0 api.unibots.in
|
||||
0.0.0.0 cdn.unibots.in
|
||||
0.0.0.0 unibots.in
|
||||
0.0.0.0 vdo.unibots.in
|
||||
#[botbanhang.vn]
|
||||
0.0.0.0 ads.botbanhang.vn
|
||||
0.0.0.0 chatbox-static.botbanhang.vn
|
||||
@@ -1347,9 +1351,6 @@
|
||||
0.0.0.0 ezca.asia
|
||||
0.0.0.0 recommender.ezca.asia
|
||||
0.0.0.0 wss.ezca.asia
|
||||
#[ladipage.com]
|
||||
0.0.0.0 a.ladipage.com
|
||||
0.0.0.0 dns.ladipage.com
|
||||
#[genmonet.com]
|
||||
0.0.0.0 gcjs.genmonet.com
|
||||
0.0.0.0 genmonet.com
|
||||
@@ -1376,25 +1377,17 @@
|
||||
0.0.0.0 affmates.com
|
||||
0.0.0.0 api.affmates.com
|
||||
0.0.0.0 storage.affmates.com
|
||||
#[vnpt]
|
||||
0.0.0.0 cjm.mytv.vn
|
||||
0.0.0.0 ipcc.mytv.com.vn
|
||||
0.0.0.0 ipcc.shop.vnpt.vn
|
||||
0.0.0.0 ipcc.vinaphone.com.vn
|
||||
0.0.0.0 ipcc.vinaphoneplus.com.vn
|
||||
0.0.0.0 ipcc.vnpt.com.vn
|
||||
#[vnptmedia.vn]
|
||||
0.0.0.0 cjm.vnptmedia.vn
|
||||
0.0.0.0 cjmgw.vnptmedia.vn
|
||||
0.0.0.0 ipcc-vnp1.vnptmedia.vn
|
||||
0.0.0.0 ipcc.vnptmedia.vn
|
||||
0.0.0.0 ipccegov.vnptmedia.vn
|
||||
#[mytvnet.vn]
|
||||
0.0.0.0 apilog.mytvnet.vn
|
||||
0.0.0.0 apilogduration.mytvnet.vn
|
||||
#[wiinvent.tv]
|
||||
0.0.0.0 api.wiinvent.tv
|
||||
0.0.0.0 cdn-embed.wiinvent.tv
|
||||
0.0.0.0 dev.embed.wiinvent.tv
|
||||
0.0.0.0 embed.wiinvent.tv
|
||||
0.0.0.0 games.wiinvent.tv
|
||||
0.0.0.0 static1.wiinvent.tv
|
||||
0.0.0.0 tv360-gametet.wiinvent.tv
|
||||
0.0.0.0 wiinvent.tv
|
||||
#[wiinvent.com.vn]
|
||||
0.0.0.0 wiinvent.com.vn
|
||||
@@ -1403,6 +1396,100 @@
|
||||
0.0.0.0 ads-admin.hubs.vn
|
||||
0.0.0.0 mautic.hubs.vn
|
||||
0.0.0.0 tracking.hubs.vn
|
||||
#[cnnd.vn]
|
||||
0.0.0.0 logg4u.cnnd.vn
|
||||
0.0.0.0 sharefb.cnnd.vn
|
||||
0.0.0.0 v20.cnnd.vn
|
||||
#[akadigital.vn]
|
||||
0.0.0.0 delivery.akadigital.vn
|
||||
0.0.0.0 pub.akadigital.vn
|
||||
#[vnecdn.net]
|
||||
0.0.0.0 adp.vnecdn.net
|
||||
0.0.0.0 la.vnecdn.net
|
||||
0.0.0.0 la2.vnecdn.net
|
||||
0.0.0.0 la3.vnecdn.net
|
||||
#[imacdn.com]
|
||||
0.0.0.0 ff.imacdn.com
|
||||
0.0.0.0 sponsor.imacdn.com
|
||||
#[quangcao-*.epicdn.me]
|
||||
0.0.0.0 quangcao-thanhnien.epicdn.me
|
||||
#[log-*.epicdn.me]
|
||||
0.0.0.0 log-baodauthau.epicdn.me
|
||||
0.0.0.0 log-baogialai.epicdn.me
|
||||
0.0.0.0 log-dttc-sggp.epicdn.me
|
||||
0.0.0.0 log-en-nhandan.epicdn.me
|
||||
0.0.0.0 log-en-sggp.epicdn.me
|
||||
0.0.0.0 log-giaoduc.epicdn.me
|
||||
0.0.0.0 log-giaoducthoidai.epicdn.me
|
||||
0.0.0.0 log-kienthucnet.epicdn.me
|
||||
0.0.0.0 log-mekongasean.epicdn.me
|
||||
0.0.0.0 log-nhandan.epicdn.me
|
||||
0.0.0.0 log-thanhnien.epicdn.me
|
||||
0.0.0.0 log-tinnhanhchungkhoan.epicdn.me
|
||||
#[thanhnien.vn]
|
||||
0.0.0.0 ads.thanhnien.vn
|
||||
0.0.0.0 ai.thanhnien.vn
|
||||
0.0.0.0 log.thanhnien.vn
|
||||
0.0.0.0 quangcao.thanhnien.vn
|
||||
#[tuoitre.vn]
|
||||
0.0.0.0 quangcao.tuoitre.vn
|
||||
0.0.0.0 s.tuoitre.vn
|
||||
#[vnexpress.net]
|
||||
0.0.0.0 elogs.vnexpress.net
|
||||
0.0.0.0 logperf.vnexpress.net
|
||||
0.0.0.0 tracking-amp.vnexpress.net
|
||||
#[fly-ads.net]
|
||||
0.0.0.0 fly-ads.net
|
||||
0.0.0.0 tags.fly-ads.net
|
||||
#[tjme.io]
|
||||
0.0.0.0 api.tjme.io
|
||||
0.0.0.0 tjme.io
|
||||
0.0.0.0 txx.tjme.io
|
||||
0.0.0.0 web-api.tjme.io
|
||||
#[watanet.work]
|
||||
0.0.0.0 d.watanet.work
|
||||
0.0.0.0 watanet.work
|
||||
#[wataads.com]
|
||||
0.0.0.0 cdn.wataads.com
|
||||
0.0.0.0 wataads.com
|
||||
#[viraads.com]
|
||||
0.0.0.0 cdn.viraads.com
|
||||
0.0.0.0 viraads.com
|
||||
#[vtc.vn]
|
||||
0.0.0.0 ads.vtc.vn
|
||||
0.0.0.0 delivery.vtc.vn
|
||||
0.0.0.0 tracking.vtc.vn
|
||||
#[vtcnews.vn]
|
||||
0.0.0.0 delivery.vtcnews.vn
|
||||
0.0.0.0 track.vtcnews.vn
|
||||
#[vtcnew.com.vn]
|
||||
0.0.0.0 delivery.vtcnew.com.vn
|
||||
0.0.0.0 tracking.vtcnew.com.vn
|
||||
#[zedcdn.me]
|
||||
0.0.0.0 m.zedcdn.me
|
||||
0.0.0.0 me.zedcdn.me
|
||||
0.0.0.0 mme.zedcdn.me
|
||||
#[aanetwork.vn]
|
||||
0.0.0.0 aanetwork.vn
|
||||
0.0.0.0 cdn.aanetwork.vn
|
||||
0.0.0.0 imgs2.aanetwork.vn
|
||||
0.0.0.0 pub.aanetwork.vn
|
||||
#[haravan.com]
|
||||
0.0.0.0 combo-omni.haravan.com
|
||||
0.0.0.0 socialloginplus-apps.haravan.com
|
||||
0.0.0.0 facebookinbox-omni-onapp.haravan.com
|
||||
0.0.0.0 promotion.haravan.com
|
||||
0.0.0.0 onapp.haravan.com
|
||||
#[ultraviewer.net]
|
||||
0.0.0.0 ads.ultraviewer.net
|
||||
0.0.0.0 qc.ultraviewer.net
|
||||
#[vipads.cc]
|
||||
0.0.0.0 vipads.cc
|
||||
0.0.0.0 pv.vipads.cc
|
||||
0.0.0.0 www.vipads.cc
|
||||
#[kernh41.com]
|
||||
0.0.0.0 kernh41.com
|
||||
0.0.0.0 static1.kernh41.com
|
||||
# --- Block adsVN ---
|
||||
0.0.0.0 12signup.com
|
||||
0.0.0.0 ad-admin.vnay.vn
|
||||
@@ -1417,6 +1504,7 @@
|
||||
0.0.0.0 ad.sunflower.vn
|
||||
0.0.0.0 ad.vietbao.vn
|
||||
0.0.0.0 ad.vkool.net
|
||||
0.0.0.0 ad.vkoolzzz.net
|
||||
0.0.0.0 ad.zinimedia.com
|
||||
0.0.0.0 adadmin.headlines.pw
|
||||
0.0.0.0 adapi.tuyensinh247.com
|
||||
@@ -1430,13 +1518,11 @@
|
||||
0.0.0.0 adms.phunusuckhoe.vn
|
||||
0.0.0.0 adpostback.headlines.pw
|
||||
0.0.0.0 ads-api.playfun.vn
|
||||
0.0.0.0 ads-backend.nhadatmoi.net
|
||||
0.0.0.0 ads-cdn.fptplay.net
|
||||
0.0.0.0 ads.1thegioi.vn
|
||||
0.0.0.0 ads.247phim.com
|
||||
0.0.0.0 ads.568play.vn
|
||||
0.0.0.0 ads.6svn.com
|
||||
0.0.0.0 ads.admatrix.vn
|
||||
0.0.0.0 ads.alophim.org
|
||||
0.0.0.0 ads.autonet.com.vn
|
||||
0.0.0.0 ads.baoangiang.com.vn
|
||||
0.0.0.0 ads.baobinhduong.vn
|
||||
@@ -1450,21 +1536,19 @@
|
||||
0.0.0.0 ads.careerbuilder.vn
|
||||
0.0.0.0 ads.carmudi.vn
|
||||
0.0.0.0 ads.chanhtuoi.com
|
||||
0.0.0.0 ads.conlatatca.vn
|
||||
0.0.0.0 ads.cungcau.vn
|
||||
0.0.0.0 ads.fpt.vn
|
||||
0.0.0.0 ads.fptplay.net.vn
|
||||
0.0.0.0 ads.gosu.vn
|
||||
0.0.0.0 ads.home.vn
|
||||
0.0.0.0 ads.homedy.com
|
||||
0.0.0.0 ads.homedy.net
|
||||
0.0.0.0 ads.ictnews.vn
|
||||
0.0.0.0 ads.khoahocdoisong.vn
|
||||
0.0.0.0 ads.kiemsat.vn
|
||||
0.0.0.0 ads.lamchame.vn
|
||||
0.0.0.0 ads.laodongbinhduong.org.vn
|
||||
0.0.0.0 ads.laodongnghean.vn
|
||||
0.0.0.0 ads.markettimes.vn
|
||||
0.0.0.0 ads.marry.vn
|
||||
0.0.0.0 ads.netlinkad.vn
|
||||
0.0.0.0 ads.nghenhinvietnam.vn
|
||||
0.0.0.0 ads.nhadatmoi.net
|
||||
0.0.0.0 ads.phunuonline.com.vn
|
||||
@@ -1473,25 +1557,24 @@
|
||||
0.0.0.0 ads.sexyland.vn
|
||||
0.0.0.0 ads.songmoi.vn
|
||||
0.0.0.0 ads.suckhoegiadinh.com.vn
|
||||
0.0.0.0 ads.thanhnien.vn
|
||||
0.0.0.0 ads.thegioitiepthi.vn
|
||||
0.0.0.0 ads.thesaigontimes.vn
|
||||
0.0.0.0 ads.thitruongtaichinhtiente.vn
|
||||
0.0.0.0 ads.tiki.vn
|
||||
0.0.0.0 ads.vietbao.vn
|
||||
0.0.0.0 ads.vishare.vn
|
||||
0.0.0.0 ads.vkool.info
|
||||
0.0.0.0 ads.vlr.vn
|
||||
0.0.0.0 ads.vovlive.vn
|
||||
0.0.0.0 ads.xedoisong.vn
|
||||
0.0.0.0 ads.xemphimso.com
|
||||
0.0.0.0 ads.xemtivisohd.net
|
||||
0.0.0.0 ads1.careerbuilder.vn
|
||||
0.0.0.0 ads8.fpt.vn
|
||||
0.0.0.0 adserver.lag.vn
|
||||
0.0.0.0 adserver.muaban.net
|
||||
0.0.0.0 adserver.sudo.vn
|
||||
0.0.0.0 adserver.trangphim.net
|
||||
0.0.0.0 adsgo.nhipcaudautu.vn
|
||||
0.0.0.0 adsnetonline.work
|
||||
0.0.0.0 adsphim.lol
|
||||
0.0.0.0 adsplus.vn
|
||||
0.0.0.0 adsv2.autodaily.vn
|
||||
0.0.0.0 adsweb.vn
|
||||
@@ -1506,14 +1589,11 @@
|
||||
0.0.0.0 adv.vnnshop.vn
|
||||
0.0.0.0 adver.24h.com.vn
|
||||
0.0.0.0 advert-admin.vnay.vn
|
||||
0.0.0.0 advertisement-nhatanh.com
|
||||
0.0.0.0 advserver.cgv.vn
|
||||
0.0.0.0 advzone.ioe.vn
|
||||
0.0.0.0 adx.baolongan.vn
|
||||
0.0.0.0 adx.chinmedia.vn
|
||||
0.0.0.0 adx.edutimes.com.vn
|
||||
0.0.0.0 adx.golfnews.vn
|
||||
0.0.0.0 adx.hoanggia.net
|
||||
0.0.0.0 adx.hoanggia.net.vn
|
||||
0.0.0.0 adx.hongtinnhanh.com
|
||||
0.0.0.0 adx.kul.vn
|
||||
@@ -1529,9 +1609,8 @@
|
||||
0.0.0.0 api.boclinkads.com
|
||||
0.0.0.0 api2.boclinkads.com
|
||||
0.0.0.0 apia.headlines.pw
|
||||
0.0.0.0 as.gamevui.com
|
||||
0.0.0.0 avoadsservices.com
|
||||
0.0.0.0 banhtv.org
|
||||
0.0.0.0 ax.mpcdn.top
|
||||
0.0.0.0 banner.5giay.vn
|
||||
0.0.0.0 banner.etargeting.mobifone.vn
|
||||
0.0.0.0 banner.thadaco.vn
|
||||
@@ -1539,9 +1618,7 @@
|
||||
0.0.0.0 banner.uto.vn
|
||||
0.0.0.0 bgadx.com
|
||||
0.0.0.0 bidgear-syndication.com
|
||||
0.0.0.0 bluemaulpuffs.com
|
||||
0.0.0.0 cdn-ads.thesaigontimes.vn
|
||||
0.0.0.0 cdn.rongzhouxing.com
|
||||
0.0.0.0 cdn2.cache.vn
|
||||
0.0.0.0 chiasephim.xyz
|
||||
0.0.0.0 click.vieon.vn
|
||||
@@ -1554,16 +1631,12 @@
|
||||
0.0.0.0 csmads.gameclick.vn
|
||||
0.0.0.0 delecpuzz.com
|
||||
0.0.0.0 delivery.senvangvn.com
|
||||
0.0.0.0 delivery.vtc.vn
|
||||
0.0.0.0 delivery.vtcnew.com.vn
|
||||
0.0.0.0 deltago.com
|
||||
0.0.0.0 demopage.me
|
||||
0.0.0.0 deqik.com
|
||||
0.0.0.0 dt.vnecdn.com
|
||||
0.0.0.0 duamilsyr.com
|
||||
0.0.0.0 ff.imacdn.com
|
||||
0.0.0.0 financial-agent.headlines.pw
|
||||
0.0.0.0 ghimc.vn
|
||||
0.0.0.0 gamma.cachefly.net
|
||||
0.0.0.0 go.vnecdn.com
|
||||
0.0.0.0 hexapinow.xyz
|
||||
0.0.0.0 iads.staticscdn.net
|
||||
@@ -1583,10 +1656,8 @@
|
||||
0.0.0.0 mobileads.dieuviet.com
|
||||
0.0.0.0 ng-vn-notice.gameitop.com
|
||||
0.0.0.0 offerwall.headlines.pw
|
||||
0.0.0.0 onapp.haravan.com
|
||||
0.0.0.0 openx.motgame.vn
|
||||
0.0.0.0 ox1.vietstock.vn
|
||||
0.0.0.0 promotion.haravan.com
|
||||
0.0.0.0 qc.5giay.vn
|
||||
0.0.0.0 qc.designervn.net
|
||||
0.0.0.0 qc.japo.vn
|
||||
@@ -1598,19 +1669,20 @@
|
||||
0.0.0.0 qcv5.blogtruyen.vn
|
||||
0.0.0.0 quangcao.24h.com.vn
|
||||
0.0.0.0 quangcao.baovannghe.com.vn
|
||||
0.0.0.0 quangcao.eva.vn
|
||||
0.0.0.0 quangcao.fff.com.vn
|
||||
0.0.0.0 quangcao.thanhnien.vn
|
||||
0.0.0.0 quangcao.tuoitre.vn
|
||||
0.0.0.0 quangcao247.com.vn
|
||||
0.0.0.0 quangcaococcoc.vn
|
||||
0.0.0.0 quangcaodantri.vn
|
||||
0.0.0.0 r.tinmoi24.vn
|
||||
0.0.0.0 realclick.vn
|
||||
0.0.0.0 s.cntqk.com
|
||||
0.0.0.0 s.cntqk.vn
|
||||
0.0.0.0 s.giaoducthoidai.vn
|
||||
0.0.0.0 s.zzcdn.me
|
||||
0.0.0.0 s1.zzz.vn
|
||||
0.0.0.0 sbbanner.com
|
||||
0.0.0.0 sda.tamdiem247.com
|
||||
0.0.0.0 server.zmedia.vn
|
||||
0.0.0.0 serving-ad.tv24.vn
|
||||
0.0.0.0 sharks.vn
|
||||
0.0.0.0 shop.vnay.vn
|
||||
@@ -1631,6 +1703,7 @@
|
||||
0.0.0.0 trenddigital.vn
|
||||
0.0.0.0 truoctran.com
|
||||
0.0.0.0 ttus.tructiepbongda.me
|
||||
0.0.0.0 tvc.biphim.club
|
||||
0.0.0.0 tvnotice.kg.garena.vn
|
||||
0.0.0.0 upfile16.mediaphim.com
|
||||
0.0.0.0 user.headlines.pw
|
||||
@@ -1638,41 +1711,34 @@
|
||||
0.0.0.0 vietbuzzad.com
|
||||
0.0.0.0 vietdorje.com
|
||||
0.0.0.0 vinaads.vn
|
||||
0.0.0.0 vipads.live
|
||||
0.0.0.0 vlxx.host
|
||||
0.0.0.0 vnadssb.com
|
||||
0.0.0.0 vnd247.vn
|
||||
0.0.0.0 webpush.vn
|
||||
0.0.0.0 widget.headlines.pw
|
||||
0.0.0.0 www.12signup.com
|
||||
0.0.0.0 www.adsnetonline.work
|
||||
0.0.0.0 www.adsweb.vn
|
||||
0.0.0.0 www.adt.com.vn
|
||||
0.0.0.0 www.advertisement-nhatanh.com
|
||||
0.0.0.0 www.alivar.vn
|
||||
0.0.0.0 www.avoadsservices.com
|
||||
0.0.0.0 www.banhtv.org
|
||||
0.0.0.0 www.bidgear-syndication.com
|
||||
0.0.0.0 www.chiasephim.xyz
|
||||
0.0.0.0 www.delecpuzz.com
|
||||
0.0.0.0 www.hexapinow.xyz
|
||||
0.0.0.0 www.ketquaxosotoancau.org
|
||||
0.0.0.0 www.landingpagelagi.vn
|
||||
0.0.0.0 www.microad.vn
|
||||
0.0.0.0 www.realclick.vn
|
||||
0.0.0.0 www.sbbanner.com
|
||||
0.0.0.0 www.v9banners.com
|
||||
0.0.0.0 www.vietbuzzad.com
|
||||
0.0.0.0 www.vietdorje.com
|
||||
0.0.0.0 www.vipads.live
|
||||
0.0.0.0 xads.joboko.com
|
||||
0.0.0.0 xmadsapi.joboko.com
|
||||
# --- Block trackingVN ---
|
||||
0.0.0.0 360.anatic.net
|
||||
0.0.0.0 a.ladipage.com
|
||||
0.0.0.0 a.vtvdigital.vn
|
||||
0.0.0.0 addlog.thuvienphapluat.vn
|
||||
0.0.0.0 admin.phunusuckhoe.vn
|
||||
0.0.0.0 admin.voh.com.vn
|
||||
0.0.0.0 aff.atp.vn
|
||||
0.0.0.0 affiliate.chiaki.vn
|
||||
0.0.0.0 ai.thanhnien.vn
|
||||
0.0.0.0 alexajstrack.com
|
||||
0.0.0.0 analytic.baodantoc.vn
|
||||
0.0.0.0 analytic.vnanet.vn
|
||||
@@ -1681,10 +1747,10 @@
|
||||
0.0.0.0 analytics.bachtuongphat.com
|
||||
0.0.0.0 analytics.bkav.com
|
||||
0.0.0.0 analytics.bkav.com.vn
|
||||
0.0.0.0 analytics.bluemotionmedia.vn
|
||||
0.0.0.0 analytics.diamondstarfinancial.com.vn
|
||||
0.0.0.0 analytics.explus.vn
|
||||
0.0.0.0 analytics.evgcdn.net
|
||||
0.0.0.0 analytics.fsoft.com.vn
|
||||
0.0.0.0 analytics.hebela.vn
|
||||
0.0.0.0 analytics.hub-js.com
|
||||
0.0.0.0 analytics.jamstackvietnam.com
|
||||
0.0.0.0 analytics.mfocus.vn
|
||||
@@ -1695,27 +1761,26 @@
|
||||
0.0.0.0 analytics.rever.vn
|
||||
0.0.0.0 analytics.sohatv.vn
|
||||
0.0.0.0 analytics.teko.vn
|
||||
0.0.0.0 analytics.thethao247.org
|
||||
0.0.0.0 analytics.tiki.vn
|
||||
0.0.0.0 analytics.tintuc.vn
|
||||
0.0.0.0 analytics.viblo.asia
|
||||
0.0.0.0 analytics.videocloud.top
|
||||
0.0.0.0 analytics.vietnamfinance.vn
|
||||
0.0.0.0 analytics.vnncdn.net
|
||||
0.0.0.0 analytics.vnpt.vn
|
||||
0.0.0.0 analytics.vnreview.vn
|
||||
0.0.0.0 analytics.yts.vn
|
||||
0.0.0.0 analytics.zim.vn
|
||||
0.0.0.0 api-logdev.sohatv.vn
|
||||
0.0.0.0 api.ozui.vn
|
||||
0.0.0.0 apiv2.tiin.vn
|
||||
0.0.0.0 apl.headlines.pw
|
||||
0.0.0.0 app.hstatic.net
|
||||
0.0.0.0 app.sbz.workers.dev
|
||||
0.0.0.0 beta-log.anninhthudo.vn
|
||||
0.0.0.0 bi.vhost.vn
|
||||
0.0.0.0 btrack.homedy.com
|
||||
0.0.0.0 campaign.gitiho.com
|
||||
0.0.0.0 cdn.api-connect.io
|
||||
0.0.0.0 cdn.doke.app
|
||||
0.0.0.0 clicker.chiaki.vn
|
||||
0.0.0.0 clientinfo.phimmoizz.net
|
||||
0.0.0.0 collect.ovp.vn
|
||||
@@ -1728,19 +1793,19 @@
|
||||
0.0.0.0 crm.englishtown.edu.vn
|
||||
0.0.0.0 crmbizfly.todo.vn
|
||||
0.0.0.0 crmx.eqvn.net
|
||||
0.0.0.0 cskh-hcm.fpt.edu.vn
|
||||
0.0.0.0 cskh.onlinecrm.vn
|
||||
0.0.0.0 digi.vinut.com.vn
|
||||
0.0.0.0 elink.nhanlucnganhluat.vn
|
||||
0.0.0.0 elogs.vnexpress.net
|
||||
0.0.0.0 ema.hostvn.net
|
||||
0.0.0.0 event.filum.ai
|
||||
0.0.0.0 event.headlines.pw
|
||||
0.0.0.0 f-emc.ngsp.gov.vn
|
||||
0.0.0.0 fa.fpt.shop
|
||||
0.0.0.0 facebookinbox-omni-onapp.haravan.com
|
||||
0.0.0.0 fbuser.ovp.vn
|
||||
0.0.0.0 file-subiz.com
|
||||
0.0.0.0 follow.vnay.vn
|
||||
0.0.0.0 gtm.saostar.vn
|
||||
0.0.0.0 gtmjs.com
|
||||
0.0.0.0 hit.123c.vn
|
||||
0.0.0.0 intranet.dcorp.com.vn
|
||||
@@ -1749,22 +1814,24 @@
|
||||
0.0.0.0 kv-analytics.kiotviet.vn
|
||||
0.0.0.0 la.vietid.net
|
||||
0.0.0.0 la.vnbusiness.vn
|
||||
0.0.0.0 la.vnecdn.net
|
||||
0.0.0.0 la2.vnecdn.net
|
||||
0.0.0.0 la3.vnecdn.net
|
||||
0.0.0.0 lg.lotus.vn
|
||||
0.0.0.0 live.careplusvn.com
|
||||
0.0.0.0 live.vnpgroup.net
|
||||
0.0.0.0 liveonline.nhanhoa.com
|
||||
0.0.0.0 lmsreport.systems.vn
|
||||
0.0.0.0 log-collector.shopee.vn
|
||||
0.0.0.0 log-dttc.sggp.org.vn
|
||||
0.0.0.0 log-en.nhandan.vn
|
||||
0.0.0.0 log-en.sggp.org.vn
|
||||
0.0.0.0 log.anninhthudo.vn
|
||||
0.0.0.0 log.baobackan.com.vn
|
||||
0.0.0.0 log.baocaobang.vn
|
||||
0.0.0.0 log.baodatviet.vn
|
||||
0.0.0.0 log.baodauthau.vn
|
||||
0.0.0.0 log.baogialai.com.vn
|
||||
0.0.0.0 log.baomoi.com
|
||||
0.0.0.0 log.baonghean.vn
|
||||
0.0.0.0 log.baophapluat.vn
|
||||
0.0.0.0 log.batdongsan.com.vn
|
||||
0.0.0.0 log.beecost.com
|
||||
0.0.0.0 log.beecost.vn
|
||||
0.0.0.0 log.bizlive.vn
|
||||
@@ -1772,30 +1839,31 @@
|
||||
0.0.0.0 log.dav.edu.vn
|
||||
0.0.0.0 log.doanhnhan.vn
|
||||
0.0.0.0 log.dubaotiente.com
|
||||
0.0.0.0 log.giacngo.vn
|
||||
0.0.0.0 log.giaoduc.net.vn
|
||||
0.0.0.0 log.giaoducthoidai.vn
|
||||
0.0.0.0 log.hemera.com.vn
|
||||
0.0.0.0 log.infonet.vn
|
||||
0.0.0.0 log.kaka.me
|
||||
0.0.0.0 log.kienthuc.net.vn
|
||||
0.0.0.0 log.kinhdoanhhoinhap.vn
|
||||
0.0.0.0 log.kinhtedouong.vn
|
||||
0.0.0.0 log.mekongasean.vn
|
||||
0.0.0.0 log.ngaynay.vn
|
||||
0.0.0.0 log.nhandan.vn
|
||||
0.0.0.0 log.nhipcaudautu.vn
|
||||
0.0.0.0 log.oto.com.vn
|
||||
0.0.0.0 log.plo.vn
|
||||
0.0.0.0 log.saleup88.vn
|
||||
0.0.0.0 log.saigondautu.com.vn
|
||||
0.0.0.0 log.sggp.org.vn
|
||||
0.0.0.0 log.smoney.vn
|
||||
0.0.0.0 log.tapchimattran.vn
|
||||
0.0.0.0 log.tapchitaichinh.vn
|
||||
0.0.0.0 log.thanhnien.vn
|
||||
0.0.0.0 log.theleader.vn
|
||||
0.0.0.0 log.tienphong.vn
|
||||
0.0.0.0 log.tieudungthoinay.vn
|
||||
0.0.0.0 log.tinnhac.com
|
||||
0.0.0.0 log.tinnhanhchungkhoan.vn
|
||||
0.0.0.0 log.tinxe.vn
|
||||
0.0.0.0 log.toss.vn
|
||||
0.0.0.0 log.trithuctructuyen.com.vn
|
||||
0.0.0.0 log.trithuctructuyen.vn
|
||||
0.0.0.0 log.tv360.vn
|
||||
@@ -1806,20 +1874,23 @@
|
||||
0.0.0.0 log.vnfinance.vn
|
||||
0.0.0.0 log.vov.vn
|
||||
0.0.0.0 log.vovplus.vn
|
||||
0.0.0.0 log.vovworld.vn
|
||||
0.0.0.0 log.xoso.com.vn
|
||||
0.0.0.0 log.zamba.vn
|
||||
0.0.0.0 log4x.nixcdn.com
|
||||
0.0.0.0 logapi.misa.com.vn
|
||||
0.0.0.0 logg4u.cnnd.vn
|
||||
0.0.0.0 logging.kinhtedothi.vn
|
||||
0.0.0.0 logperf.vnexpress.net
|
||||
0.0.0.0 logs-ott.fbox.fpt.vn
|
||||
0.0.0.0 logs.1cdn.vn
|
||||
0.0.0.0 logs.docnhanh.com.vn
|
||||
0.0.0.0 logs.giaoducthoidai.vn
|
||||
0.0.0.0 logs.thethaovanhoa.vn
|
||||
0.0.0.0 logs1.reatimes.vn
|
||||
0.0.0.0 logsbin.dantri.com.vn
|
||||
0.0.0.0 logscafef.channelvn.net
|
||||
0.0.0.0 logv3.metric.vn
|
||||
0.0.0.0 marketing.itgeek.vn
|
||||
0.0.0.0 matomo.quan.hoabinh.vn
|
||||
0.0.0.0 matomo.vietlottsms.vn
|
||||
0.0.0.0 mautic-learn.teky.edu.vn
|
||||
0.0.0.0 mautic.200lab.io
|
||||
0.0.0.0 mautic.teky.edu.vn
|
||||
0.0.0.0 mkt.hoanghamobile.com
|
||||
@@ -1827,23 +1898,20 @@
|
||||
0.0.0.0 mto.cgv.vn
|
||||
0.0.0.0 nct1.logging.nextsmarty.com
|
||||
0.0.0.0 newlog.daidoanket.vn
|
||||
0.0.0.0 newlog.tapchitaichinh.vn
|
||||
0.0.0.0 nstat.headlines.pw
|
||||
0.0.0.0 pixel.chotot.com
|
||||
0.0.0.0 production-tracking.riviu.co
|
||||
0.0.0.0 proof.sudo.vn
|
||||
0.0.0.0 px.saostar.vn
|
||||
0.0.0.0 report.mediahub.vn
|
||||
0.0.0.0 report.vnay.vn
|
||||
0.0.0.0 report2.mediahub.vn
|
||||
0.0.0.0 rsyslog.24h.com.vn
|
||||
0.0.0.0 s.baomoi.xdn.vn
|
||||
0.0.0.0 s.homedy.com
|
||||
0.0.0.0 s.kenh14.vn
|
||||
0.0.0.0 s.soha.vn
|
||||
0.0.0.0 s.tuoitre.vn
|
||||
0.0.0.0 sentry-track.vietnamworks.com
|
||||
0.0.0.0 sharefb.cnnd.vn
|
||||
0.0.0.0 s6.textlink.vn
|
||||
0.0.0.0 smetrics.kone.vn
|
||||
0.0.0.0 socialloginplus-apps.haravan.com
|
||||
0.0.0.0 st-a.vtvdigital.vn
|
||||
0.0.0.0 stat.headlines.pw
|
||||
0.0.0.0 static.masoffer.net
|
||||
@@ -1858,7 +1926,6 @@
|
||||
0.0.0.0 stats.bizweb.vn
|
||||
0.0.0.0 stats.dongphim.net
|
||||
0.0.0.0 stats.hstatic.net
|
||||
0.0.0.0 stats.muasamcong.gov.vn
|
||||
0.0.0.0 stats.petrotimes.vn
|
||||
0.0.0.0 stats.tamdiem247.com
|
||||
0.0.0.0 stats.vietnammoi.vn
|
||||
@@ -1866,13 +1933,14 @@
|
||||
0.0.0.0 sv-api-event.headlines.pw
|
||||
0.0.0.0 ta.toprework.vn
|
||||
0.0.0.0 tagging-qadkfoj6ha-as.a.run.app
|
||||
0.0.0.0 tech.zapps.me
|
||||
0.0.0.0 thongke.24h.com.vn
|
||||
0.0.0.0 thongke.arttimes.vn
|
||||
0.0.0.0 thongke.baotintuc.vn
|
||||
0.0.0.0 thongke.bookingcare.vn
|
||||
0.0.0.0 thongke.khampha.vn
|
||||
0.0.0.0 thongke.opencps.vn
|
||||
0.0.0.0 thongke.tcdulichtphcm.vn
|
||||
0.0.0.0 thongke.thethaovanhoa.vn
|
||||
0.0.0.0 thongke.vui.vn
|
||||
0.0.0.0 thongke99.baogiaothong.vn
|
||||
0.0.0.0 tr.topdevvn.com
|
||||
@@ -1880,24 +1948,19 @@
|
||||
0.0.0.0 track-srv.vietnamnet.vn
|
||||
0.0.0.0 track.adshay.vn
|
||||
0.0.0.0 track.icheck.com.vn
|
||||
0.0.0.0 track.ivymoda.com
|
||||
0.0.0.0 track.kyna.vn
|
||||
0.0.0.0 track.lapa.pub
|
||||
0.0.0.0 track.lemonnovel.com
|
||||
0.0.0.0 track.pnj.com.vn
|
||||
0.0.0.0 track.rentracks.com.vn
|
||||
0.0.0.0 track.sendo.vn
|
||||
0.0.0.0 track.vio.edu.vn
|
||||
0.0.0.0 tracker.anime47.com
|
||||
0.0.0.0 tracker.bongngo.bar
|
||||
0.0.0.0 tracker.edupia.vn
|
||||
0.0.0.0 tracker.fado.vn
|
||||
0.0.0.0 tracker.gigaphim.com
|
||||
0.0.0.0 tracker.nhandaovadoisong.vn
|
||||
0.0.0.0 tracker.phunusuckhoe.vn
|
||||
0.0.0.0 tracker.phunuvagiadinh.vn
|
||||
0.0.0.0 tracker.thichxemphim.net
|
||||
0.0.0.0 tracking-amp.vnexpress.net
|
||||
0.0.0.0 tracking-web.smobgame.com
|
||||
0.0.0.0 tracking.appwifi.com
|
||||
0.0.0.0 tracking.cystack.net
|
||||
@@ -1915,14 +1978,11 @@
|
||||
0.0.0.0 tracking.vegaid.vn
|
||||
0.0.0.0 tracking.vht.com.vn
|
||||
0.0.0.0 tracking.vietbao.vn
|
||||
0.0.0.0 tracking.vnncdn.net
|
||||
0.0.0.0 tracking.vtc.vn
|
||||
0.0.0.0 tracking.vtcnew.com.vn
|
||||
0.0.0.0 tracking.yes24.vn
|
||||
0.0.0.0 trackingapi.foody.vn
|
||||
0.0.0.0 trackingsea.zingplay.com
|
||||
0.0.0.0 trackingvn.zingplay.com
|
||||
0.0.0.0 trackity.tiki.vn
|
||||
0.0.0.0 trending.vn
|
||||
0.0.0.0 traffic.vietnhan.co
|
||||
0.0.0.0 trk.123c.vn
|
||||
0.0.0.0 trk.staging.123c.vn
|
||||
0.0.0.0 userstats.shopee.vn
|
||||
@@ -1936,81 +1996,15 @@
|
||||
0.0.0.0 widget.kyna.vn
|
||||
0.0.0.0 za.baomoi.com
|
||||
0.0.0.0 zigzag.vn
|
||||
# --- Block scamVN ---
|
||||
0.0.0.0 247vi-bank.com
|
||||
0.0.0.0 atspace.tv
|
||||
0.0.0.0 bloodleian.club
|
||||
0.0.0.0 bluvenie.com
|
||||
0.0.0.0 campxanh.info
|
||||
0.0.0.0 celerantatters.com
|
||||
0.0.0.0 cettiarl.com
|
||||
0.0.0.0 code-garena-vn.com
|
||||
0.0.0.0 code-lienquan-vn.com
|
||||
0.0.0.0 drakeesh.com
|
||||
0.0.0.0 eventlqvn.com
|
||||
0.0.0.0 facebookz.co
|
||||
0.0.0.0 ff-member-ganena.com
|
||||
0.0.0.0 ff-member-gazeza.com
|
||||
0.0.0.0 ff-members-garena.vn
|
||||
0.0.0.0 ff-membership-garena.com
|
||||
0.0.0.0 ff-membersship-garrena.com
|
||||
0.0.0.0 ff-memnber-garena.com
|
||||
0.0.0.0 ff-menber-garena.vn
|
||||
0.0.0.0 ff.garena.memmbershipp.com
|
||||
0.0.0.0 ff.member.garenae.vn
|
||||
0.0.0.0 freefire-membershipvn-garena.com
|
||||
0.0.0.0 gaerena.vn
|
||||
0.0.0.0 garaena.vn
|
||||
0.0.0.0 garane.vn
|
||||
0.0.0.0 garean.vn
|
||||
0.0.0.0 gareena.vn
|
||||
0.0.0.0 garena-members.com
|
||||
0.0.0.0 garena.fan
|
||||
0.0.0.0 garena.mobi
|
||||
0.0.0.0 garenaa.vn
|
||||
0.0.0.0 garenaj.vn
|
||||
0.0.0.0 garenalqm.com
|
||||
0.0.0.0 garera.vn
|
||||
0.0.0.0 garrena.vn
|
||||
0.0.0.0 giftcode-lienquanmobile-vn.com
|
||||
0.0.0.0 giftcode-mobilelienquan.com
|
||||
0.0.0.0 https-apple.com
|
||||
0.0.0.0 irduwhojas.ga
|
||||
0.0.0.0 kaurroot.com
|
||||
0.0.0.0 larpollicwilli.club
|
||||
0.0.0.0 lib1.biz
|
||||
0.0.0.0 lienquan-garena-giftcode.com
|
||||
0.0.0.0 lienquanmobilequatang.com
|
||||
0.0.0.0 lmht-membership.com
|
||||
0.0.0.0 member-gaarena.com
|
||||
0.0.0.0 member-garena.vn
|
||||
0.0.0.0 memberr-garenaa.com
|
||||
0.0.0.0 membershipsgarenavn-ff.com
|
||||
0.0.0.0 menberships-ff-garrena.com
|
||||
0.0.0.0 news-good.net
|
||||
0.0.0.0 nhanquaffob31.com
|
||||
0.0.0.0 qualienquan.vn
|
||||
0.0.0.0 rituationscardb.info
|
||||
0.0.0.0 sacchaeleduk.com
|
||||
0.0.0.0 simpliftsbefore.info
|
||||
0.0.0.0 smilitygorb.club
|
||||
0.0.0.0 support-maps.live
|
||||
0.0.0.0 tammenaa.com
|
||||
0.0.0.0 thegioididong.me
|
||||
0.0.0.0 thseaeing.fun
|
||||
0.0.0.0 ucesreferre.club
|
||||
0.0.0.0 vietnammoi.biz
|
||||
0.0.0.0 vn-garena.vn
|
||||
0.0.0.0 vongquay-pubgmobilevn-zing.com
|
||||
0.0.0.0 vongquaymienphi.net
|
||||
0.0.0.0 www.facebookz.co
|
||||
0.0.0.0 www.vongquaymienphi.net
|
||||
0.0.0.0 ztrck.me
|
||||
# --- Block popupVN ---
|
||||
0.0.0.0 b8zk2cl6bjs92j7ah8k2kzi92jf8ck9vj7v0z5bv2v3cj2azlp0c8z5vb7dt.me
|
||||
0.0.0.0 ch6p2aj2gh8zy5cm0px9ow7aj3tmzhtk6lzx2ch9xj7gx2jq1cj8v4jklz6b.me
|
||||
0.0.0.0 e7z9t4x6a0v5mk3zo1a0xj2z7c6g8sa6js5z7s2c3h9x0s5fh3a6sjwb8q7m.xyz
|
||||
0.0.0.0 h6o2z0pwx5ja7dwxn0wx4fhv7mp0qoladm8vj6do4h1c6gja8evrn6g5fixk.me
|
||||
0.0.0.0 kz2oq0xm6ie7gn5dkswlpv6mfgci8yoe3xlqp12gjotp5fdjxs5ckztb8rzn.codes
|
||||
0.0.0.0 m6pz5h8qi18jq1s7hjkytxn7sjc0zpxw5gks3vyk8dcxs2cstjgdxkp7t1eb.me
|
||||
0.0.0.0 n7e4t5trg0u3yegn8szj9c8xjz5wf8szcj2a5h9dzxjs50salczs8azls0zm.com
|
||||
0.0.0.0 q2h0x5l7gj8xdm5wdx8ht5szd4jw8nzq5klt8sr9sk2zjg6mtk0q8xzi0i9z.me
|
||||
0.0.0.0 rei9jc56oyqux0rcpcquqmm7jc5freirpsquqkope3n3axrjacg8ipolxvbm.codes
|
||||
0.0.0.0 su6t2a0v1cbj6fu8o2cjdo1dx0oxdm6kgl6f7zdjxt6aqxjlwrt7cu2r5g2d.me
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
# minecraft-hosts - Tracking Domains
|
||||
# License: CC0
|
||||
|
||||
analytics.atlauncher.com
|
||||
auxilium.ftb.team
|
||||
beacon.quiltmc.org
|
||||
bstats.org
|
||||
mcmc.dev
|
||||
mcstats.org
|
||||
|
||||
@@ -9535,7 +9535,6 @@
|
||||
0.0.0.0 stat.delo.ua
|
||||
# [W Net Isp][AS15772][217.20.175.0 - 217.20.175.127]
|
||||
0.0.0.0 c.mystat-in.net
|
||||
0.0.0.0 ___id___.c.mystat-in.net #[Wildcard DNS]
|
||||
0.0.0.0 011707160008.c.mystat-in.net
|
||||
0.0.0.0 121807150325.c.mystat-in.net
|
||||
0.0.0.0 122907224924.c.mystat-in.net
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
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
|
||||
@@ -68,9 +67,7 @@
|
||||
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 trk.justanswer.com
|
||||
@@ -81,7 +78,6 @@
|
||||
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 www.datadoghq-browser-agent.com
|
||||
0.0.0.0 www.fastly-insights.com
|
||||
|
||||
@@ -2122,7 +2122,6 @@
|
||||
0.0.0.0 www.teaparty.org
|
||||
0.0.0.0 www.theamericanmirror.com
|
||||
0.0.0.0 www.theavocadonews.com
|
||||
0.0.0.0 www.thebeaverton.com
|
||||
0.0.0.0 www.theblaze.com
|
||||
0.0.0.0 www.thecommonsenseshow.com
|
||||
0.0.0.0 www.thecontroversialfiles.net
|
||||
@@ -2194,4 +2193,4 @@
|
||||
0.0.0.0 yournewswire.com
|
||||
0.0.0.0 youtubecensorship.com
|
||||
0.0.0.0 yubasuttertimes.com
|
||||
0.0.0.0 zombie.news
|
||||
0.0.0.0 zombie.news
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "BigDargon's gambling domain blocking hosts file",
|
||||
"description": "Extension from the project hostsVN",
|
||||
"homeurl": "https://github.com/bigdargon/hostsVN/",
|
||||
"frequency": "occasional",
|
||||
"issues": "https://github.com/bigdargon/hostsVN/issues",
|
||||
"url": "https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN",
|
||||
"license": "MIT"
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
# Source domain history
|
||||
|
||||
This page is only occasionally refreshed.
|
||||
|
||||

|
||||
|
||||
The file `stats.out` in this folder contains raw data for this graph.
|
||||
@@ -3,7 +3,7 @@
|
||||
# <https://raw.githubusercontent.com/lassekongo83/Frellwits-filter-lists/master/anti-casino-and-betting-hosts-file.txt>
|
||||
# <https://www.reddit.com/r/GlobalOffensiveGamble/comments/3d5fmr/list_of_csgo_gambling_websites/>
|
||||
# Title: Gambling hosts
|
||||
# Updated Jun 22, 2022
|
||||
# Updated March 12, 2023
|
||||
0.0.0.0 10bet.com
|
||||
0.0.0.0 10luxury39.com
|
||||
0.0.0.0 11wickets.com
|
||||
@@ -41,6 +41,7 @@
|
||||
0.0.0.0 777.com
|
||||
0.0.0.0 7777.bg
|
||||
0.0.0.0 777bets.co.uk
|
||||
0.0.0.0 7bet.lt
|
||||
0.0.0.0 7epta7.com
|
||||
0.0.0.0 7godscasino.com
|
||||
0.0.0.0 7jackpots.com
|
||||
@@ -124,6 +125,7 @@
|
||||
0.0.0.0 betamerica.com
|
||||
0.0.0.0 betandclick.com
|
||||
0.0.0.0 betano.bg
|
||||
0.0.0.0 betano.cz
|
||||
0.0.0.0 betanysports.eu
|
||||
0.0.0.0 betbanks.com
|
||||
0.0.0.0 betboro.com
|
||||
@@ -226,6 +228,7 @@
|
||||
0.0.0.0 bets10go.com
|
||||
0.0.0.0 bets4all.com
|
||||
0.0.0.0 betsafe.com
|
||||
0.0.0.0 betsafe.lt
|
||||
0.0.0.0 betsbi.com
|
||||
0.0.0.0 betser.com
|
||||
0.0.0.0 betshop.com
|
||||
@@ -277,6 +280,7 @@
|
||||
0.0.0.0 bingoyard.com
|
||||
0.0.0.0 bitcoinsports.eu
|
||||
0.0.0.0 bitsaloon.com
|
||||
0.0.0.0 blancoshrimp.com
|
||||
0.0.0.0 blog.maxbet.rs
|
||||
0.0.0.0 bobcasino.com
|
||||
0.0.0.0 bobetting.com
|
||||
@@ -353,6 +357,7 @@
|
||||
0.0.0.0 casinowinner.com
|
||||
0.0.0.0 casinsi.com
|
||||
0.0.0.0 casumo.com
|
||||
0.0.0.0 cbet.lt
|
||||
0.0.0.0 cbmsport.com
|
||||
0.0.0.0 cc898.com
|
||||
0.0.0.0 celebbingo.com
|
||||
@@ -538,7 +543,9 @@
|
||||
0.0.0.0 eloterija.si
|
||||
0.0.0.0 emeraldbet.com
|
||||
0.0.0.0 en.betclic.com
|
||||
0.0.0.0 en.cbet.lt
|
||||
0.0.0.0 en.expekt.com
|
||||
0.0.0.0 en.topsport.lt
|
||||
0.0.0.0 energybet.com
|
||||
0.0.0.0 enterbet.com
|
||||
0.0.0.0 eqraffle.com
|
||||
@@ -684,6 +691,7 @@
|
||||
0.0.0.0 ibcbetberry.com
|
||||
0.0.0.0 ibet789.com
|
||||
0.0.0.0 ibetcasino.com
|
||||
0.0.0.0 iforbet.cz
|
||||
0.0.0.0 iforbet.pl
|
||||
0.0.0.0 ifortuna.cz
|
||||
0.0.0.0 igame.com
|
||||
@@ -810,6 +818,7 @@
|
||||
0.0.0.0 loterie.ma
|
||||
0.0.0.0 loteries.lotoquebec.com
|
||||
0.0.0.0 loterija.si
|
||||
0.0.0.0 loto.lt
|
||||
0.0.0.0 loto.mk
|
||||
0.0.0.0 loto.ro
|
||||
0.0.0.0 lotoquebec.com
|
||||
@@ -992,6 +1001,7 @@
|
||||
0.0.0.0 olimp.com
|
||||
0.0.0.0 olybet.com
|
||||
0.0.0.0 olybet.eu
|
||||
0.0.0.0 olybet.lt
|
||||
0.0.0.0 omniacasino.com
|
||||
0.0.0.0 onetpedia.net
|
||||
0.0.0.0 online.caliente.mx
|
||||
@@ -1000,6 +1010,7 @@
|
||||
0.0.0.0 opap.gr
|
||||
0.0.0.0 opcrates.com
|
||||
0.0.0.0 optibet.com
|
||||
0.0.0.0 optibet.lt
|
||||
0.0.0.0 optionsports.com
|
||||
0.0.0.0 orakulas.lt
|
||||
0.0.0.0 orlandocasino.com
|
||||
@@ -1018,6 +1029,7 @@
|
||||
0.0.0.0 paradisewin.com
|
||||
0.0.0.0 parasino.com
|
||||
0.0.0.0 parimatch.com
|
||||
0.0.0.0 partycasino.lt
|
||||
0.0.0.0 partypoker.cz
|
||||
0.0.0.0 pasarbola.com
|
||||
0.0.0.0 pelaa.com
|
||||
@@ -1025,7 +1037,6 @@
|
||||
0.0.0.0 pinnacle.com
|
||||
0.0.0.0 pinnaclesports.com
|
||||
0.0.0.0 piratespin.com
|
||||
0.0.0.0 pixabay.com
|
||||
0.0.0.0 planetofbets.com
|
||||
0.0.0.0 planetwin365.com
|
||||
0.0.0.0 playbet.com
|
||||
@@ -1101,6 +1112,8 @@
|
||||
0.0.0.0 royrichie.com
|
||||
0.0.0.0 rubet.com
|
||||
0.0.0.0 rush777.com
|
||||
0.0.0.0 ru.cbet.lt
|
||||
0.0.0.0 ru.topsport.lt
|
||||
0.0.0.0 saartoto.de
|
||||
0.0.0.0 sachsenlotto.de
|
||||
0.0.0.0 safaribet.com.gh
|
||||
@@ -1253,6 +1266,7 @@
|
||||
0.0.0.0 tabgold.co.za
|
||||
0.0.0.0 taiwanlottery.com.tw
|
||||
0.0.0.0 takarakuji-official.jp
|
||||
0.0.0.0 tatkazino.lt
|
||||
0.0.0.0 tatts.com
|
||||
0.0.0.0 templenile.com
|
||||
0.0.0.0 tempobet.com
|
||||
@@ -1285,6 +1299,7 @@
|
||||
0.0.0.0 topodds.com.au
|
||||
0.0.0.0 topplay.cc
|
||||
0.0.0.0 topsport.com.au
|
||||
0.0.0.0 topsport.lt
|
||||
0.0.0.0 topsportwetten.com
|
||||
0.0.0.0 topwin.cc
|
||||
0.0.0.0 totalbets.com
|
||||
@@ -1341,6 +1356,7 @@
|
||||
0.0.0.0 wap.moneyyellow.com
|
||||
0.0.0.0 webbookmakers.com
|
||||
0.0.0.0 webpartners.co
|
||||
0.0.0.0 welcome.olybet.lt
|
||||
0.0.0.0 westlotto.de
|
||||
0.0.0.0 wettpunkt.com
|
||||
0.0.0.0 wgh.ag
|
||||
@@ -1403,6 +1419,7 @@
|
||||
0.0.0.0 www.724sports.com
|
||||
0.0.0.0 www.777.com
|
||||
0.0.0.0 www.7777.bg
|
||||
0.0.0.0 www.7bet.lt
|
||||
0.0.0.0 www.7epta7.com
|
||||
0.0.0.0 www.7godscasino.com
|
||||
0.0.0.0 www.7jackpots.com
|
||||
@@ -1476,6 +1493,7 @@
|
||||
0.0.0.0 www.betaland.com
|
||||
0.0.0.0 www.betamerica.com
|
||||
0.0.0.0 www.betandclick.com
|
||||
0.0.0.0 www.betano.cz
|
||||
0.0.0.0 www.betanysports.eu
|
||||
0.0.0.0 www.betbanks.com
|
||||
0.0.0.0 www.betboro.com
|
||||
@@ -1575,6 +1593,7 @@
|
||||
0.0.0.0 www.bets10go.com
|
||||
0.0.0.0 www.bets4all.com
|
||||
0.0.0.0 www.betsafe.com
|
||||
0.0.0.0 www.betsafe.lt
|
||||
0.0.0.0 www.betsbc.com
|
||||
0.0.0.0 www.betsbi.com
|
||||
0.0.0.0 www.betser.com
|
||||
@@ -1623,6 +1642,7 @@
|
||||
0.0.0.0 www.bitcoinrush.io
|
||||
0.0.0.0 www.bitcoinsports.eu
|
||||
0.0.0.0 www.bitsaloon.com
|
||||
0.0.0.0 www.blancoshrimp.com
|
||||
0.0.0.0 www.bobcasino.com
|
||||
0.0.0.0 www.bobetting.com
|
||||
0.0.0.0 www.bobregister.com
|
||||
@@ -1686,6 +1706,7 @@
|
||||
0.0.0.0 www.casinotown.se
|
||||
0.0.0.0 www.casinsi.com
|
||||
0.0.0.0 www.casumo.com
|
||||
0.0.0.0 www.cbet.lt
|
||||
0.0.0.0 www.cbmsport.com
|
||||
0.0.0.0 www.cc898.com
|
||||
0.0.0.0 www.celebbingo.com
|
||||
@@ -1967,6 +1988,7 @@
|
||||
0.0.0.0 www.iasbet.com
|
||||
0.0.0.0 www.ibet789.com
|
||||
0.0.0.0 www.ibetcasino.com
|
||||
0.0.0.0 www.iforbet.cz
|
||||
0.0.0.0 www.ifortuna.cz
|
||||
0.0.0.0 www.igame.com
|
||||
0.0.0.0 www.igame.se
|
||||
@@ -2075,6 +2097,7 @@
|
||||
0.0.0.0 www.loterie.ma
|
||||
0.0.0.0 www.loteries.lotoquebec.com
|
||||
0.0.0.0 www.loterija.si
|
||||
0.0.0.0 www.loto.lt
|
||||
0.0.0.0 www.loto.mk
|
||||
0.0.0.0 www.loto.ro
|
||||
0.0.0.0 www.lotoquebec.com
|
||||
@@ -2247,12 +2270,14 @@
|
||||
0.0.0.0 www.olimp.com
|
||||
0.0.0.0 www.olybet.com
|
||||
0.0.0.0 www.olybet.eu
|
||||
0.0.0.0 www.olybet.lt
|
||||
0.0.0.0 www.omniacasino.com
|
||||
0.0.0.0 www.online.singaporepools.com
|
||||
0.0.0.0 www.onlywinners.com
|
||||
0.0.0.0 www.opap.gr
|
||||
0.0.0.0 www.opcrates.com
|
||||
0.0.0.0 www.optibet.com
|
||||
0.0.0.0 www.optibet.lt
|
||||
0.0.0.0 www.optionsports.com
|
||||
0.0.0.0 www.orakulas.lt
|
||||
0.0.0.0 www.orlandocasino.com
|
||||
@@ -2268,6 +2293,7 @@
|
||||
0.0.0.0 www.parasino.com
|
||||
0.0.0.0 www.parimatch.com
|
||||
0.0.0.0 www.parimatchplay1.com
|
||||
0.0.0.0 www.partycasino.lt
|
||||
0.0.0.0 www.partypoker.cz
|
||||
0.0.0.0 www.pasarbola.com
|
||||
0.0.0.0 www.pinnacle.com
|
||||
@@ -2459,6 +2485,7 @@
|
||||
0.0.0.0 www.tabgold.co.za
|
||||
0.0.0.0 www.taiwanlottery.com.tw
|
||||
0.0.0.0 www.takarakuji-official.jp
|
||||
0.0.0.0 www.tatkazino.lt
|
||||
0.0.0.0 www.tempobet.com
|
||||
0.0.0.0 www.texascasino.com
|
||||
0.0.0.0 www.thebetarena.com
|
||||
@@ -2484,6 +2511,7 @@
|
||||
0.0.0.0 www.topodds.com.au
|
||||
0.0.0.0 www.topplay.cc
|
||||
0.0.0.0 www.topsport.com.au
|
||||
0.0.0.0 www.topsport.lt
|
||||
0.0.0.0 www.topsportwetten.com
|
||||
0.0.0.0 www.topwin.cc
|
||||
0.0.0.0 www.totalbets.com
|
||||
@@ -2576,3 +2604,5 @@
|
||||
0.0.0.0 zetpoker.eu
|
||||
0.0.0.0 zodiacu.com
|
||||
0.0.0.0 zpisportbk.com
|
||||
0.0.0.0 www.draftkings.com
|
||||
0.0.0.0 luckylandslots.com
|
||||
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "BigDargon's adult domain blocking hosts file",
|
||||
"description": "Extension from the project hostsVN",
|
||||
"homeurl": "https://github.com/bigdargon/hostsVN/",
|
||||
"frequency": "occasional",
|
||||
"issues": "https://github.com/bigdargon/hostsVN/issues",
|
||||
"url": "https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN",
|
||||
"license": "MIT"
|
||||
}
|
||||
@@ -3662,7 +3662,7 @@ fe80::1%lo0 localhost
|
||||
0.0.0.0 cast13.porngo.com
|
||||
0.0.0.0 cast14.porngo.com
|
||||
0.0.0.0 cast15.porngo.com
|
||||
0.0.0.0 cast.porngo.com.
|
||||
0.0.0.0 cast.porngo.com
|
||||
0.0.0.0 cast.xxxfiles.com
|
||||
0.0.0.0 castingcouch-x.com
|
||||
0.0.0.0 castingcouchxfan.com
|
||||
@@ -7417,7 +7417,6 @@ fe80::1%lo0 localhost
|
||||
0.0.0.0 germanteenporno.com
|
||||
0.0.0.0 gerrit3000.blogspot.com
|
||||
0.0.0.0 get.sankaku.plus
|
||||
0.0.0.0 getfirefox.com
|
||||
0.0.0.0 getfuckass.com
|
||||
0.0.0.0 gethauz.com
|
||||
0.0.0.0 gethdporn.com
|
||||
@@ -20944,7 +20943,6 @@ fe80::1%lo0 localhost
|
||||
0.0.0.0 www.blog-sexo-gratis.blogspot.com
|
||||
0.0.0.0 www.blogsexoverbal.blogspot.com
|
||||
0.0.0.0 www.blogs-list.com
|
||||
0.0.0.0 www.blogspot.com
|
||||
0.0.0.0 www.blog-thegoose.blogspot.com
|
||||
0.0.0.0 www.blogtothepeople.blogspot.com
|
||||
0.0.0.0 www.blogtravestis.blogspot.com
|
||||
@@ -23211,7 +23209,6 @@ fe80::1%lo0 localhost
|
||||
0.0.0.0 www.germanpornblog.blogspot.com
|
||||
0.0.0.0 www.germanteenporno.com
|
||||
0.0.0.0 www.gerrit3000.blogspot.com
|
||||
0.0.0.0 www.getfirefox.com
|
||||
0.0.0.0 www.getfuckass.com
|
||||
0.0.0.0 www.gethauz.com
|
||||
0.0.0.0 www.gethdporn.com
|
||||
|
||||