mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-09-25 22:05:28 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
baf083579c | ||
|
|
492e90c0f7 | ||
|
|
65a1906ae9 | ||
|
|
80512a4040 | ||
|
|
b4a9810fb0 | ||
|
|
3f4ab43a7d | ||
|
|
c1ba9bc0d2 | ||
|
|
98b4c8ac5c | ||
|
|
d50ae102ca | ||
|
|
b72d45b052 | ||
|
|
0d99f8f6d0 | ||
|
|
e91839a2be | ||
|
|
199df73051 | ||
|
|
b742118cd1 | ||
|
|
8c355cf9b1 | ||
|
|
4256e49a2f | ||
|
|
58ab6075df | ||
|
|
2e9f343097 | ||
|
|
eb4da4e06f | ||
|
|
56ad6444fc | ||
|
|
5d58fbafae | ||
|
|
2e45a2fb11 | ||
|
|
4742ba369e | ||
|
|
6705ea32d5 | ||
|
|
ae38b087f3 | ||
|
|
f89915afb0 | ||
|
|
b3f0b8a29a | ||
|
|
ec79156afd | ||
|
|
0aa12bc001 | ||
|
|
29818bdfc7 | ||
|
|
83a58c60a0 | ||
|
|
8c25b87ac8 | ||
|
|
e76211e381 | ||
|
|
d96a4a98fc | ||
|
|
29a643b3e5 | ||
|
|
505a661412 | ||
|
|
16d79233ac | ||
|
|
7bf15bf336 | ||
|
|
1714afb293 | ||
|
|
dd5334d1d3 | ||
|
|
218ce3c901 | ||
|
|
06a5353290 | ||
|
|
0adb22b4bf | ||
|
|
62d25db457 | ||
|
|
945973f172 | ||
|
|
e814c42d56 | ||
|
|
37b2df6b29 | ||
|
|
b04eb1eb3f | ||
|
|
6d26d239e2 | ||
|
|
5ecce58def | ||
|
|
d22b726edc | ||
|
|
177e9755a3 | ||
|
|
071a3a1e0e | ||
|
|
491f45e017 | ||
|
|
2ffc7c2617 | ||
|
|
b6674ba5b2 | ||
|
|
11632cc2d6 | ||
|
|
823612498f | ||
|
|
e6da3b0fbf | ||
|
|
333bfc4989 | ||
|
|
697dcc60f7 | ||
|
|
72627fbdcb | ||
|
|
33fc378336 | ||
|
|
6b926591ff | ||
|
|
00fcd37e13 | ||
|
|
849081479f | ||
|
|
4756aa9838 | ||
|
|
b9532d15e2 | ||
|
|
595249aa6f | ||
|
|
dc0140e960 | ||
|
|
824cd374f2 | ||
|
|
9f51581741 | ||
|
|
637692dc11 | ||
|
|
1f4f41a349 | ||
|
|
40f47bcc24 | ||
|
|
cbbafd2885 | ||
|
|
65a40f9e94 | ||
|
|
ab33efbe28 | ||
|
|
aebd77a7da | ||
|
|
118c69a9fc | ||
|
|
89c42d1c09 | ||
|
|
5eaf9cc61c | ||
|
|
55aa505a9b | ||
|
|
f39ab11c61 | ||
|
|
595dc4faa1 | ||
|
|
0bf4d0c42f | ||
|
|
fc1972c2e1 | ||
|
|
ce88f0c8f4 | ||
|
|
4a7ffe1866 | ||
|
|
417a3d06bc | ||
|
|
21867a5b3e | ||
|
|
d09c4ce425 | ||
|
|
c85f1986ff | ||
|
|
c64344f6af | ||
|
|
e1dc29cddd | ||
|
|
986882538f | ||
|
|
f0ace3c4c1 | ||
|
|
3dd76ee05e | ||
|
|
4a2a08ed58 | ||
|
|
3575b45dd0 | ||
|
|
a9555abd54 | ||
|
|
f5d5efabae | ||
|
|
6d2f6b4063 | ||
|
|
9dd494e704 | ||
|
|
5d045a6d72 | ||
|
|
3e9678b8d3 | ||
|
|
f8ac2b58fe | ||
|
|
18a2462788 | ||
|
|
74343a8647 | ||
|
|
f218e6f447 | ||
|
|
3554093e2a | ||
|
|
76dde75bc4 | ||
|
|
b542984f05 | ||
|
|
3bd2924442 | ||
|
|
759668b05f | ||
|
|
c57a61bb09 | ||
|
|
666bf35e3c | ||
|
|
577097732b | ||
|
|
842e206867 | ||
|
|
7d468cf38a | ||
|
|
c6887fd933 | ||
|
|
3e9ea05906 | ||
|
|
ccf7b1741d | ||
|
|
e1d561b3e0 | ||
|
|
a2f6ab2beb | ||
|
|
99c474f9f1 | ||
|
|
957a13c7f3 | ||
|
|
0cd9735aac | ||
|
|
4ec66247fe | ||
|
|
1572393ca7 | ||
|
|
2da1667876 | ||
|
|
8ba2e895f8 | ||
|
|
91c14a636f | ||
|
|
5c82cdf216 | ||
|
|
b6fd01f620 | ||
|
|
db6777fce3 | ||
|
|
22373a2364 | ||
|
|
b056cfb8d1 | ||
|
|
7954f7a0d7 | ||
|
|
c3abc74533 | ||
|
|
2bafad9142 | ||
|
|
f57666224a | ||
|
|
59c0cab371 | ||
|
|
1eea9225ce | ||
|
|
91a63bf3b4 | ||
|
|
7d316dd101 | ||
|
|
834c55e981 | ||
|
|
e1fd266698 | ||
|
|
5eeb149b83 | ||
|
|
20c6ec25be | ||
|
|
c083d9ca73 | ||
|
|
58cf92a10a | ||
|
|
5d9ac28164 | ||
|
|
3718b4bac9 | ||
|
|
9ac65652e1 | ||
|
|
70980caa09 | ||
|
|
907c2f5cdc | ||
|
|
73c8564b29 | ||
|
|
0aaa893a1f | ||
|
|
8b63b4dc90 | ||
|
|
53740c42ec | ||
|
|
ba204b916a | ||
|
|
83a976e1a0 | ||
|
|
71def412ef | ||
|
|
9b6d8dea9a | ||
|
|
9ac56f6b39 | ||
|
|
03c292f15b | ||
|
|
7bcea82cff | ||
|
|
706a78f8de | ||
|
|
afc70e8fda | ||
|
|
56312e0607 | ||
|
|
7faf3319ef | ||
|
|
bd2d8d6236 | ||
|
|
7e5d4b0f62 | ||
|
|
b318187d3d | ||
|
|
9e503a4c4f | ||
|
|
f3535d79b5 | ||
|
|
cbf0515e91 | ||
|
|
7906983a36 | ||
|
|
9ae2dd20da | ||
|
|
932d83fbd8 | ||
|
|
433cb28d16 | ||
|
|
d367c94d2a | ||
|
|
017c01548b | ||
|
|
a17811938e | ||
|
|
04e312a989 | ||
|
|
bce4b79920 | ||
|
|
12ad4d5fbf | ||
|
|
7d8d443521 | ||
|
|
4b5e7069b5 | ||
|
|
0bb9609878 | ||
|
|
c2a97eef7a | ||
|
|
708edf16c7 | ||
|
|
41509ece31 | ||
|
|
72bb9205da | ||
|
|
f170136f2b | ||
|
|
2d12485adb | ||
|
|
ec4dcc09a0 | ||
|
|
7540185b82 | ||
|
|
4dad78108e | ||
|
|
57241b0e05 | ||
|
|
284fe91da2 | ||
|
|
e533b373de | ||
|
|
c707b7e848 | ||
|
|
869e46fceb | ||
|
|
ae31696b9b | ||
|
|
cb107d03b5 | ||
|
|
618f0d3775 | ||
|
|
1c9548a219 | ||
|
|
9b07d2e326 | ||
|
|
0c702e4b77 | ||
|
|
eb4ff5e796 | ||
|
|
1d346c35b4 | ||
|
|
3c251ca1e5 | ||
|
|
b727fd3885 | ||
|
|
195b31ef94 | ||
|
|
3fa0d7ea18 | ||
|
|
4a856698ab | ||
|
|
471a2d41dd | ||
|
|
3185c957a5 | ||
|
|
6c585c7161 | ||
|
|
32102d9544 | ||
|
|
a3bdc8b71b | ||
|
|
33b07738cb | ||
|
|
65e47216e7 | ||
|
|
56f1d1dc3d | ||
|
|
bcfa89e7f8 | ||
|
|
c109e935d7 | ||
|
|
755c177b7f | ||
|
|
8f1d4f2f34 | ||
|
|
c7664c2274 | ||
|
|
97a725524a | ||
|
|
9c6a21b65f | ||
|
|
95549958ab | ||
|
|
96af7f4727 | ||
|
|
9a9ca36692 | ||
|
|
2b6fdb456b | ||
|
|
11fc36fbaf | ||
|
|
20e44c3148 | ||
|
|
f17ce97e53 | ||
|
|
74ab2267fd | ||
|
|
c2403d7e75 | ||
|
|
5334aefa0d | ||
|
|
df8d4ba1b5 | ||
|
|
094007692a | ||
|
|
61cbdbac9c | ||
|
|
a3bf19e5e9 | ||
|
|
3495bf81d0 | ||
|
|
6f75f8cfe9 | ||
|
|
33efa05254 | ||
|
|
589b1fe6c5 | ||
|
|
491e5f2dfc | ||
|
|
b1f0b9cf81 | ||
|
|
47dae8af00 | ||
|
|
3876cd84b4 | ||
|
|
c35dc17cfb | ||
|
|
e23366c1c7 | ||
|
|
cd87d48120 | ||
|
|
47f42718fc | ||
|
|
b8d5fccea1 | ||
|
|
43916bdc5e | ||
|
|
df85792b13 | ||
|
|
687628a6c3 | ||
|
|
97b11505b3 | ||
|
|
7ef93611e4 | ||
|
|
b4bcdc8a92 | ||
|
|
5c47b168d1 | ||
|
|
e22343e9da | ||
|
|
f929591bd6 | ||
|
|
20ce5dab79 | ||
|
|
392fddc9c6 | ||
|
|
9d6508546d | ||
|
|
16f297b992 | ||
|
|
47a4b23351 | ||
|
|
9435305ee7 | ||
|
|
22cb856d7a | ||
|
|
e1b208b9ba | ||
|
|
da493216d5 | ||
|
|
3779940907 | ||
|
|
cc5023c042 | ||
|
|
1af14dbc19 | ||
|
|
c09616db65 | ||
|
|
16b732e3d8 | ||
|
|
4cf04b9e2b | ||
|
|
a6c7f1f838 | ||
|
|
4f6ddfaab8 | ||
|
|
6299aebe61 | ||
|
|
52d759a680 | ||
|
|
cfb18f4cd3 | ||
|
|
71d4fc0d25 | ||
|
|
1164db81ca | ||
|
|
7f97ee0bbd | ||
|
|
a8d4a6b2fd | ||
|
|
1c5c2dc676 | ||
|
|
faed7b300f | ||
|
|
f69ec27dc4 | ||
|
|
926b3ca967 | ||
|
|
a5e20414db | ||
|
|
78dd986279 | ||
|
|
150d84202d | ||
|
|
2beb1050cc | ||
|
|
8da7e542e5 | ||
|
|
e9c636cf42 | ||
|
|
2512291d86 | ||
|
|
bc45e3fb99 | ||
|
|
89dcee98bd | ||
|
|
2c24227ea1 | ||
|
|
9cca4f1506 | ||
|
|
36e7022307 | ||
|
|
f67b8cfcec | ||
|
|
c74ad7c588 | ||
|
|
723f0ac68d | ||
|
|
badb91ba78 | ||
|
|
35860c801a | ||
|
|
433049d905 | ||
|
|
70884b069e | ||
|
|
a6d995d94d | ||
|
|
8b677f273d | ||
|
|
80a049b36d | ||
|
|
c4f7936057 | ||
|
|
8da1f68409 | ||
|
|
ad34acf46b | ||
|
|
bd72b10add | ||
|
|
7ad72d7615 | ||
|
|
b96b4b596c | ||
|
|
74606d0545 | ||
|
|
dcc468f7f2 | ||
|
|
ce669d0591 | ||
|
|
18f1298eb7 | ||
|
|
cd011f88f6 | ||
|
|
fda33828bd | ||
|
|
9cd1d30dec | ||
|
|
63fb683ca6 | ||
|
|
f974eb031a | ||
|
|
e0487c132b | ||
|
|
c2ceaa1721 | ||
|
|
567590f914 | ||
|
|
b933b7dc3f | ||
|
|
60daf1b4ea | ||
|
|
84a9a2fbe3 | ||
|
|
18b6f49b0c | ||
|
|
94dacdc288 | ||
|
|
9d8a4f0597 | ||
|
|
30128036d3 | ||
|
|
27213aebbd | ||
|
|
58ed572ba7 | ||
|
|
40c5d2806d | ||
|
|
4a6715f035 | ||
|
|
cc382ca70f | ||
|
|
b4b611e55a | ||
|
|
36ebe82fe0 | ||
|
|
628ef5ef74 | ||
|
|
708fc8ad43 | ||
|
|
b7f0f0a8aa | ||
|
|
143761d99b | ||
|
|
4f32220ea6 | ||
|
|
189e5b0551 | ||
|
|
037f143f2d | ||
|
|
122360c1c9 | ||
|
|
97766531df | ||
|
|
19302c4975 | ||
|
|
b813657131 | ||
|
|
13f9433284 | ||
|
|
560e40c1e5 | ||
|
|
8804c324a2 | ||
|
|
023eb7faa7 | ||
|
|
2b167dcce8 | ||
|
|
1d515c1de3 | ||
|
|
f87007cc61 | ||
|
|
0a022ab381 | ||
|
|
783764d0b4 | ||
|
|
227c83fbdf | ||
|
|
8c24637605 | ||
|
|
33823d682c | ||
|
|
e58b6f2cff | ||
|
|
c202dbda75 | ||
|
|
3753195d75 | ||
|
|
cdbcd45689 | ||
|
|
4dbe23da78 | ||
|
|
358526ed78 | ||
|
|
66a7f9b2c6 | ||
|
|
777ffdea9d | ||
|
|
65a12dcfa2 | ||
|
|
b7b29261db | ||
|
|
2b29fa67b5 | ||
|
|
5f5db225c9 | ||
|
|
71a7b2be4a | ||
|
|
d3c34ed854 | ||
|
|
4b1a939668 | ||
|
|
7971a0cbc9 | ||
|
|
261acf1dfa | ||
|
|
6e92030388 | ||
|
|
ab40f585ed | ||
|
|
8d805df2b2 | ||
|
|
0977726aa3 | ||
|
|
470308d391 | ||
|
|
8a6d3f49e3 | ||
|
|
385e7de3da | ||
|
|
54ccdaa119 | ||
|
|
22d1a77116 | ||
|
|
1dfd397901 | ||
|
|
76ea58a705 | ||
|
|
8bf7c52923 | ||
|
|
0d740f4f33 | ||
|
|
8f49b0667a | ||
|
|
f002fb33a3 | ||
|
|
e38b2f4ac7 | ||
|
|
81bd99cb19 | ||
|
|
f790da9067 | ||
|
|
82c18786de | ||
|
|
df10691d81 | ||
|
|
d2be343994 | ||
|
|
16070f1a77 | ||
|
|
c4df4ceb28 | ||
|
|
eff4dbe62e | ||
|
|
1485491816 | ||
|
|
99f3890c2f | ||
|
|
6aa31cb4ad | ||
|
|
b8c1ead93f | ||
|
|
d4fd41f558 | ||
|
|
23097a29af | ||
|
|
cbf8924292 | ||
|
|
5fe1f0c874 | ||
|
|
f4e7733873 | ||
|
|
3c38a5f666 | ||
|
|
f5790a9017 | ||
|
|
b1ab45ebdf | ||
|
|
3be28f5986 | ||
|
|
72fd592e61 | ||
|
|
6f0edd6767 | ||
|
|
b0edd803fc | ||
|
|
c6c6cb4463 | ||
|
|
fd783d4551 | ||
|
|
649034d269 | ||
|
|
cbeadb1e2b | ||
|
|
cba09a9cbf | ||
|
|
963c0def7e | ||
|
|
3f7e0b6b9a | ||
|
|
6f15c4a81a | ||
|
|
423cda56f0 | ||
|
|
26704e1b29 | ||
|
|
17915dc98e | ||
|
|
840ee7d5be | ||
|
|
6bf1f000d6 | ||
|
|
725f977d04 | ||
|
|
54be8d0be7 | ||
|
|
5a1b192fcd | ||
|
|
62d6b8c6cd | ||
|
|
3c50aed4ed | ||
|
|
7ac09a4f4d | ||
|
|
a4e722bf57 | ||
|
|
642e3d1b6a | ||
|
|
3418ef2cf3 | ||
|
|
69909796ec | ||
|
|
72233bbbec | ||
|
|
a946fb96c8 | ||
|
|
84e4dc1e0b | ||
|
|
5c38598d2d | ||
|
|
ee3bf86a36 | ||
|
|
e3505409a3 | ||
|
|
5a500b1f16 | ||
|
|
54a3d64743 | ||
|
|
140beebcb5 | ||
|
|
e1fbf7cd5f | ||
|
|
b384f3d324 | ||
|
|
82685dc144 | ||
|
|
46ff6ae276 | ||
|
|
90eb6858cb | ||
|
|
bfa3607c29 | ||
|
|
186c6aca5f | ||
|
|
b840587775 | ||
|
|
885d870134 | ||
|
|
91b65a8b79 | ||
|
|
db488f56f9 |
@@ -0,0 +1,3 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: [StevenBlack, funilrys, XhmikosR]
|
||||
@@ -0,0 +1,17 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "pip"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: weekly
|
||||
labels:
|
||||
- dependencies
|
||||
- python
|
||||
versioning-strategy: lockfile-only
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: monthly
|
||||
labels:
|
||||
- dependencies
|
||||
- github_actions
|
||||
+23
-26
@@ -1,21 +1,27 @@
|
||||
name: CI
|
||||
on: [push, pull_request]
|
||||
env:
|
||||
CI: true
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Python ${{ matrix.python }} on ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python:
|
||||
- 3.5
|
||||
- 3.6
|
||||
- 3.7
|
||||
- 3.8
|
||||
- 3.9
|
||||
- '3.6'
|
||||
- '3.7'
|
||||
- '3.8'
|
||||
- '3.9'
|
||||
- '3.10'
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- macos-latest
|
||||
@@ -23,30 +29,18 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v1
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: ${{ matrix.python }}
|
||||
architecture: "x64"
|
||||
cache: pip
|
||||
|
||||
- run: python --version
|
||||
- run: pip --version
|
||||
|
||||
- name: Get pip cache directory
|
||||
id: pip-cache
|
||||
- name: Print versions
|
||||
run: |
|
||||
echo "::set-output name=dir::$(pip cache dir)"
|
||||
|
||||
- name: Cache dependencies
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ${{ steps.pip-cache.outputs.dir }}
|
||||
key: ${{ runner.os }}-python-v${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-python-v${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}
|
||||
${{ runner.os }}-python-v${{ matrix.python }}-
|
||||
python --version
|
||||
pip --version
|
||||
|
||||
- name: Install Python dependencies
|
||||
run: pip install -r requirements.txt
|
||||
@@ -54,5 +48,8 @@ jobs:
|
||||
- name: Run lint
|
||||
run: flake8
|
||||
|
||||
- name: Run makeHosts.py
|
||||
run: python makeHosts.py
|
||||
|
||||
- name: Run tests
|
||||
run: python testUpdateHostsFile.py
|
||||
|
||||
@@ -1,62 +1,36 @@
|
||||
# For most projects, this workflow file will not need changing; you simply need
|
||||
# to commit it to your repository.
|
||||
#
|
||||
# You may wish to alter this file to override the set of languages analyzed,
|
||||
# or to provide custom queries or build logic.
|
||||
|
||||
name: "CodeQL"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
branches:
|
||||
- master
|
||||
- "!dependabot/**"
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: [master]
|
||||
branches:
|
||||
- master
|
||||
- "!dependabot/**"
|
||||
schedule:
|
||||
- cron: "40 15 * * 4"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
language: ['python']
|
||||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
||||
# Learn more...
|
||||
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v1
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
# By default, queries listed here will override any specified in a config file.
|
||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v1
|
||||
with:
|
||||
languages: "python"
|
||||
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v1
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
|
||||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||||
# and modify them (or add more) to build your code if your project
|
||||
# uses a compiled language
|
||||
|
||||
#- run: |
|
||||
# make bootstrap
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v1
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v1
|
||||
|
||||
+2
-2
@@ -3,8 +3,8 @@
|
||||
myhosts
|
||||
blacklist
|
||||
whitelist
|
||||
readmeData.json
|
||||
hosts-*
|
||||
/web.config
|
||||
/__pycache__
|
||||
/node_modules
|
||||
/node_modules/
|
||||
/package-lock.json
|
||||
|
||||
+100133
-36937
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,7 @@
|
||||
----
|
||||
**Take Note!**
|
||||
|
||||
* This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
* 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.
|
||||
|
||||
----
|
||||
|
||||

|
||||
@@ -11,7 +10,7 @@
|
||||
[](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?workflow=CI)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -22,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **December 31 2020**.
|
||||
* Here's the [raw hosts file with fakenews, gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) containing 87,795 entries.
|
||||
* Last updated: **April 30 2022**.
|
||||
* 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 150,437 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
[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) | 58,459 | [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) | 60,654 | [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) | 60,783 | [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) | 80,518 | [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) | 61,218 | [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) | 62,978 | [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) | 82,713 | [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) | 63,413 | [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) | 82,842 | [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) | 63,542 | [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) | 83,276 | [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) | 85,037 | [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) | 65,737 | [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) | 85,471 | [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) | 85,600 | [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) | 87,795 | [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) | 99,938 | [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) | 102,133 | [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) | 102,476 | [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) | 142,890 | [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) | 102,753 | [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) | 104,671 | [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) | 145,084 | [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) | 104,948 | [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) | 145,428 | [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) | 105,291 | [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) | 145,704 | [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) | 147,623 | [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) | 107,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 147,898 | [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) | 148,242 | [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) | 150,437 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -67,24 +65,27 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:cosntacptamem@abuse.ch)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
brijrajparmar27 - pornography | hosts files for DNS based content blocking |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | occasional | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
@@ -92,7 +93,6 @@ Sinfonietta's social media blocking hosts file | A collection of category-specif
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
@@ -113,19 +113,19 @@ The container will contain Python 3 and all its dependency requirements, and a c
|
||||
|
||||
Build the Docker container like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
### Option 2: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -135,7 +135,7 @@ 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).
|
||||
|
||||
### Common steps regardless of your development environment.
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
@@ -152,7 +152,7 @@ will use the `hosts` file that's already there.
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
@@ -213,24 +213,6 @@ in hosts format to the generated hosts file.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
@@ -289,7 +271,6 @@ Then, submit a pull request.
|
||||
|
||||
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
|
||||
@@ -328,22 +309,69 @@ interfere with a web server that may be running on the local PC.
|
||||
|
||||
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.
|
||||
* **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.)
|
||||
@@ -362,26 +390,27 @@ 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"
|
||||
* **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.cmd)
|
||||
for more details.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
|
||||
manually flush your DNS cache once the new hosts file is in place.
|
||||
|
||||
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
:-----------------------------------------------------------------------------------------
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
@@ -395,36 +424,30 @@ ipconfig /flushdns
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
**Debian/Ubuntu** `sudo service network-manager restart`
|
||||
* **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`
|
||||
|
||||
**Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
|
||||
|
||||
**Linux with systemd**: `sudo systemctl restart network.service`
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
|
||||
|
||||
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
**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
|
||||
```
|
||||
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
* **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
|
||||
|
||||
@@ -446,11 +469,8 @@ This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/
|
||||
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
|
||||
@@ -464,30 +484,24 @@ 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. This is a very interesting project to set up yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-poe-edition-the-network-wide-ad-blocker).
|
||||
|
||||
* [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 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.
|
||||
|
||||
* [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.
|
||||
* [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.
|
||||
|
||||
## Contribute!
|
||||
## 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.
|
||||
|
||||
|
||||
+100036
-36899
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,7 @@
|
||||
----
|
||||
**Take Note!**
|
||||
|
||||
* This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
* 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.
|
||||
|
||||
----
|
||||
|
||||

|
||||
@@ -11,7 +10,7 @@
|
||||
[](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?workflow=CI)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -22,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **December 31 2020**.
|
||||
* Here's the [raw hosts file with fakenews, gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) containing 85,037 entries.
|
||||
* Last updated: **April 30 2022**.
|
||||
* Here's the [raw hosts file with fakenews, gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) containing 147,623 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
[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) | 58,459 | [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) | 60,654 | [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) | 60,783 | [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) | 80,518 | [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) | 61,218 | [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) | 62,978 | [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) | 82,713 | [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) | 63,413 | [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) | 82,842 | [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) | 63,542 | [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) | 83,276 | [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) | 85,037 | [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) | 65,737 | [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) | 85,471 | [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) | 85,600 | [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) | 87,795 | [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) | 99,938 | [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) | 102,133 | [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) | 102,476 | [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) | 142,890 | [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) | 102,753 | [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) | 104,671 | [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) | 145,084 | [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) | 104,948 | [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) | 145,428 | [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) | 105,291 | [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) | 145,704 | [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) | 147,623 | [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) | 107,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 147,898 | [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) | 148,242 | [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) | 150,437 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -67,30 +65,32 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:cosntacptamem@abuse.ch)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
brijrajparmar27 - pornography | hosts files for DNS based content blocking |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | occasional | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
@@ -111,19 +111,19 @@ The container will contain Python 3 and all its dependency requirements, and a c
|
||||
|
||||
Build the Docker container like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
### Option 2: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -133,7 +133,7 @@ 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).
|
||||
|
||||
### Common steps regardless of your development environment.
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
@@ -150,7 +150,7 @@ will use the `hosts` file that's already there.
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
@@ -211,24 +211,6 @@ in hosts format to the generated hosts file.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
@@ -287,7 +269,6 @@ Then, submit a pull request.
|
||||
|
||||
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
|
||||
@@ -326,22 +307,69 @@ interfere with a web server that may be running on the local PC.
|
||||
|
||||
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.
|
||||
* **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.)
|
||||
@@ -360,26 +388,27 @@ 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"
|
||||
* **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.cmd)
|
||||
for more details.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
|
||||
manually flush your DNS cache once the new hosts file is in place.
|
||||
|
||||
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
:-----------------------------------------------------------------------------------------
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
@@ -393,36 +422,30 @@ ipconfig /flushdns
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
**Debian/Ubuntu** `sudo service network-manager restart`
|
||||
* **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`
|
||||
|
||||
**Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
|
||||
|
||||
**Linux with systemd**: `sudo systemctl restart network.service`
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
|
||||
|
||||
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
**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
|
||||
```
|
||||
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
* **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
|
||||
|
||||
@@ -444,11 +467,8 @@ This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/
|
||||
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
|
||||
@@ -462,30 +482,24 @@ 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. This is a very interesting project to set up yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-poe-edition-the-network-wide-ad-blocker).
|
||||
|
||||
* [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 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.
|
||||
|
||||
* [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.
|
||||
* [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.
|
||||
|
||||
## Contribute!
|
||||
## 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.
|
||||
|
||||
|
||||
+66586
-24278
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,7 @@
|
||||
----
|
||||
**Take Note!**
|
||||
|
||||
* This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
* 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.
|
||||
|
||||
----
|
||||
|
||||

|
||||
@@ -11,7 +10,7 @@
|
||||
[](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?workflow=CI)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -22,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **December 31 2020**.
|
||||
* Here's the [raw hosts file with fakenews, gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) containing 65,737 entries.
|
||||
* Last updated: **April 30 2022**.
|
||||
* Here's the [raw hosts file with fakenews, gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) containing 107,486 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
[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) | 58,459 | [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) | 60,654 | [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) | 60,783 | [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) | 80,518 | [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) | 61,218 | [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) | 62,978 | [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) | 82,713 | [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) | 63,413 | [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) | 82,842 | [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) | 63,542 | [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) | 83,276 | [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) | 85,037 | [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) | 65,737 | [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) | 85,471 | [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) | 85,600 | [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) | 87,795 | [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) | 99,938 | [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) | 102,133 | [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) | 102,476 | [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) | 142,890 | [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) | 102,753 | [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) | 104,671 | [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) | 145,084 | [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) | 104,948 | [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) | 145,428 | [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) | 105,291 | [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) | 145,704 | [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) | 147,623 | [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) | 107,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 147,898 | [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) | 148,242 | [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) | 150,437 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -67,20 +65,22 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:cosntacptamem@abuse.ch)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
@@ -88,7 +88,6 @@ Sinfonietta's social media blocking hosts file | A collection of category-specif
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
@@ -109,19 +108,19 @@ The container will contain Python 3 and all its dependency requirements, and a c
|
||||
|
||||
Build the Docker container like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
### Option 2: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -131,7 +130,7 @@ 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).
|
||||
|
||||
### Common steps regardless of your development environment.
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
@@ -148,7 +147,7 @@ will use the `hosts` file that's already there.
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
@@ -209,24 +208,6 @@ in hosts format to the generated hosts file.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
@@ -285,7 +266,6 @@ Then, submit a pull request.
|
||||
|
||||
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
|
||||
@@ -324,22 +304,69 @@ interfere with a web server that may be running on the local PC.
|
||||
|
||||
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.
|
||||
* **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.)
|
||||
@@ -358,26 +385,27 @@ 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"
|
||||
* **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.cmd)
|
||||
for more details.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
|
||||
manually flush your DNS cache once the new hosts file is in place.
|
||||
|
||||
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
:-----------------------------------------------------------------------------------------
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
@@ -391,36 +419,30 @@ ipconfig /flushdns
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
**Debian/Ubuntu** `sudo service network-manager restart`
|
||||
* **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`
|
||||
|
||||
**Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
|
||||
|
||||
**Linux with systemd**: `sudo systemctl restart network.service`
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
|
||||
|
||||
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
**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
|
||||
```
|
||||
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
* **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
|
||||
|
||||
@@ -442,11 +464,8 @@ This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/
|
||||
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
|
||||
@@ -460,30 +479,24 @@ 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. This is a very interesting project to set up yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-poe-edition-the-network-wide-ad-blocker).
|
||||
|
||||
* [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 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.
|
||||
|
||||
* [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.
|
||||
* [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.
|
||||
|
||||
## Contribute!
|
||||
## 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.
|
||||
|
||||
|
||||
+66489
-24240
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,7 @@
|
||||
----
|
||||
**Take Note!**
|
||||
|
||||
* This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
* 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.
|
||||
|
||||
----
|
||||
|
||||

|
||||
@@ -11,7 +10,7 @@
|
||||
[](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?workflow=CI)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -22,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **December 31 2020**.
|
||||
* Here's the [raw hosts file with fakenews, gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) containing 62,978 entries.
|
||||
* Last updated: **April 30 2022**.
|
||||
* Here's the [raw hosts file with fakenews, gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) containing 104,671 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
[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) | 58,459 | [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) | 60,654 | [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) | 60,783 | [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) | 80,518 | [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) | 61,218 | [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) | 62,978 | [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) | 82,713 | [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) | 63,413 | [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) | 82,842 | [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) | 63,542 | [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) | 83,276 | [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) | 85,037 | [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) | 65,737 | [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) | 85,471 | [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) | 85,600 | [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) | 87,795 | [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) | 99,938 | [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) | 102,133 | [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) | 102,476 | [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) | 142,890 | [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) | 102,753 | [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) | 104,671 | [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) | 145,084 | [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) | 104,948 | [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) | 145,428 | [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) | 105,291 | [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) | 145,704 | [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) | 147,623 | [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) | 107,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 147,898 | [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) | 148,242 | [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) | 150,437 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -67,26 +65,27 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:cosntacptamem@abuse.ch)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
@@ -107,19 +106,19 @@ The container will contain Python 3 and all its dependency requirements, and a c
|
||||
|
||||
Build the Docker container like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
### Option 2: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -129,7 +128,7 @@ 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).
|
||||
|
||||
### Common steps regardless of your development environment.
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
@@ -146,7 +145,7 @@ will use the `hosts` file that's already there.
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
@@ -207,24 +206,6 @@ in hosts format to the generated hosts file.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
@@ -283,7 +264,6 @@ Then, submit a pull request.
|
||||
|
||||
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
|
||||
@@ -322,22 +302,69 @@ interfere with a web server that may be running on the local PC.
|
||||
|
||||
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.
|
||||
* **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.)
|
||||
@@ -356,26 +383,27 @@ 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"
|
||||
* **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.cmd)
|
||||
for more details.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
|
||||
manually flush your DNS cache once the new hosts file is in place.
|
||||
|
||||
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
:-----------------------------------------------------------------------------------------
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
@@ -389,36 +417,30 @@ ipconfig /flushdns
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
**Debian/Ubuntu** `sudo service network-manager restart`
|
||||
* **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`
|
||||
|
||||
**Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
|
||||
|
||||
**Linux with systemd**: `sudo systemctl restart network.service`
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
|
||||
|
||||
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
**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
|
||||
```
|
||||
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
* **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
|
||||
|
||||
@@ -440,11 +462,8 @@ This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/
|
||||
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
|
||||
@@ -458,30 +477,24 @@ 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. This is a very interesting project to set up yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-poe-edition-the-network-wide-ad-blocker).
|
||||
|
||||
* [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 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.
|
||||
|
||||
* [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.
|
||||
* [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.
|
||||
|
||||
## Contribute!
|
||||
## 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.
|
||||
|
||||
|
||||
+99005
-36017
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,7 @@
|
||||
----
|
||||
**Take Note!**
|
||||
|
||||
* This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
* 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.
|
||||
|
||||
----
|
||||
|
||||

|
||||
@@ -11,7 +10,7 @@
|
||||
[](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?workflow=CI)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -22,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **December 31 2020**.
|
||||
* Here's the [raw hosts file with fakenews, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) containing 85,471 entries.
|
||||
* Last updated: **April 30 2022**.
|
||||
* Here's the [raw hosts file with fakenews, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) containing 147,898 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
[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) | 58,459 | [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) | 60,654 | [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) | 60,783 | [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) | 80,518 | [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) | 61,218 | [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) | 62,978 | [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) | 82,713 | [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) | 63,413 | [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) | 82,842 | [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) | 63,542 | [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) | 83,276 | [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) | 85,037 | [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) | 65,737 | [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) | 85,471 | [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) | 85,600 | [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) | 87,795 | [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) | 99,938 | [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) | 102,133 | [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) | 102,476 | [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) | 142,890 | [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) | 102,753 | [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) | 104,671 | [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) | 145,084 | [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) | 104,948 | [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) | 145,428 | [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) | 105,291 | [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) | 145,704 | [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) | 147,623 | [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) | 107,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 147,898 | [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) | 148,242 | [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) | 150,437 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -67,23 +65,26 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:cosntacptamem@abuse.ch)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
brijrajparmar27 - pornography | hosts files for DNS based content blocking |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | occasional | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
@@ -91,7 +92,6 @@ Sinfonietta's social media blocking hosts file | A collection of category-specif
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
@@ -112,19 +112,19 @@ The container will contain Python 3 and all its dependency requirements, and a c
|
||||
|
||||
Build the Docker container like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
### Option 2: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -134,7 +134,7 @@ 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).
|
||||
|
||||
### Common steps regardless of your development environment.
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
@@ -151,7 +151,7 @@ will use the `hosts` file that's already there.
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
@@ -212,24 +212,6 @@ in hosts format to the generated hosts file.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
@@ -288,7 +270,6 @@ Then, submit a pull request.
|
||||
|
||||
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
|
||||
@@ -327,22 +308,69 @@ interfere with a web server that may be running on the local PC.
|
||||
|
||||
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.
|
||||
* **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.)
|
||||
@@ -361,26 +389,27 @@ 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"
|
||||
* **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.cmd)
|
||||
for more details.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
|
||||
manually flush your DNS cache once the new hosts file is in place.
|
||||
|
||||
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
:-----------------------------------------------------------------------------------------
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
@@ -394,36 +423,30 @@ ipconfig /flushdns
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
**Debian/Ubuntu** `sudo service network-manager restart`
|
||||
* **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`
|
||||
|
||||
**Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
|
||||
|
||||
**Linux with systemd**: `sudo systemctl restart network.service`
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
|
||||
|
||||
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
**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
|
||||
```
|
||||
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
* **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
|
||||
|
||||
@@ -445,11 +468,8 @@ This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/
|
||||
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
|
||||
@@ -463,30 +483,24 @@ 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. This is a very interesting project to set up yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-poe-edition-the-network-wide-ad-blocker).
|
||||
|
||||
* [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 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.
|
||||
|
||||
* [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.
|
||||
* [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.
|
||||
|
||||
## Contribute!
|
||||
## 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.
|
||||
|
||||
|
||||
+98908
-35979
File diff suppressed because it is too large
Load Diff
+129
-115
@@ -1,8 +1,7 @@
|
||||
----
|
||||
**Take Note!**
|
||||
|
||||
* This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
* 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.
|
||||
|
||||
----
|
||||
|
||||

|
||||
@@ -11,7 +10,7 @@
|
||||
[](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?workflow=CI)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -22,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **December 31 2020**.
|
||||
* Here's the [raw hosts file with fakenews, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) containing 82,713 entries.
|
||||
* Last updated: **April 30 2022**.
|
||||
* Here's the [raw hosts file with fakenews, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) containing 145,084 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
[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) | 58,459 | [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) | 60,654 | [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) | 60,783 | [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) | 80,518 | [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) | 61,218 | [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) | 62,978 | [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) | 82,713 | [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) | 63,413 | [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) | 82,842 | [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) | 63,542 | [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) | 83,276 | [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) | 85,037 | [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) | 65,737 | [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) | 85,471 | [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) | 85,600 | [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) | 87,795 | [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) | 99,938 | [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) | 102,133 | [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) | 102,476 | [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) | 142,890 | [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) | 102,753 | [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) | 104,671 | [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) | 145,084 | [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) | 104,948 | [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) | 145,428 | [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) | 105,291 | [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) | 145,704 | [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) | 147,623 | [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) | 107,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 147,898 | [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) | 148,242 | [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) | 150,437 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -67,29 +65,31 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:cosntacptamem@abuse.ch)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
brijrajparmar27 - pornography | hosts files for DNS based content blocking |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | occasional | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
@@ -110,19 +110,19 @@ The container will contain Python 3 and all its dependency requirements, and a c
|
||||
|
||||
Build the Docker container like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
### Option 2: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -132,7 +132,7 @@ 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).
|
||||
|
||||
### Common steps regardless of your development environment.
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
@@ -149,7 +149,7 @@ will use the `hosts` file that's already there.
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
@@ -210,24 +210,6 @@ in hosts format to the generated hosts file.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
@@ -286,7 +268,6 @@ Then, submit a pull request.
|
||||
|
||||
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
|
||||
@@ -325,22 +306,69 @@ interfere with a web server that may be running on the local PC.
|
||||
|
||||
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.
|
||||
* **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.)
|
||||
@@ -359,26 +387,27 @@ 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"
|
||||
* **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.cmd)
|
||||
for more details.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
|
||||
manually flush your DNS cache once the new hosts file is in place.
|
||||
|
||||
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
:-----------------------------------------------------------------------------------------
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
@@ -392,36 +421,30 @@ ipconfig /flushdns
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
**Debian/Ubuntu** `sudo service network-manager restart`
|
||||
* **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`
|
||||
|
||||
**Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
|
||||
|
||||
**Linux with systemd**: `sudo systemctl restart network.service`
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
|
||||
|
||||
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
**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
|
||||
```
|
||||
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
* **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
|
||||
|
||||
@@ -443,11 +466,8 @@ This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/
|
||||
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
|
||||
@@ -461,30 +481,24 @@ 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. This is a very interesting project to set up yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-poe-edition-the-network-wide-ad-blocker).
|
||||
|
||||
* [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 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.
|
||||
|
||||
* [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.
|
||||
* [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.
|
||||
|
||||
## Contribute!
|
||||
## 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.
|
||||
|
||||
|
||||
+65458
-23358
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,7 @@
|
||||
----
|
||||
**Take Note!**
|
||||
|
||||
* This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
* 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.
|
||||
|
||||
----
|
||||
|
||||

|
||||
@@ -11,7 +10,7 @@
|
||||
[](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?workflow=CI)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -22,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **December 31 2020**.
|
||||
* Here's the [raw hosts file with fakenews, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) containing 63,413 entries.
|
||||
* Last updated: **April 30 2022**.
|
||||
* Here's the [raw hosts file with fakenews, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) containing 104,948 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
[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) | 58,459 | [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) | 60,654 | [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) | 60,783 | [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) | 80,518 | [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) | 61,218 | [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) | 62,978 | [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) | 82,713 | [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) | 63,413 | [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) | 82,842 | [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) | 63,542 | [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) | 83,276 | [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) | 85,037 | [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) | 65,737 | [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) | 85,471 | [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) | 85,600 | [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) | 87,795 | [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) | 99,938 | [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) | 102,133 | [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) | 102,476 | [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) | 142,890 | [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) | 102,753 | [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) | 104,671 | [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) | 145,084 | [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) | 104,948 | [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) | 145,428 | [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) | 105,291 | [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) | 145,704 | [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) | 147,623 | [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) | 107,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 147,898 | [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) | 148,242 | [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) | 150,437 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -67,27 +65,28 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:cosntacptamem@abuse.ch)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
@@ -108,19 +107,19 @@ The container will contain Python 3 and all its dependency requirements, and a c
|
||||
|
||||
Build the Docker container like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
### Option 2: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -130,7 +129,7 @@ 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).
|
||||
|
||||
### Common steps regardless of your development environment.
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
@@ -147,7 +146,7 @@ will use the `hosts` file that's already there.
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
@@ -208,24 +207,6 @@ in hosts format to the generated hosts file.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
@@ -284,7 +265,6 @@ Then, submit a pull request.
|
||||
|
||||
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
|
||||
@@ -323,22 +303,69 @@ interfere with a web server that may be running on the local PC.
|
||||
|
||||
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.
|
||||
* **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.)
|
||||
@@ -357,26 +384,27 @@ 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"
|
||||
* **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.cmd)
|
||||
for more details.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
|
||||
manually flush your DNS cache once the new hosts file is in place.
|
||||
|
||||
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
:-----------------------------------------------------------------------------------------
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
@@ -390,36 +418,30 @@ ipconfig /flushdns
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
**Debian/Ubuntu** `sudo service network-manager restart`
|
||||
* **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`
|
||||
|
||||
**Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
|
||||
|
||||
**Linux with systemd**: `sudo systemctl restart network.service`
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
|
||||
|
||||
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
**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
|
||||
```
|
||||
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
* **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
|
||||
|
||||
@@ -441,11 +463,8 @@ This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/
|
||||
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
|
||||
@@ -459,30 +478,24 @@ 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. This is a very interesting project to set up yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-poe-edition-the-network-wide-ad-blocker).
|
||||
|
||||
* [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 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.
|
||||
|
||||
* [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.
|
||||
* [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.
|
||||
|
||||
## Contribute!
|
||||
## 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.
|
||||
|
||||
|
||||
+65361
-23320
File diff suppressed because it is too large
Load Diff
+127
-114
@@ -1,8 +1,7 @@
|
||||
----
|
||||
**Take Note!**
|
||||
|
||||
* This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
* 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.
|
||||
|
||||
----
|
||||
|
||||

|
||||
@@ -11,7 +10,7 @@
|
||||
[](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?workflow=CI)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -22,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **December 31 2020**.
|
||||
* Here's the [raw hosts file with fakenews extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) containing 60,654 entries.
|
||||
* Last updated: **April 30 2022**.
|
||||
* Here's the [raw hosts file with fakenews extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) containing 102,133 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
[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) | 58,459 | [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) | 60,654 | [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) | 60,783 | [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) | 80,518 | [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) | 61,218 | [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) | 62,978 | [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) | 82,713 | [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) | 63,413 | [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) | 82,842 | [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) | 63,542 | [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) | 83,276 | [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) | 85,037 | [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) | 65,737 | [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) | 85,471 | [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) | 85,600 | [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) | 87,795 | [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) | 99,938 | [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) | 102,133 | [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) | 102,476 | [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) | 142,890 | [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) | 102,753 | [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) | 104,671 | [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) | 145,084 | [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) | 104,948 | [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) | 145,428 | [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) | 105,291 | [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) | 145,704 | [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) | 147,623 | [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) | 107,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 147,898 | [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) | 148,242 | [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) | 150,437 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -67,25 +65,26 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:cosntacptamem@abuse.ch)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
@@ -106,19 +105,19 @@ The container will contain Python 3 and all its dependency requirements, and a c
|
||||
|
||||
Build the Docker container like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
### Option 2: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -128,7 +127,7 @@ 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).
|
||||
|
||||
### Common steps regardless of your development environment.
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
@@ -145,7 +144,7 @@ will use the `hosts` file that's already there.
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
@@ -206,24 +205,6 @@ in hosts format to the generated hosts file.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
@@ -282,7 +263,6 @@ Then, submit a pull request.
|
||||
|
||||
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
|
||||
@@ -321,22 +301,69 @@ interfere with a web server that may be running on the local PC.
|
||||
|
||||
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.
|
||||
* **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.)
|
||||
@@ -355,26 +382,27 @@ 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"
|
||||
* **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.cmd)
|
||||
for more details.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
|
||||
manually flush your DNS cache once the new hosts file is in place.
|
||||
|
||||
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
:-----------------------------------------------------------------------------------------
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
@@ -388,36 +416,30 @@ ipconfig /flushdns
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
**Debian/Ubuntu** `sudo service network-manager restart`
|
||||
* **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`
|
||||
|
||||
**Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
|
||||
|
||||
**Linux with systemd**: `sudo systemctl restart network.service`
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
|
||||
|
||||
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
**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
|
||||
```
|
||||
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
* **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
|
||||
|
||||
@@ -439,11 +461,8 @@ This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/
|
||||
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
|
||||
@@ -457,30 +476,24 @@ 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. This is a very interesting project to set up yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-poe-edition-the-network-wide-ad-blocker).
|
||||
|
||||
* [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 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.
|
||||
|
||||
* [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.
|
||||
* [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.
|
||||
|
||||
## Contribute!
|
||||
## 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.
|
||||
|
||||
|
||||
+100133
-36937
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,7 @@
|
||||
----
|
||||
**Take Note!**
|
||||
|
||||
* This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
* 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.
|
||||
|
||||
----
|
||||
|
||||

|
||||
@@ -11,7 +10,7 @@
|
||||
[](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?workflow=CI)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -22,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **December 31 2020**.
|
||||
* Here's the [raw hosts file with gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) containing 85,600 entries.
|
||||
* Last updated: **April 30 2022**.
|
||||
* Here's the [raw hosts file with gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) containing 148,242 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
[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) | 58,459 | [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) | 60,654 | [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) | 60,783 | [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) | 80,518 | [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) | 61,218 | [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) | 62,978 | [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) | 82,713 | [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) | 63,413 | [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) | 82,842 | [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) | 63,542 | [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) | 83,276 | [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) | 85,037 | [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) | 65,737 | [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) | 85,471 | [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) | 85,600 | [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) | 87,795 | [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) | 99,938 | [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) | 102,133 | [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) | 102,476 | [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) | 142,890 | [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) | 102,753 | [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) | 104,671 | [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) | 145,084 | [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) | 104,948 | [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) | 145,428 | [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) | 105,291 | [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) | 145,704 | [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) | 147,623 | [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) | 107,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 147,898 | [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) | 148,242 | [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) | 150,437 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -67,23 +65,26 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:cosntacptamem@abuse.ch)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
brijrajparmar27 - pornography | hosts files for DNS based content blocking |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | occasional | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
@@ -91,7 +92,6 @@ Sinfonietta's social media blocking hosts file | A collection of category-specif
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
@@ -112,19 +112,19 @@ The container will contain Python 3 and all its dependency requirements, and a c
|
||||
|
||||
Build the Docker container like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
### Option 2: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -134,7 +134,7 @@ 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).
|
||||
|
||||
### Common steps regardless of your development environment.
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
@@ -151,7 +151,7 @@ will use the `hosts` file that's already there.
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
@@ -212,24 +212,6 @@ in hosts format to the generated hosts file.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
@@ -288,7 +270,6 @@ Then, submit a pull request.
|
||||
|
||||
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
|
||||
@@ -327,22 +308,69 @@ interfere with a web server that may be running on the local PC.
|
||||
|
||||
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.
|
||||
* **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.)
|
||||
@@ -361,26 +389,27 @@ 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"
|
||||
* **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.cmd)
|
||||
for more details.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
|
||||
manually flush your DNS cache once the new hosts file is in place.
|
||||
|
||||
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
:-----------------------------------------------------------------------------------------
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
@@ -394,36 +423,30 @@ ipconfig /flushdns
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
**Debian/Ubuntu** `sudo service network-manager restart`
|
||||
* **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`
|
||||
|
||||
**Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
|
||||
|
||||
**Linux with systemd**: `sudo systemctl restart network.service`
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
|
||||
|
||||
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
**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
|
||||
```
|
||||
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
* **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
|
||||
|
||||
@@ -445,11 +468,8 @@ This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/
|
||||
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
|
||||
@@ -463,30 +483,24 @@ 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. This is a very interesting project to set up yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-poe-edition-the-network-wide-ad-blocker).
|
||||
|
||||
* [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 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.
|
||||
|
||||
* [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.
|
||||
* [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.
|
||||
|
||||
## Contribute!
|
||||
## 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.
|
||||
|
||||
|
||||
+100036
-36899
File diff suppressed because it is too large
Load Diff
+129
-115
@@ -1,8 +1,7 @@
|
||||
----
|
||||
**Take Note!**
|
||||
|
||||
* This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
* 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.
|
||||
|
||||
----
|
||||
|
||||

|
||||
@@ -11,7 +10,7 @@
|
||||
[](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?workflow=CI)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -22,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **December 31 2020**.
|
||||
* Here's the [raw hosts file with gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) containing 82,842 entries.
|
||||
* Last updated: **April 30 2022**.
|
||||
* Here's the [raw hosts file with gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) containing 145,428 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
[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) | 58,459 | [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) | 60,654 | [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) | 60,783 | [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) | 80,518 | [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) | 61,218 | [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) | 62,978 | [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) | 82,713 | [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) | 63,413 | [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) | 82,842 | [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) | 63,542 | [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) | 83,276 | [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) | 85,037 | [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) | 65,737 | [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) | 85,471 | [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) | 85,600 | [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) | 87,795 | [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) | 99,938 | [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) | 102,133 | [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) | 102,476 | [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) | 142,890 | [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) | 102,753 | [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) | 104,671 | [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) | 145,084 | [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) | 104,948 | [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) | 145,428 | [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) | 105,291 | [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) | 145,704 | [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) | 147,623 | [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) | 107,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 147,898 | [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) | 148,242 | [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) | 150,437 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -67,29 +65,31 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:cosntacptamem@abuse.ch)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
brijrajparmar27 - pornography | hosts files for DNS based content blocking |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | occasional | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
@@ -110,19 +110,19 @@ The container will contain Python 3 and all its dependency requirements, and a c
|
||||
|
||||
Build the Docker container like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
### Option 2: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -132,7 +132,7 @@ 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).
|
||||
|
||||
### Common steps regardless of your development environment.
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
@@ -149,7 +149,7 @@ will use the `hosts` file that's already there.
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
@@ -210,24 +210,6 @@ in hosts format to the generated hosts file.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
@@ -286,7 +268,6 @@ Then, submit a pull request.
|
||||
|
||||
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
|
||||
@@ -325,22 +306,69 @@ interfere with a web server that may be running on the local PC.
|
||||
|
||||
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.
|
||||
* **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.)
|
||||
@@ -359,26 +387,27 @@ 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"
|
||||
* **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.cmd)
|
||||
for more details.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
|
||||
manually flush your DNS cache once the new hosts file is in place.
|
||||
|
||||
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
:-----------------------------------------------------------------------------------------
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
@@ -392,36 +421,30 @@ ipconfig /flushdns
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
**Debian/Ubuntu** `sudo service network-manager restart`
|
||||
* **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`
|
||||
|
||||
**Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
|
||||
|
||||
**Linux with systemd**: `sudo systemctl restart network.service`
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
|
||||
|
||||
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
**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
|
||||
```
|
||||
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
* **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
|
||||
|
||||
@@ -443,11 +466,8 @@ This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/
|
||||
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
|
||||
@@ -461,30 +481,24 @@ 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. This is a very interesting project to set up yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-poe-edition-the-network-wide-ad-blocker).
|
||||
|
||||
* [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 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.
|
||||
|
||||
* [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.
|
||||
* [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.
|
||||
|
||||
## Contribute!
|
||||
## 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.
|
||||
|
||||
|
||||
+66586
-24278
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,7 @@
|
||||
----
|
||||
**Take Note!**
|
||||
|
||||
* This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
* 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.
|
||||
|
||||
----
|
||||
|
||||

|
||||
@@ -11,7 +10,7 @@
|
||||
[](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?workflow=CI)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -22,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **December 31 2020**.
|
||||
* Here's the [raw hosts file with gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) containing 63,542 entries.
|
||||
* Last updated: **April 30 2022**.
|
||||
* Here's the [raw hosts file with gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) containing 105,291 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
[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) | 58,459 | [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) | 60,654 | [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) | 60,783 | [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) | 80,518 | [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) | 61,218 | [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) | 62,978 | [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) | 82,713 | [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) | 63,413 | [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) | 82,842 | [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) | 63,542 | [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) | 83,276 | [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) | 85,037 | [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) | 65,737 | [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) | 85,471 | [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) | 85,600 | [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) | 87,795 | [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) | 99,938 | [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) | 102,133 | [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) | 102,476 | [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) | 142,890 | [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) | 102,753 | [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) | 104,671 | [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) | 145,084 | [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) | 104,948 | [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) | 145,428 | [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) | 105,291 | [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) | 145,704 | [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) | 147,623 | [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) | 107,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 147,898 | [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) | 148,242 | [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) | 150,437 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -67,27 +65,28 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:cosntacptamem@abuse.ch)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
@@ -108,19 +107,19 @@ The container will contain Python 3 and all its dependency requirements, and a c
|
||||
|
||||
Build the Docker container like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
### Option 2: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -130,7 +129,7 @@ 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).
|
||||
|
||||
### Common steps regardless of your development environment.
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
@@ -147,7 +146,7 @@ will use the `hosts` file that's already there.
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
@@ -208,24 +207,6 @@ in hosts format to the generated hosts file.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
@@ -284,7 +265,6 @@ Then, submit a pull request.
|
||||
|
||||
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
|
||||
@@ -323,22 +303,69 @@ interfere with a web server that may be running on the local PC.
|
||||
|
||||
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.
|
||||
* **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.)
|
||||
@@ -357,26 +384,27 @@ 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"
|
||||
* **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.cmd)
|
||||
for more details.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
|
||||
manually flush your DNS cache once the new hosts file is in place.
|
||||
|
||||
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
:-----------------------------------------------------------------------------------------
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
@@ -390,36 +418,30 @@ ipconfig /flushdns
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
**Debian/Ubuntu** `sudo service network-manager restart`
|
||||
* **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`
|
||||
|
||||
**Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
|
||||
|
||||
**Linux with systemd**: `sudo systemctl restart network.service`
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
|
||||
|
||||
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
**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
|
||||
```
|
||||
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
* **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
|
||||
|
||||
@@ -441,11 +463,8 @@ This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/
|
||||
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
|
||||
@@ -459,30 +478,24 @@ 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. This is a very interesting project to set up yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-poe-edition-the-network-wide-ad-blocker).
|
||||
|
||||
* [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 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.
|
||||
|
||||
* [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.
|
||||
* [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.
|
||||
|
||||
## Contribute!
|
||||
## 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.
|
||||
|
||||
|
||||
+66489
-24240
File diff suppressed because it is too large
Load Diff
+127
-114
@@ -1,8 +1,7 @@
|
||||
----
|
||||
**Take Note!**
|
||||
|
||||
* This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
* 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.
|
||||
|
||||
----
|
||||
|
||||

|
||||
@@ -11,7 +10,7 @@
|
||||
[](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?workflow=CI)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -22,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **December 31 2020**.
|
||||
* Here's the [raw hosts file with gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) containing 60,783 entries.
|
||||
* Last updated: **April 30 2022**.
|
||||
* Here's the [raw hosts file with gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) containing 102,476 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
[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) | 58,459 | [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) | 60,654 | [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) | 60,783 | [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) | 80,518 | [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) | 61,218 | [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) | 62,978 | [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) | 82,713 | [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) | 63,413 | [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) | 82,842 | [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) | 63,542 | [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) | 83,276 | [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) | 85,037 | [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) | 65,737 | [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) | 85,471 | [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) | 85,600 | [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) | 87,795 | [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) | 99,938 | [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) | 102,133 | [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) | 102,476 | [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) | 142,890 | [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) | 102,753 | [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) | 104,671 | [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) | 145,084 | [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) | 104,948 | [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) | 145,428 | [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) | 105,291 | [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) | 145,704 | [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) | 147,623 | [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) | 107,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 147,898 | [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) | 148,242 | [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) | 150,437 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -67,25 +65,26 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:cosntacptamem@abuse.ch)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
@@ -106,19 +105,19 @@ The container will contain Python 3 and all its dependency requirements, and a c
|
||||
|
||||
Build the Docker container like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
### Option 2: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -128,7 +127,7 @@ 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).
|
||||
|
||||
### Common steps regardless of your development environment.
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
@@ -145,7 +144,7 @@ will use the `hosts` file that's already there.
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
@@ -206,24 +205,6 @@ in hosts format to the generated hosts file.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
@@ -282,7 +263,6 @@ Then, submit a pull request.
|
||||
|
||||
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
|
||||
@@ -321,22 +301,69 @@ interfere with a web server that may be running on the local PC.
|
||||
|
||||
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.
|
||||
* **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.)
|
||||
@@ -355,26 +382,27 @@ 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"
|
||||
* **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.cmd)
|
||||
for more details.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
|
||||
manually flush your DNS cache once the new hosts file is in place.
|
||||
|
||||
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
:-----------------------------------------------------------------------------------------
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
@@ -388,36 +416,30 @@ ipconfig /flushdns
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
**Debian/Ubuntu** `sudo service network-manager restart`
|
||||
* **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`
|
||||
|
||||
**Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
|
||||
|
||||
**Linux with systemd**: `sudo systemctl restart network.service`
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
|
||||
|
||||
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
**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
|
||||
```
|
||||
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
* **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
|
||||
|
||||
@@ -439,11 +461,8 @@ This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/
|
||||
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
|
||||
@@ -457,30 +476,24 @@ 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. This is a very interesting project to set up yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-poe-edition-the-network-wide-ad-blocker).
|
||||
|
||||
* [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 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.
|
||||
|
||||
* [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.
|
||||
* [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.
|
||||
|
||||
## Contribute!
|
||||
## 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.
|
||||
|
||||
|
||||
+99005
-36017
File diff suppressed because it is too large
Load Diff
+129
-115
@@ -1,8 +1,7 @@
|
||||
----
|
||||
**Take Note!**
|
||||
|
||||
* This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
* 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.
|
||||
|
||||
----
|
||||
|
||||

|
||||
@@ -11,7 +10,7 @@
|
||||
[](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?workflow=CI)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -22,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **December 31 2020**.
|
||||
* Here's the [raw hosts file with porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) containing 83,276 entries.
|
||||
* Last updated: **April 30 2022**.
|
||||
* Here's the [raw hosts file with porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) containing 145,704 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
[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) | 58,459 | [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) | 60,654 | [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) | 60,783 | [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) | 80,518 | [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) | 61,218 | [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) | 62,978 | [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) | 82,713 | [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) | 63,413 | [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) | 82,842 | [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) | 63,542 | [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) | 83,276 | [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) | 85,037 | [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) | 65,737 | [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) | 85,471 | [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) | 85,600 | [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) | 87,795 | [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) | 99,938 | [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) | 102,133 | [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) | 102,476 | [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) | 142,890 | [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) | 102,753 | [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) | 104,671 | [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) | 145,084 | [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) | 104,948 | [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) | 145,428 | [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) | 105,291 | [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) | 145,704 | [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) | 147,623 | [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) | 107,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 147,898 | [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) | 148,242 | [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) | 150,437 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -67,22 +65,25 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:cosntacptamem@abuse.ch)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
brijrajparmar27 - pornography | hosts files for DNS based content blocking |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | occasional | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
@@ -90,7 +91,6 @@ Sinfonietta's social media blocking hosts file | A collection of category-specif
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
@@ -111,19 +111,19 @@ The container will contain Python 3 and all its dependency requirements, and a c
|
||||
|
||||
Build the Docker container like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
### Option 2: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -133,7 +133,7 @@ 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).
|
||||
|
||||
### Common steps regardless of your development environment.
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
@@ -150,7 +150,7 @@ will use the `hosts` file that's already there.
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
@@ -211,24 +211,6 @@ in hosts format to the generated hosts file.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
@@ -287,7 +269,6 @@ Then, submit a pull request.
|
||||
|
||||
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
|
||||
@@ -326,22 +307,69 @@ interfere with a web server that may be running on the local PC.
|
||||
|
||||
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.
|
||||
* **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.)
|
||||
@@ -360,26 +388,27 @@ 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"
|
||||
* **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.cmd)
|
||||
for more details.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
|
||||
manually flush your DNS cache once the new hosts file is in place.
|
||||
|
||||
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
:-----------------------------------------------------------------------------------------
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
@@ -393,36 +422,30 @@ ipconfig /flushdns
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
**Debian/Ubuntu** `sudo service network-manager restart`
|
||||
* **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`
|
||||
|
||||
**Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
|
||||
|
||||
**Linux with systemd**: `sudo systemctl restart network.service`
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
|
||||
|
||||
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
**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
|
||||
```
|
||||
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
* **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
|
||||
|
||||
@@ -444,11 +467,8 @@ This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/
|
||||
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
|
||||
@@ -462,30 +482,24 @@ 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. This is a very interesting project to set up yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-poe-edition-the-network-wide-ad-blocker).
|
||||
|
||||
* [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 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.
|
||||
|
||||
* [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.
|
||||
* [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.
|
||||
|
||||
## Contribute!
|
||||
## 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.
|
||||
|
||||
|
||||
+98908
-35979
File diff suppressed because it is too large
Load Diff
+129
-115
@@ -1,8 +1,7 @@
|
||||
----
|
||||
**Take Note!**
|
||||
|
||||
* This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
* 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.
|
||||
|
||||
----
|
||||
|
||||

|
||||
@@ -11,7 +10,7 @@
|
||||
[](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?workflow=CI)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -22,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **December 31 2020**.
|
||||
* Here's the [raw hosts file with porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) containing 80,518 entries.
|
||||
* Last updated: **April 30 2022**.
|
||||
* Here's the [raw hosts file with porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) containing 142,890 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
[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) | 58,459 | [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) | 60,654 | [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) | 60,783 | [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) | 80,518 | [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) | 61,218 | [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) | 62,978 | [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) | 82,713 | [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) | 63,413 | [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) | 82,842 | [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) | 63,542 | [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) | 83,276 | [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) | 85,037 | [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) | 65,737 | [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) | 85,471 | [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) | 85,600 | [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) | 87,795 | [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) | 99,938 | [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) | 102,133 | [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) | 102,476 | [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) | 142,890 | [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) | 102,753 | [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) | 104,671 | [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) | 145,084 | [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) | 104,948 | [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) | 145,428 | [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) | 105,291 | [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) | 145,704 | [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) | 147,623 | [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) | 107,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 147,898 | [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) | 148,242 | [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) | 150,437 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -67,28 +65,30 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:cosntacptamem@abuse.ch)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
brijrajparmar27 - pornography | hosts files for DNS based content blocking |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | occasional | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
@@ -109,19 +109,19 @@ The container will contain Python 3 and all its dependency requirements, and a c
|
||||
|
||||
Build the Docker container like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
### Option 2: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -131,7 +131,7 @@ 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).
|
||||
|
||||
### Common steps regardless of your development environment.
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
@@ -148,7 +148,7 @@ will use the `hosts` file that's already there.
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
@@ -209,24 +209,6 @@ in hosts format to the generated hosts file.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
@@ -285,7 +267,6 @@ Then, submit a pull request.
|
||||
|
||||
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
|
||||
@@ -324,22 +305,69 @@ interfere with a web server that may be running on the local PC.
|
||||
|
||||
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.
|
||||
* **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.)
|
||||
@@ -358,26 +386,27 @@ 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"
|
||||
* **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.cmd)
|
||||
for more details.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
|
||||
manually flush your DNS cache once the new hosts file is in place.
|
||||
|
||||
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
:-----------------------------------------------------------------------------------------
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
@@ -391,36 +420,30 @@ ipconfig /flushdns
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
**Debian/Ubuntu** `sudo service network-manager restart`
|
||||
* **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`
|
||||
|
||||
**Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
|
||||
|
||||
**Linux with systemd**: `sudo systemctl restart network.service`
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
|
||||
|
||||
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
**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
|
||||
```
|
||||
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
* **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
|
||||
|
||||
@@ -442,11 +465,8 @@ This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/
|
||||
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
|
||||
@@ -460,30 +480,24 @@ 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. This is a very interesting project to set up yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-poe-edition-the-network-wide-ad-blocker).
|
||||
|
||||
* [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 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.
|
||||
|
||||
* [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.
|
||||
* [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.
|
||||
|
||||
## Contribute!
|
||||
## 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.
|
||||
|
||||
|
||||
+65458
-23358
File diff suppressed because it is too large
Load Diff
+127
-114
@@ -1,8 +1,7 @@
|
||||
----
|
||||
**Take Note!**
|
||||
|
||||
* This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
* 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.
|
||||
|
||||
----
|
||||
|
||||

|
||||
@@ -11,7 +10,7 @@
|
||||
[](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?workflow=CI)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -22,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **December 31 2020**.
|
||||
* Here's the [raw hosts file with social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) containing 61,218 entries.
|
||||
* Last updated: **April 30 2022**.
|
||||
* Here's the [raw hosts file with social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) containing 102,753 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
[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) | 58,459 | [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) | 60,654 | [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) | 60,783 | [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) | 80,518 | [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) | 61,218 | [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) | 62,978 | [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) | 82,713 | [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) | 63,413 | [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) | 82,842 | [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) | 63,542 | [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) | 83,276 | [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) | 85,037 | [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) | 65,737 | [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) | 85,471 | [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) | 85,600 | [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) | 87,795 | [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) | 99,938 | [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) | 102,133 | [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) | 102,476 | [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) | 142,890 | [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) | 102,753 | [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) | 104,671 | [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) | 145,084 | [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) | 104,948 | [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) | 145,428 | [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) | 105,291 | [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) | 145,704 | [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) | 147,623 | [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) | 107,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 147,898 | [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) | 148,242 | [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) | 150,437 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -67,26 +65,27 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:cosntacptamem@abuse.ch)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
@@ -107,19 +106,19 @@ The container will contain Python 3 and all its dependency requirements, and a c
|
||||
|
||||
Build the Docker container like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
### Option 2: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -129,7 +128,7 @@ 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).
|
||||
|
||||
### Common steps regardless of your development environment.
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
@@ -146,7 +145,7 @@ will use the `hosts` file that's already there.
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
@@ -207,24 +206,6 @@ in hosts format to the generated hosts file.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
@@ -283,7 +264,6 @@ Then, submit a pull request.
|
||||
|
||||
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
|
||||
@@ -322,22 +302,69 @@ interfere with a web server that may be running on the local PC.
|
||||
|
||||
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.
|
||||
* **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.)
|
||||
@@ -356,26 +383,27 @@ 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"
|
||||
* **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.cmd)
|
||||
for more details.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
|
||||
manually flush your DNS cache once the new hosts file is in place.
|
||||
|
||||
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
:-----------------------------------------------------------------------------------------
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
@@ -389,36 +417,30 @@ ipconfig /flushdns
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
**Debian/Ubuntu** `sudo service network-manager restart`
|
||||
* **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`
|
||||
|
||||
**Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
|
||||
|
||||
**Linux with systemd**: `sudo systemctl restart network.service`
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
|
||||
|
||||
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
**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
|
||||
```
|
||||
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
* **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
|
||||
|
||||
@@ -440,11 +462,8 @@ This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/
|
||||
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
|
||||
@@ -458,30 +477,24 @@ 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. This is a very interesting project to set up yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-poe-edition-the-network-wide-ad-blocker).
|
||||
|
||||
* [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 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.
|
||||
|
||||
* [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.
|
||||
* [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.
|
||||
|
||||
## Contribute!
|
||||
## 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.
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "AdguardTeam cname trackers",
|
||||
"description": "CNAME-cloaked tracking abuses.",
|
||||
"homeurl": "https://github.com/AdguardTeam/cname-trackers",
|
||||
"frequency": "occasionally",
|
||||
"issues": "https://github.com/AdguardTeam/cname-trackers/issues",
|
||||
"url": "https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt",
|
||||
"license": "MIT"
|
||||
}
|
||||
+655
-72
File diff suppressed because it is too large
Load Diff
+31053
-9283
File diff suppressed because it is too large
Load Diff
+1072
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "MetaMask eth-phishing-detect",
|
||||
"description": "Phishing domains targeting Ethereum users.",
|
||||
"homeurl": "https://github.com/MetaMask/eth-phishing-detect",
|
||||
"frequency": "frequent",
|
||||
"issues": "https://github.com/MetaMask/eth-phishing-detect/issues",
|
||||
"url": "https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt",
|
||||
"license": "DON'T BE A DICK PUBLIC LICENSE"
|
||||
}
|
||||
+650
-1284
File diff suppressed because it is too large
Load Diff
+1431
-1134
File diff suppressed because it is too large
Load Diff
@@ -3,7 +3,7 @@
|
||||
"description": "A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.",
|
||||
"homeurl": "https://urlhaus.abuse.ch/",
|
||||
"frequency": "weekly",
|
||||
"issues": "mailto:cosntacptamem@abuse.ch",
|
||||
"issues": "mailto:contactme@abuse.ch",
|
||||
"url": "https://urlhaus.abuse.ch/downloads/hostfile/",
|
||||
"license": "CC0"
|
||||
}
|
||||
|
||||
@@ -5,6 +5,5 @@
|
||||
0.0.0.0 cdn.mypcbackup.com
|
||||
0.0.0.0 inno.bisrv.com
|
||||
0.0.0.0 installer.betterinstaller.com
|
||||
0.0.0.0 installer.filebulldog.com
|
||||
0.0.0.0 nsis.bisrv.com
|
||||
0.0.0.0 tracking.opencandy.com.s3.amazonaws.com
|
||||
|
||||
+1795
-3863
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "add.2o7Net",
|
||||
"description": "2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content.",
|
||||
"description": "2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.",
|
||||
"homeurl": "https://github.com/FadeMind/hosts.extras",
|
||||
"frequency": "occasionally",
|
||||
"issues": "https://github.com/FadeMind/hosts.extras/issues",
|
||||
|
||||
@@ -2,19 +2,13 @@
|
||||
0.0.0.0 blacksnake.com
|
||||
0.0.0.0 europcareer.com
|
||||
0.0.0.0 get-avast.com
|
||||
0.0.0.0 google-docs.info
|
||||
0.0.0.0 gooqleapi.com
|
||||
0.0.0.0 iphonegames3g.com
|
||||
0.0.0.0 jmp2click.com
|
||||
0.0.0.0 microsoft-update.name
|
||||
0.0.0.0 paypai.org
|
||||
0.0.0.0 sunonsunday.com
|
||||
0.0.0.0 thesunonsunday.com
|
||||
0.0.0.0 toolbar.wibiya.com
|
||||
0.0.0.0 www.avast-downloads.com
|
||||
0.0.0.0 www.europcareer.com
|
||||
0.0.0.0 www.get-avast.com
|
||||
0.0.0.0 www.google-docs.info
|
||||
0.0.0.0 www.iphonegames3g.com
|
||||
0.0.0.0 www.jmp2click.com
|
||||
0.0.0.0 www.microsoft-update.name
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "add.Dead",
|
||||
"description": "Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content.",
|
||||
"description": "Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.",
|
||||
"homeurl": "https://github.com/FadeMind/hosts.extras",
|
||||
"frequency": "occasionally",
|
||||
"issues": "https://github.com/FadeMind/hosts.extras/issues",
|
||||
|
||||
+207
-584
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "add.Risk",
|
||||
"description": "Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content.",
|
||||
"description": "Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.",
|
||||
"homeurl": "https://github.com/FadeMind/hosts.extras",
|
||||
"frequency": "occasionally",
|
||||
"issues": "https://github.com/FadeMind/hosts.extras/issues",
|
||||
|
||||
@@ -1,36 +1,24 @@
|
||||
0.0.0.0 100.1qingdao.com
|
||||
0.0.0.0 7minuteworkout.com
|
||||
0.0.0.0 addshoppers.com
|
||||
0.0.0.0 affiliatecashpile.go2jump.org
|
||||
0.0.0.0 arklighting.co
|
||||
0.0.0.0 bigpayout.go2jump.org
|
||||
0.0.0.0 brandedleadgeneration.com
|
||||
0.0.0.0 clicktshirtprinting.co.uk
|
||||
0.0.0.0 creditauthpagev3.info
|
||||
0.0.0.0 dandingo.go2jump.org
|
||||
0.0.0.0 defenderxtactical.com
|
||||
0.0.0.0 divisioncore.com
|
||||
0.0.0.0 fitnesshealthreporter.com
|
||||
0.0.0.0 freeforums.org
|
||||
0.0.0.0 go2jump.org
|
||||
0.0.0.0 gtradersoft.com
|
||||
0.0.0.0 heartrevitalized.com
|
||||
0.0.0.0 janeaustenjoy.com
|
||||
0.0.0.0 lazyprofits.go2jump.org
|
||||
0.0.0.0 medtecchina.com
|
||||
0.0.0.0 motoren.ru
|
||||
0.0.0.0 mydreamdegree.com
|
||||
0.0.0.0 nero-us.com
|
||||
0.0.0.0 news.nero-emea.com
|
||||
0.0.0.0 news.nero-us.com
|
||||
0.0.0.0 novastarled.com
|
||||
0.0.0.0 offerscience.go2jump.org
|
||||
0.0.0.0 onlineloan-personal.net
|
||||
0.0.0.0 otherinbox.com
|
||||
0.0.0.0 pcbutts1-therealtruth.blogspot.com
|
||||
0.0.0.0 playlott.com
|
||||
0.0.0.0 profitsitesbiz.com
|
||||
0.0.0.0 redhotfreebies.co.uk
|
||||
0.0.0.0 securesignupoffers.org
|
||||
0.0.0.0 stsoftware.biz
|
||||
0.0.0.0 tekindustri.upnjatim.ac.id
|
||||
@@ -44,19 +32,15 @@
|
||||
0.0.0.0 www.arklighting.co
|
||||
0.0.0.0 www.brandedleadgeneration.com
|
||||
0.0.0.0 www.clicktshirtprinting.co.uk
|
||||
0.0.0.0 www.creditauthpagev3.info
|
||||
0.0.0.0 www.defenderxtactical.com
|
||||
0.0.0.0 www.divisioncore.com
|
||||
0.0.0.0 www.fitnesshealthreporter.com
|
||||
0.0.0.0 www.freeforums.org
|
||||
0.0.0.0 www.go2jump.org
|
||||
0.0.0.0 www.gtradersoft.com
|
||||
0.0.0.0 www.heartrevitalized.com
|
||||
0.0.0.0 www.janeaustenjoy.com
|
||||
0.0.0.0 www.medtecchina.com
|
||||
0.0.0.0 www.motoren.ru
|
||||
0.0.0.0 www.mydreamdegree.com
|
||||
0.0.0.0 www.nero-us.com
|
||||
0.0.0.0 www.novastarled.com
|
||||
0.0.0.0 www.onlineloan-personal.net
|
||||
0.0.0.0 www.otherinbox.com
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "add.Spam",
|
||||
"description": "Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content.",
|
||||
"description": "Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.",
|
||||
"homeurl": "https://github.com/FadeMind/hosts.extras",
|
||||
"frequency": "occasionally",
|
||||
"issues": "https://github.com/FadeMind/hosts.extras/issues",
|
||||
|
||||
+695
-455
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
# minecraft-hosts - Tracking Domains
|
||||
# License: CC0
|
||||
|
||||
auxilium.ftb.team
|
||||
bstats.org
|
||||
mcmc.dev
|
||||
mcstats.org
|
||||
metrics.shmeeb.net
|
||||
openeye.openmods.info
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "minecraft-hosts",
|
||||
"description": "Minecraft related tracker hosts",
|
||||
"homeurl": "https://github.com/jamiemansfield/minecraft-hosts",
|
||||
"frequency": "occasionally",
|
||||
"issues": "https://github.com/jamiemansfield/minecraft-hosts/issues",
|
||||
"url": "https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt",
|
||||
"license": "CC0-1.0"
|
||||
}
|
||||
+1
-95
@@ -7,7 +7,7 @@
|
||||
# This *must* be the first line: 127.0.0.1 localhost #
|
||||
# #
|
||||
#**********************************************************#
|
||||
# ------------- Updated: December-15-2020 ---------------- #
|
||||
# -------------- Updated: March-06-2021 ------------------ #
|
||||
#**********************************************************#
|
||||
# #
|
||||
# Disclaimer: this file is free to use for personal use #
|
||||
@@ -644,7 +644,6 @@
|
||||
0.0.0.0 openx.mercatormedia.com
|
||||
0.0.0.0 www.messagetag.com #[Email tracker]
|
||||
0.0.0.0 action.metaffiliation.com
|
||||
0.0.0.0 tracking.metalyzer.com
|
||||
0.0.0.0 www.metavertising.com
|
||||
0.0.0.0 pubs.mgn.net #[Grolier Network]
|
||||
0.0.0.0 ads.miarroba.com
|
||||
@@ -760,13 +759,11 @@
|
||||
0.0.0.0 pcmightymax.net
|
||||
0.0.0.0 www.pcmightymax.net
|
||||
0.0.0.0 catrg.peer39.net
|
||||
0.0.0.0 trg.peer39.net #[PrivacyChoice.Tracker]
|
||||
0.0.0.0 pt.peerius.com
|
||||
0.0.0.0 tag.perfectaudience.com
|
||||
0.0.0.0 b1.perfb.com
|
||||
0.0.0.0 count.pcpop.com
|
||||
0.0.0.0 pixel.pcworld.com #[WebBug]
|
||||
0.0.0.0 viewer.peer39.com
|
||||
0.0.0.0 banners.perfectgonzo.com
|
||||
0.0.0.0 errors.perfectgonzo.com
|
||||
0.0.0.0 ads.periodistadigital.com
|
||||
@@ -1072,11 +1069,9 @@
|
||||
0.0.0.0 ads.usercash.com
|
||||
0.0.0.0 www.utarget.co.uk #[utarget Ad code]
|
||||
# [V]
|
||||
0.0.0.0 tracking.vacationsmadeeasy.com
|
||||
0.0.0.0 ads.vador.com
|
||||
0.0.0.0 feed.validclick.com
|
||||
0.0.0.0 ad.jp.ap.valuecommerce.com #[WebBug]
|
||||
0.0.0.0 vclicks.net
|
||||
0.0.0.0 counters.vendio.com
|
||||
0.0.0.0 cdsusa.veinteractive.com
|
||||
0.0.0.0 config1.veinteractive.com
|
||||
@@ -1099,7 +1094,6 @@
|
||||
0.0.0.0 optimized.by.vitalads.net
|
||||
0.0.0.0 optimized-by.vitalads.net
|
||||
0.0.0.0 www.vjsoft.net
|
||||
0.0.0.0 ads.vkushti.tv
|
||||
0.0.0.0 www.v-links.net
|
||||
0.0.0.0 optimize-stats.voxmedia.com
|
||||
0.0.0.0 ads.vporn.com
|
||||
@@ -1179,8 +1173,6 @@
|
||||
0.0.0.0 urchin.lstat.youku.com
|
||||
0.0.0.0 go.youlamedia.com
|
||||
0.0.0.0 www.yourhitstats.com
|
||||
0.0.0.0 ad.yourmedia.com
|
||||
0.0.0.0 ad1.yourmedia.com
|
||||
0.0.0.0 pc2.yumenetworks.com
|
||||
# [Z]
|
||||
0.0.0.0 ad.zanox.com
|
||||
@@ -1192,7 +1184,6 @@
|
||||
0.0.0.0 in.zog.link
|
||||
0.0.0.0 in3.zog.link
|
||||
# [Misc]
|
||||
0.0.0.0 www.1-1ads.com
|
||||
0.0.0.0 1bg.net
|
||||
0.0.0.0 100webads.com
|
||||
0.0.0.0 www.123banners.com
|
||||
@@ -1249,11 +1240,6 @@
|
||||
0.0.0.0 secure.cardtransaction.com
|
||||
# [Abovenet][216.200.0.0 - 216.200.255.255]
|
||||
0.0.0.0 spin.spinbox.net
|
||||
# [Abovenet / Hyperbanner][AS6461][216.200.199.0 - 216.200.199.255]
|
||||
0.0.0.0 ads.bidvertiser.com
|
||||
0.0.0.0 bdv.bidvertiser.com
|
||||
0.0.0.0 srv.bidvertiser.com
|
||||
0.0.0.0 www.bidvertiser.com
|
||||
# [Abovenet][AS17025][23.104.0.0 - 23.111.255.255]
|
||||
0.0.0.0 img.revcontent.com
|
||||
# [Abovenet][AS6461][64.124.0.0 - 64.125.255.255]
|
||||
@@ -1494,7 +1480,6 @@
|
||||
0.0.0.0 cdn.advertserve.com
|
||||
0.0.0.0 circuit.advertserve.com
|
||||
0.0.0.0 divavillage.advertserve.com
|
||||
0.0.0.0 hometheaterreview.advertserve.com
|
||||
0.0.0.0 imagevenue.advertserve.com
|
||||
0.0.0.0 pridesource.advertserve.com
|
||||
0.0.0.0 projectorreviews.advertserve.com
|
||||
@@ -1850,7 +1835,6 @@
|
||||
0.0.0.0 ads.reddit.com
|
||||
0.0.0.0 www.reelcentric.com
|
||||
0.0.0.0 rivasearchpage.com
|
||||
0.0.0.0 tap.rubiconproject.com
|
||||
0.0.0.0 l.sharethis.com
|
||||
0.0.0.0 smaato.net
|
||||
0.0.0.0 socialspark.com
|
||||
@@ -1895,7 +1879,6 @@
|
||||
0.0.0.0 ir-de.amazon-adsystem.com
|
||||
0.0.0.0 ir-uk.amazon-adsystem.com
|
||||
# [Amazon.com][AS16509][184.169.128.0 - 184.169.255.255]
|
||||
0.0.0.0 abandonment.saas.seewhy.com
|
||||
# [Amazon.com][AS14618][184.72.0.0 - 184.73.255.255]
|
||||
0.0.0.0 www.adtaily.com
|
||||
0.0.0.0 analytics.bleacherreport.com
|
||||
@@ -2260,7 +2243,6 @@
|
||||
0.0.0.0 neo.go.sonobi.com
|
||||
0.0.0.0 match.xg4ken.com
|
||||
# [Amazon.com][AS16509][54.192.0.0 - 54.207.255.255]
|
||||
0.0.0.0 admtpmp127.adsk2.co
|
||||
0.0.0.0 adplexmedia.adk2.co
|
||||
0.0.0.0 ad.adsrvr.org
|
||||
0.0.0.0 ad.ad-stir.com
|
||||
@@ -2426,7 +2408,6 @@
|
||||
0.0.0.0 jadserve.postrelease.com
|
||||
0.0.0.0 static.proximic.com
|
||||
0.0.0.0 di.rlcdn.com #[Marketing Evolution Tracking]
|
||||
0.0.0.0 tap-secure.rubiconproject.com
|
||||
0.0.0.0 mtrx.go.sonobi.com
|
||||
0.0.0.0 cdn.sail-horizon.com
|
||||
0.0.0.0 shareaholic.com
|
||||
@@ -2497,7 +2478,6 @@
|
||||
0.0.0.0 f.monetate.net
|
||||
0.0.0.0 tracker.mozo.com.au
|
||||
0.0.0.0 papi.mynativeads.com
|
||||
0.0.0.0 web-clients.mynativeads.com
|
||||
0.0.0.0 static.nectarads.com
|
||||
0.0.0.0 cl-c.netseer.com
|
||||
0.0.0.0 js-agent.newrelic.com
|
||||
@@ -3058,33 +3038,6 @@
|
||||
# [CBS Interactive / CNET Networks]
|
||||
0.0.0.0 stat.fengniao.com
|
||||
0.0.0.0 ads.webshots.com
|
||||
# [CBS Interactive / CNET Networks][AS6623][216.239.112.0 - 216.239.127.255]
|
||||
0.0.0.0 adimg.bnet.com
|
||||
0.0.0.0 mads.bnet.com
|
||||
0.0.0.0 ocp.bnet.com
|
||||
0.0.0.0 adlog.cbsi.com
|
||||
# 0.0.0.0 dw.cbsi.com #[affects CNET downloads]
|
||||
0.0.0.0 mads.cbs.com
|
||||
0.0.0.0 track.cbs.com #[WebBug]
|
||||
0.0.0.0 mads.cbsnews.com
|
||||
0.0.0.0 ocp.cbsnews.com
|
||||
0.0.0.0 adimg.chow.com
|
||||
0.0.0.0 mads.chow.com
|
||||
0.0.0.0 adimg.cnet.com
|
||||
0.0.0.0 mads.cnet.com
|
||||
0.0.0.0 remotead-internal.cnet.com
|
||||
0.0.0.0 remotead.cnet.com
|
||||
0.0.0.0 mads.cnettv.com
|
||||
0.0.0.0 adimg.download.com
|
||||
0.0.0.0 mads.download.com
|
||||
0.0.0.0 adimg.gamefaqs.com
|
||||
0.0.0.0 mads.gamefaqs.com
|
||||
0.0.0.0 adimg.theinsider.com
|
||||
0.0.0.0 mads.theinsider.com
|
||||
0.0.0.0 adimg.news.com
|
||||
0.0.0.0 ads.zdnet.com
|
||||
0.0.0.0 adimg.zdnet.com
|
||||
0.0.0.0 mads.zdnet.com
|
||||
# [Cdnetworks][AS36408][14.0.32.0 - 14.0.63.255]
|
||||
0.0.0.0 widget.perfectmarket.com
|
||||
# [Cdnetworks][AS36408][103.4.200.0 - 103.4.203.255]
|
||||
@@ -3142,8 +3095,6 @@
|
||||
0.0.0.0 longtraffic.com
|
||||
0.0.0.0 adv.sexcounter.com #[Tracking.Cookie]
|
||||
0.0.0.0 cs.sexcounter.com
|
||||
0.0.0.0 support.sextronix.com #[Wildcard DNS]
|
||||
0.0.0.0 www.sextronix.com
|
||||
# [Choopa][66.55.139.0 - 66.55.139.255]
|
||||
0.0.0.0 ads.asredas.com
|
||||
# [Choopa][68.232.160.0 - 68.232.191.255]
|
||||
@@ -3559,8 +3510,6 @@
|
||||
0.0.0.0 ads.seniorfriendfinder.com
|
||||
0.0.0.0 cdn1.skinected.com
|
||||
0.0.0.0 rome.specificclick.net
|
||||
0.0.0.0 cdn1.steelhousemedia.com
|
||||
0.0.0.0 cdn4s.steelhousemedia.com
|
||||
0.0.0.0 www.synovite-scripts.com
|
||||
0.0.0.0 tcr.tynt.com
|
||||
0.0.0.0 cts.w55c.net
|
||||
@@ -3714,8 +3663,6 @@
|
||||
0.0.0.0 jizzads.com
|
||||
0.0.0.0 www.jizzads.com
|
||||
# [Fibernet][AS5048][216.83.128.0 - 216.83.159.255]
|
||||
0.0.0.0 dce.nextstat.com
|
||||
0.0.0.0 hits.nextstat.com
|
||||
0.0.0.0 hv3.webstat.com
|
||||
0.0.0.0 hits.webstat.com #[Tracking.Cookie]
|
||||
# [Fluent Ltd][AS39779][195.78.94.0 - 195.78.95.255]
|
||||
@@ -4162,8 +4109,6 @@
|
||||
0.0.0.0 ads.people-group.net
|
||||
0.0.0.0 click.plista.com
|
||||
0.0.0.0 farm.plista.com
|
||||
0.0.0.0 us-sonar.sociomantic.com
|
||||
0.0.0.0 adserver.spritmonitor.de
|
||||
0.0.0.0 xblasterads1.com
|
||||
# [Hetzner][AS24940][178.63.0.0 - 178.63.255.255]
|
||||
0.0.0.0 avazudsp.net
|
||||
@@ -4173,9 +4118,7 @@
|
||||
0.0.0.0 ads.sysmesh.com
|
||||
# [Hetzner][213.133.96.0 - 213.133.111.255]
|
||||
0.0.0.0 mmotraffic.com
|
||||
0.0.0.0 sonar.sociomantic.com
|
||||
# [Hetzner][213.239.202.128 - 213.239.202.255]
|
||||
0.0.0.0 api.7segments.com
|
||||
0.0.0.0 a.mobile.toboads.com
|
||||
0.0.0.0 relay.mobile.toboads.com
|
||||
# [Hetzner][AS24940][46.4.23.192 - 46.4.69.95]
|
||||
@@ -4202,7 +4145,6 @@
|
||||
0.0.0.0 adcentre.it-advanced.com
|
||||
0.0.0.0 dc61.s290.meetrics.net
|
||||
0.0.0.0 partnerearning.com
|
||||
0.0.0.0 eu-sonar.sociomantic.com
|
||||
0.0.0.0 ads.videofen.com
|
||||
# [Hetzner-rz-nbg-net][78.46.32.0 - 78.46.95.255]
|
||||
0.0.0.0 coin-hive.com
|
||||
@@ -4766,8 +4708,6 @@
|
||||
0.0.0.0 sascentral.com
|
||||
# [Iweb Technologies][AS32613][174.142.0.0 - 174.142.255.255]
|
||||
0.0.0.0 community.adlandpro.com #[Tracking.Cookie]
|
||||
0.0.0.0 ads.affbuzzads.com
|
||||
0.0.0.0 www.affbuzzads.com
|
||||
# [Iweb][AS32613][184.107.0.0 - 184.107.255.255]
|
||||
0.0.0.0 radarurl.com
|
||||
# [Iweb / Innovastreams][209.172.45.0 - 209.172.45.255]
|
||||
@@ -5076,7 +5016,6 @@
|
||||
0.0.0.0 ll.atdmt.com
|
||||
0.0.0.0 s.atemda.com
|
||||
0.0.0.0 static.ifa.camads.net
|
||||
0.0.0.0 qlipsodigital.checkm8.com
|
||||
0.0.0.0 static.contentabc.com
|
||||
0.0.0.0 static.cpalead.com
|
||||
0.0.0.0 cache.daredorm.com
|
||||
@@ -5646,13 +5585,6 @@
|
||||
0.0.0.0 www.spyarsenal.com #[Spyware.DesktopSpy][Spyware.FamilyKeylog]
|
||||
# [Ntt America][199.236.0.0 - 199.239.255.255]
|
||||
0.0.0.0 www.tsgonline.com
|
||||
# [Ntt America][199.4.64.0 - 199.4.127.255]
|
||||
0.0.0.0 nana10.checkm8.com
|
||||
0.0.0.0 nana10digital.checkm8.com
|
||||
0.0.0.0 nrg.checkm8.com
|
||||
0.0.0.0 nrgdigital.checkm8.com
|
||||
0.0.0.0 sport5.checkm8.com
|
||||
0.0.0.0 sport5digital.checkm8.com
|
||||
# [Ntt America][204.0.0.0 - 204.3.255.255]
|
||||
0.0.0.0 affiliate.dtiserv.com
|
||||
0.0.0.0 ds.eyeblaster.com
|
||||
@@ -5671,7 +5603,6 @@
|
||||
0.0.0.0 a.huluad.com
|
||||
0.0.0.0 adt.m7z.net
|
||||
0.0.0.0 download.realtimegaming.com
|
||||
0.0.0.0 tap-cdn.rubiconproject.com
|
||||
0.0.0.0 bridgetrack.speedera.r3h.net
|
||||
0.0.0.0 media-1.vpptechnologies.com
|
||||
0.0.0.0 media-2.vpptechnologies.com
|
||||
@@ -5686,9 +5617,6 @@
|
||||
0.0.0.0 media-e.vpptechnologies.com
|
||||
0.0.0.0 media-f.vpptechnologies.com
|
||||
0.0.0.0 static.vpptechnologies.com
|
||||
# [Ntt America][207.198.128.0 - 207.198.255.255]
|
||||
0.0.0.0 web.checkm8.com #[CHECKM8 AD TAGS]
|
||||
0.0.0.0 web2.checkm8.com
|
||||
# [Ntt America][209.157.0.0 - 209.157.255.255]
|
||||
0.0.0.0 stats.homestead.com
|
||||
0.0.0.0 track.homestead.com
|
||||
@@ -7472,28 +7400,9 @@
|
||||
# [PlusServer / 24 interactive][AS8972][62.75.239.64 - 62.75.239.127]
|
||||
0.0.0.0 evania.adspirit.de
|
||||
# [PlusServer][AS8972][85.25.129.0 - 85.25.251.255]
|
||||
0.0.0.0 ad.ad24.ru
|
||||
0.0.0.0 234.adru.net
|
||||
0.0.0.0 bdgadv.ru
|
||||
0.0.0.0 www.klamm-counter.de
|
||||
0.0.0.0 scripts.psyma.com
|
||||
0.0.0.0 aff.summercart.com
|
||||
0.0.0.0 banners.tempobet.com
|
||||
# [PlusServer][85.25.28.128 - 85.25.28.255]
|
||||
0.0.0.0 img6.adspirit.de
|
||||
0.0.0.0 img7.adspirit.de
|
||||
# [PlusServer][85.25.83.0 - 85.25.83.127]
|
||||
# [PointRoll][Gannett]
|
||||
0.0.0.0 ev.ads.pointroll.com
|
||||
0.0.0.0 speed.pointroll.com
|
||||
# [PointRoll][72.32.153.176 - 72.32.153.183]
|
||||
0.0.0.0 pointroll.com
|
||||
0.0.0.0 ads.pointroll.com #[Tracking.Cookie]
|
||||
0.0.0.0 clk.pointroll.com
|
||||
0.0.0.0 media.pointroll.com
|
||||
0.0.0.0 t.pointroll.com
|
||||
0.0.0.0 track.pointroll.com
|
||||
0.0.0.0 www.pointroll.com
|
||||
# [Pret En Print / Fr-carpe-diem][AS16080][193.110.146.0 - 193.110.146.255]
|
||||
0.0.0.0 statsv3.gaycash.com
|
||||
0.0.0.0 carpediem.sv2.biz
|
||||
@@ -8188,8 +8097,6 @@
|
||||
0.0.0.0 www.trafficpace.com
|
||||
# [Softlayer][AS36351][37.58.82.248 - 37.58.82.255]
|
||||
0.0.0.0 service.clicksvenue.com
|
||||
0.0.0.0 eu-px.steelhousemedia.com
|
||||
0.0.0.0 ww-eu.steelhousemedia.com
|
||||
# [Softlayer][AS36351][5.10.68.176 - 5.10.68.183]
|
||||
0.0.0.0 ads.eu.e-planning.net
|
||||
# [Softlayer][50.116.64.0 - 50.97.255.255]
|
||||
@@ -9884,7 +9791,6 @@
|
||||
0.0.0.0 c.mgid.com
|
||||
0.0.0.0 www.mgid.com
|
||||
# [Wz Communications][AS40824][74.117.176.0 - 74.117.183.255]
|
||||
0.0.0.0 www.4shared.com #[Adware.4SharedDesktop]
|
||||
0.0.0.0 adv.freepornvs.com
|
||||
# [XO Communications][AS40935][208.36.0.0 - 208.37.255.255]
|
||||
# [XO Communications][209.116.0.0 - 209.119.255.255]
|
||||
|
||||
@@ -1,347 +0,0 @@
|
||||
#######################################################################
|
||||
# The list contains uniques domains collected over #
|
||||
# the last 7 days by OSINT.digitalside.it and shared in piHole format.#
|
||||
# The list is released without any warranty to the end users. #
|
||||
# INFO: info@digitalside.it #
|
||||
# PGP key ID: 30B31BDA #
|
||||
# PGP fingerprint: 0B4C F801 E8FF E9A3 A602 D2C7 9C36 93B2 30B3 1BDA #
|
||||
# Every link reported should be considered harmefull and should #
|
||||
# result in an unwanted malware download. Use this file carrefully #
|
||||
# Generated at: 2020-12-31 08:13:50 #
|
||||
#######################################################################
|
||||
0.0.0.0 00zyku.com
|
||||
0.0.0.0 91damimi.com
|
||||
0.0.0.0 aagzz.com
|
||||
0.0.0.0 aaskuu.com
|
||||
0.0.0.0 abissnet.net
|
||||
0.0.0.0 abrillofurniture.com
|
||||
0.0.0.0 admin.erapor.smk-alasror.net
|
||||
0.0.0.0 ads.adwords-com.promotion.adwords-fr-en.eu.home.login.peggycross.com
|
||||
0.0.0.0 aeropilates.cl
|
||||
0.0.0.0 agrabadgroup.com
|
||||
0.0.0.0 alabamaballdrop.com
|
||||
0.0.0.0 alkamefood.com
|
||||
0.0.0.0 alkhayyatbusiness.com
|
||||
0.0.0.0 allcannabismeds.com
|
||||
0.0.0.0 allstagingwork.com
|
||||
0.0.0.0 alrlawsv.com
|
||||
0.0.0.0 alsaudiacuttingmaster.com
|
||||
0.0.0.0 aluminio-manuelzamora.es
|
||||
0.0.0.0 amarguwahati.com
|
||||
0.0.0.0 amruthaprojects.com
|
||||
0.0.0.0 andeanreach.com
|
||||
0.0.0.0 angelsllimargas.com
|
||||
0.0.0.0 angiearm.top
|
||||
0.0.0.0 anjumanclick.com
|
||||
0.0.0.0 apiat.org
|
||||
0.0.0.0 arefhasan.com
|
||||
0.0.0.0 artas.biz
|
||||
0.0.0.0 asawaja.bijukonix.online
|
||||
0.0.0.0 astrologiaexistencial.com
|
||||
0.0.0.0 athenaat.com
|
||||
0.0.0.0 aulavirtual.neptalireyes.org
|
||||
0.0.0.0 awakenservers.com
|
||||
0.0.0.0 bandarabbad.com
|
||||
0.0.0.0 batdongsanvip.com.vn
|
||||
0.0.0.0 bayern-sperrmuellabholung.com
|
||||
0.0.0.0 beidou.run
|
||||
0.0.0.0 bharattimeslive.com
|
||||
0.0.0.0 binatones.gq
|
||||
0.0.0.0 blog.oyinblogs.com
|
||||
0.0.0.0 bohler-edelstahl-at.com
|
||||
0.0.0.0 bookallon.com
|
||||
0.0.0.0 bot.lobodomarketingonline.com
|
||||
0.0.0.0 brinde-top.lobodomarketingonline.com
|
||||
0.0.0.0 busandvanrentalmalaysia.com
|
||||
0.0.0.0 cahyaproperty.bbtbatam.com
|
||||
0.0.0.0 cashyinvestment.org
|
||||
0.0.0.0 catchpoolshetlands.co.uk
|
||||
0.0.0.0 cbt2.smk-alasror.net
|
||||
0.0.0.0 cdn.app.yourwebdesignguys.com
|
||||
0.0.0.0 cdn.i-xinnuo.com
|
||||
0.0.0.0 chile.micorredora.email
|
||||
0.0.0.0 coastlinepoolspa.com
|
||||
0.0.0.0 codsambal.com
|
||||
0.0.0.0 contractrequest.nirmal-co.xyz
|
||||
0.0.0.0 countrynavigator.com
|
||||
0.0.0.0 crudtest.srintegrated.com
|
||||
0.0.0.0 csarad.com
|
||||
0.0.0.0 csgcargo.com
|
||||
0.0.0.0 cyber.searchkero.com
|
||||
0.0.0.0 d-cem.com
|
||||
0.0.0.0 decpak.com
|
||||
0.0.0.0 demondkapjesman.nl
|
||||
0.0.0.0 demo.seoexpertsinnepal.com
|
||||
0.0.0.0 depannage-vehicule-maroc.com
|
||||
0.0.0.0 dfgggloadr06.top
|
||||
0.0.0.0 dfgggloadt05.top
|
||||
0.0.0.0 dicasdecabelodabiah.com
|
||||
0.0.0.0 dieuhoaxanh.vn
|
||||
0.0.0.0 dorotheesausset.com
|
||||
0.0.0.0 down.xrpdf.com
|
||||
0.0.0.0 drchaudharisdentalclinic.com
|
||||
0.0.0.0 dream.pics
|
||||
0.0.0.0 dr-yasser.com
|
||||
0.0.0.0 du-wizards.com
|
||||
0.0.0.0 dynamicsteels.com
|
||||
0.0.0.0 elleaesthetics.com.au
|
||||
0.0.0.0 ellinismos1922.gr
|
||||
0.0.0.0 endurotanzania.co.tz
|
||||
0.0.0.0 etkindedektiflik.com
|
||||
0.0.0.0 events.ileafconnects.com
|
||||
0.0.0.0 ezi-pos.com
|
||||
0.0.0.0 familylifetruth.com
|
||||
0.0.0.0 feeds.braiins-os.com
|
||||
0.0.0.0 files.catbox.moe
|
||||
0.0.0.0 firenmoske.xyz
|
||||
0.0.0.0 flow-sol.com
|
||||
0.0.0.0 fmcav.com
|
||||
0.0.0.0 fraud.bpcbankingtech.com
|
||||
0.0.0.0 freelancero.nl
|
||||
0.0.0.0 fundglobally.org
|
||||
0.0.0.0 fyadvertising.com
|
||||
0.0.0.0 gadgetbay.com
|
||||
0.0.0.0 gadgetscs.com
|
||||
0.0.0.0 gamesforconsoles2222.top
|
||||
0.0.0.0 game.vlexor.com
|
||||
0.0.0.0 genzmag.com
|
||||
0.0.0.0 geoffoglemusic.com
|
||||
0.0.0.0 giannaspsychicstudio.com
|
||||
0.0.0.0 giatot365.com
|
||||
0.0.0.0 gjorgji.com
|
||||
0.0.0.0 gods.brernbanarolle.com
|
||||
0.0.0.0 goldcoastoffice365.com
|
||||
0.0.0.0 goldenboyatl.com
|
||||
0.0.0.0 goldilockstraining.com
|
||||
0.0.0.0 gp.thetpainghtut.com
|
||||
0.0.0.0 gudafu.com
|
||||
0.0.0.0 gurucbt.smk-alasror.net
|
||||
0.0.0.0 gxd3fp7fe7cac6jzn2sac.online
|
||||
0.0.0.0 haciaelsup.com
|
||||
0.0.0.0 harmonimedia.com
|
||||
0.0.0.0 hbprivileged.com
|
||||
0.0.0.0 heartssetfree.org
|
||||
0.0.0.0 hilmagym.com
|
||||
0.0.0.0 hmhaliyikama.com
|
||||
0.0.0.0 homegym.vn
|
||||
0.0.0.0 htetkaungclinic.thetpainghtut.com
|
||||
0.0.0.0 hubinfo.co.za
|
||||
0.0.0.0 huxere.xyz
|
||||
0.0.0.0 hvbevents.com
|
||||
0.0.0.0 ibelieveonline.org
|
||||
0.0.0.0 ienglishabc.com
|
||||
0.0.0.0 ilmeteo.dev.keyformat.it
|
||||
0.0.0.0 indabol.com.bo
|
||||
0.0.0.0 indemnity360.com
|
||||
0.0.0.0 inovations.searchkero.com
|
||||
0.0.0.0 insvat.com
|
||||
0.0.0.0 iotachina.com
|
||||
0.0.0.0 iut-bethune.univ-artois.fr
|
||||
0.0.0.0 jarininternational.com
|
||||
0.0.0.0 jcteamcapital.com
|
||||
0.0.0.0 jmonedero.net
|
||||
0.0.0.0 johnhaydenwrites.com
|
||||
0.0.0.0 johnloveskim.com
|
||||
0.0.0.0 josegene.com
|
||||
0.0.0.0 juju.jebcom.de
|
||||
0.0.0.0 karsonhomecare.com
|
||||
0.0.0.0 kelaschool.com
|
||||
0.0.0.0 kelulusan.smk-alasror.net
|
||||
0.0.0.0 ketoresetme.com
|
||||
0.0.0.0 kiralikbahissitesii.com
|
||||
0.0.0.0 kkgroupbd.com
|
||||
0.0.0.0 klikcee.somee.com
|
||||
0.0.0.0 knzazmrserv194.xyz
|
||||
0.0.0.0 knzvncadvert549.xyz
|
||||
0.0.0.0 kolaycaingilizce.com
|
||||
0.0.0.0 kolerkar.com
|
||||
0.0.0.0 koofuku.com
|
||||
0.0.0.0 kos4.monster
|
||||
0.0.0.0 labtop.pe
|
||||
0.0.0.0 lainiotisllc.com
|
||||
0.0.0.0 lampoone.top
|
||||
0.0.0.0 laptop.smk-alasror.net
|
||||
0.0.0.0 leatherbond.top
|
||||
0.0.0.0 linkejet.com.br
|
||||
0.0.0.0 littleindiadirectory.com
|
||||
0.0.0.0 luoyb.com
|
||||
0.0.0.0 malaysianscoop.com
|
||||
0.0.0.0 malerei-wiesner.de
|
||||
0.0.0.0 md5.5ofj.pw
|
||||
0.0.0.0 mediatorstewart.com
|
||||
0.0.0.0 mehostin.com
|
||||
0.0.0.0 melara.app.jarcatech.com
|
||||
0.0.0.0 members.nlbformula.com
|
||||
0.0.0.0 memoria.od.ua
|
||||
0.0.0.0 messenger-courier.com
|
||||
0.0.0.0 metadorr.com
|
||||
0.0.0.0 milaskentyasamevleri.com
|
||||
0.0.0.0 mitrapack.co.id
|
||||
0.0.0.0 mnv.terasoffshore.xyz
|
||||
0.0.0.0 modernortodonti.com
|
||||
0.0.0.0 moshiresidence.com
|
||||
0.0.0.0 motobuin.eltipodelasfotos.cl
|
||||
0.0.0.0 muahangvietmy.com
|
||||
0.0.0.0 multitools.gr
|
||||
0.0.0.0 mumglobal.com
|
||||
0.0.0.0 myphamjapan.com
|
||||
0.0.0.0 mypostletter.com
|
||||
0.0.0.0 nahlasolimandesigns.com
|
||||
0.0.0.0 ncap.lbatechnologies.com
|
||||
0.0.0.0 nearlearn.com
|
||||
0.0.0.0 nec-i.com
|
||||
0.0.0.0 necla.co.ke
|
||||
0.0.0.0 nemraafrica.org
|
||||
0.0.0.0 networkwheels.co.za
|
||||
0.0.0.0 new.icfcfilm.com
|
||||
0.0.0.0 ngrehab.biz
|
||||
0.0.0.0 nhorangtreem.com
|
||||
0.0.0.0 nichimanabi.com
|
||||
0.0.0.0 nicknewsteadconstructions.com.au
|
||||
0.0.0.0 noithatcongnghieptantien.com
|
||||
0.0.0.0 nuocmambamuoi.vn
|
||||
0.0.0.0 odev.tarsusbilkoleji.com
|
||||
0.0.0.0 office.horussolution.com
|
||||
0.0.0.0 olebaby.in
|
||||
0.0.0.0 onevoice.co.in
|
||||
0.0.0.0 opheliasbrewery.com
|
||||
0.0.0.0 oteroindustrial.com
|
||||
0.0.0.0 ourteam.searchkero.com
|
||||
0.0.0.0 parakkunnathtemple.com
|
||||
0.0.0.0 paroissesaintabraham.com
|
||||
0.0.0.0 pattayastore.com
|
||||
0.0.0.0 paulscomputing.com
|
||||
0.0.0.0 penambahberatbadan.info
|
||||
0.0.0.0 phasdesign.com
|
||||
0.0.0.0 phawayagency.com
|
||||
0.0.0.0 pom-poo.hk
|
||||
0.0.0.0 post.lobodomarketingonline.com
|
||||
0.0.0.0 ppdb-legacy.man1lamongan.com
|
||||
0.0.0.0 priyabeatus.com
|
||||
0.0.0.0 procesotg.com
|
||||
0.0.0.0 radiofmlive.com
|
||||
0.0.0.0 rechargkitmail.com
|
||||
0.0.0.0 reconindia.co.in
|
||||
0.0.0.0 redmanns-way.com
|
||||
0.0.0.0 report.radikari.co.id
|
||||
0.0.0.0 resuco.net
|
||||
0.0.0.0 rsimadinah.com
|
||||
0.0.0.0 russchine2sndymapanxmenischangednetsncm.ydns.eu
|
||||
0.0.0.0 rycomputer.com
|
||||
0.0.0.0 sahla-ad.com
|
||||
0.0.0.0 sanghuangvip.com
|
||||
0.0.0.0 sarfizmir.com
|
||||
0.0.0.0 sasksseed.mymonolith.com
|
||||
0.0.0.0 sbninspections.com
|
||||
0.0.0.0 schoolbustracker.softgig.co.ke
|
||||
0.0.0.0 scope-sci.org
|
||||
0.0.0.0 secanim.daka.dk
|
||||
0.0.0.0 senturketicaret.com
|
||||
0.0.0.0 sevensteel.com.tr
|
||||
0.0.0.0 sharpelevators.in
|
||||
0.0.0.0 shgsqfdzin.ru
|
||||
0.0.0.0 shopchailo.com
|
||||
0.0.0.0 shop.eldalile.com
|
||||
0.0.0.0 shop.gulatani.com
|
||||
0.0.0.0 shop.schlachtstall.de
|
||||
0.0.0.0 siamimplement.co.th
|
||||
0.0.0.0 sibernetix.fr
|
||||
0.0.0.0 siitav.net
|
||||
0.0.0.0 sinclair-electrical.com
|
||||
0.0.0.0 sisantri.smk-alasror.net
|
||||
0.0.0.0 sistempark.net
|
||||
0.0.0.0 skyeconsultoria.com.br
|
||||
0.0.0.0 smitattorneys.co.za
|
||||
0.0.0.0 sociallit.lobodomarketingonline.com
|
||||
0.0.0.0 somatone.atakdev.com
|
||||
0.0.0.0 sportucc.com
|
||||
0.0.0.0 ssdgatewaysolutions.com
|
||||
0.0.0.0 steller-family.ru
|
||||
0.0.0.0 sureoptimize.com
|
||||
0.0.0.0 surfboarddigital.com
|
||||
0.0.0.0 suriagrofresh.com
|
||||
0.0.0.0 swiftlogisticseg.com
|
||||
0.0.0.0 talentvalue.com
|
||||
0.0.0.0 talentztech.com
|
||||
0.0.0.0 tarsusbilkoleji.com
|
||||
0.0.0.0 technohub.searchkero.com
|
||||
0.0.0.0 techworldo.com
|
||||
0.0.0.0 tecshop.website
|
||||
0.0.0.0 telelogical.com
|
||||
0.0.0.0 tenmoney.business
|
||||
0.0.0.0 testapi.app.jarcatech.com
|
||||
0.0.0.0 thebestfikrah.com
|
||||
0.0.0.0 thedesirelife.com
|
||||
0.0.0.0 theloveiskindnetwork.com
|
||||
0.0.0.0 theoakridgeinternational.com
|
||||
0.0.0.0 theo.digital
|
||||
0.0.0.0 theotokoseb.com
|
||||
0.0.0.0 theprajinshee.com
|
||||
0.0.0.0 thespaceastronauts.com
|
||||
0.0.0.0 thetradepad.co.uk
|
||||
0.0.0.0 thexanhmy.com
|
||||
0.0.0.0 tillmoon.lt
|
||||
0.0.0.0 topcell9.com
|
||||
0.0.0.0 t-o-u-c-h-s-m-a-r-t.com
|
||||
0.0.0.0 trytuc.com
|
||||
0.0.0.0 tsrv4.ws
|
||||
0.0.0.0 tube.focodahora.com
|
||||
0.0.0.0 tumsell.com
|
||||
0.0.0.0 turbo-services.com
|
||||
0.0.0.0 udesk.searchkero.com
|
||||
0.0.0.0 udre3kvzatwrx6ues4p2u.top
|
||||
0.0.0.0 uk-bet.com
|
||||
0.0.0.0 ultimatesoftwarenet.com
|
||||
0.0.0.0 umzug-angebote-vergleichen.com
|
||||
0.0.0.0 unikaryapools.com
|
||||
0.0.0.0 upcndg.org
|
||||
0.0.0.0 valenciancountry.com
|
||||
0.0.0.0 vermapaints.com
|
||||
0.0.0.0 vissermalin.com
|
||||
0.0.0.0 vstsample.com
|
||||
0.0.0.0 vyn-ascensores.com
|
||||
0.0.0.0 wcpaherrin.net
|
||||
0.0.0.0 weatherwindows.pk
|
||||
0.0.0.0 web.smarts-works.com
|
||||
0.0.0.0 wheelcomoving.com
|
||||
0.0.0.0 wi360.com
|
||||
0.0.0.0 wolffsachs.com
|
||||
0.0.0.0 worldcologistics.co.za
|
||||
0.0.0.0 www.aaskuu.com
|
||||
0.0.0.0 www.achutamanasa.com
|
||||
0.0.0.0 www.adnlight.com
|
||||
0.0.0.0 www.agnespagan.com
|
||||
0.0.0.0 www.alshuwail.com
|
||||
0.0.0.0 www.ausutra.com
|
||||
0.0.0.0 www.bereketsutesisatcisi.com
|
||||
0.0.0.0 www.bidwincash.com
|
||||
0.0.0.0 www.bmsystem.ro
|
||||
0.0.0.0 www.dr-yasser.com
|
||||
0.0.0.0 www.errepartributario.com.ar
|
||||
0.0.0.0 www.freejobalertcom.xyz
|
||||
0.0.0.0 www.geosrt.com
|
||||
0.0.0.0 www.jarininternational.com
|
||||
0.0.0.0 www.lapcare.com
|
||||
0.0.0.0 www.lixko.com
|
||||
0.0.0.0 www.looksociety.org
|
||||
0.0.0.0 www.mt4-ea.vip
|
||||
0.0.0.0 www.mypostletter.com
|
||||
0.0.0.0 www.removepctrojan.com
|
||||
0.0.0.0 www.rogerbaulenas.com
|
||||
0.0.0.0 www.savedahorses.org
|
||||
0.0.0.0 www.scooterinsurance.co.uk
|
||||
0.0.0.0 www.sinclair-electrical.com
|
||||
0.0.0.0 www.spmkomputer.com
|
||||
0.0.0.0 www.taylordbackups.com
|
||||
0.0.0.0 www.todoensaludips.com
|
||||
0.0.0.0 www.trueapparels.com
|
||||
0.0.0.0 www.ukndesw19x.com
|
||||
0.0.0.0 www.xportfreight.com
|
||||
0.0.0.0 www.zysbpt.com
|
||||
0.0.0.0 wxdgut.cn
|
||||
0.0.0.0 xiaowo.ltd
|
||||
0.0.0.0 ycspreview.com
|
||||
0.0.0.0 yurdumaku.com
|
||||
0.0.0.0 z1001.net
|
||||
0.0.0.0 zhongshixingchuang.com
|
||||
0.0.0.0 zzz111.uk
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"name": "osint.digitalside.it",
|
||||
"description": "DigitalSide Threat-Intel malware domains list.",
|
||||
"homeurl": "https://github.com/davidonzo/Threat-Intel",
|
||||
"frequency": "daily",
|
||||
"issues": "https://github.com/davidonzo/Threat-Intel/issues",
|
||||
"url": "https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt",
|
||||
"license": "MIT"
|
||||
}
|
||||
+382
-69
@@ -1,124 +1,297 @@
|
||||
0.0.0.0 cdn.engine.spotscenered.info
|
||||
0.0.0.0 a.et.nytimes.com
|
||||
0.0.0.0 a.exdynsrv.com
|
||||
0.0.0.0 cdn.izooto.com
|
||||
0.0.0.0 px-cdn.net
|
||||
0.0.0.0 px-cloud.net
|
||||
0.0.0.0 pxchk.net
|
||||
0.0.0.0 vo.msecnd.net
|
||||
0.0.0.0 a.omappapi.com
|
||||
0.0.0.0 adbserver.doceree.com
|
||||
0.0.0.0 a.opmnstr.com
|
||||
0.0.0.0 a.pub.network
|
||||
0.0.0.0 abcnews.hb.omtrdc.net
|
||||
0.0.0.0 abcnews.tt.omtrdc.net
|
||||
0.0.0.0 acdn.adnxs.com
|
||||
0.0.0.0 adpushup.com
|
||||
0.0.0.0 ads-api.twitter.com
|
||||
0.0.0.0 ads.holid.io
|
||||
0.0.0.0 amazonwebservices.d2.sc.omtrdc.net
|
||||
0.0.0.0 analyti.uber.space
|
||||
0.0.0.0 analytics.console.aws.a2z.com
|
||||
0.0.0.0 analytics.edgekey.net
|
||||
0.0.0.0 analytics.getsocialeyes.com
|
||||
0.0.0.0 analytics.vadian.net
|
||||
0.0.0.0 analytics.write.as
|
||||
0.0.0.0 api-2-0.spot.im
|
||||
0.0.0.0 api-js.mixpanel.com
|
||||
0.0.0.0 api.airbrake.io
|
||||
0.0.0.0 api.appcues.net
|
||||
0.0.0.0 api.b2c.com
|
||||
0.0.0.0 api.boxever.com
|
||||
0.0.0.0 api.btloader.com
|
||||
0.0.0.0 api2.branch.io
|
||||
0.0.0.0 ascendeum-d.openx.net
|
||||
0.0.0.0 backfills.ph.affinity.com
|
||||
0.0.0.0 bid.glass
|
||||
0.0.0.0 btloader.com
|
||||
0.0.0.0 buysellads.net
|
||||
0.0.0.0 by2.uservoice.com
|
||||
0.0.0.0 cdn-magiclinks.trackonomics.net
|
||||
0.0.0.0 cdn.engine.spotscenered.info
|
||||
0.0.0.0 cdn.insurads.com
|
||||
0.0.0.0 cdn.intergient.com
|
||||
0.0.0.0 cdn.paddle.com
|
||||
0.0.0.0 cdn.izooto.com
|
||||
0.0.0.0 cdn.playwire.com
|
||||
0.0.0.0 cdn.snigelweb.com
|
||||
0.0.0.0 cdn.tech429.com
|
||||
0.0.0.0 cdn.usefathom.com
|
||||
0.0.0.0 client.px-cloud.net
|
||||
0.0.0.0 dotmetrics.net
|
||||
0.0.0.0 ev.kck.st
|
||||
0.0.0.0 ezodn.com
|
||||
0.0.0.0 fast.appcues.com
|
||||
0.0.0.0 gc.zgo.at
|
||||
0.0.0.0 geo-eu.snigelweb.com
|
||||
0.0.0.0 geo-us.snigelweb.com
|
||||
0.0.0.0 go.ezodn.com
|
||||
0.0.0.0 ip.prvtx.net
|
||||
0.0.0.0 metrics.readme.io
|
||||
0.0.0.0 piwik.opendesktop.org
|
||||
0.0.0.0 pixel-static.spotify.com
|
||||
0.0.0.0 pixel.ampry.com
|
||||
0.0.0.0 pixel.spotify.com
|
||||
0.0.0.0 plus.addkt.com
|
||||
0.0.0.0 powerad.ai
|
||||
0.0.0.0 prebid-server-production.herokuapp.com
|
||||
0.0.0.0 privatestats.whatsapp.net
|
||||
0.0.0.0 programmatic.doceree.com
|
||||
0.0.0.0 protected-by.clarium.io
|
||||
0.0.0.0 scripts.simpleanalyticscdn.com
|
||||
0.0.0.0 scripttags.justuno.com
|
||||
0.0.0.0 secure-sts-prod.imrworldwide.com
|
||||
0.0.0.0 server.ethicalads.io
|
||||
0.0.0.0 shynet.rmrm.io
|
||||
0.0.0.0 smetrics.cnn.com
|
||||
0.0.0.0 smetrics.elsevier.com
|
||||
0.0.0.0 snigelweb-com.videoplayerhub.com
|
||||
0.0.0.0 snigelweb.com
|
||||
0.0.0.0 static.addtoany.com
|
||||
0.0.0.0 static.cloudflareinsights.com
|
||||
0.0.0.0 stats.framasoft.org
|
||||
0.0.0.0 stats.kde.org
|
||||
0.0.0.0 stats.libretexts.org
|
||||
0.0.0.0 stats.nextcloud.com
|
||||
0.0.0.0 trackjs.com
|
||||
0.0.0.0 vortex.data.msn.com
|
||||
0.0.0.0 web.vortex.data.microsoft.com
|
||||
0.0.0.0 web.vortex.data.msn.com
|
||||
0.0.0.0 www.googleoptimize.com
|
||||
0.0.0.0 www.medtargetsystem.com
|
||||
0.0.0.0 ezodn.com
|
||||
0.0.0.0 go.ezodn.com
|
||||
0.0.0.0 powerad.ai
|
||||
0.0.0.0 trk.justanswer.com
|
||||
0.0.0.0 dotmetrics.net
|
||||
0.0.0.0 uk-script.dotmetrics.net
|
||||
0.0.0.0 onebauer.media
|
||||
0.0.0.0 cdn.onebauer.media
|
||||
0.0.0.0 privacy-mgmt.com
|
||||
0.0.0.0 cdn.privacy-mgmt.com
|
||||
0.0.0.0 8936704.fls.doubleclick.net
|
||||
0.0.0.0 a.et.nytimes.com
|
||||
0.0.0.0 a.opmnstr.com
|
||||
0.0.0.0 a.pub.network
|
||||
0.0.0.0 a2z.com
|
||||
0.0.0.0 abcnews.hb.omtrdc.net
|
||||
0.0.0.0 abcnews.tt.omtrdc.net
|
||||
0.0.0.0 acdn.adnxs.com
|
||||
0.0.0.0 amazonwebservices.d2.sc.omtrdc.net
|
||||
0.0.0.0 api.boxever.com
|
||||
0.0.0.0 arcpublishing.com
|
||||
0.0.0.0 ascendeum-d.openx.net
|
||||
0.0.0.0 sc.omtrdc.net
|
||||
0.0.0.0 scripttags.justuno.com
|
||||
0.0.0.0 secure-sts-prod.imrworldwide.com
|
||||
0.0.0.0 shynet.rmrm.io
|
||||
0.0.0.0 snigelweb.com
|
||||
0.0.0.0 ssl.widgets.webengage.com
|
||||
0.0.0.0 static.addtoany.com
|
||||
0.0.0.0 static.cloudflareinsights.com
|
||||
0.0.0.0 t.stripe.com
|
||||
0.0.0.0 tag.rmp.rakuten.com
|
||||
0.0.0.0 trapsaminohut.com
|
||||
0.0.0.0 trackjs.com
|
||||
0.0.0.0 trk.justanswer.com
|
||||
0.0.0.0 trk.justanswer.com
|
||||
0.0.0.0 u.o0bc.com
|
||||
0.0.0.0 uk-script.dotmetrics.net
|
||||
0.0.0.0 uptime.com
|
||||
0.0.0.0 uk-script.dotmetrics.net
|
||||
0.0.0.0 us-east-1.prod.pw.analytics.console.aws.a2z.com
|
||||
0.0.0.0 userreport.com
|
||||
0.0.0.0 uservoice.com
|
||||
0.0.0.0 vercel-analytics.com
|
||||
0.0.0.0 vitals.vercel-analytics.com
|
||||
0.0.0.0 vitals.vercel-insights.com
|
||||
0.0.0.0 vms.boldchat.com
|
||||
0.0.0.0 vo.msecnd.net
|
||||
0.0.0.0 vt.myvisualiq.net
|
||||
0.0.0.0 websites.cdn.getfeedback.com
|
||||
0.0.0.0 widget.intercom.io
|
||||
0.0.0.0 widget.uservoice.com
|
||||
0.0.0.0 widgets.webengage.com
|
||||
0.0.0.0 wmff.warnermediacdn.com
|
||||
0.0.0.0 www.datadoghq-browser-agent.com
|
||||
0.0.0.0 www.fastly-insights.com
|
||||
0.0.0.0 www.increaserev.com
|
||||
0.0.0.0 www.medtargetsystem.com
|
||||
0.0.0.0 www.npttech.com
|
||||
0.0.0.0 www.stack-sonar.com
|
||||
|
||||
#
|
||||
# From https://github.com/prebid/Prebid.js
|
||||
#
|
||||
|
||||
0.0.0.0 bidder.7xbid.com
|
||||
0.0.0.0 bidder.ablida.net
|
||||
0.0.0.0 mp.4dex.io
|
||||
0.0.0.0 stat.adfinity.pro
|
||||
0.0.0.0 api-test.scaleout.jp
|
||||
0.0.0.0 try.engine.adglare.net
|
||||
0.0.0.0 api.publishers.adlive.io
|
||||
0.0.0.0 pub.admanmedia.com
|
||||
0.0.0.0 ads4.admatic.com.tr
|
||||
0.0.0.0 prebid.admedia.com
|
||||
0.0.0.0 delivery.adnuntius.com
|
||||
0.0.0.0 rtb.adpone.com
|
||||
0.0.0.0 eu-ads.adpone.com
|
||||
0.0.0.0 delta.adprime.com
|
||||
0.0.0.0 ssp.adrelevantis.com
|
||||
0.0.0.0 rtb.com.ru
|
||||
0.0.0.0 ghb.console.adtarget.com.tr
|
||||
0.0.0.0 ghb.adtelligent.com
|
||||
0.0.0.0 ghb.ads.152media.com
|
||||
0.0.0.0 ghb.hbmp.mediafuse.com
|
||||
0.0.0.0 nep.advangelists.com
|
||||
0.0.0.0 ssp.advenuemedia.co.uk
|
||||
0.0.0.0 api.advertly.com
|
||||
0.0.0.0 analytics.wmgroup.us
|
||||
0.0.0.0 rtb.adwmg.com
|
||||
0.0.0.0 hbarxs.adxcg.net
|
||||
0.0.0.0 hbps.adxcg.net
|
||||
0.0.0.0 adxpremium.services
|
||||
0.0.0.0 hb-api.omnitagjs.com
|
||||
0.0.0.0 hb-api-fra01.omnitagjs.com
|
||||
0.0.0.0 ad.as.amanad.adtdp.com
|
||||
0.0.0.0 prebid.a-mo.net
|
||||
0.0.0.0 1x1.a-mo.net
|
||||
0.0.0.0 useast.quantumdex.io
|
||||
0.0.0.0 sync.quantumdex.io
|
||||
0.0.0.0 ad-jp.apx.appier.net
|
||||
0.0.0.0 mock-bapi.userreport.com
|
||||
0.0.0.0 bapi.userreport.com
|
||||
0.0.0.0 ssp.astraone.io
|
||||
0.0.0.0 d.audiencerun.com
|
||||
0.0.0.0 rtb2.automatad.com
|
||||
0.0.0.0 ads.avct.cloud
|
||||
0.0.0.0 bid.glass
|
||||
0.0.0.0 service.bidlab.ai
|
||||
0.0.0.0 us-e-node1.bizzclick.com
|
||||
0.0.0.0 dev.pbs.bluebillywig.com
|
||||
0.0.0.0 pbs.bluebillywig.com
|
||||
0.0.0.0 ssp.videowalldirect.com
|
||||
0.0.0.0 cs.videowalldirect.com
|
||||
0.0.0.0 prebid.scupio.com
|
||||
0.0.0.0 brightcombid.marphezis.com
|
||||
0.0.0.0 console.brightmountainmedia.com
|
||||
0.0.0.0 px.britepool.com
|
||||
0.0.0.0 prebid.bksn.se
|
||||
0.0.0.0 exchange.buzzoola.com
|
||||
0.0.0.0 tube.buzzoola.com
|
||||
0.0.0.0 prebid.byplay.net
|
||||
0.0.0.0 h.cedatoplayer.com
|
||||
0.0.0.0 bidder.cleanmediaads.com
|
||||
0.0.0.0 ad.holmesmind.com
|
||||
0.0.0.0 appspb.cointraffic.io
|
||||
0.0.0.0 request.czilladx.com
|
||||
0.0.0.0 publishers.motionspots.com
|
||||
0.0.0.0 colossusssp.com
|
||||
0.0.0.0 tech.convergd.com
|
||||
0.0.0.0 bid.cosmoshq.com
|
||||
0.0.0.0 sync.cosmoshq.com
|
||||
0.0.0.0 dev.server.cpmstar.com
|
||||
0.0.0.0 staging.server.cpmstar.com
|
||||
0.0.0.0 gacraft.jp
|
||||
0.0.0.0 pbs.dailyhunt.in
|
||||
0.0.0.0 qa-pbs-van.dailyhunt.in
|
||||
0.0.0.0 prebid.datablocks.net
|
||||
0.0.0.0 dmx.districtm.io
|
||||
0.0.0.0 cdn.districtm.io
|
||||
0.0.0.0 ad.divreach.com
|
||||
0.0.0.0 demo.reviveadservermod.com
|
||||
0.0.0.0 buyer.dspx.tv
|
||||
0.0.0.0 dcbuyer.dspx.tv
|
||||
0.0.0.0 service.e-volution.ai
|
||||
0.0.0.0 dsp.bnmla.com
|
||||
0.0.0.0 deep.edgequery.io
|
||||
0.0.0.0 i.e-planning.net
|
||||
0.0.0.0 sk.search.etargetnet.com
|
||||
0.0.0.0 cz.search.etargetnet.com
|
||||
0.0.0.0 hu.search.etargetnet.com
|
||||
0.0.0.0 ro.search.etargetnet.com
|
||||
0.0.0.0 rs.search.etargetnet.com
|
||||
0.0.0.0 bg.search.etargetnet.com
|
||||
0.0.0.0 pl.search.etargetnet.com
|
||||
0.0.0.0 hr.search.etargetnet.com
|
||||
0.0.0.0 at.search.etargetnet.com
|
||||
0.0.0.0 co.search.etargetnet.com
|
||||
0.0.0.0 fid.agkn.com
|
||||
0.0.0.0 api.feedad.com
|
||||
0.0.0.0 content.mql5.com
|
||||
0.0.0.0 hb.adingo.jp
|
||||
0.0.0.0 rtb.gamoshi.io
|
||||
0.0.0.0 s.gamoshi.io
|
||||
0.0.0.0 wrappers.geoedge.be
|
||||
0.0.0.0 central.gjirafa.com
|
||||
0.0.0.0 grid.bidswitch.net
|
||||
0.0.0.0 bidder.h12-media.com
|
||||
0.0.0.0 seg.halo.ad.gt
|
||||
0.0.0.0 banner.hpmdnetwork.ru
|
||||
0.0.0.0 hbe198.hybrid.ai
|
||||
0.0.0.0 ice.360yield.com
|
||||
0.0.0.0 px.owneriq.net
|
||||
0.0.0.0 bid.videostep.com
|
||||
0.0.0.0 k.r66net.com
|
||||
0.0.0.0 api.pymx5.com
|
||||
0.0.0.0 hb.yellowblue.io
|
||||
0.0.0.0 htlb.casalemedia.com
|
||||
0.0.0.0 hbtra.jixie.io
|
||||
0.0.0.0 scripts.jixie.io
|
||||
0.0.0.0 hb.jixie.io
|
||||
0.0.0.0 tracker.konduit.me
|
||||
0.0.0.0 p.konduit.me
|
||||
0.0.0.0 ads4.krushmedia.com
|
||||
0.0.0.0 cs.krushmedia.com
|
||||
0.0.0.0 kssp.kbntx.ch
|
||||
0.0.0.0 kdmp.kbntx.ch
|
||||
0.0.0.0 ads.lemmatechnologies.com
|
||||
0.0.0.0 sync.lemmatechnologies.com
|
||||
0.0.0.0 lwadm.com
|
||||
0.0.0.0 pb.ladsp.com
|
||||
0.0.0.0 id.crwdcntrl.net
|
||||
0.0.0.0 nep.advangelists.com
|
||||
0.0.0.0 player-cdn.beachfrontmedia.com
|
||||
0.0.0.0 balancer.lmgssp.com
|
||||
0.0.0.0 rtb.adxpremium.services
|
||||
0.0.0.0 analytics.adxpremium.services
|
||||
0.0.0.0 central.mall.tv
|
||||
0.0.0.0 prebid_stats.mars.media
|
||||
0.0.0.0 hb.go2speed.media
|
||||
0.0.0.0 ping-hqx-1.go2speed.media
|
||||
0.0.0.0 rtb-filter.meazy.co
|
||||
0.0.0.0 sync.meazy.co
|
||||
0.0.0.0 rtb-us.mediago.io
|
||||
0.0.0.0 pb-logs.media.net
|
||||
0.0.0.0 pbs-front.mediasquare.fr
|
||||
0.0.0.0 bidder-test.mediasquare.fr
|
||||
0.0.0.0 mid.rkdms.com
|
||||
0.0.0.0 rtbtest.send.microad.jp
|
||||
0.0.0.0 bes.mobfox.com
|
||||
0.0.0.0 prebid.mobsmart.net
|
||||
0.0.0.0 tags.mobsmart.net
|
||||
0.0.0.0 nafdigitalbidder.com
|
||||
0.0.0.0 ad.audiencemanager.de
|
||||
0.0.0.0 adn.admixer.co.kr
|
||||
0.0.0.0 brainlyads.com
|
||||
0.0.0.0 qa-ads.nobid.com
|
||||
0.0.0.0 onetag-sys.com
|
||||
0.0.0.0 ads.adaptv.advertising.com
|
||||
0.0.0.0 ads-wc.v.ssp.yahoo.com
|
||||
0.0.0.0 pixel.advertising.com
|
||||
0.0.0.0 match.adsrvr.org
|
||||
0.0.0.0 sync-tm.everesttech.net
|
||||
0.0.0.0 bidder.onomagic.com
|
||||
0.0.0.0 pbdata.oolo.io
|
||||
0.0.0.0 as.vt.open8.com
|
||||
0.0.0.0 prebid.openx.net
|
||||
0.0.0.0 u.openx.net
|
||||
0.0.0.0 orbidder.otto.de
|
||||
0.0.0.0 ssp.otm-r.com
|
||||
0.0.0.0 api.outcondigital.com
|
||||
0.0.0.0 elb.the-ozone-project.com
|
||||
0.0.0.0 prebid.the-ozone-project.com
|
||||
0.0.0.0 x.padsquad.com
|
||||
0.0.0.0 prebid.papyrus.global
|
||||
0.0.0.0 h.parrable.com
|
||||
0.0.0.0 dale.performax.cz
|
||||
0.0.0.0 ad.piximedia.com
|
||||
0.0.0.0 piohbdisp.hb.adx1.com
|
||||
0.0.0.0 endpoint.prebidmanager.com
|
||||
0.0.0.0 abs.proxistore.com
|
||||
0.0.0.0 ortb.adpearl.io
|
||||
0.0.0.0 t.pubmatic.com
|
||||
0.0.0.0 hbopenbid.pubmatic.com
|
||||
0.0.0.0 ads.pubmatic.com
|
||||
0.0.0.0 pubmatic.bbvms.com
|
||||
0.0.0.0 api.pubwise.io
|
||||
0.0.0.0 bid.pubwise.io
|
||||
0.0.0.0 api.pbxai.com
|
||||
0.0.0.0 api.primecaster.net
|
||||
0.0.0.0 bid.contextweb.com
|
||||
0.0.0.0 bh.contextweb.com
|
||||
0.0.0.0 ads.playground.xyz
|
||||
0.0.0.0 qcx.quantserve.com
|
||||
0.0.0.0 bidder.qwarry.co
|
||||
0.0.0.0 rads.recognified.net
|
||||
0.0.0.0 ac.realvu.net
|
||||
0.0.0.0 confirm.fiduciadlt.com
|
||||
0.0.0.0 ads.rekmob.com
|
||||
0.0.0.0 api.relaido.jp
|
||||
0.0.0.0 bid306.rtbsrv.com
|
||||
0.0.0.0 trends.revcontent.com
|
||||
|
||||
# www.qatarairways.com
|
||||
0.0.0.0 smetrics.qatarairways.com
|
||||
0.0.0.0 qatarairways.tt.omtrdc.net
|
||||
@@ -127,17 +300,9 @@
|
||||
# openstax.org
|
||||
0.0.0.0 js.pulseinsights.com
|
||||
|
||||
# www.pulseinsights.com
|
||||
0.0.0.0 cmp.osano.com
|
||||
|
||||
# www.osano.com
|
||||
0.0.0.0 snap.licdn.com
|
||||
|
||||
# www.litcharts.com
|
||||
0.0.0.0 cdn.rollbar.com
|
||||
0.0.0.0 api.rollbar.com
|
||||
0.0.0.0 quantcast.mgr.consensu.org
|
||||
|
||||
# www.quizexpo.com
|
||||
0.0.0.0 demand.supply
|
||||
0.0.0.0 live.demand.supply
|
||||
@@ -149,7 +314,6 @@
|
||||
0.0.0.0 cloud.setupad.com
|
||||
0.0.0.0 node.setupad.com
|
||||
0.0.0.0 prebid-stag.setupad.net
|
||||
0.0.0.0 vendorlist.consensu.org
|
||||
|
||||
# www.jstor.org
|
||||
0.0.0.0 ja.jstor.org
|
||||
@@ -159,3 +323,152 @@
|
||||
|
||||
# artixlinux.org
|
||||
0.0.0.0 stats.artixlinux.org
|
||||
|
||||
# ywc.thehindu.com
|
||||
0.0.0.0 csm.cxpublic.com
|
||||
0.0.0.0 tai.thehindu.com
|
||||
0.0.0.0 dm.thehindu.com
|
||||
0.0.0.0 go.automatad.com
|
||||
0.0.0.0 b2cdn.automatad.com
|
||||
0.0.0.0 cdn.automatad.com
|
||||
|
||||
# www.gourmetads.com
|
||||
0.0.0.0 bcdn.grmtas.com
|
||||
|
||||
# www.msn.com
|
||||
0.0.0.0 mssl.fwmrm.net
|
||||
0.0.0.0 visitor.omnitagjs.com
|
||||
|
||||
# www.digitalmarketer.com
|
||||
0.0.0.0 snippet.upviral.com
|
||||
0.0.0.0 app.upviral.com
|
||||
|
||||
# go.pendo.io
|
||||
0.0.0.0 js.driftt.com
|
||||
0.0.0.0 api.drift.com
|
||||
0.0.0.0 account.api.drift.com
|
||||
0.0.0.0 pages.api.driftqa.com
|
||||
0.0.0.0 conversation2.api.driftqa.com
|
||||
0.0.0.0 customer2.api.driftqa.com
|
||||
0.0.0.0 file2.api.driftqa.com
|
||||
0.0.0.0 ws.api.driftqa.com
|
||||
0.0.0.0 drift.click
|
||||
|
||||
# jsfiddle.net
|
||||
0.0.0.0 crbcdn.jsfiddle.net
|
||||
0.0.0.0 crbsrv.jsfiddle.net
|
||||
|
||||
# htwins.net
|
||||
0.0.0.0 queue.simpleanalyticscdn.com
|
||||
|
||||
# linkedin.github.io
|
||||
0.0.0.0 tracking.eskratch.com
|
||||
|
||||
# gizmodo.com
|
||||
0.0.0.0 sourcepoint.gizmodo.com
|
||||
|
||||
# awesomewm.org
|
||||
0.0.0.0 piwik.awesomewm.org
|
||||
|
||||
# www.aljazeera.com
|
||||
0.0.0.0 tags.aljazeera.com
|
||||
0.0.0.0 cdn.omnivirt.com
|
||||
|
||||
# 65521.org
|
||||
0.0.0.0 stats.0www.org
|
||||
|
||||
# dotcs.me
|
||||
0.0.0.0 analytics.home.dotcs.me
|
||||
|
||||
# speedtest.net.uk
|
||||
0.0.0.0 stats.custserv.net
|
||||
|
||||
# www.openstreetmap.org
|
||||
0.0.0.0 piwik.openstreetmap.org
|
||||
|
||||
# www.babbel.com
|
||||
0.0.0.0 marketing-tracker.babbel.com
|
||||
|
||||
# www.aparnaconstructions.com
|
||||
0.0.0.0 hspx.hotstar.com
|
||||
|
||||
# prepaid.t-mobile.com
|
||||
0.0.0.0 lptag.liveperson.net
|
||||
|
||||
# www.redbubble.com
|
||||
0.0.0.0 analytics-cdn.redbubble.com
|
||||
|
||||
# geeknet.me
|
||||
0.0.0.0 stats.harbauer.org
|
||||
|
||||
# amiunique.org
|
||||
0.0.0.0 analytics.amiunique.org
|
||||
|
||||
# blockchair.com
|
||||
0.0.0.0 stats.blockchair.com
|
||||
|
||||
# greenhost.net
|
||||
0.0.0.0 livestats.greenhost.nl
|
||||
|
||||
# maproulette.org
|
||||
0.0.0.0 analytics.maproulette.org
|
||||
|
||||
# alexei.pesic.dev
|
||||
0.0.0.0 cdn.panelbear.com
|
||||
|
||||
# thisstartupdoesnotexist.com
|
||||
0.0.0.0 reports.teamemo-solutions.de
|
||||
|
||||
# unsplash.com
|
||||
0.0.0.0 collector.unsplash.com
|
||||
|
||||
# musescore.com
|
||||
0.0.0.0 track.musescore.com
|
||||
|
||||
# ecmelberk.com
|
||||
0.0.0.0 ads.ebc.li
|
||||
|
||||
# linuxjournal.com
|
||||
0.0.0.0 analytics.linuxjournal.com
|
||||
|
||||
# www.fsf.org
|
||||
0.0.0.0 piwik.fsf.org
|
||||
|
||||
# www.notion.so
|
||||
0.0.0.0 analytics.pgncs.notion.so
|
||||
|
||||
# netsyms.com
|
||||
0.0.0.0 analytics.netsyms.net
|
||||
|
||||
# remix.ethereum.org
|
||||
0.0.0.0 matomo.ethereum.org
|
||||
|
||||
# bazaarvoice.com
|
||||
0.0.0.0 analytics-static.ugc.bazaarvoice.com
|
||||
0.0.0.0 bv-analytics-js-prod.s3.amazonaws.com
|
||||
0.0.0.0 bv-analytics-js-qa.s3.amazonaws.com
|
||||
|
||||
# deepl.com
|
||||
0.0.0.0 s.deepl.com
|
||||
|
||||
# dot.gov.in
|
||||
0.0.0.0 analytics.wrc.nic.in
|
||||
|
||||
# qz.com
|
||||
0.0.0.0 player.mediafuse.com
|
||||
0.0.0.0 hb.mediafuse.com
|
||||
|
||||
# www.dqindia.com
|
||||
0.0.0.0 qt.cyberads.io
|
||||
|
||||
# killedbygoogle.com
|
||||
0.0.0.0 analytics.bale.media
|
||||
|
||||
# tchncs.de
|
||||
0.0.0.0 stats.tchncs.de
|
||||
|
||||
# usborne.com
|
||||
0.0.0.0 tracking.recommend.pro
|
||||
|
||||
# proto.school
|
||||
0.0.0.0 countly.proto.school
|
||||
|
||||
+1310
-5542
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+385
-272
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,43 @@
|
||||
@echo off
|
||||
|
||||
title Disable DNS Cache Service
|
||||
|
||||
:: Check if we are an administrator. If not, exit immediately.
|
||||
:: BatchGotAdmin
|
||||
:: Check for permissions
|
||||
if "%PROCESSOR_ARCHITECTURE%" equ "amd64" (
|
||||
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"
|
||||
) else (
|
||||
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
|
||||
)
|
||||
|
||||
:: If the error flag set, we do not have admin rights.
|
||||
if %ERRORLEVEL% neq 0 (
|
||||
echo Requesting administrative privileges...
|
||||
goto UACPrompt
|
||||
) else (
|
||||
goto gotAdmin
|
||||
)
|
||||
|
||||
:UACPrompt
|
||||
echo Set UAC = CreateObject^("Shell.Application"^) > "%TEMP%\getadmin.vbs"
|
||||
set params= %*
|
||||
echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params:"=""%", "", "runas", 1 >> "%TEMP%\getadmin.vbs"
|
||||
|
||||
wscript.exe "%TEMP%\getadmin.vbs"
|
||||
del "%TEMP%\getadmin.vbs"
|
||||
exit /b
|
||||
|
||||
:gotAdmin
|
||||
|
||||
:SCset
|
||||
:: VALUE
|
||||
:: 2 (Automatic) (DEFAULT)
|
||||
:: 4 (Disabled) (to prevent network freeze after applying a huge hosts file)
|
||||
::
|
||||
:: See https://superuser.com/a/1277960
|
||||
::
|
||||
reg add "HKLM\SYSTEM\CurrentControlSet\services\Dnscache" /v Start /t REG_DWORD /d 4 /f
|
||||
echo Reboot your system now!
|
||||
echo.
|
||||
pause
|
||||
+2551
-2347
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,233 @@
|
||||
0.0.0.0 a.videobaba.xyz
|
||||
0.0.0.0 amp.xhamster.com
|
||||
0.0.0.0 amp.xhamster.desi
|
||||
0.0.0.0 amp.xhamster13.desi
|
||||
0.0.0.0 amp.xhgeo.com
|
||||
0.0.0.0 area51.porn
|
||||
0.0.0.0 bestpornfinder.net
|
||||
0.0.0.0 bobs-tube.porn
|
||||
0.0.0.0 cdn.bonertraffic12.mobi
|
||||
0.0.0.0 cdn.freeindianporn2.com
|
||||
0.0.0.0 cdn.pakistaniporn2.com
|
||||
0.0.0.0 cdn.pornxnxxvideos.com
|
||||
0.0.0.0 cdn.rajwap.biz
|
||||
0.0.0.0 cdn.redwap2.com
|
||||
0.0.0.0 cdn77-vid.xnxx-cdn.com
|
||||
0.0.0.0 desipornmms.com
|
||||
0.0.0.0 freeindianporn2.com
|
||||
0.0.0.0 headstonerinse.com
|
||||
0.0.0.0 hentaihaven.co
|
||||
0.0.0.0 hentaihaven.com
|
||||
0.0.0.0 hentaihaven.icu
|
||||
0.0.0.0 hentaihaven.in.net
|
||||
0.0.0.0 hentaihaven.io
|
||||
0.0.0.0 hentaihaven.vip
|
||||
0.0.0.0 hentaiheaven.xyz
|
||||
0.0.0.0 hentaiworld.tv
|
||||
0.0.0.0 i.xozilla.com
|
||||
0.0.0.0 ijavhd.com
|
||||
0.0.0.0 justindianporn2.com
|
||||
0.0.0.0 mixandfun.com
|
||||
0.0.0.0 movie.justindianporn2.com
|
||||
0.0.0.0 movies.freeindianporn2.com
|
||||
0.0.0.0 mxtube.net
|
||||
0.0.0.0 new-porn.video
|
||||
0.0.0.0 nhentaihaven.com
|
||||
0.0.0.0 nhentaihaven.org
|
||||
0.0.0.0 onlyindianporn.me
|
||||
0.0.0.0 onlyindianporn.tv
|
||||
0.0.0.0 ph.pornfactory.info
|
||||
0.0.0.0 ph.xxxindianporn.pro
|
||||
0.0.0.0 photo.pornozavr.net
|
||||
0.0.0.0 porntubehub.online
|
||||
0.0.0.0 rajwap.biz
|
||||
0.0.0.0 ringexpressbeach.com
|
||||
0.0.0.0 sexdesiporn.pro
|
||||
0.0.0.0 sillyflowermachine.com
|
||||
0.0.0.0 static.freeindianporn2.com
|
||||
0.0.0.0 static.rajwap.biz
|
||||
0.0.0.0 static.redwap2.com
|
||||
0.0.0.0 static.xv-horezeedipaif.com
|
||||
0.0.0.0 video.pornozavr.net
|
||||
0.0.0.0 video.redwap2.com
|
||||
0.0.0.0 whackaggressive.com
|
||||
0.0.0.0 wwtracking.net
|
||||
0.0.0.0 www.18pussy.porn
|
||||
0.0.0.0 www.18tube.sex
|
||||
0.0.0.0 www.asianpornvideo.xxx
|
||||
0.0.0.0 www.fuckteen.xxx
|
||||
0.0.0.0 www.hdsex.tube
|
||||
0.0.0.0 www.hdvideosporn.net
|
||||
0.0.0.0 www.hdxxxwatch.com
|
||||
0.0.0.0 www.hentaianime.tv
|
||||
0.0.0.0 www.hentaiporn.tube
|
||||
0.0.0.0 www.hentaisex.tv
|
||||
0.0.0.0 www.hentaiworld.tv
|
||||
0.0.0.0 www.hentaixxxvids.com
|
||||
0.0.0.0 www.hindibfvideo.com
|
||||
0.0.0.0 www.hindipornvideos.org
|
||||
0.0.0.0 www.hindixxx.club
|
||||
0.0.0.0 www.indianbfvideos.com
|
||||
0.0.0.0 www.indiansexvideo.xxx
|
||||
0.0.0.0 www.milf-porn.xxx
|
||||
0.0.0.0 www.mxtube.net
|
||||
0.0.0.0 www.nudeclap.com
|
||||
0.0.0.0 www.pakistaniporn2.com
|
||||
0.0.0.0 www.porn300.net
|
||||
0.0.0.0 www.pornfactory.info
|
||||
0.0.0.0 www.pornfuck.net
|
||||
0.0.0.0 www.pornhat.one
|
||||
0.0.0.0 www.pornozavr.net
|
||||
0.0.0.0 www.redwap2.com
|
||||
0.0.0.0 www.sopornvideos.com
|
||||
0.0.0.0 www.teenfuck.win
|
||||
0.0.0.0 www.xozilla.com
|
||||
0.0.0.0 www.xv-horezeedipaif.com
|
||||
0.0.0.0 www.xvideos3.com
|
||||
0.0.0.0 www.xxxbule.com
|
||||
0.0.0.0 www.xxxhdvideo.mobi
|
||||
0.0.0.0 www.xxxxporn.net
|
||||
0.0.0.0 www.youteenporn.net
|
||||
0.0.0.0 xhgeo.com
|
||||
0.0.0.0 xnxx-sex-videos.com
|
||||
0.0.0.0 xnxx.wapka.cc
|
||||
0.0.0.0 xnxx4porn.com
|
||||
0.0.0.0 xxxindianporn.pro
|
||||
0.0.0.0 0.oldgyhogola.com
|
||||
0.0.0.0 best-porn-clips.com
|
||||
0.0.0.0 cdn.freeindiansex.net
|
||||
0.0.0.0 comics-porn.info
|
||||
0.0.0.0 desipapa.xyz
|
||||
0.0.0.0 fatgirlsland.com
|
||||
0.0.0.0 footstockings.com
|
||||
0.0.0.0 fuqqt.com
|
||||
0.0.0.0 images.jav-pics.com
|
||||
0.0.0.0 indiansexsagar.yellowplum.netdna-cdn.com
|
||||
0.0.0.0 jav-pics.com
|
||||
0.0.0.0 javpub.b-cdn.net
|
||||
0.0.0.0 javpub.me
|
||||
0.0.0.0 m.porn555.com
|
||||
0.0.0.0 m.see.xxx
|
||||
0.0.0.0 m.thegay.porn
|
||||
0.0.0.0 members.indianhiddencams.com
|
||||
0.0.0.0 ngiyani.com
|
||||
0.0.0.0 pantyhose4you.com
|
||||
0.0.0.0 pantyhoseposes.com
|
||||
0.0.0.0 porn555.taxispyvideo.com
|
||||
0.0.0.0 porn555.teenshomeporn.com
|
||||
0.0.0.0 ps0z.com
|
||||
0.0.0.0 secure.indianhiddencams.com
|
||||
0.0.0.0 seexxx1.roccosiffrediporn.net
|
||||
0.0.0.0 seexxx1.ronjeremyporn.net
|
||||
0.0.0.0 sexvideospornxxx.com
|
||||
0.0.0.0 thegay1.tombyronporn.com
|
||||
0.0.0.0 tn.porntop.com
|
||||
0.0.0.0 tn.vxxx.com
|
||||
0.0.0.0 tns.bangtubevideos.com
|
||||
0.0.0.0 tour.indianhiddencams.com
|
||||
0.0.0.0 tubejohn.com
|
||||
0.0.0.0 video.vxxxcdn.net
|
||||
0.0.0.0 www.bangtubevideos.com
|
||||
0.0.0.0 www.clips4sale.com
|
||||
0.0.0.0 www.freeindiansex.net
|
||||
0.0.0.0 www.fullxxxvideos.net
|
||||
0.0.0.0 www.goldendesi.com
|
||||
0.0.0.0 www.hardcorepost.com
|
||||
0.0.0.0 www.indiansexsagar.com
|
||||
0.0.0.0 www.japaneseporn.xxx
|
||||
0.0.0.0 www.japanporn.tv
|
||||
0.0.0.0 www.pornjapanesesex.com
|
||||
0.0.0.0 www.pornsos.com
|
||||
0.0.0.0 www.sex2021.com
|
||||
0.0.0.0 www.sexmotors.com
|
||||
0.0.0.0 www.watchdesisex.com
|
||||
0.0.0.0 www3.javxxx.me
|
||||
0.0.0.0 xxnxx-porn.com
|
||||
0.0.0.0 www.redgifs.com
|
||||
0.0.0.0 bigindiansex.mobi
|
||||
0.0.0.0 cdn.bigindiansex.mobi
|
||||
0.0.0.0 cumception.com
|
||||
0.0.0.0 desi-xnxx.pro
|
||||
0.0.0.0 desi.portomega.ru
|
||||
0.0.0.0 desifuck.net
|
||||
0.0.0.0 desihdx.com
|
||||
0.0.0.0 hot-indian-pussy.com
|
||||
0.0.0.0 indiansexuniversity.com
|
||||
0.0.0.0 kartavarna.com
|
||||
0.0.0.0 m.pornsexer.xxx
|
||||
0.0.0.0 moreindian.com
|
||||
0.0.0.0 pics.desi-xnxx.pro
|
||||
0.0.0.0 pornstars4escort.com
|
||||
0.0.0.0 sexsagar.com
|
||||
0.0.0.0 sundarikanya.com
|
||||
0.0.0.0 teenporno.sexy
|
||||
0.0.0.0 www.antarvasnaphotos.com
|
||||
0.0.0.0 www.cloudisexy.com
|
||||
0.0.0.0 www.cloudydirt.com
|
||||
0.0.0.0 www.hot-indian-pussy.com
|
||||
0.0.0.0 www.indian-porn.me
|
||||
0.0.0.0 www.justindiansex.com
|
||||
0.0.0.0 www.mypornarchive.net
|
||||
0.0.0.0 www.nccsc.net
|
||||
0.0.0.0 www.qqxnxx.com
|
||||
0.0.0.0 www.sexpicturespass.com
|
||||
0.0.0.0 www.sexy-dreams.com
|
||||
0.0.0.0 www.xxxindianvids.com
|
||||
0.0.0.0 xxxmovies.party
|
||||
0.0.0.0 yourporn18.com
|
||||
0.0.0.0 cdn.rapelust.com
|
||||
0.0.0.0 rapelust.com
|
||||
0.0.0.0 nakedgirls.mobi
|
||||
0.0.0.0 1-porn.com
|
||||
0.0.0.0 9xlust.in
|
||||
0.0.0.0 9xvideo.net
|
||||
0.0.0.0 bigtitsmilf.net
|
||||
0.0.0.0 cdn.onlyindian.net
|
||||
0.0.0.0 cdn.rapelust.com
|
||||
0.0.0.0 eroticup.com
|
||||
0.0.0.0 es.ancensored.com
|
||||
0.0.0.0 evt.mxplay.com
|
||||
0.0.0.0 gayforsex.com
|
||||
0.0.0.0 heroine-xxx.com
|
||||
0.0.0.0 indianporn360.com
|
||||
0.0.0.0 indianpornmovies.info
|
||||
0.0.0.0 indianxnxxtube.com
|
||||
0.0.0.0 indpaedia.com
|
||||
0.0.0.0 love4porn.com
|
||||
0.0.0.0 masala-desi.com
|
||||
0.0.0.0 moviessexscenes.com
|
||||
0.0.0.0 p.love4porn.com
|
||||
0.0.0.0 rapelust.com
|
||||
0.0.0.0 sdk.a79h.cn
|
||||
0.0.0.0 thefappeningblog.com
|
||||
0.0.0.0 thepornpic.com
|
||||
0.0.0.0 www.fuckcelebs.net
|
||||
0.0.0.0 www.host4see.com
|
||||
0.0.0.0 www.hotzxgirl.com
|
||||
0.0.0.0 www.indianporngirl.com
|
||||
0.0.0.0 www.justsherlynchopra.com
|
||||
0.0.0.0 www.nakedgirls.mobi
|
||||
0.0.0.0 www.partycelebs.com
|
||||
0.0.0.0 www.sexiezpix.com
|
||||
0.0.0.0 www.x4tos.com
|
||||
0.0.0.0 xossipfap.net
|
||||
0.0.0.0 xossipy.com
|
||||
0.0.0.0 xxx.nude.com
|
||||
0.0.0.0 yesleaks.com
|
||||
0.0.0.0 yespornplease.fun
|
||||
0.0.0.0 newsexstory.com
|
||||
0.0.0.0 sexualstories.club
|
||||
0.0.0.0 www.desikahani2.net
|
||||
0.0.0.0 www.desitales2.com
|
||||
0.0.0.0 www.freesexkahani.com
|
||||
0.0.0.0 www.indiansexstories2.net
|
||||
0.0.0.0 www.nonvegstory.com
|
||||
0.0.0.0 www.sex4stories.com
|
||||
0.0.0.0 www.xxxindianstories.com
|
||||
0.0.0.0 www.xxxvasna.com
|
||||
0.0.0.0 xxxvasna.disqus.com
|
||||
0.0.0.0 alldesitube.pro
|
||||
0.0.0.0 indianporntv.net
|
||||
0.0.0.0 nightxxxpics.com
|
||||
0.0.0.0 wetwetpics.com
|
||||
0.0.0.0 www.assxplanet.com
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "brijrajparmar27 - pornography",
|
||||
"description": "hosts files for DNS based content blocking",
|
||||
"homeurl": "https://github.com/brijrajparmar27/host-sources",
|
||||
"frequency": "occasional",
|
||||
"issues": "https://github.com/brijrajparmar27/host-sources/issues",
|
||||
"url": "https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts",
|
||||
"license": "CC BY 4.0"
|
||||
}
|
||||
+30174
-10868
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,7 @@
|
||||
"homeurl": "https://github.com/Clefspeare13/pornhosts",
|
||||
"frequency": "occasional",
|
||||
"issues": "https://github.com/Clefspeare13/pornhosts/issues",
|
||||
"url": "https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts",
|
||||
"url": "https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts",
|
||||
"url.old": "https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/download_here/0.0.0.0/hosts",
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
@@ -7,14 +7,20 @@
|
||||
127.0.0.1 deathaddict.com
|
||||
127.0.0.1 deathandreality.com
|
||||
127.0.0.1 gorebrasil.com
|
||||
127.0.0.1 goreforum.com
|
||||
127.0.0.1 goregrish.com
|
||||
127.0.0.1 leakreality.com
|
||||
127.0.0.1 theync.com
|
||||
127.0.0.1 miscopy.com
|
||||
127.0.0.1 mixtape.moe
|
||||
127.0.0.1 recipepes.com
|
||||
127.0.0.1 sickjunk.com
|
||||
127.0.0.1 elblogdelnarco.com
|
||||
127.0.0.1 kaotic.com
|
||||
127.0.0.1 ogrish.tv
|
||||
127.0.0.1 thepinsta.com
|
||||
127.0.0.1 vidmax.com
|
||||
127.0.0.1 devilpain.com
|
||||
127.0.0.1 crazypain.com
|
||||
127.0.0.1 sadovids.com
|
||||
|
||||
|
||||
+4101
-420
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
# Title: Social media hosts
|
||||
# Updated: June 20, 2019
|
||||
# Updated: June 27, 2021
|
||||
|
||||
# Google Plus
|
||||
#127.0.0.1 plus.l.google.com
|
||||
@@ -1732,14 +1732,27 @@
|
||||
127.0.0.1 zh-tw.facebook.com
|
||||
|
||||
# Instagram
|
||||
127.0.0.1 a.ns.cdninstagram.com
|
||||
127.0.0.1 api.instagram.com
|
||||
127.0.0.1 b.ns.cdninstagram.com
|
||||
127.0.0.1 badges.instagram.com
|
||||
127.0.0.1 black.ish.instagram.com
|
||||
127.0.0.1 business.instagram.com
|
||||
127.0.0.1 c.ns.cdninstagram.com
|
||||
127.0.0.1 cdninstagram.com
|
||||
127.0.0.1 creative.cdninstagram.com
|
||||
127.0.0.1 d.ns.cdninstagram.com
|
||||
127.0.0.1 dragon.cdninstagram.com
|
||||
127.0.0.1 engineering.instagram.com
|
||||
127.0.0.1 external-prg1-1.cdninstagram.com
|
||||
127.0.0.1 external-vie1-1.cdninstagram.com
|
||||
127.0.0.1 external-waw1-1.cdninstagram.com
|
||||
127.0.0.1 external.cdninstagram.com
|
||||
127.0.0.1 fundingchoicesmessages.google.com
|
||||
127.0.0.1 help.instagram.com
|
||||
127.0.0.1 i.instagram.com
|
||||
127.0.0.1 images.instagram.com
|
||||
127.0.0.1 instagr.am
|
||||
127.0.0.1 instagram-shv-01-ams2.fbcdn.net
|
||||
127.0.0.1 instagram-shv-01-ams3.fbcdn.net
|
||||
127.0.0.1 instagram-shv-01-ash5.fbcdn.net
|
||||
@@ -1795,40 +1808,9 @@
|
||||
127.0.0.1 instagramstatic-a.akamaihd.net.edgesuite.net
|
||||
127.0.0.1 l.instagram.com
|
||||
127.0.0.1 logger.instagram.com
|
||||
127.0.0.1 platform.instagram.com
|
||||
127.0.0.1 scontent-a.cdninstagram.com
|
||||
127.0.0.1 scontent-ams3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-amt2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-arn2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-atl3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-b.cdninstagram.com
|
||||
127.0.0.1 scontent-dft4-1.cdninstagram.com
|
||||
127.0.0.1 scontent-dft4-2.cdninstagram.com
|
||||
127.0.0.1 scontent-fra3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-frt3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-frx5-1.cdninstagram.com
|
||||
127.0.0.1 scontent-iad3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-kul1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-mia1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-ort2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-ort2-2.cdninstagram.com
|
||||
127.0.0.1 scontent-sea1-1.cdninstagram.com
|
||||
127.0.0.1 scontent-sit4-1.cdninstagram.com
|
||||
127.0.0.1 scontent-sjc2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-syd2-1.cdninstagram.com
|
||||
127.0.0.1 scontent.cdninstagram.com
|
||||
127.0.0.1 telegraph-ash.instagram.com
|
||||
127.0.0.1 white.ish.instagram.com
|
||||
127.0.0.1 www.instagram.com
|
||||
127.0.0.1 a.ns.cdninstagram.com
|
||||
127.0.0.1 b.ns.cdninstagram.com
|
||||
127.0.0.1 c.ns.cdninstagram.com
|
||||
127.0.0.1 creative.cdninstagram.com
|
||||
127.0.0.1 d.ns.cdninstagram.com
|
||||
127.0.0.1 dragon.cdninstagram.com
|
||||
127.0.0.1 external.cdninstagram.com
|
||||
127.0.0.1 openvpn.cdninstagram.com
|
||||
127.0.0.1 platform.cdninstagram.com
|
||||
127.0.0.1 platform.instagram.com
|
||||
127.0.0.1 scontent-a-ams.cdninstagram.com
|
||||
127.0.0.1 scontent-a-amt.cdninstagram.com
|
||||
127.0.0.1 scontent-a-arn.cdninstagram.com
|
||||
@@ -1904,7 +1886,6 @@
|
||||
127.0.0.1 scontent-b-otp.cdninstagram.com
|
||||
127.0.0.1 scontent-b-pao.cdninstagram.com
|
||||
127.0.0.1 scontent-b-scl.cdninstagram.com
|
||||
127.0.0.1 scontent-b-scl.cdninstagram.com
|
||||
127.0.0.1 scontent-b-sea.cdninstagram.com
|
||||
127.0.0.1 scontent-b-sin.cdninstagram.com
|
||||
127.0.0.1 scontent-b-sjc.cdninstagram.com
|
||||
@@ -2041,11 +2022,18 @@
|
||||
127.0.0.1 scontent-zrh1-1.cdninstagram.com
|
||||
127.0.0.1 scontent.cdninstagram.com
|
||||
127.0.0.1 static.cdninstagram.com
|
||||
127.0.0.1 telegraph-ash.instagram.com
|
||||
127.0.0.1 video-nrt1-1.cdninstagram.com
|
||||
127.0.0.1 video-ort2-1.cdninstagram.com
|
||||
127.0.0.1 video-ort2-2.cdninstagram.com
|
||||
127.0.0.1 video-prg1-1.cdninstagram.com
|
||||
127.0.0.1 video-vie1-1.cdninstagram.com
|
||||
127.0.0.1 video-waw1-1.cdninstagram.com
|
||||
127.0.0.1 video.cdninstagram.com
|
||||
127.0.0.1 white.ish.instagram.com
|
||||
127.0.0.1 www.cdninstagram.com
|
||||
127.0.0.1 www.instagr.am
|
||||
127.0.0.1 www.instagram.com
|
||||
127.0.0.1 z-p15-scontent-bru2-1.cdninstagram.com
|
||||
127.0.0.1 z-p15-scontent-cdg2-1.cdninstagram.com
|
||||
127.0.0.1 z-p15-scontent-cdt1-1.cdninstagram.com
|
||||
@@ -2125,7 +2113,6 @@
|
||||
127.0.0.1 z-p42-scontent.cdninstagram.com
|
||||
127.0.0.1 z-p42-static.cdninstagram.com
|
||||
|
||||
|
||||
# Whatsapp
|
||||
127.0.0.1 account.whatsapp.com
|
||||
127.0.0.1 alpha.whatsapp.com
|
||||
@@ -2812,9 +2799,60 @@
|
||||
127.0.0.1 allotalk.com
|
||||
|
||||
# Tik-Toc
|
||||
127.0.0.1 tiktok.com
|
||||
127.0.0.1 tiktokcdn.com
|
||||
127.0.0.1 musical.ly
|
||||
127.0.0.1 abtest-va-tiktok.byteoversea.com
|
||||
127.0.0.1 dm-maliva16.byteoversea.com
|
||||
127.0.0.1 dm.bytedance.com
|
||||
127.0.0.1 ibytedtos.com
|
||||
127.0.0.1 mon-va.byteoversea.com
|
||||
127.0.0.1 mon.byteoversea.com
|
||||
127.0.0.1 muscdn.com
|
||||
127.0.0.1 tiktokv.com
|
||||
127.0.0.1 musical.ly
|
||||
127.0.0.1 musically.ly
|
||||
127.0.0.1 p16-tiktokcdn-com.akamaized.net
|
||||
127.0.0.1 p16.hypstarcdn.com
|
||||
127.0.0.1 s16.tiktokcdn.com
|
||||
127.0.0.1 sf-tb-sg.ibytedtos.com
|
||||
127.0.0.1 sgali3.l.byteoversea.net
|
||||
127.0.0.1 tiktok.com
|
||||
127.0.0.1 tiktok.org
|
||||
127.0.0.1 tiktokcdn-com.akamaized.net
|
||||
127.0.0.1 tiktokcdn.com
|
||||
127.0.0.1 tiktokv.com
|
||||
127.0.0.1 v16-tiktokcdn-com.akamaized.net
|
||||
127.0.0.1 verification-va.byteoversea.com
|
||||
127.0.0.1 www.tiktok.com
|
||||
127.0.0.1 xlog-va.byteoversea.com
|
||||
|
||||
# DateMeme
|
||||
127.0.0.1 datememe.com
|
||||
127.0.0.1 www.datememe.com
|
||||
127.0.0.1 admin.datememe.com
|
||||
127.0.0.1 blog.datememe.com
|
||||
127.0.0.1 bn.datememe.com
|
||||
127.0.0.1 c1.datememe.com
|
||||
127.0.0.1 c2.datememe.com
|
||||
127.0.0.1 c3.datememe.com
|
||||
127.0.0.1 de.datememe.com
|
||||
127.0.0.1 en.datememe.com
|
||||
127.0.0.1 es.datememe.com
|
||||
127.0.0.1 fr.datememe.com
|
||||
127.0.0.1 hi.datememe.com
|
||||
127.0.0.1 id.datememe.com
|
||||
127.0.0.1 ja.datememe.com
|
||||
127.0.0.1 jv.datememe.com
|
||||
127.0.0.1 ko.datememe.com
|
||||
127.0.0.1 pt.datememe.com
|
||||
127.0.0.1 ru.datememe.com
|
||||
127.0.0.1 th.datememe.com
|
||||
127.0.0.1 vi.datememe.com
|
||||
127.0.0.1 zh-cn.datememe.com
|
||||
|
||||
# clubhouse
|
||||
127.0.0.1 joinclubhouse.com
|
||||
127.0.0.1 www.joinclubhouse.com
|
||||
127.0.0.1 welcome.joinclubhouse.com
|
||||
127.0.0.1 community.joinclubhouse.com
|
||||
127.0.0.1 staging.joinclubhouse.com
|
||||
127.0.0.1 admin-staging.joinclubhouse.com
|
||||
127.0.0.1 ios.joinclubhouse.com
|
||||
127.0.0.1 testflight.joinclubhouse.com
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
description = "Unified hosts file with base extensions.";
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
outputs = { self, nixpkgs, flake-utils }: {
|
||||
nixosModule = { config, ... }:
|
||||
with nixpkgs.lib;
|
||||
let
|
||||
cfg = config.networking.stevenBlackHosts;
|
||||
alternatesList = (if cfg.blockFakenews then [ "fakenews" ] else []) ++
|
||||
(if cfg.blockGambling then [ "gambling" ] else []) ++
|
||||
(if cfg.blockPorn then [ "porn" ] else []) ++
|
||||
(if cfg.blockSocial then [ "social" ] else []);
|
||||
alternatesPath = "alternates/" + builtins.concatStringsSep "-" alternatesList + "/";
|
||||
in
|
||||
{
|
||||
options.networking.stevenBlackHosts = {
|
||||
enable = mkEnableOption "Use Steven Black's hosts file as extra hosts.";
|
||||
blockFakenews = mkEnableOption "Additionally block fakenews hosts.";
|
||||
blockGambling = mkEnableOption "Additionally block gambling hosts.";
|
||||
blockPorn = mkEnableOption "Additionally block porn hosts.";
|
||||
blockSocial = mkEnableOption "Additionally block social hosts.";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
networking.extraHosts =
|
||||
builtins.readFile (
|
||||
"${self}/" + (if alternatesList != [] then alternatesPath else "") + "hosts"
|
||||
);
|
||||
};
|
||||
};
|
||||
} // flake-utils.lib.eachDefaultSystem
|
||||
(system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
devShell = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
python3
|
||||
python3Packages.flake8
|
||||
python3Packages.requests
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2020 Steven Black
|
||||
Copyright © 2022 Steven Black
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the “Software”), to deal in
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hosts",
|
||||
"version": "3.3.0",
|
||||
"version": "3.9.67",
|
||||
"description": "Extending and consolidating hosts files from several well-curated sources like adaway.org, mvps.org, malwaredomainlist.com, someonewhocares.org, and potentially others. You can optionally invoke extensions to block additional sites by category.",
|
||||
"main": "",
|
||||
"private": true,
|
||||
@@ -35,6 +35,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/StevenBlack/hosts#readme",
|
||||
"devDependencies": {
|
||||
"release-it": "^14.2.1"
|
||||
"release-it": "^14.12.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
----
|
||||
**Take Note!**
|
||||
|
||||
* This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
* 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.
|
||||
|
||||
----
|
||||
|
||||

|
||||
@@ -11,7 +10,7 @@
|
||||
[](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?workflow=CI)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -22,37 +21,36 @@
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
|
||||
* Last updated: **December 31 2020**.
|
||||
* Here's the [raw hosts file with base extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) containing 58,459 entries.
|
||||
* Last updated: **April 30 2022**.
|
||||
* Here's the [raw hosts file with base extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) containing 99,938 entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
[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) | 58,459 | [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) | 60,654 | [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) | 60,783 | [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) | 80,518 | [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) | 61,218 | [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) | 62,978 | [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) | 82,713 | [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) | 63,413 | [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) | 82,842 | [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) | 63,542 | [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) | 83,276 | [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) | 85,037 | [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) | 65,737 | [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) | 85,471 | [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) | 85,600 | [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) | 87,795 | [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) | 99,938 | [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) | 102,133 | [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) | 102,476 | [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) | 142,890 | [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) | 102,753 | [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) | 104,671 | [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) | 145,084 | [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) | 104,948 | [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) | 145,428 | [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) | 105,291 | [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) | 145,704 | [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) | 147,623 | [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) | 107,486 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 147,898 | [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) | 148,242 | [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) | 150,437 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -67,24 +65,25 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:cosntacptamem@abuse.ch)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
@@ -105,19 +104,19 @@ The container will contain Python 3 and all its dependency requirements, and a c
|
||||
|
||||
Build the Docker container like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
### Option 2: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -127,7 +126,7 @@ 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).
|
||||
|
||||
### Common steps regardless of your development environment.
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
@@ -144,7 +143,7 @@ will use the `hosts` file that's already there.
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
@@ -205,24 +204,6 @@ in hosts format to the generated hosts file.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
@@ -281,7 +262,6 @@ Then, submit a pull request.
|
||||
|
||||
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
|
||||
@@ -320,22 +300,69 @@ interfere with a web server that may be running on the local PC.
|
||||
|
||||
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.
|
||||
* **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.)
|
||||
@@ -354,26 +381,27 @@ 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"
|
||||
* **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.cmd)
|
||||
for more details.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
|
||||
manually flush your DNS cache once the new hosts file is in place.
|
||||
|
||||
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
:-----------------------------------------------------------------------------------------
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
@@ -387,36 +415,30 @@ ipconfig /flushdns
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
**Debian/Ubuntu** `sudo service network-manager restart`
|
||||
* **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`
|
||||
|
||||
**Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
|
||||
|
||||
**Linux with systemd**: `sudo systemctl restart network.service`
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
|
||||
|
||||
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
**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
|
||||
```
|
||||
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
* **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
|
||||
|
||||
@@ -438,11 +460,8 @@ This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/
|
||||
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
|
||||
@@ -456,30 +475,24 @@ 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. This is a very interesting project to set up yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-poe-edition-the-network-wide-ad-blocker).
|
||||
|
||||
* [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 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.
|
||||
|
||||
* [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.
|
||||
* [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.
|
||||
|
||||
## Contribute!
|
||||
## 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.
|
||||
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+101
-90
@@ -1,8 +1,7 @@
|
||||
----
|
||||
**Take Note!**
|
||||
|
||||
* This version of the Hosts file generator, and tests, are for Python 3.5+ only.
|
||||
* 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.
|
||||
|
||||
----
|
||||
|
||||

|
||||
@@ -11,7 +10,7 @@
|
||||
[](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?workflow=CI)
|
||||
[](https://github.com/StevenBlack/hosts/actions?query=workflow%3ACI+branch%3Amaster)
|
||||
[](https://github.com/python/black)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
@@ -26,13 +25,12 @@ into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
* Here's the [raw hosts file @EXTENSIONS_HEADER@](https://raw.githubusercontent.com/StevenBlack/hosts/master/@SUBFOLDER@hosts) containing @NUM_ENTRIES@ entries.
|
||||
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](http://www.abelhadigital.com/hostsman/) that don't work
|
||||
[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
|
||||
@@ -51,7 +49,6 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
@SOURCEROWS@
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
@@ -72,19 +69,19 @@ The container will contain Python 3 and all its dependency requirements, and a c
|
||||
|
||||
Build the Docker container like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker build ./
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
|
||||
```
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
### Option 2: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -94,7 +91,7 @@ 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).
|
||||
|
||||
### Common steps regardless of your development environment.
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
|
||||
@@ -111,7 +108,7 @@ will use the `hosts` file that's already there.
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
@@ -172,24 +169,6 @@ in hosts format to the generated hosts file.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
@@ -248,7 +227,6 @@ Then, submit a pull request.
|
||||
|
||||
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
|
||||
@@ -287,22 +265,69 @@ interfere with a web server that may be running on the local PC.
|
||||
|
||||
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.
|
||||
* **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.)
|
||||
@@ -321,26 +346,27 @@ 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"
|
||||
* **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.cmd)
|
||||
for more details.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
|
||||
manually flush your DNS cache once the new hosts file is in place.
|
||||
|
||||
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
:-----------------------------------------------------------------------------------------
|
||||
The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: <https://superuser.com/questions/723703>
|
||||
|
||||
### Windows
|
||||
|
||||
@@ -354,36 +380,30 @@ ipconfig /flushdns
|
||||
|
||||
Open a Terminal and run with root privileges:
|
||||
|
||||
**Debian/Ubuntu** `sudo service network-manager restart`
|
||||
* **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`
|
||||
|
||||
**Linux Mint** `sudo /etc/init.d/dns-clean start`
|
||||
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
|
||||
|
||||
**Linux with systemd**: `sudo systemctl restart network.service`
|
||||
```sh
|
||||
sudo sysrc nscd_enable="YES"
|
||||
sudo service nscd start
|
||||
```
|
||||
|
||||
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
|
||||
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
|
||||
|
||||
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
|
||||
```text
|
||||
hosts: cache files dns
|
||||
```
|
||||
|
||||
**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
|
||||
```
|
||||
|
||||
**Others**: Consult [this Wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
|
||||
* **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
|
||||
|
||||
@@ -405,11 +425,8 @@ This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/
|
||||
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
|
||||
@@ -423,30 +440,24 @@ 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. This is a very interesting project to set up yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-poe-edition-the-network-wide-ad-blocker).
|
||||
|
||||
* [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 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.
|
||||
|
||||
* [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.
|
||||
* [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.
|
||||
|
||||
## Contribute!
|
||||
## 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.
|
||||
|
||||
|
||||
+2
-2
@@ -1,2 +1,2 @@
|
||||
requests>=2.20
|
||||
flake8>=3.8,<=4.0
|
||||
requests ~=2.20
|
||||
flake8 ~=4.0
|
||||
|
||||
@@ -1,2 +1,6 @@
|
||||
[flake8]
|
||||
max-line-length = 120
|
||||
extend-ignore = E203
|
||||
|
||||
[isort]
|
||||
profile = black
|
||||
|
||||
+112
-23
@@ -30,7 +30,7 @@ from updateHostsFile import (
|
||||
gather_custom_exclusions,
|
||||
get_defaults,
|
||||
get_file_by_url,
|
||||
is_valid_domain_format,
|
||||
is_valid_user_provided_domain_format,
|
||||
matches_exclusions,
|
||||
move_hosts_file_into_place,
|
||||
normalize_rule,
|
||||
@@ -125,7 +125,7 @@ class TestGetDefaults(Base):
|
||||
"readmedata": {},
|
||||
"readmedatafilename": ("foo" + self.sep + "readmeData.json"),
|
||||
"exclusionpattern": r"([a-zA-Z\d-]+\.){0,}",
|
||||
"exclusionregexs": [],
|
||||
"exclusionregexes": [],
|
||||
"exclusions": [],
|
||||
"commonexclusions": ["hulu.com"],
|
||||
"blacklistfile": "foo" + self.sep + "blacklist",
|
||||
@@ -543,7 +543,9 @@ class TestGatherCustomExclusions(BaseStdout):
|
||||
# Can only test in the invalid domain case
|
||||
# because of the settings global variable.
|
||||
@mock.patch("updateHostsFile.input", side_effect=["foo", "no"])
|
||||
@mock.patch("updateHostsFile.is_valid_domain_format", return_value=False)
|
||||
@mock.patch(
|
||||
"updateHostsFile.is_valid_user_provided_domain_format", return_value=False
|
||||
)
|
||||
def test_basic(self, *_):
|
||||
gather_custom_exclusions("foo", [])
|
||||
|
||||
@@ -552,7 +554,9 @@ class TestGatherCustomExclusions(BaseStdout):
|
||||
self.assertIn(expected, output)
|
||||
|
||||
@mock.patch("updateHostsFile.input", side_effect=["foo", "yes", "bar", "no"])
|
||||
@mock.patch("updateHostsFile.is_valid_domain_format", return_value=False)
|
||||
@mock.patch(
|
||||
"updateHostsFile.is_valid_user_provided_domain_format", return_value=False
|
||||
)
|
||||
def test_multiple(self, *_):
|
||||
gather_custom_exclusions("foo", [])
|
||||
|
||||
@@ -633,6 +637,31 @@ class TestMatchesExclusions(Base):
|
||||
]:
|
||||
self.assertTrue(matches_exclusions(domain, exclusion_regexes))
|
||||
|
||||
def test_match_raw_list(self):
|
||||
exclusion_regexes = [r".*\.com", r".*\.org", r".*\.edu", r".*@.*"]
|
||||
exclusion_regexes = [re.compile(regex) for regex in exclusion_regexes]
|
||||
|
||||
for domain in [
|
||||
"hulu.com",
|
||||
"yahoo.com",
|
||||
"adaway.org",
|
||||
"education.edu",
|
||||
"a.stro.lo.gy@45.144.225.135",
|
||||
]:
|
||||
self.assertTrue(matches_exclusions(domain, exclusion_regexes))
|
||||
|
||||
def test_no_match_raw_list(self):
|
||||
exclusion_regexes = [r".*\.org", r".*\.edu"]
|
||||
exclusion_regexes = [re.compile(regex) for regex in exclusion_regexes]
|
||||
|
||||
for domain in [
|
||||
"localhost",
|
||||
"hulu.com",
|
||||
"yahoo.com",
|
||||
"cloudfront.net",
|
||||
]:
|
||||
self.assertFalse(matches_exclusions(domain, exclusion_regexes))
|
||||
|
||||
|
||||
# End Exclusion Logic
|
||||
|
||||
@@ -806,13 +835,11 @@ class TestNormalizeRule(BaseStdout):
|
||||
def test_no_match(self):
|
||||
kwargs = dict(target_ip="0.0.0.0", keep_domain_comments=False)
|
||||
|
||||
# Note: "Bare"- Domains are accepted. IP are excluded.
|
||||
for rule in [
|
||||
"foo",
|
||||
"128.0.0.1",
|
||||
"bar.com/usa",
|
||||
"0.0.0 google",
|
||||
"0.1.2.3.4 foo/bar",
|
||||
"twitter.com",
|
||||
]:
|
||||
self.assertEqual(normalize_rule(rule, **kwargs), (None, None))
|
||||
|
||||
@@ -874,13 +901,43 @@ class TestNormalizeRule(BaseStdout):
|
||||
|
||||
sys.stdout = StringIO()
|
||||
|
||||
def test_no_comment_raw(self):
|
||||
for rule in ("twitter.com", "google.com", "foo.bar.edu"):
|
||||
expected = (rule, "0.0.0.0 " + rule + "\n")
|
||||
|
||||
class TestStripRule(Base):
|
||||
def test_strip_empty(self):
|
||||
for line in ["0.0.0.0", "domain.com", "foo"]:
|
||||
output = strip_rule(line)
|
||||
actual = normalize_rule(
|
||||
rule, target_ip="0.0.0.0", keep_domain_comments=False
|
||||
)
|
||||
self.assertEqual(actual, expected)
|
||||
|
||||
# Nothing gets printed if there's a match.
|
||||
output = sys.stdout.getvalue()
|
||||
self.assertEqual(output, "")
|
||||
|
||||
sys.stdout = StringIO()
|
||||
|
||||
def test_with_comments_raw(self):
|
||||
for target_ip in ("0.0.0.0", "127.0.0.1", "8.8.8.8"):
|
||||
for comment in ("foo", "bar", "baz"):
|
||||
rule = "1.google.co.uk " + comment
|
||||
expected = (
|
||||
"1.google.co.uk",
|
||||
(str(target_ip) + " 1.google.co.uk # " + comment + "\n"),
|
||||
)
|
||||
|
||||
actual = normalize_rule(
|
||||
rule, target_ip=target_ip, keep_domain_comments=True
|
||||
)
|
||||
self.assertEqual(actual, expected)
|
||||
|
||||
# Nothing gets printed if there's a match.
|
||||
output = sys.stdout.getvalue()
|
||||
self.assertEqual(output, "")
|
||||
|
||||
sys.stdout = StringIO()
|
||||
|
||||
|
||||
class TestStripRule(Base):
|
||||
def test_strip_exactly_two(self):
|
||||
for line in [
|
||||
"0.0.0.0 twitter.com",
|
||||
@@ -903,6 +960,28 @@ class TestStripRule(Base):
|
||||
output = strip_rule(line + comment)
|
||||
self.assertEqual(output, line + comment)
|
||||
|
||||
def test_strip_raw(self):
|
||||
for line in [
|
||||
"twitter.com",
|
||||
"facebook.com",
|
||||
"google.com",
|
||||
"foo.bar.edu",
|
||||
]:
|
||||
output = strip_rule(line)
|
||||
self.assertEqual(output, line)
|
||||
|
||||
def test_strip_raw_with_comment(self):
|
||||
comment = " # comments here galore"
|
||||
|
||||
for line in [
|
||||
"twitter.com",
|
||||
"facebook.com",
|
||||
"google.com",
|
||||
"foo.bar.edu",
|
||||
]:
|
||||
output = strip_rule(line + comment)
|
||||
self.assertEqual(output, line + comment)
|
||||
|
||||
|
||||
class TestWriteOpeningHeader(BaseMockDir):
|
||||
def setUp(self):
|
||||
@@ -1526,8 +1605,8 @@ class DomainToIDNA(Base):
|
||||
|
||||
# Test with multiple tabulations as separator of domain and space and
|
||||
# tabulation as separator or comments.
|
||||
for i in range(len(self.domains)):
|
||||
data = (b"0.0.0.0\t\t\t" + self.domains[i] + b" \t # Hello World").decode(
|
||||
for i, domain in enumerate(self.domains):
|
||||
data = (b"0.0.0.0\t\t\t" + domain + b" \t # Hello World").decode(
|
||||
"utf-8"
|
||||
)
|
||||
expected = "0.0.0.0\t\t\t" + self.expected_domains[i] + " \t # Hello World"
|
||||
@@ -1572,20 +1651,30 @@ class GetFileByUrl(BaseStdout):
|
||||
self.assertEqual(expected, actual)
|
||||
|
||||
def test_connect_unknown_domain(self):
|
||||
test_url = "http://doesnotexist.google.com" # leads to exception: ConnectionError
|
||||
with mock.patch("requests.get", side_effect=requests.exceptions.ConnectionError):
|
||||
test_url = (
|
||||
"http://doesnotexist.google.com" # leads to exception: ConnectionError
|
||||
)
|
||||
with mock.patch(
|
||||
"requests.get", side_effect=requests.exceptions.ConnectionError
|
||||
):
|
||||
return_value = get_file_by_url(test_url)
|
||||
self.assertIsNone(return_value)
|
||||
printed_output = sys.stdout.getvalue()
|
||||
self.assertEqual(printed_output, "Error retrieving data from {}\n".format(test_url))
|
||||
self.assertEqual(
|
||||
printed_output, "Error retrieving data from {}\n".format(test_url)
|
||||
)
|
||||
|
||||
def test_invalid_url(self):
|
||||
test_url = "http://fe80::5054:ff:fe5a:fc0" # leads to exception: InvalidURL
|
||||
with mock.patch("requests.get", side_effect=requests.exceptions.ConnectionError):
|
||||
with mock.patch(
|
||||
"requests.get", side_effect=requests.exceptions.ConnectionError
|
||||
):
|
||||
return_value = get_file_by_url(test_url)
|
||||
self.assertIsNone(return_value)
|
||||
printed_output = sys.stdout.getvalue()
|
||||
self.assertEqual(printed_output, "Error retrieving data from {}\n".format(test_url))
|
||||
self.assertEqual(
|
||||
printed_output, "Error retrieving data from {}\n".format(test_url)
|
||||
)
|
||||
|
||||
|
||||
class TestWriteData(Base):
|
||||
@@ -1669,14 +1758,14 @@ class TestQueryYesOrNo(BaseStdout):
|
||||
self.assertIn(expected, output)
|
||||
|
||||
|
||||
class TestIsValidDomainFormat(BaseStdout):
|
||||
class TestIsValidUserProvidedDomainFormat(BaseStdout):
|
||||
def test_empty_domain(self):
|
||||
self.assertFalse(is_valid_domain_format(""))
|
||||
self.assertFalse(is_valid_user_provided_domain_format(""))
|
||||
|
||||
output = sys.stdout.getvalue()
|
||||
expected = "You didn't enter a domain. Try again."
|
||||
|
||||
self.assertTrue(expected in output)
|
||||
self.assertIn(expected, output)
|
||||
|
||||
def test_invalid_domain(self):
|
||||
expected = "Do not include www.domain.com or http(s)://domain.com. Try again."
|
||||
@@ -1686,7 +1775,7 @@ class TestIsValidDomainFormat(BaseStdout):
|
||||
"https://github.com",
|
||||
"http://www.google.com",
|
||||
]:
|
||||
self.assertFalse(is_valid_domain_format(invalid_domain))
|
||||
self.assertFalse(is_valid_user_provided_domain_format(invalid_domain))
|
||||
|
||||
output = sys.stdout.getvalue()
|
||||
sys.stdout = StringIO()
|
||||
@@ -1695,7 +1784,7 @@ class TestIsValidDomainFormat(BaseStdout):
|
||||
|
||||
def test_valid_domain(self):
|
||||
for valid_domain in ["github.com", "travis.org", "twitter.com"]:
|
||||
self.assertTrue(is_valid_domain_format(valid_domain))
|
||||
self.assertTrue(is_valid_user_provided_domain_format(valid_domain))
|
||||
|
||||
output = sys.stdout.getvalue()
|
||||
sys.stdout = StringIO()
|
||||
|
||||
+70
-32
@@ -20,6 +20,7 @@ import sys
|
||||
import tempfile
|
||||
import time
|
||||
from glob import glob
|
||||
from typing import Optional, Tuple
|
||||
|
||||
# Detecting Python 3 for version-dependent implementations
|
||||
PY3 = sys.version_info >= (3, 0)
|
||||
@@ -31,8 +32,10 @@ if not PY3:
|
||||
try:
|
||||
import requests
|
||||
except ImportError:
|
||||
raise ImportError("This project's dependencies have changed. The Requests library ("
|
||||
"https://requests.readthedocs.io/en/master/) is now required.")
|
||||
raise ImportError(
|
||||
"This project's dependencies have changed. The Requests library ("
|
||||
"https://docs.python-requests.org/en/latest/) is now required."
|
||||
)
|
||||
|
||||
|
||||
# Syntactic sugar for "sudo" command in UNIX / Linux
|
||||
@@ -78,7 +81,7 @@ def get_defaults():
|
||||
"readmedata": {},
|
||||
"readmedatafilename": path_join_robust(BASEDIR_PATH, "readmeData.json"),
|
||||
"exclusionpattern": r"([a-zA-Z\d-]+\.){0,}",
|
||||
"exclusionregexs": [],
|
||||
"exclusionregexes": [],
|
||||
"exclusions": [],
|
||||
"commonexclusions": ["hulu.com"],
|
||||
"blacklistfile": path_join_robust(BASEDIR_PATH, "blacklist"),
|
||||
@@ -240,7 +243,7 @@ def main():
|
||||
)
|
||||
|
||||
auto = settings["auto"]
|
||||
exclusion_regexes = settings["exclusionregexs"]
|
||||
exclusion_regexes = settings["exclusionregexes"]
|
||||
source_data_filename = settings["sourcedatafilename"]
|
||||
|
||||
update_sources = prompt_for_update(freshen=settings["freshen"], update_auto=auto)
|
||||
@@ -568,7 +571,7 @@ def gather_custom_exclusions(exclusion_pattern, exclusion_regexes):
|
||||
domain_prompt = "Enter the domain you want to exclude (e.g. facebook.com): "
|
||||
user_domain = input(domain_prompt)
|
||||
|
||||
if is_valid_domain_format(user_domain):
|
||||
if is_valid_user_provided_domain_format(user_domain):
|
||||
exclusion_regexes = exclude_domain(
|
||||
user_domain, exclusion_pattern, exclusion_regexes
|
||||
)
|
||||
@@ -629,7 +632,11 @@ def matches_exclusions(stripped_rule, exclusion_regexes):
|
||||
Whether or not the rule string matches a provided exclusion.
|
||||
"""
|
||||
|
||||
stripped_domain = stripped_rule.split()[1]
|
||||
try:
|
||||
stripped_domain = stripped_rule.split()[1]
|
||||
except IndexError:
|
||||
# Example: 'example.org' instead of '0.0.0.0 example.org'
|
||||
stripped_domain = stripped_rule
|
||||
|
||||
for exclusionRegex in exclusion_regexes:
|
||||
if exclusionRegex.search(stripped_domain):
|
||||
@@ -936,6 +943,10 @@ def remove_dups_and_excl(merge_file, exclusion_regexes, output_file=None):
|
||||
if not stripped_rule or matches_exclusions(stripped_rule, exclusion_regexes):
|
||||
continue
|
||||
|
||||
# Issue #1628
|
||||
if "@" in stripped_rule:
|
||||
continue
|
||||
|
||||
# Normalize rule
|
||||
hostname, normalized_rule = normalize_rule(
|
||||
stripped_rule,
|
||||
@@ -944,7 +955,7 @@ def remove_dups_and_excl(merge_file, exclusion_regexes, output_file=None):
|
||||
)
|
||||
|
||||
for exclude in exclusions:
|
||||
if re.search(r"[\s\.]" + re.escape(exclude) + r"\s", line):
|
||||
if re.search(r"(^|[\s\.])" + re.escape(exclude) + r"\s", line):
|
||||
write_line = False
|
||||
break
|
||||
|
||||
@@ -981,6 +992,37 @@ def normalize_rule(rule, target_ip, keep_domain_comments):
|
||||
and spacing reformatted.
|
||||
"""
|
||||
|
||||
def normalize_response(
|
||||
extracted_hostname: str, extracted_suffix: Optional[str]
|
||||
) -> Tuple[str, str]:
|
||||
"""
|
||||
Normalizes the responses after the provision of the extracted
|
||||
hostname and suffix - if exist.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
extracted_hostname: str
|
||||
The extracted hostname to work with.
|
||||
extracted_suffix: str
|
||||
The extracted suffix to with.
|
||||
|
||||
Returns
|
||||
-------
|
||||
normalized_response: tuple
|
||||
A tuple of the hostname and the rule string with spelling
|
||||
and spacing reformatted.
|
||||
"""
|
||||
|
||||
rule = "%s %s" % (target_ip, extracted_hostname)
|
||||
|
||||
if keep_domain_comments and extracted_suffix:
|
||||
if not extracted_suffix.strip().startswith("#"):
|
||||
rule += " #%s" % extracted_suffix
|
||||
else:
|
||||
rule += " %s" % extracted_suffix
|
||||
|
||||
return extracted_hostname, rule + "\n"
|
||||
|
||||
"""
|
||||
first try: IP followed by domain
|
||||
"""
|
||||
@@ -992,15 +1034,8 @@ def normalize_rule(rule, target_ip, keep_domain_comments):
|
||||
|
||||
# Explicitly lowercase and trim the hostname.
|
||||
hostname = hostname.lower().strip()
|
||||
rule = "%s %s" % (target_ip, hostname)
|
||||
|
||||
if suffix and keep_domain_comments:
|
||||
if not suffix.strip().startswith("#"):
|
||||
rule += " #%s" % suffix
|
||||
else:
|
||||
rule += " %s" % suffix
|
||||
|
||||
return hostname, rule + "\n"
|
||||
return normalize_response(hostname, suffix)
|
||||
|
||||
"""
|
||||
next try: IP address followed by host IP address
|
||||
@@ -1012,15 +1047,22 @@ def normalize_rule(rule, target_ip, keep_domain_comments):
|
||||
ip_host, suffix = result.group(2, 3)
|
||||
# Explicitly trim the ip host.
|
||||
ip_host = ip_host.strip()
|
||||
rule = "%s %s" % (target_ip, ip_host)
|
||||
|
||||
if suffix and keep_domain_comments:
|
||||
if not suffix.strip().startswith("#"):
|
||||
rule += " #%s" % suffix
|
||||
else:
|
||||
rule += " %s" % suffix
|
||||
return normalize_response(ip_host, suffix)
|
||||
|
||||
return ip_host, rule + "\n"
|
||||
"""
|
||||
next try: Keep RAW domain.
|
||||
"""
|
||||
regex = r"^\s*([\w\.-]+[a-zA-Z])(.*)"
|
||||
result = re.search(regex, rule)
|
||||
|
||||
if result:
|
||||
hostname, suffix = result.group(1, 2)
|
||||
|
||||
# Explicitly lowercase and trim the hostname.
|
||||
hostname = hostname.lower().strip()
|
||||
|
||||
return normalize_response(hostname, suffix)
|
||||
|
||||
"""
|
||||
finally, if we get here, just belch to screen
|
||||
@@ -1044,12 +1086,7 @@ def strip_rule(line):
|
||||
The sanitized rule.
|
||||
"""
|
||||
|
||||
split_line = line.split()
|
||||
if len(split_line) < 2:
|
||||
# just return blank
|
||||
return ""
|
||||
else:
|
||||
return " ".join(split_line)
|
||||
return " ".join(line.split())
|
||||
|
||||
|
||||
def write_opening_header(final_file, **header_params):
|
||||
@@ -1313,8 +1350,9 @@ def flush_dns_cache():
|
||||
)
|
||||
|
||||
if os.path.isfile(service_file):
|
||||
if 0 != subprocess.call([systemctl, "status", service],
|
||||
stdout=subprocess.DEVNULL):
|
||||
if 0 != subprocess.call(
|
||||
[systemctl, "status", service], stdout=subprocess.DEVNULL
|
||||
):
|
||||
continue
|
||||
dns_cache_found = True
|
||||
|
||||
@@ -1539,7 +1577,7 @@ def query_yes_no(question, default="yes"):
|
||||
|
||||
Inspired by the following implementation:
|
||||
|
||||
http://code.activestate.com/recipes/577058
|
||||
https://code.activestate.com/recipes/577058/
|
||||
|
||||
Parameters
|
||||
----------
|
||||
@@ -1578,7 +1616,7 @@ def query_yes_no(question, default="yes"):
|
||||
return reply == "yes"
|
||||
|
||||
|
||||
def is_valid_domain_format(domain):
|
||||
def is_valid_user_provided_domain_format(domain):
|
||||
"""
|
||||
Check whether a provided domain is valid.
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ if not exist "%WINDIR%\System32\drivers\etc\hosts.skel" (
|
||||
|
||||
:UpdateHosts
|
||||
:: Update hosts file
|
||||
py updateHostsFile.py --auto --minimise
|
||||
py updateHostsFile.py --auto --minimise %*
|
||||
|
||||
:: Copy over the new hosts file in-place
|
||||
copy /y /v hosts "%WINDIR%\System32\drivers\etc\"
|
||||
|
||||
Reference in New Issue
Block a user