Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f019980188 | ||
|
|
7ac8dc461e | ||
|
|
3d0b8513c6 | ||
|
|
fdb268d9bb | ||
|
|
669fcc643d | ||
|
|
5a0970a36a | ||
|
|
7453405de9 | ||
|
|
63adac1c53 | ||
|
|
fcad93391a | ||
|
|
dc81ea4e31 | ||
|
|
89dd38bf5f | ||
|
|
a50ff2f1c9 | ||
|
|
c61cb618a3 | ||
|
|
1afb089e04 | ||
|
|
86b75663d3 | ||
|
|
6decfb7aea | ||
|
|
a14ba3a44a | ||
|
|
9d93f36a4b | ||
|
|
4eb1165f97 | ||
|
|
74a0c8a597 | ||
|
|
50df606d28 | ||
|
|
82d8663273 | ||
|
|
0e90c2f88d | ||
|
|
f8897cd0b7 | ||
|
|
fc83d860da | ||
|
|
448cc754ad | ||
|
|
e31b539285 | ||
|
|
b67b57a3d4 | ||
|
|
2a008a6945 | ||
|
|
5e07aabb3e | ||
|
|
df03fb6b26 | ||
|
|
c0202eb54d | ||
|
|
23c13f21c8 | ||
|
|
ffa9dbd70d | ||
|
|
f981341c23 | ||
|
|
6bbe613270 | ||
|
|
fa41eaa31e | ||
|
|
f58a9138f4 | ||
|
|
3bed35fcad | ||
|
|
aa74ccd2bf | ||
|
|
fd3b86ca67 | ||
|
|
dfc5080079 | ||
|
|
28159b5f2c | ||
|
|
c5a79cec41 | ||
|
|
057f4ed0f4 | ||
|
|
236adfb388 | ||
|
|
964cbbeaad | ||
|
|
aab3d33075 | ||
|
|
8dbfa0196a | ||
|
|
bc271a3f6a | ||
|
|
43e078c7d6 | ||
|
|
28574134e0 | ||
|
|
455ba0488e | ||
|
|
6aa5b53829 | ||
|
|
79e7103f00 | ||
|
|
35e6719e72 | ||
|
|
4ffbac63c2 | ||
|
|
410aca3cc3 | ||
|
|
4cfe084f40 | ||
|
|
6dd1175476 | ||
|
|
64de540908 | ||
|
|
cfe020f850 | ||
|
|
03ebca36b5 | ||
|
|
0394323a0e | ||
|
|
861c6b3616 | ||
|
|
fc09b89eb5 | ||
|
|
3c8ded3dd7 | ||
|
|
a2ad0c6f0b | ||
|
|
b384474be8 | ||
|
|
918c746685 | ||
|
|
43509bd5c4 | ||
|
|
a892e66398 | ||
|
|
8afde55a03 | ||
|
|
621e1d6653 | ||
|
|
787401a440 | ||
|
|
159db62a83 | ||
|
|
69dd5790cf | ||
|
|
dccb1e220f | ||
|
|
efcc6cc042 | ||
|
|
fcf79f8bba | ||
|
|
3573a01dca | ||
|
|
dba24e8a3e | ||
|
|
6caf8a5244 | ||
|
|
0a99194b28 | ||
|
|
258b10edc9 | ||
|
|
71017d5eb5 | ||
|
|
34868f94a2 | ||
|
|
ea175b52ad | ||
|
|
1af0c9620c | ||
|
|
790f6b032b | ||
|
|
c69625a844 | ||
|
|
5b8adf9045 | ||
|
|
47b96a1705 | ||
|
|
a9d214f57d | ||
|
|
c1232095bf | ||
|
|
8465c778ae | ||
|
|
9ff9541a36 | ||
|
|
c2e9821666 | ||
|
|
7cecb93c94 | ||
|
|
ff07acc636 | ||
|
|
1a293025de | ||
|
|
776de547fd | ||
|
|
1ce9ed3103 | ||
|
|
0b4de22567 | ||
|
|
ad0f2296bc | ||
|
|
e7fc874aaf | ||
|
|
c609213987 | ||
|
|
d767875871 | ||
|
|
4a345dc95f | ||
|
|
71b032e7b6 | ||
|
|
82c2c7839b | ||
|
|
b93526bfc6 | ||
|
|
a0e307373d | ||
|
|
4c18fb82dd | ||
|
|
11b8c3d9ac | ||
|
|
addb0f13a7 | ||
|
|
be9aac7689 | ||
|
|
959c2ed25f | ||
|
|
5fce389e07 | ||
|
|
4647759f7a | ||
|
|
f04d6110ff | ||
|
|
8d648005d3 | ||
|
|
1e00bce248 | ||
|
|
2631aa8871 | ||
|
|
c0831f6b42 | ||
|
|
f2c9adfed9 | ||
|
|
f85e7540a4 | ||
|
|
8a294be922 | ||
|
|
d605b869f7 | ||
|
|
082553d8ee | ||
|
|
c0f77b2d86 | ||
|
|
c8ed1f1f0b | ||
|
|
e5c6ca7e60 | ||
|
|
fb1b7a1c1a | ||
|
|
06600e70bd | ||
|
|
f8d4526a07 | ||
|
|
c8f27f6e37 | ||
|
|
41a3adbf12 | ||
|
|
0f8ad83645 | ||
|
|
0677b534b1 | ||
|
|
8ded82cd4d | ||
|
|
b7b3f44d00 | ||
|
|
5f1880223b | ||
|
|
eb0c46b5fb | ||
|
|
d0d4874f5e | ||
|
|
b84402051e | ||
|
|
46e03da88c | ||
|
|
10db0f1783 | ||
|
|
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 |
@@ -0,0 +1,7 @@
|
||||
*
|
||||
!updateHostsFile.py
|
||||
!data
|
||||
!alternates
|
||||
!extensions
|
||||
!readmeData.json
|
||||
!requirements.txt
|
||||
@@ -2,3 +2,6 @@
|
||||
* text=auto eol=lf
|
||||
# Enforce Windows newlines for .bat files
|
||||
*.bat text eol=crlf
|
||||
|
||||
*.py linguist-detectable=true
|
||||
*.nb linguist-detectable=false
|
||||
|
||||
@@ -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
|
||||
@@ -1,20 +1,26 @@
|
||||
name: CI
|
||||
|
||||
on: [push, pull_request]
|
||||
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.7'
|
||||
- '3.8'
|
||||
- '3.9'
|
||||
- '3.10'
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- macos-latest
|
||||
@@ -22,29 +28,18 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python }}
|
||||
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
|
||||
@@ -52,5 +47,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@v2
|
||||
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@v2
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
name: Create and publish a container image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
tags:
|
||||
- "*"
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
jobs:
|
||||
build-and-push-image:
|
||||
name: Build and push container image
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Extract metadata (tags, labels)
|
||||
id: meta
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
- name: Build and push container image
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: .
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
@@ -0,0 +1,14 @@
|
||||
name: 'Dependency Review'
|
||||
on: [pull_request]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
dependency-review:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 'Checkout Repository'
|
||||
uses: actions/checkout@v3
|
||||
- name: 'Dependency Review'
|
||||
uses: actions/dependency-review-action@v2
|
||||
@@ -3,8 +3,8 @@
|
||||
myhosts
|
||||
blacklist
|
||||
whitelist
|
||||
readmeData.json
|
||||
hosts-*
|
||||
/web.config
|
||||
/__pycache__
|
||||
/node_modules
|
||||
/node_modules/
|
||||
/package-lock.json
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
FROM python:3
|
||||
FROM docker.io/python:3-alpine
|
||||
|
||||
WORKDIR /usr/src
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
RUN git clone --depth 1 https://github.com/StevenBlack/hosts.git
|
||||
WORKDIR /usr/src/hosts
|
||||
ENV IN_CONTAINER 1
|
||||
|
||||
# Now you launch this with
|
||||
# $ docker build ./
|
||||
# $ docker run -it (containerid) bash
|
||||
RUN apk add --no-cache git sudo
|
||||
|
||||
COPY . /hosts
|
||||
|
||||
RUN pip install --no-cache-dir --upgrade -r /hosts/requirements.txt
|
||||
|
||||
ENV PATH $PATH:/hosts
|
||||
|
||||
WORKDIR /hosts
|
||||
|
||||
|
After Width: | Height: | Size: 6.2 KiB |
@@ -1,8 +1,12 @@
|
||||
**Take Note!**
|
||||
|
||||
* With the exception of issues and PRs regarding changes to `hosts/data/StevenBlack/hosts`, all other issues regarding the content of the produced hosts files should be made with the appropriate data source that contributed the content in question. The contact information for all of the data sources can be found in the `hosts/data/` directory.
|
||||
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.
|
||||
|
||||
----
|
||||
---
|
||||
|
||||

|
||||
|
||||
@@ -19,38 +23,48 @@
|
||||
# Unified hosts file with fakenews, gambling, porn, social extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 24 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 187,835 entries.
|
||||
|
||||
|
||||
* Last updated: **July 19 2021**.
|
||||
* Here's the [raw hosts file with fakenews, gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) containing 112,243 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.
|
||||
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) | 78,604 | [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) | 80,799 | [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) | 81,061 | [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) | 104,777 | [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) | 81,419 | [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) | 83,256 | [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) | 106,972 | [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) | 83,614 | [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) | 107,234 | [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) | 83,876 | [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) | 107,591 | [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) | 109,429 | [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) | 86,071 | [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) | 109,786 | [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) | 110,048 | [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) | 112,243 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,496 | [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) | 138,691 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 139,058 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 180,253 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 139,322 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 141,253 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 182,447 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 141,517 | [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) | 182,815 | [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) | 141,884 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 183,078 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 185,010 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 144,079 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 185,272 | [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) | 185,640 | [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) | 187,835 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -61,72 +75,114 @@ of OS.
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Steven Black's ad-hoc list |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | MIT | [issues](https://github.com/StevenBlack/hosts/issues)| Additional sketch domains as I come across them.
|
||||
AdAway |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)| AdAway is an open source ad blocker for Android using the hosts file.
|
||||
add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Generate in a Docker container
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container with everything you need.
|
||||
The container will contain Python 3 and all its dependency requirements, and a copy of the latest version of this repository.
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
Build the Docker container like this:
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -134,9 +190,11 @@ First, install the dependencies with:
|
||||
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).
|
||||
**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,61 +202,62 @@ To **run unit tests**, in the top-level directory, run:
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
* Hosts data sources, including extensions, are updated.
|
||||
* No extensions are included by default. Use the `--extensions` or `-e` flag
|
||||
to include any you want.
|
||||
* Your active hosts file is *not* replaced unless you include the `--replace`
|
||||
flag.
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
|
||||
of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
|
||||
in a subfolder. If the subfolder does not exist, it will be created.
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is
|
||||
useful for configuring proximate DNS services on the local network.
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you are
|
||||
generating host files with additional whitelists or blacklists and want to keep your
|
||||
local checkout of this repo unmodified.
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
@@ -208,51 +267,33 @@ each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given blacklist file
|
||||
in hosts format to the generated hosts file.
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
folder, and specify the `url` key in its `update.json` file.
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more *optional* extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you need.
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents
|
||||
of this file are prepended to the unified hosts file during the update
|
||||
process.
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -262,41 +303,52 @@ overridden when you `git pull` this repo from `origin` in the future.
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged
|
||||
into the final hosts file.
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file
|
||||
used by all operating systems to map hostnames to IP addresses.
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`.
|
||||
Therefore if a domain name is resolved by the `hosts` file, the request never
|
||||
leaves your computer.
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
@@ -316,77 +368,137 @@ lines to your hosts file will do it:
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
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.
|
||||
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
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in
|
||||
the repository directory. In addition to updating the hosts file, it can also
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the following:
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
**Windows XP**: Start → Run → `cmd`
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"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 Vista, 7**: 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.
|
||||
|
||||
**Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
**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)
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
## 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.
|
||||
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
|
||||
|
||||
@@ -400,36 +512,35 @@ 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,61 +552,117 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an excellent CLI release
|
||||
tool for GitHub repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A
|
||||
hosts source should be frequently updated by its maintainers with both
|
||||
additions and removals. The larger the hosts file, the higher the level of
|
||||
curation is expected.
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutoUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash script that automatically updates host file. You can also update a fresh copy. And each time it generates a dnsmasq-compatible configuration file. Fast installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [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.
|
||||
|
||||
* [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.
|
||||
## Contribute
|
||||
|
||||
* [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.
|
||||
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.
|
||||
|
||||
* [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.
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
* [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.
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
* [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.
|
||||
|
||||
* [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts) This is a cross-platform command line utility to help install/update hosts files found at this repository.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
**Take Note!**
|
||||
|
||||
* With the exception of issues and PRs regarding changes to `hosts/data/StevenBlack/hosts`, all other issues regarding the content of the produced hosts files should be made with the appropriate data source that contributed the content in question. The contact information for all of the data sources can be found in the `hosts/data/` directory.
|
||||
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.
|
||||
|
||||
----
|
||||
---
|
||||
|
||||

|
||||
|
||||
@@ -19,38 +23,48 @@
|
||||
# Unified hosts file with fakenews, gambling, porn extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 24 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 185,010 entries.
|
||||
|
||||
|
||||
* Last updated: **July 19 2021**.
|
||||
* Here's the [raw hosts file with fakenews, gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) containing 109,429 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.
|
||||
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) | 78,604 | [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) | 80,799 | [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) | 81,061 | [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) | 104,777 | [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) | 81,419 | [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) | 83,256 | [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) | 106,972 | [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) | 83,614 | [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) | 107,234 | [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) | 83,876 | [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) | 107,591 | [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) | 109,429 | [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) | 86,071 | [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) | 109,786 | [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) | 110,048 | [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) | 112,243 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,496 | [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) | 138,691 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 139,058 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 180,253 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 139,322 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 141,253 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 182,447 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 141,517 | [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) | 182,815 | [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) | 141,884 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 183,078 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 185,010 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 144,079 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 185,272 | [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) | 185,640 | [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) | 187,835 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -61,70 +75,112 @@ of OS.
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Steven Black's ad-hoc list |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | MIT | [issues](https://github.com/StevenBlack/hosts/issues)| Additional sketch domains as I come across them.
|
||||
AdAway |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)| AdAway is an open source ad blocker for Android using the hosts file.
|
||||
add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Generate in a Docker container
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container with everything you need.
|
||||
The container will contain Python 3 and all its dependency requirements, and a copy of the latest version of this repository.
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
Build the Docker container like this:
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -132,9 +188,11 @@ First, install the dependencies with:
|
||||
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).
|
||||
**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:
|
||||
|
||||
@@ -142,61 +200,62 @@ To **run unit tests**, in the top-level directory, run:
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
* Hosts data sources, including extensions, are updated.
|
||||
* No extensions are included by default. Use the `--extensions` or `-e` flag
|
||||
to include any you want.
|
||||
* Your active hosts file is *not* replaced unless you include the `--replace`
|
||||
flag.
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
|
||||
of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
|
||||
in a subfolder. If the subfolder does not exist, it will be created.
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is
|
||||
useful for configuring proximate DNS services on the local network.
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you are
|
||||
generating host files with additional whitelists or blacklists and want to keep your
|
||||
local checkout of this repo unmodified.
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
@@ -206,51 +265,33 @@ each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given blacklist file
|
||||
in hosts format to the generated hosts file.
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
folder, and specify the `url` key in its `update.json` file.
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more *optional* extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you need.
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents
|
||||
of this file are prepended to the unified hosts file during the update
|
||||
process.
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -260,41 +301,52 @@ overridden when you `git pull` this repo from `origin` in the future.
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged
|
||||
into the final hosts file.
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file
|
||||
used by all operating systems to map hostnames to IP addresses.
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`.
|
||||
Therefore if a domain name is resolved by the `hosts` file, the request never
|
||||
leaves your computer.
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
@@ -314,77 +366,137 @@ lines to your hosts file will do it:
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
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.
|
||||
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
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in
|
||||
the repository directory. In addition to updating the hosts file, it can also
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the following:
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
**Windows XP**: Start → Run → `cmd`
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"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 Vista, 7**: 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.
|
||||
|
||||
**Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
**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)
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
## 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.
|
||||
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
|
||||
|
||||
@@ -398,36 +510,35 @@ 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,61 +550,117 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an excellent CLI release
|
||||
tool for GitHub repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A
|
||||
hosts source should be frequently updated by its maintainers with both
|
||||
additions and removals. The larger the hosts file, the higher the level of
|
||||
curation is expected.
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutoUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash script that automatically updates host file. You can also update a fresh copy. And each time it generates a dnsmasq-compatible configuration file. Fast installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [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.
|
||||
|
||||
* [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.
|
||||
## Contribute
|
||||
|
||||
* [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.
|
||||
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.
|
||||
|
||||
* [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.
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
* [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.
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
* [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.
|
||||
|
||||
* [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts) This is a cross-platform command line utility to help install/update hosts files found at this repository.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
**Take Note!**
|
||||
|
||||
* With the exception of issues and PRs regarding changes to `hosts/data/StevenBlack/hosts`, all other issues regarding the content of the produced hosts files should be made with the appropriate data source that contributed the content in question. The contact information for all of the data sources can be found in the `hosts/data/` directory.
|
||||
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.
|
||||
|
||||
----
|
||||
---
|
||||
|
||||

|
||||
|
||||
@@ -19,38 +23,48 @@
|
||||
# Unified hosts file with fakenews, gambling, social extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 24 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 144,079 entries.
|
||||
|
||||
|
||||
* Last updated: **July 19 2021**.
|
||||
* Here's the [raw hosts file with fakenews, gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) containing 86,071 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.
|
||||
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) | 78,604 | [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) | 80,799 | [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) | 81,061 | [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) | 104,777 | [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) | 81,419 | [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) | 83,256 | [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) | 106,972 | [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) | 83,614 | [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) | 107,234 | [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) | 83,876 | [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) | 107,591 | [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) | 109,429 | [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) | 86,071 | [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) | 109,786 | [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) | 110,048 | [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) | 112,243 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,496 | [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) | 138,691 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 139,058 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 180,253 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 139,322 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 141,253 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 182,447 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 141,517 | [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) | 182,815 | [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) | 141,884 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 183,078 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 185,010 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 144,079 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 185,272 | [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) | 185,640 | [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) | 187,835 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -61,68 +75,109 @@ of OS.
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Steven Black's ad-hoc list |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | MIT | [issues](https://github.com/StevenBlack/hosts/issues)| Additional sketch domains as I come across them.
|
||||
AdAway |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)| AdAway is an open source ad blocker for Android using the hosts file.
|
||||
add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Generate in a Docker container
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container with everything you need.
|
||||
The container will contain Python 3 and all its dependency requirements, and a copy of the latest version of this repository.
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
Build the Docker container like this:
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -130,9 +185,11 @@ First, install the dependencies with:
|
||||
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).
|
||||
**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:
|
||||
|
||||
@@ -140,61 +197,62 @@ To **run unit tests**, in the top-level directory, run:
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
* Hosts data sources, including extensions, are updated.
|
||||
* No extensions are included by default. Use the `--extensions` or `-e` flag
|
||||
to include any you want.
|
||||
* Your active hosts file is *not* replaced unless you include the `--replace`
|
||||
flag.
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
|
||||
of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
|
||||
in a subfolder. If the subfolder does not exist, it will be created.
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is
|
||||
useful for configuring proximate DNS services on the local network.
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you are
|
||||
generating host files with additional whitelists or blacklists and want to keep your
|
||||
local checkout of this repo unmodified.
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
@@ -204,51 +262,33 @@ each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given blacklist file
|
||||
in hosts format to the generated hosts file.
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
folder, and specify the `url` key in its `update.json` file.
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more *optional* extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you need.
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents
|
||||
of this file are prepended to the unified hosts file during the update
|
||||
process.
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -258,41 +298,52 @@ overridden when you `git pull` this repo from `origin` in the future.
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged
|
||||
into the final hosts file.
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file
|
||||
used by all operating systems to map hostnames to IP addresses.
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`.
|
||||
Therefore if a domain name is resolved by the `hosts` file, the request never
|
||||
leaves your computer.
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
@@ -312,77 +363,137 @@ lines to your hosts file will do it:
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
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.
|
||||
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
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in
|
||||
the repository directory. In addition to updating the hosts file, it can also
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the following:
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
**Windows XP**: Start → Run → `cmd`
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"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 Vista, 7**: 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.
|
||||
|
||||
**Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
**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)
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
## 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.
|
||||
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
|
||||
|
||||
@@ -396,36 +507,35 @@ 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
|
||||
|
||||
@@ -437,61 +547,117 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an excellent CLI release
|
||||
tool for GitHub repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A
|
||||
hosts source should be frequently updated by its maintainers with both
|
||||
additions and removals. The larger the hosts file, the higher the level of
|
||||
curation is expected.
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutoUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash script that automatically updates host file. You can also update a fresh copy. And each time it generates a dnsmasq-compatible configuration file. Fast installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [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.
|
||||
|
||||
* [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.
|
||||
## Contribute
|
||||
|
||||
* [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.
|
||||
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.
|
||||
|
||||
* [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.
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
* [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.
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
* [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.
|
||||
|
||||
* [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts) This is a cross-platform command line utility to help install/update hosts files found at this repository.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
**Take Note!**
|
||||
|
||||
* With the exception of issues and PRs regarding changes to `hosts/data/StevenBlack/hosts`, all other issues regarding the content of the produced hosts files should be made with the appropriate data source that contributed the content in question. The contact information for all of the data sources can be found in the `hosts/data/` directory.
|
||||
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.
|
||||
|
||||
----
|
||||
---
|
||||
|
||||

|
||||
|
||||
@@ -19,38 +23,48 @@
|
||||
# Unified hosts file with fakenews, gambling extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 24 2022**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts)
|
||||
containing 141,253 entries.
|
||||
|
||||
|
||||
* Last updated: **July 19 2021**.
|
||||
* Here's the [raw hosts file with fakenews, gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) containing 83,256 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.
|
||||
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) | 78,604 | [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) | 80,799 | [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) | 81,061 | [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) | 104,777 | [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) | 81,419 | [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) | 83,256 | [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) | 106,972 | [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) | 83,614 | [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) | 107,234 | [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) | 83,876 | [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) | 107,591 | [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) | 109,429 | [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) | 86,071 | [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) | 109,786 | [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) | 110,048 | [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) | 112,243 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,496 | [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) | 138,691 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 139,058 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 180,253 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 139,322 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 141,253 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 182,447 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 141,517 | [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) | 182,815 | [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) | 141,884 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 183,078 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 185,010 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 144,079 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 185,272 | [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) | 185,640 | [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) | 187,835 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -61,66 +75,107 @@ of OS.
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Steven Black's ad-hoc list |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | MIT | [issues](https://github.com/StevenBlack/hosts/issues)| Additional sketch domains as I come across them.
|
||||
AdAway |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)| AdAway is an open source ad blocker for Android using the hosts file.
|
||||
add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Generate in a Docker container
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container with everything you need.
|
||||
The container will contain Python 3 and all its dependency requirements, and a copy of the latest version of this repository.
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
Build the Docker container like this:
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -128,9 +183,11 @@ First, install the dependencies with:
|
||||
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).
|
||||
**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:
|
||||
|
||||
@@ -138,61 +195,62 @@ To **run unit tests**, in the top-level directory, run:
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
* Hosts data sources, including extensions, are updated.
|
||||
* No extensions are included by default. Use the `--extensions` or `-e` flag
|
||||
to include any you want.
|
||||
* Your active hosts file is *not* replaced unless you include the `--replace`
|
||||
flag.
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
|
||||
of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
|
||||
in a subfolder. If the subfolder does not exist, it will be created.
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is
|
||||
useful for configuring proximate DNS services on the local network.
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you are
|
||||
generating host files with additional whitelists or blacklists and want to keep your
|
||||
local checkout of this repo unmodified.
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
@@ -202,51 +260,33 @@ each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given blacklist file
|
||||
in hosts format to the generated hosts file.
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
folder, and specify the `url` key in its `update.json` file.
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more *optional* extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you need.
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents
|
||||
of this file are prepended to the unified hosts file during the update
|
||||
process.
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -256,41 +296,52 @@ overridden when you `git pull` this repo from `origin` in the future.
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged
|
||||
into the final hosts file.
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file
|
||||
used by all operating systems to map hostnames to IP addresses.
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`.
|
||||
Therefore if a domain name is resolved by the `hosts` file, the request never
|
||||
leaves your computer.
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
@@ -310,77 +361,137 @@ lines to your hosts file will do it:
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
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.
|
||||
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
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in
|
||||
the repository directory. In addition to updating the hosts file, it can also
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the following:
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
**Windows XP**: Start → Run → `cmd`
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"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 Vista, 7**: 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.
|
||||
|
||||
**Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
**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)
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
## 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.
|
||||
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 +505,35 @@ 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
|
||||
|
||||
@@ -435,61 +545,117 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an excellent CLI release
|
||||
tool for GitHub repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A
|
||||
hosts source should be frequently updated by its maintainers with both
|
||||
additions and removals. The larger the hosts file, the higher the level of
|
||||
curation is expected.
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutoUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash script that automatically updates host file. You can also update a fresh copy. And each time it generates a dnsmasq-compatible configuration file. Fast installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [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.
|
||||
|
||||
* [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.
|
||||
## Contribute
|
||||
|
||||
* [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.
|
||||
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.
|
||||
|
||||
* [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.
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
* [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.
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
* [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.
|
||||
|
||||
* [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts) This is a cross-platform command line utility to help install/update hosts files found at this repository.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
**Take Note!**
|
||||
|
||||
* With the exception of issues and PRs regarding changes to `hosts/data/StevenBlack/hosts`, all other issues regarding the content of the produced hosts files should be made with the appropriate data source that contributed the content in question. The contact information for all of the data sources can be found in the `hosts/data/` directory.
|
||||
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.
|
||||
|
||||
----
|
||||
---
|
||||
|
||||

|
||||
|
||||
@@ -19,38 +23,48 @@
|
||||
# Unified hosts file with fakenews, porn, social extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 24 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 185,272 entries.
|
||||
|
||||
|
||||
* Last updated: **July 19 2021**.
|
||||
* Here's the [raw hosts file with fakenews, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) containing 109,786 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.
|
||||
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) | 78,604 | [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) | 80,799 | [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) | 81,061 | [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) | 104,777 | [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) | 81,419 | [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) | 83,256 | [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) | 106,972 | [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) | 83,614 | [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) | 107,234 | [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) | 83,876 | [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) | 107,591 | [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) | 109,429 | [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) | 86,071 | [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) | 109,786 | [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) | 110,048 | [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) | 112,243 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,496 | [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) | 138,691 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 139,058 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 180,253 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 139,322 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 141,253 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 182,447 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 141,517 | [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) | 182,815 | [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) | 141,884 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 183,078 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 185,010 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 144,079 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 185,272 | [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) | 185,640 | [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) | 187,835 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -61,71 +75,113 @@ of OS.
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Steven Black's ad-hoc list |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | MIT | [issues](https://github.com/StevenBlack/hosts/issues)| Additional sketch domains as I come across them.
|
||||
AdAway |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)| AdAway is an open source ad blocker for Android using the hosts file.
|
||||
add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Generate in a Docker container
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container with everything you need.
|
||||
The container will contain Python 3 and all its dependency requirements, and a copy of the latest version of this repository.
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
Build the Docker container like this:
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -133,9 +189,11 @@ First, install the dependencies with:
|
||||
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).
|
||||
**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:
|
||||
|
||||
@@ -143,61 +201,62 @@ To **run unit tests**, in the top-level directory, run:
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
* Hosts data sources, including extensions, are updated.
|
||||
* No extensions are included by default. Use the `--extensions` or `-e` flag
|
||||
to include any you want.
|
||||
* Your active hosts file is *not* replaced unless you include the `--replace`
|
||||
flag.
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
|
||||
of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
|
||||
in a subfolder. If the subfolder does not exist, it will be created.
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is
|
||||
useful for configuring proximate DNS services on the local network.
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you are
|
||||
generating host files with additional whitelists or blacklists and want to keep your
|
||||
local checkout of this repo unmodified.
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
@@ -207,51 +266,33 @@ each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given blacklist file
|
||||
in hosts format to the generated hosts file.
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
folder, and specify the `url` key in its `update.json` file.
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more *optional* extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you need.
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents
|
||||
of this file are prepended to the unified hosts file during the update
|
||||
process.
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -261,41 +302,52 @@ overridden when you `git pull` this repo from `origin` in the future.
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged
|
||||
into the final hosts file.
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file
|
||||
used by all operating systems to map hostnames to IP addresses.
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`.
|
||||
Therefore if a domain name is resolved by the `hosts` file, the request never
|
||||
leaves your computer.
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
@@ -315,77 +367,137 @@ lines to your hosts file will do it:
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
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.
|
||||
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
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in
|
||||
the repository directory. In addition to updating the hosts file, it can also
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the following:
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
**Windows XP**: Start → Run → `cmd`
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"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 Vista, 7**: 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.
|
||||
|
||||
**Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
**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)
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
## 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.
|
||||
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
|
||||
|
||||
@@ -399,36 +511,35 @@ 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,61 +551,117 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an excellent CLI release
|
||||
tool for GitHub repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A
|
||||
hosts source should be frequently updated by its maintainers with both
|
||||
additions and removals. The larger the hosts file, the higher the level of
|
||||
curation is expected.
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutoUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash script that automatically updates host file. You can also update a fresh copy. And each time it generates a dnsmasq-compatible configuration file. Fast installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [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.
|
||||
|
||||
* [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.
|
||||
## Contribute
|
||||
|
||||
* [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.
|
||||
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.
|
||||
|
||||
* [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.
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
* [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.
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
* [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.
|
||||
|
||||
* [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts) This is a cross-platform command line utility to help install/update hosts files found at this repository.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
**Take Note!**
|
||||
|
||||
* With the exception of issues and PRs regarding changes to `hosts/data/StevenBlack/hosts`, all other issues regarding the content of the produced hosts files should be made with the appropriate data source that contributed the content in question. The contact information for all of the data sources can be found in the `hosts/data/` directory.
|
||||
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.
|
||||
|
||||
----
|
||||
---
|
||||
|
||||

|
||||
|
||||
@@ -19,38 +23,48 @@
|
||||
# Unified hosts file with fakenews, porn extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 24 2022**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts)
|
||||
containing 182,447 entries.
|
||||
|
||||
|
||||
* Last updated: **July 19 2021**.
|
||||
* Here's the [raw hosts file with fakenews, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) containing 106,972 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.
|
||||
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) | 78,604 | [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) | 80,799 | [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) | 81,061 | [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) | 104,777 | [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) | 81,419 | [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) | 83,256 | [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) | 106,972 | [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) | 83,614 | [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) | 107,234 | [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) | 83,876 | [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) | 107,591 | [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) | 109,429 | [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) | 86,071 | [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) | 109,786 | [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) | 110,048 | [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) | 112,243 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,496 | [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) | 138,691 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 139,058 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 180,253 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 139,322 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 141,253 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 182,447 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 141,517 | [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) | 182,815 | [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) | 141,884 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 183,078 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 185,010 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 144,079 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 185,272 | [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) | 185,640 | [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) | 187,835 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -61,69 +75,111 @@ of OS.
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Steven Black's ad-hoc list |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | MIT | [issues](https://github.com/StevenBlack/hosts/issues)| Additional sketch domains as I come across them.
|
||||
AdAway |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)| AdAway is an open source ad blocker for Android using the hosts file.
|
||||
add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Generate in a Docker container
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container with everything you need.
|
||||
The container will contain Python 3 and all its dependency requirements, and a copy of the latest version of this repository.
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
Build the Docker container like this:
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -131,9 +187,11 @@ First, install the dependencies with:
|
||||
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).
|
||||
**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:
|
||||
|
||||
@@ -141,61 +199,62 @@ To **run unit tests**, in the top-level directory, run:
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
* Hosts data sources, including extensions, are updated.
|
||||
* No extensions are included by default. Use the `--extensions` or `-e` flag
|
||||
to include any you want.
|
||||
* Your active hosts file is *not* replaced unless you include the `--replace`
|
||||
flag.
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
|
||||
of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
|
||||
in a subfolder. If the subfolder does not exist, it will be created.
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is
|
||||
useful for configuring proximate DNS services on the local network.
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you are
|
||||
generating host files with additional whitelists or blacklists and want to keep your
|
||||
local checkout of this repo unmodified.
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
@@ -205,51 +264,33 @@ each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given blacklist file
|
||||
in hosts format to the generated hosts file.
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
folder, and specify the `url` key in its `update.json` file.
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more *optional* extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you need.
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents
|
||||
of this file are prepended to the unified hosts file during the update
|
||||
process.
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -259,41 +300,52 @@ overridden when you `git pull` this repo from `origin` in the future.
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged
|
||||
into the final hosts file.
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file
|
||||
used by all operating systems to map hostnames to IP addresses.
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`.
|
||||
Therefore if a domain name is resolved by the `hosts` file, the request never
|
||||
leaves your computer.
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
@@ -313,77 +365,137 @@ lines to your hosts file will do it:
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
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.
|
||||
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
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in
|
||||
the repository directory. In addition to updating the hosts file, it can also
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the following:
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
**Windows XP**: Start → Run → `cmd`
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"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 Vista, 7**: 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.
|
||||
|
||||
**Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
**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)
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
## 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.
|
||||
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
|
||||
|
||||
@@ -397,36 +509,35 @@ 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,61 +549,117 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an excellent CLI release
|
||||
tool for GitHub repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A
|
||||
hosts source should be frequently updated by its maintainers with both
|
||||
additions and removals. The larger the hosts file, the higher the level of
|
||||
curation is expected.
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutoUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash script that automatically updates host file. You can also update a fresh copy. And each time it generates a dnsmasq-compatible configuration file. Fast installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [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.
|
||||
|
||||
* [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.
|
||||
## Contribute
|
||||
|
||||
* [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.
|
||||
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.
|
||||
|
||||
* [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.
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
* [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.
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
* [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.
|
||||
|
||||
* [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts) This is a cross-platform command line utility to help install/update hosts files found at this repository.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
**Take Note!**
|
||||
|
||||
* With the exception of issues and PRs regarding changes to `hosts/data/StevenBlack/hosts`, all other issues regarding the content of the produced hosts files should be made with the appropriate data source that contributed the content in question. The contact information for all of the data sources can be found in the `hosts/data/` directory.
|
||||
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.
|
||||
|
||||
----
|
||||
---
|
||||
|
||||

|
||||
|
||||
@@ -19,38 +23,48 @@
|
||||
# Unified hosts file with fakenews, social extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 24 2022**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts)
|
||||
containing 141,517 entries.
|
||||
|
||||
|
||||
* Last updated: **July 19 2021**.
|
||||
* Here's the [raw hosts file with fakenews, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) containing 83,614 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.
|
||||
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) | 78,604 | [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) | 80,799 | [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) | 81,061 | [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) | 104,777 | [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) | 81,419 | [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) | 83,256 | [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) | 106,972 | [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) | 83,614 | [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) | 107,234 | [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) | 83,876 | [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) | 107,591 | [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) | 109,429 | [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) | 86,071 | [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) | 109,786 | [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) | 110,048 | [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) | 112,243 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,496 | [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) | 138,691 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 139,058 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 180,253 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 139,322 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 141,253 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 182,447 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 141,517 | [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) | 182,815 | [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) | 141,884 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 183,078 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 185,010 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 144,079 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 185,272 | [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) | 185,640 | [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) | 187,835 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -61,67 +75,108 @@ of OS.
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Steven Black's ad-hoc list |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | MIT | [issues](https://github.com/StevenBlack/hosts/issues)| Additional sketch domains as I come across them.
|
||||
AdAway |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)| AdAway is an open source ad blocker for Android using the hosts file.
|
||||
add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Generate in a Docker container
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container with everything you need.
|
||||
The container will contain Python 3 and all its dependency requirements, and a copy of the latest version of this repository.
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
Build the Docker container like this:
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -129,9 +184,11 @@ First, install the dependencies with:
|
||||
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).
|
||||
**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:
|
||||
|
||||
@@ -139,61 +196,62 @@ To **run unit tests**, in the top-level directory, run:
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
* Hosts data sources, including extensions, are updated.
|
||||
* No extensions are included by default. Use the `--extensions` or `-e` flag
|
||||
to include any you want.
|
||||
* Your active hosts file is *not* replaced unless you include the `--replace`
|
||||
flag.
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
|
||||
of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
|
||||
in a subfolder. If the subfolder does not exist, it will be created.
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is
|
||||
useful for configuring proximate DNS services on the local network.
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you are
|
||||
generating host files with additional whitelists or blacklists and want to keep your
|
||||
local checkout of this repo unmodified.
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
@@ -203,51 +261,33 @@ each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given blacklist file
|
||||
in hosts format to the generated hosts file.
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
folder, and specify the `url` key in its `update.json` file.
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more *optional* extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you need.
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents
|
||||
of this file are prepended to the unified hosts file during the update
|
||||
process.
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -257,41 +297,52 @@ overridden when you `git pull` this repo from `origin` in the future.
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged
|
||||
into the final hosts file.
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file
|
||||
used by all operating systems to map hostnames to IP addresses.
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`.
|
||||
Therefore if a domain name is resolved by the `hosts` file, the request never
|
||||
leaves your computer.
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
@@ -311,77 +362,137 @@ lines to your hosts file will do it:
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
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.
|
||||
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
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in
|
||||
the repository directory. In addition to updating the hosts file, it can also
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the following:
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
**Windows XP**: Start → Run → `cmd`
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"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 Vista, 7**: 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.
|
||||
|
||||
**Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
**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)
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
## 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.
|
||||
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 +506,35 @@ 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
|
||||
|
||||
@@ -436,61 +546,117 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an excellent CLI release
|
||||
tool for GitHub repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A
|
||||
hosts source should be frequently updated by its maintainers with both
|
||||
additions and removals. The larger the hosts file, the higher the level of
|
||||
curation is expected.
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutoUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash script that automatically updates host file. You can also update a fresh copy. And each time it generates a dnsmasq-compatible configuration file. Fast installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [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.
|
||||
|
||||
* [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.
|
||||
## Contribute
|
||||
|
||||
* [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.
|
||||
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.
|
||||
|
||||
* [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.
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
* [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.
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
* [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.
|
||||
|
||||
* [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts) This is a cross-platform command line utility to help install/update hosts files found at this repository.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
**Take Note!**
|
||||
|
||||
* With the exception of issues and PRs regarding changes to `hosts/data/StevenBlack/hosts`, all other issues regarding the content of the produced hosts files should be made with the appropriate data source that contributed the content in question. The contact information for all of the data sources can be found in the `hosts/data/` directory.
|
||||
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.
|
||||
|
||||
----
|
||||
---
|
||||
|
||||

|
||||
|
||||
@@ -19,38 +23,48 @@
|
||||
# Unified hosts file with fakenews extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 24 2022**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts)
|
||||
containing 138,691 entries.
|
||||
|
||||
|
||||
* Last updated: **July 19 2021**.
|
||||
* Here's the [raw hosts file with fakenews extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) containing 80,799 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.
|
||||
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) | 78,604 | [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) | 80,799 | [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) | 81,061 | [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) | 104,777 | [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) | 81,419 | [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) | 83,256 | [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) | 106,972 | [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) | 83,614 | [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) | 107,234 | [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) | 83,876 | [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) | 107,591 | [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) | 109,429 | [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) | 86,071 | [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) | 109,786 | [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) | 110,048 | [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) | 112,243 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,496 | [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) | 138,691 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 139,058 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 180,253 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 139,322 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 141,253 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 182,447 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 141,517 | [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) | 182,815 | [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) | 141,884 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 183,078 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 185,010 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 144,079 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 185,272 | [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) | 185,640 | [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) | 187,835 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -61,65 +75,106 @@ of OS.
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Steven Black's ad-hoc list |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | MIT | [issues](https://github.com/StevenBlack/hosts/issues)| Additional sketch domains as I come across them.
|
||||
AdAway |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)| AdAway is an open source ad blocker for Android using the hosts file.
|
||||
add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Fake News |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | MIT | [issues](https://github.com/marktron/fakenews/issues)| An in-progress collection of fake news outlets.
|
||||
|
||||
|
||||
## 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`.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Generate in a Docker container
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container with everything you need.
|
||||
The container will contain Python 3 and all its dependency requirements, and a copy of the latest version of this repository.
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
Build the Docker container like this:
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -127,9 +182,11 @@ First, install the dependencies with:
|
||||
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).
|
||||
**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:
|
||||
|
||||
@@ -137,61 +194,62 @@ To **run unit tests**, in the top-level directory, run:
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
* Hosts data sources, including extensions, are updated.
|
||||
* No extensions are included by default. Use the `--extensions` or `-e` flag
|
||||
to include any you want.
|
||||
* Your active hosts file is *not* replaced unless you include the `--replace`
|
||||
flag.
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
|
||||
of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
|
||||
in a subfolder. If the subfolder does not exist, it will be created.
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is
|
||||
useful for configuring proximate DNS services on the local network.
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you are
|
||||
generating host files with additional whitelists or blacklists and want to keep your
|
||||
local checkout of this repo unmodified.
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
@@ -201,51 +259,33 @@ each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given blacklist file
|
||||
in hosts format to the generated hosts file.
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
folder, and specify the `url` key in its `update.json` file.
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more *optional* extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you need.
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents
|
||||
of this file are prepended to the unified hosts file during the update
|
||||
process.
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -255,41 +295,52 @@ overridden when you `git pull` this repo from `origin` in the future.
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged
|
||||
into the final hosts file.
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file
|
||||
used by all operating systems to map hostnames to IP addresses.
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`.
|
||||
Therefore if a domain name is resolved by the `hosts` file, the request never
|
||||
leaves your computer.
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
@@ -309,77 +360,137 @@ lines to your hosts file will do it:
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
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.
|
||||
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
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in
|
||||
the repository directory. In addition to updating the hosts file, it can also
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the following:
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
**Windows XP**: Start → Run → `cmd`
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"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 Vista, 7**: 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.
|
||||
|
||||
**Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
**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)
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
## 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.
|
||||
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 +504,35 @@ 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
|
||||
|
||||
@@ -434,61 +544,117 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an excellent CLI release
|
||||
tool for GitHub repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A
|
||||
hosts source should be frequently updated by its maintainers with both
|
||||
additions and removals. The larger the hosts file, the higher the level of
|
||||
curation is expected.
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutoUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash script that automatically updates host file. You can also update a fresh copy. And each time it generates a dnsmasq-compatible configuration file. Fast installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [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.
|
||||
|
||||
* [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.
|
||||
## Contribute
|
||||
|
||||
* [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.
|
||||
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.
|
||||
|
||||
* [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.
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
* [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.
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
* [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.
|
||||
|
||||
* [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts) This is a cross-platform command line utility to help install/update hosts files found at this repository.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
**Take Note!**
|
||||
|
||||
* With the exception of issues and PRs regarding changes to `hosts/data/StevenBlack/hosts`, all other issues regarding the content of the produced hosts files should be made with the appropriate data source that contributed the content in question. The contact information for all of the data sources can be found in the `hosts/data/` directory.
|
||||
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.
|
||||
|
||||
----
|
||||
---
|
||||
|
||||

|
||||
|
||||
@@ -19,38 +23,48 @@
|
||||
# Unified hosts file with gambling, porn, social extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 24 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 185,640 entries.
|
||||
|
||||
|
||||
* Last updated: **July 19 2021**.
|
||||
* Here's the [raw hosts file with gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) containing 110,048 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.
|
||||
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) | 78,604 | [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) | 80,799 | [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) | 81,061 | [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) | 104,777 | [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) | 81,419 | [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) | 83,256 | [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) | 106,972 | [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) | 83,614 | [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) | 107,234 | [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) | 83,876 | [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) | 107,591 | [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) | 109,429 | [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) | 86,071 | [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) | 109,786 | [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) | 110,048 | [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) | 112,243 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,496 | [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) | 138,691 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 139,058 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 180,253 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 139,322 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 141,253 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 182,447 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 141,517 | [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) | 182,815 | [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) | 141,884 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 183,078 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 185,010 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 144,079 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 185,272 | [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) | 185,640 | [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) | 187,835 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -61,71 +75,113 @@ of OS.
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Steven Black's ad-hoc list |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | MIT | [issues](https://github.com/StevenBlack/hosts/issues)| Additional sketch domains as I come across them.
|
||||
AdAway |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)| AdAway is an open source ad blocker for Android using the hosts file.
|
||||
add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Generate in a Docker container
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container with everything you need.
|
||||
The container will contain Python 3 and all its dependency requirements, and a copy of the latest version of this repository.
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
Build the Docker container like this:
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -133,9 +189,11 @@ First, install the dependencies with:
|
||||
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).
|
||||
**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:
|
||||
|
||||
@@ -143,61 +201,62 @@ To **run unit tests**, in the top-level directory, run:
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
* Hosts data sources, including extensions, are updated.
|
||||
* No extensions are included by default. Use the `--extensions` or `-e` flag
|
||||
to include any you want.
|
||||
* Your active hosts file is *not* replaced unless you include the `--replace`
|
||||
flag.
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
|
||||
of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
|
||||
in a subfolder. If the subfolder does not exist, it will be created.
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is
|
||||
useful for configuring proximate DNS services on the local network.
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you are
|
||||
generating host files with additional whitelists or blacklists and want to keep your
|
||||
local checkout of this repo unmodified.
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
@@ -207,51 +266,33 @@ each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given blacklist file
|
||||
in hosts format to the generated hosts file.
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
folder, and specify the `url` key in its `update.json` file.
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more *optional* extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you need.
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents
|
||||
of this file are prepended to the unified hosts file during the update
|
||||
process.
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -261,41 +302,52 @@ overridden when you `git pull` this repo from `origin` in the future.
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged
|
||||
into the final hosts file.
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file
|
||||
used by all operating systems to map hostnames to IP addresses.
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`.
|
||||
Therefore if a domain name is resolved by the `hosts` file, the request never
|
||||
leaves your computer.
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
@@ -315,77 +367,137 @@ lines to your hosts file will do it:
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
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.
|
||||
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
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in
|
||||
the repository directory. In addition to updating the hosts file, it can also
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the following:
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
**Windows XP**: Start → Run → `cmd`
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"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 Vista, 7**: 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.
|
||||
|
||||
**Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
**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)
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
## 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.
|
||||
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
|
||||
|
||||
@@ -399,36 +511,35 @@ 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,61 +551,117 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an excellent CLI release
|
||||
tool for GitHub repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A
|
||||
hosts source should be frequently updated by its maintainers with both
|
||||
additions and removals. The larger the hosts file, the higher the level of
|
||||
curation is expected.
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutoUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash script that automatically updates host file. You can also update a fresh copy. And each time it generates a dnsmasq-compatible configuration file. Fast installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [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.
|
||||
|
||||
* [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.
|
||||
## Contribute
|
||||
|
||||
* [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.
|
||||
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.
|
||||
|
||||
* [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.
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
* [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.
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
* [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.
|
||||
|
||||
* [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts) This is a cross-platform command line utility to help install/update hosts files found at this repository.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
**Take Note!**
|
||||
|
||||
* With the exception of issues and PRs regarding changes to `hosts/data/StevenBlack/hosts`, all other issues regarding the content of the produced hosts files should be made with the appropriate data source that contributed the content in question. The contact information for all of the data sources can be found in the `hosts/data/` directory.
|
||||
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.
|
||||
|
||||
----
|
||||
---
|
||||
|
||||

|
||||
|
||||
@@ -19,38 +23,48 @@
|
||||
# Unified hosts file with gambling, porn extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 24 2022**.
|
||||
- Here's the
|
||||
[raw hosts file with gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts)
|
||||
containing 182,815 entries.
|
||||
|
||||
|
||||
* Last updated: **July 19 2021**.
|
||||
* Here's the [raw hosts file with gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) containing 107,234 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.
|
||||
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) | 78,604 | [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) | 80,799 | [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) | 81,061 | [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) | 104,777 | [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) | 81,419 | [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) | 83,256 | [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) | 106,972 | [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) | 83,614 | [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) | 107,234 | [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) | 83,876 | [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) | 107,591 | [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) | 109,429 | [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) | 86,071 | [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) | 109,786 | [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) | 110,048 | [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) | 112,243 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,496 | [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) | 138,691 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 139,058 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 180,253 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 139,322 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 141,253 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 182,447 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 141,517 | [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) | 182,815 | [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) | 141,884 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 183,078 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 185,010 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 144,079 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 185,272 | [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) | 185,640 | [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) | 187,835 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -61,69 +75,111 @@ of OS.
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Steven Black's ad-hoc list |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | MIT | [issues](https://github.com/StevenBlack/hosts/issues)| Additional sketch domains as I come across them.
|
||||
AdAway |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)| AdAway is an open source ad blocker for Android using the hosts file.
|
||||
add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Generate in a Docker container
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container with everything you need.
|
||||
The container will contain Python 3 and all its dependency requirements, and a copy of the latest version of this repository.
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
Build the Docker container like this:
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -131,9 +187,11 @@ First, install the dependencies with:
|
||||
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).
|
||||
**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:
|
||||
|
||||
@@ -141,61 +199,62 @@ To **run unit tests**, in the top-level directory, run:
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
* Hosts data sources, including extensions, are updated.
|
||||
* No extensions are included by default. Use the `--extensions` or `-e` flag
|
||||
to include any you want.
|
||||
* Your active hosts file is *not* replaced unless you include the `--replace`
|
||||
flag.
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
|
||||
of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
|
||||
in a subfolder. If the subfolder does not exist, it will be created.
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is
|
||||
useful for configuring proximate DNS services on the local network.
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you are
|
||||
generating host files with additional whitelists or blacklists and want to keep your
|
||||
local checkout of this repo unmodified.
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
@@ -205,51 +264,33 @@ each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given blacklist file
|
||||
in hosts format to the generated hosts file.
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
folder, and specify the `url` key in its `update.json` file.
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more *optional* extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you need.
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents
|
||||
of this file are prepended to the unified hosts file during the update
|
||||
process.
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -259,41 +300,52 @@ overridden when you `git pull` this repo from `origin` in the future.
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged
|
||||
into the final hosts file.
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file
|
||||
used by all operating systems to map hostnames to IP addresses.
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`.
|
||||
Therefore if a domain name is resolved by the `hosts` file, the request never
|
||||
leaves your computer.
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
@@ -313,77 +365,137 @@ lines to your hosts file will do it:
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
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.
|
||||
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
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in
|
||||
the repository directory. In addition to updating the hosts file, it can also
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the following:
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
**Windows XP**: Start → Run → `cmd`
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"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 Vista, 7**: 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.
|
||||
|
||||
**Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
**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)
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
## 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.
|
||||
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
|
||||
|
||||
@@ -397,36 +509,35 @@ 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,61 +549,117 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an excellent CLI release
|
||||
tool for GitHub repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A
|
||||
hosts source should be frequently updated by its maintainers with both
|
||||
additions and removals. The larger the hosts file, the higher the level of
|
||||
curation is expected.
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutoUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash script that automatically updates host file. You can also update a fresh copy. And each time it generates a dnsmasq-compatible configuration file. Fast installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [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.
|
||||
|
||||
* [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.
|
||||
## Contribute
|
||||
|
||||
* [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.
|
||||
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.
|
||||
|
||||
* [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.
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
* [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.
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
* [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.
|
||||
|
||||
* [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts) This is a cross-platform command line utility to help install/update hosts files found at this repository.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
**Take Note!**
|
||||
|
||||
* With the exception of issues and PRs regarding changes to `hosts/data/StevenBlack/hosts`, all other issues regarding the content of the produced hosts files should be made with the appropriate data source that contributed the content in question. The contact information for all of the data sources can be found in the `hosts/data/` directory.
|
||||
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.
|
||||
|
||||
----
|
||||
---
|
||||
|
||||

|
||||
|
||||
@@ -19,38 +23,48 @@
|
||||
# Unified hosts file with gambling, social extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 24 2022**.
|
||||
- Here's the
|
||||
[raw hosts file with gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts)
|
||||
containing 141,884 entries.
|
||||
|
||||
|
||||
* Last updated: **July 19 2021**.
|
||||
* Here's the [raw hosts file with gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) containing 83,876 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.
|
||||
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) | 78,604 | [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) | 80,799 | [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) | 81,061 | [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) | 104,777 | [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) | 81,419 | [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) | 83,256 | [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) | 106,972 | [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) | 83,614 | [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) | 107,234 | [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) | 83,876 | [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) | 107,591 | [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) | 109,429 | [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) | 86,071 | [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) | 109,786 | [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) | 110,048 | [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) | 112,243 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,496 | [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) | 138,691 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 139,058 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 180,253 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 139,322 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 141,253 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 182,447 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 141,517 | [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) | 182,815 | [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) | 141,884 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 183,078 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 185,010 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 144,079 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 185,272 | [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) | 185,640 | [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) | 187,835 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -61,67 +75,108 @@ of OS.
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Steven Black's ad-hoc list |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | MIT | [issues](https://github.com/StevenBlack/hosts/issues)| Additional sketch domains as I come across them.
|
||||
AdAway |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)| AdAway is an open source ad blocker for Android using the hosts file.
|
||||
add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Generate in a Docker container
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container with everything you need.
|
||||
The container will contain Python 3 and all its dependency requirements, and a copy of the latest version of this repository.
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
Build the Docker container like this:
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -129,9 +184,11 @@ First, install the dependencies with:
|
||||
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).
|
||||
**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:
|
||||
|
||||
@@ -139,61 +196,62 @@ To **run unit tests**, in the top-level directory, run:
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
* Hosts data sources, including extensions, are updated.
|
||||
* No extensions are included by default. Use the `--extensions` or `-e` flag
|
||||
to include any you want.
|
||||
* Your active hosts file is *not* replaced unless you include the `--replace`
|
||||
flag.
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
|
||||
of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
|
||||
in a subfolder. If the subfolder does not exist, it will be created.
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is
|
||||
useful for configuring proximate DNS services on the local network.
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you are
|
||||
generating host files with additional whitelists or blacklists and want to keep your
|
||||
local checkout of this repo unmodified.
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
@@ -203,51 +261,33 @@ each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given blacklist file
|
||||
in hosts format to the generated hosts file.
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
folder, and specify the `url` key in its `update.json` file.
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more *optional* extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you need.
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents
|
||||
of this file are prepended to the unified hosts file during the update
|
||||
process.
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -257,41 +297,52 @@ overridden when you `git pull` this repo from `origin` in the future.
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged
|
||||
into the final hosts file.
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file
|
||||
used by all operating systems to map hostnames to IP addresses.
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`.
|
||||
Therefore if a domain name is resolved by the `hosts` file, the request never
|
||||
leaves your computer.
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
@@ -311,77 +362,137 @@ lines to your hosts file will do it:
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
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.
|
||||
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
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in
|
||||
the repository directory. In addition to updating the hosts file, it can also
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the following:
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
**Windows XP**: Start → Run → `cmd`
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"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 Vista, 7**: 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.
|
||||
|
||||
**Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
**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)
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
## 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.
|
||||
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 +506,35 @@ 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
|
||||
|
||||
@@ -436,61 +546,117 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an excellent CLI release
|
||||
tool for GitHub repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A
|
||||
hosts source should be frequently updated by its maintainers with both
|
||||
additions and removals. The larger the hosts file, the higher the level of
|
||||
curation is expected.
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutoUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash script that automatically updates host file. You can also update a fresh copy. And each time it generates a dnsmasq-compatible configuration file. Fast installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [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.
|
||||
|
||||
* [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.
|
||||
## Contribute
|
||||
|
||||
* [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.
|
||||
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.
|
||||
|
||||
* [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.
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
* [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.
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
* [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.
|
||||
|
||||
* [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts) This is a cross-platform command line utility to help install/update hosts files found at this repository.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
**Take Note!**
|
||||
|
||||
* With the exception of issues and PRs regarding changes to `hosts/data/StevenBlack/hosts`, all other issues regarding the content of the produced hosts files should be made with the appropriate data source that contributed the content in question. The contact information for all of the data sources can be found in the `hosts/data/` directory.
|
||||
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.
|
||||
|
||||
----
|
||||
---
|
||||
|
||||

|
||||
|
||||
@@ -19,38 +23,48 @@
|
||||
# Unified hosts file with gambling extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 24 2022**.
|
||||
- Here's the
|
||||
[raw hosts file with gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts)
|
||||
containing 139,058 entries.
|
||||
|
||||
|
||||
* Last updated: **July 19 2021**.
|
||||
* Here's the [raw hosts file with gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) containing 81,061 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.
|
||||
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) | 78,604 | [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) | 80,799 | [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) | 81,061 | [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) | 104,777 | [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) | 81,419 | [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) | 83,256 | [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) | 106,972 | [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) | 83,614 | [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) | 107,234 | [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) | 83,876 | [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) | 107,591 | [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) | 109,429 | [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) | 86,071 | [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) | 109,786 | [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) | 110,048 | [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) | 112,243 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,496 | [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) | 138,691 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 139,058 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 180,253 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 139,322 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 141,253 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 182,447 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 141,517 | [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) | 182,815 | [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) | 141,884 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 183,078 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 185,010 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 144,079 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 185,272 | [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) | 185,640 | [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) | 187,835 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -61,65 +75,106 @@ of OS.
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Steven Black's ad-hoc list |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | MIT | [issues](https://github.com/StevenBlack/hosts/issues)| Additional sketch domains as I come across them.
|
||||
AdAway |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)| AdAway is an open source ad blocker for Android using the hosts file.
|
||||
add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Sinfonietta's gambling blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Generate in a Docker container
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container with everything you need.
|
||||
The container will contain Python 3 and all its dependency requirements, and a copy of the latest version of this repository.
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
Build the Docker container like this:
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -127,9 +182,11 @@ First, install the dependencies with:
|
||||
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).
|
||||
**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:
|
||||
|
||||
@@ -137,61 +194,62 @@ To **run unit tests**, in the top-level directory, run:
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
* Hosts data sources, including extensions, are updated.
|
||||
* No extensions are included by default. Use the `--extensions` or `-e` flag
|
||||
to include any you want.
|
||||
* Your active hosts file is *not* replaced unless you include the `--replace`
|
||||
flag.
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
|
||||
of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
|
||||
in a subfolder. If the subfolder does not exist, it will be created.
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is
|
||||
useful for configuring proximate DNS services on the local network.
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you are
|
||||
generating host files with additional whitelists or blacklists and want to keep your
|
||||
local checkout of this repo unmodified.
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
@@ -201,51 +259,33 @@ each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given blacklist file
|
||||
in hosts format to the generated hosts file.
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
folder, and specify the `url` key in its `update.json` file.
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more *optional* extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you need.
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents
|
||||
of this file are prepended to the unified hosts file during the update
|
||||
process.
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -255,41 +295,52 @@ overridden when you `git pull` this repo from `origin` in the future.
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged
|
||||
into the final hosts file.
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file
|
||||
used by all operating systems to map hostnames to IP addresses.
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`.
|
||||
Therefore if a domain name is resolved by the `hosts` file, the request never
|
||||
leaves your computer.
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
@@ -309,77 +360,137 @@ lines to your hosts file will do it:
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
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.
|
||||
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
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in
|
||||
the repository directory. In addition to updating the hosts file, it can also
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the following:
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
**Windows XP**: Start → Run → `cmd`
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"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 Vista, 7**: 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.
|
||||
|
||||
**Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
**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)
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
## 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.
|
||||
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 +504,35 @@ 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
|
||||
|
||||
@@ -434,61 +544,117 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an excellent CLI release
|
||||
tool for GitHub repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A
|
||||
hosts source should be frequently updated by its maintainers with both
|
||||
additions and removals. The larger the hosts file, the higher the level of
|
||||
curation is expected.
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutoUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash script that automatically updates host file. You can also update a fresh copy. And each time it generates a dnsmasq-compatible configuration file. Fast installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [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.
|
||||
|
||||
* [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.
|
||||
## Contribute
|
||||
|
||||
* [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.
|
||||
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.
|
||||
|
||||
* [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.
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
* [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.
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
* [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.
|
||||
|
||||
* [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts) This is a cross-platform command line utility to help install/update hosts files found at this repository.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
**Take Note!**
|
||||
|
||||
* With the exception of issues and PRs regarding changes to `hosts/data/StevenBlack/hosts`, all other issues regarding the content of the produced hosts files should be made with the appropriate data source that contributed the content in question. The contact information for all of the data sources can be found in the `hosts/data/` directory.
|
||||
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.
|
||||
|
||||
----
|
||||
---
|
||||
|
||||

|
||||
|
||||
@@ -19,38 +23,48 @@
|
||||
# Unified hosts file with porn, social extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 24 2022**.
|
||||
- Here's the
|
||||
[raw hosts file with porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts)
|
||||
containing 183,078 entries.
|
||||
|
||||
|
||||
* Last updated: **July 19 2021**.
|
||||
* Here's the [raw hosts file with porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) containing 107,591 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.
|
||||
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) | 78,604 | [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) | 80,799 | [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) | 81,061 | [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) | 104,777 | [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) | 81,419 | [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) | 83,256 | [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) | 106,972 | [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) | 83,614 | [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) | 107,234 | [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) | 83,876 | [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) | 107,591 | [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) | 109,429 | [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) | 86,071 | [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) | 109,786 | [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) | 110,048 | [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) | 112,243 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,496 | [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) | 138,691 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 139,058 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 180,253 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 139,322 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 141,253 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 182,447 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 141,517 | [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) | 182,815 | [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) | 141,884 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 183,078 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 185,010 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 144,079 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 185,272 | [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) | 185,640 | [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) | 187,835 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -61,70 +75,112 @@ of OS.
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Steven Black's ad-hoc list |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | MIT | [issues](https://github.com/StevenBlack/hosts/issues)| Additional sketch domains as I come across them.
|
||||
AdAway |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)| AdAway is an open source ad blocker for Android using the hosts file.
|
||||
add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Generate in a Docker container
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container with everything you need.
|
||||
The container will contain Python 3 and all its dependency requirements, and a copy of the latest version of this repository.
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
Build the Docker container like this:
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -132,9 +188,11 @@ First, install the dependencies with:
|
||||
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).
|
||||
**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:
|
||||
|
||||
@@ -142,61 +200,62 @@ To **run unit tests**, in the top-level directory, run:
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
* Hosts data sources, including extensions, are updated.
|
||||
* No extensions are included by default. Use the `--extensions` or `-e` flag
|
||||
to include any you want.
|
||||
* Your active hosts file is *not* replaced unless you include the `--replace`
|
||||
flag.
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
|
||||
of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
|
||||
in a subfolder. If the subfolder does not exist, it will be created.
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is
|
||||
useful for configuring proximate DNS services on the local network.
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you are
|
||||
generating host files with additional whitelists or blacklists and want to keep your
|
||||
local checkout of this repo unmodified.
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
@@ -206,51 +265,33 @@ each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given blacklist file
|
||||
in hosts format to the generated hosts file.
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
folder, and specify the `url` key in its `update.json` file.
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more *optional* extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you need.
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents
|
||||
of this file are prepended to the unified hosts file during the update
|
||||
process.
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -260,41 +301,52 @@ overridden when you `git pull` this repo from `origin` in the future.
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged
|
||||
into the final hosts file.
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file
|
||||
used by all operating systems to map hostnames to IP addresses.
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`.
|
||||
Therefore if a domain name is resolved by the `hosts` file, the request never
|
||||
leaves your computer.
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
@@ -314,77 +366,137 @@ lines to your hosts file will do it:
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
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.
|
||||
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
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in
|
||||
the repository directory. In addition to updating the hosts file, it can also
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the following:
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
**Windows XP**: Start → Run → `cmd`
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"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 Vista, 7**: 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.
|
||||
|
||||
**Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
**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)
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
## 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.
|
||||
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
|
||||
|
||||
@@ -398,36 +510,35 @@ 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,61 +550,117 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an excellent CLI release
|
||||
tool for GitHub repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A
|
||||
hosts source should be frequently updated by its maintainers with both
|
||||
additions and removals. The larger the hosts file, the higher the level of
|
||||
curation is expected.
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutoUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash script that automatically updates host file. You can also update a fresh copy. And each time it generates a dnsmasq-compatible configuration file. Fast installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [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.
|
||||
|
||||
* [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.
|
||||
## Contribute
|
||||
|
||||
* [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.
|
||||
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.
|
||||
|
||||
* [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.
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
* [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.
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
* [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.
|
||||
|
||||
* [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts) This is a cross-platform command line utility to help install/update hosts files found at this repository.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
**Take Note!**
|
||||
|
||||
* With the exception of issues and PRs regarding changes to `hosts/data/StevenBlack/hosts`, all other issues regarding the content of the produced hosts files should be made with the appropriate data source that contributed the content in question. The contact information for all of the data sources can be found in the `hosts/data/` directory.
|
||||
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.
|
||||
|
||||
----
|
||||
---
|
||||
|
||||

|
||||
|
||||
@@ -19,38 +23,48 @@
|
||||
# Unified hosts file with porn extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 24 2022**.
|
||||
- Here's the
|
||||
[raw hosts file with porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts)
|
||||
containing 180,253 entries.
|
||||
|
||||
|
||||
* Last updated: **July 19 2021**.
|
||||
* Here's the [raw hosts file with porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) containing 104,777 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.
|
||||
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) | 78,604 | [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) | 80,799 | [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) | 81,061 | [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) | 104,777 | [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) | 81,419 | [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) | 83,256 | [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) | 106,972 | [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) | 83,614 | [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) | 107,234 | [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) | 83,876 | [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) | 107,591 | [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) | 109,429 | [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) | 86,071 | [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) | 109,786 | [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) | 110,048 | [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) | 112,243 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,496 | [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) | 138,691 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 139,058 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 180,253 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 139,322 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 141,253 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 182,447 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 141,517 | [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) | 182,815 | [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) | 141,884 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 183,078 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 185,010 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 144,079 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 185,272 | [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) | 185,640 | [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) | 187,835 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -61,68 +75,110 @@ of OS.
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
|
||||
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Steven Black's ad-hoc list |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | MIT | [issues](https://github.com/StevenBlack/hosts/issues)| Additional sketch domains as I come across them.
|
||||
AdAway |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)| AdAway is an open source ad blocker for Android using the hosts file.
|
||||
add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
brijrajparmar27 - pornography |[link](https://github.com/brijrajparmar27/host-sources) | [raw](https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts) | CC BY 4.0 | [issues](https://github.com/brijrajparmar27/host-sources/issues)| hosts files for DNS based content blocking
|
||||
pornhosts -- a consolidated anti porn hosts file |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts) | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)| This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.
|
||||
Sinfonietta's porn blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Sinfonietta's snuff-site blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - pornography |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Generate in a Docker container
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container with everything you need.
|
||||
The container will contain Python 3 and all its dependency requirements, and a copy of the latest version of this repository.
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
Build the Docker container like this:
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -130,9 +186,11 @@ First, install the dependencies with:
|
||||
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).
|
||||
**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:
|
||||
|
||||
@@ -140,61 +198,62 @@ To **run unit tests**, in the top-level directory, run:
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
* Hosts data sources, including extensions, are updated.
|
||||
* No extensions are included by default. Use the `--extensions` or `-e` flag
|
||||
to include any you want.
|
||||
* Your active hosts file is *not* replaced unless you include the `--replace`
|
||||
flag.
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
|
||||
of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
|
||||
in a subfolder. If the subfolder does not exist, it will be created.
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is
|
||||
useful for configuring proximate DNS services on the local network.
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you are
|
||||
generating host files with additional whitelists or blacklists and want to keep your
|
||||
local checkout of this repo unmodified.
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
@@ -204,51 +263,33 @@ each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given blacklist file
|
||||
in hosts format to the generated hosts file.
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
folder, and specify the `url` key in its `update.json` file.
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more *optional* extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you need.
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents
|
||||
of this file are prepended to the unified hosts file during the update
|
||||
process.
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -258,41 +299,52 @@ overridden when you `git pull` this repo from `origin` in the future.
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged
|
||||
into the final hosts file.
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file
|
||||
used by all operating systems to map hostnames to IP addresses.
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`.
|
||||
Therefore if a domain name is resolved by the `hosts` file, the request never
|
||||
leaves your computer.
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
@@ -312,77 +364,137 @@ lines to your hosts file will do it:
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
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.
|
||||
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
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in
|
||||
the repository directory. In addition to updating the hosts file, it can also
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the following:
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
**Windows XP**: Start → Run → `cmd`
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"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 Vista, 7**: 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.
|
||||
|
||||
**Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
**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)
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
## 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.
|
||||
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
|
||||
|
||||
@@ -396,36 +508,35 @@ 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
|
||||
|
||||
@@ -437,61 +548,117 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an excellent CLI release
|
||||
tool for GitHub repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A
|
||||
hosts source should be frequently updated by its maintainers with both
|
||||
additions and removals. The larger the hosts file, the higher the level of
|
||||
curation is expected.
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutoUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash script that automatically updates host file. You can also update a fresh copy. And each time it generates a dnsmasq-compatible configuration file. Fast installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [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.
|
||||
|
||||
* [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.
|
||||
## Contribute
|
||||
|
||||
* [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.
|
||||
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.
|
||||
|
||||
* [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.
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
* [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.
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
* [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.
|
||||
|
||||
* [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts) This is a cross-platform command line utility to help install/update hosts files found at this repository.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
**Take Note!**
|
||||
|
||||
* With the exception of issues and PRs regarding changes to `hosts/data/StevenBlack/hosts`, all other issues regarding the content of the produced hosts files should be made with the appropriate data source that contributed the content in question. The contact information for all of the data sources can be found in the `hosts/data/` directory.
|
||||
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.
|
||||
|
||||
----
|
||||
---
|
||||
|
||||

|
||||
|
||||
@@ -19,38 +23,48 @@
|
||||
# Unified hosts file with social extensions
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
files are provided.
|
||||
|
||||
**Therefore this repository is a hosts file aggregator.**
|
||||
|
||||

|
||||
|
||||
- Last updated: **August 24 2022**.
|
||||
- Here's the
|
||||
[raw hosts file with social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts)
|
||||
containing 139,322 entries.
|
||||
|
||||
|
||||
* Last updated: **July 19 2021**.
|
||||
* Here's the [raw hosts file with social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) containing 81,419 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.
|
||||
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) | 78,604 | [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) | 80,799 | [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) | 81,061 | [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) | 104,777 | [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) | 81,419 | [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) | 83,256 | [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) | 106,972 | [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) | 83,614 | [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) | 107,234 | [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) | 83,876 | [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) | 107,591 | [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) | 109,429 | [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) | 86,071 | [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) | 109,786 | [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) | 110,048 | [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) | 112,243 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 136,496 | [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) | 138,691 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 139,058 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 180,253 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 139,322 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 141,253 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 182,447 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 141,517 | [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) | 182,815 | [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) | 141,884 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 183,078 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 185,010 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 144,079 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 185,272 | [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) | 185,640 | [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) | 187,835 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -61,66 +75,107 @@ of OS.
|
||||
Updated `hosts` files from the following locations are always unified and
|
||||
included:
|
||||
|
||||
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
|
||||
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
|
||||
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
|
||||
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | frequently | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)
|
||||
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
AdguardTeam cname trackers | CNAME-cloaked tracking abuses. |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | occasionally | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)
|
||||
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
|
||||
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
|
||||
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
|
||||
MetaMask eth-phishing-detect | Phishing domains targeting Ethereum users. |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | frequent | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)
|
||||
minecraft-hosts | Minecraft related tracker hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | occasionally | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)
|
||||
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
|
||||
orca.pet | This is a domain list for blocking phishing and malware sites . |[link](https://orca.pet/notonmyshift/) | [raw](https://orca.pet/notonmyshift/hosts.txt) | frequent | ISC | [issues](https://github.com/socram8888/not-on-my-shift)
|
||||
osint.digitalside.it | DigitalSide Threat-Intel malware domains list. |[link](https://github.com/davidonzo/Threat-Intel) | [raw](https://raw.githubusercontent.com/davidonzo/Threat-Intel/master/lists/latestdomains.piHole.txt) | daily | MIT | [issues](https://github.com/davidonzo/Threat-Intel/issues)
|
||||
shady-hosts | Analytics, ad, and activity monitoring hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | occasionally | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)
|
||||
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)
|
||||
URLHaus | A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs. |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | weekly | CC0 | [issues](mailto:contactme@abuse.ch)
|
||||
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
|
||||
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
|
||||
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
|
||||
| Host file source | Home page | Raw hosts | License | Issues | Description |
|
||||
| ---------------- | :-------: | :-------: | :-----: | :----: | ----------- |
|
||||
Steven Black's ad-hoc list |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | MIT | [issues](https://github.com/StevenBlack/hosts/issues)| Additional sketch domains as I come across them.
|
||||
AdAway |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | CC BY 3.0 | [issues](https://github.com/AdAway/adaway.github.io/issues)| AdAway is an open source ad blocker for Android using the hosts file.
|
||||
add.2o7Net |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| 2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Dead |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Risk |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
add.Spam |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.
|
||||
AdguardTeam cname trackers |[link](https://github.com/AdguardTeam/cname-trackers) | [raw](https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers_justdomains.txt) | MIT | [issues](https://github.com/AdguardTeam/cname-trackers/issues)| CNAME-cloaked tracking abuses.
|
||||
Mitchell Krog's - Badd Boyz Hosts |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)| Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers
|
||||
hostsVN |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)| Hosts block ads of Vietnamese
|
||||
KADhosts |[link](https://kadantiscam.netlify.app/) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt) | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)| Fraud/adware/scam websites.
|
||||
MetaMask eth-phishing-detect |[link](https://github.com/MetaMask/eth-phishing-detect) | [raw](https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt) | DON'T BE A DICK PUBLIC LICENSE | [issues](https://github.com/MetaMask/eth-phishing-detect/issues)| Phishing domains targeting Ethereum users.
|
||||
minecraft-hosts |[link](https://github.com/jamiemansfield/minecraft-hosts) | [raw](https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt) | CC0-1.0 | [issues](https://github.com/jamiemansfield/minecraft-hosts/issues)| Minecraft related tracker hosts
|
||||
MVPS hosts file |[link](https://winhelp2002.mvps.org/) | [raw](https://winhelp2002.mvps.org/hosts.txt) | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)| The purpose of this site is to provide the user with a high quality custom HOSTS file.
|
||||
shady-hosts |[link](https://github.com/shreyasminocha/shady-hosts) | [raw](https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts) | CC0-1.0 | [issues](https://github.com/shreyasminocha/shady-hosts/issues)| Analytics, ad, and activity monitoring hosts
|
||||
Dan Pollock – [someonewhocares](https://someonewhocares.org/) |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | non-commercial with attribution | [issues](mailto:hosts@someonewhocares.org)| How to make the internet not suck (as much).
|
||||
Tiuxo hostlist - ads |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
UncheckyAds |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | MIT | [issues](https://github.com/FadeMind/hosts.extras/issues)| Windows installers ads sources sites based on https://unchecky.com/ content.
|
||||
URLHaus |[link](https://urlhaus.abuse.ch/) | [raw](https://urlhaus.abuse.ch/downloads/hostfile/) | CC0 | [issues](mailto:contactme@abuse.ch)| A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.
|
||||
yoyo.org |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | | [issues](mailto:pgl@yoyo.org)| Blocking with ad server and tracking server hostnames.
|
||||
Sinfonietta's social media blocking hosts file |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)| A collection of category-specific host files.
|
||||
Tiuxo hostlist - social |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)| Categorized hosts files for DNS based content blocking
|
||||
|
||||
|
||||
## Extensions
|
||||
|
||||
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently, we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
|
||||
The unified hosts file is optionally extensible. Extensions are used to include
|
||||
domains by category. Currently, we offer the following categories: `fakenews`,
|
||||
`social`, `gambling`, and `porn`.
|
||||
|
||||
Extensions are optional, and can be combined in various ways with the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
|
||||
Extensions are optional, and can be combined in various ways with the base hosts
|
||||
file. The combined products are stored in the
|
||||
[`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates)
|
||||
folder.
|
||||
|
||||
Data for extensions are stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating this
|
||||
folder tree, where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
|
||||
Data for extensions are stored in the
|
||||
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions)
|
||||
folder. You manage extensions by curating this folder tree, where you will find
|
||||
the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we
|
||||
maintain and provide for you.
|
||||
|
||||
## Generate your own unified hosts file
|
||||
|
||||
You have two options to generate your own hosts file. You can do it in your own environment, or within a Docker container. We'll cover Docker first because it's a short section.
|
||||
You have three options to generate your own hosts file. You can use our
|
||||
container image, build your own image, or do it in your own environment. Option
|
||||
#1 is easiest if you have Linux with Docker installed.
|
||||
|
||||
### Option 1: Generate in a Docker container
|
||||
### Option 1: Use our container image (Linux only)
|
||||
|
||||
We provide a [Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) that you can use to create a Docker container with everything you need.
|
||||
The container will contain Python 3 and all its dependency requirements, and a copy of the latest version of this repository.
|
||||
> This will replace your `/etc/hosts`.
|
||||
|
||||
Build the Docker container like this:
|
||||
We assume you have Docker available on your host. Just run the following
|
||||
command. Set extensions to your preference.
|
||||
|
||||
```sh
|
||||
docker build ./
|
||||
docker run --pull always --rm -it -v /etc/hosts:/etc/hosts \
|
||||
ghcr.io/stevenblack/hosts:latest updateHostsFile.py --auto \
|
||||
--replace --extensions gambling porn
|
||||
```
|
||||
|
||||
Access the terminal like this:
|
||||
If you want to add custom hosts or a whitelist, create either or both files as
|
||||
per [the instructions](#how-do-i-control-which-sources-are-unified) and add the
|
||||
following arguments _before_ `ghcr.io/stevenblack/hosts:latest` depending on
|
||||
which you wish to use.
|
||||
|
||||
```sh
|
||||
docker run -it (containerid) bash
|
||||
-v "path/to/myhosts:/hosts/myhosts" \
|
||||
-v "path/to/whitelist:/hosts/whitelist" \
|
||||
```
|
||||
|
||||
### Option 2: Generate it in your own environment.
|
||||
You can rerun this exact command later to update based on the latest available
|
||||
hosts (for example, add it to a weekly cron job).
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.5 or later.
|
||||
### Option 2: Generate your own container image
|
||||
|
||||
We provide the
|
||||
[Dockerfile](https://github.com/StevenBlack/hosts/blob/master/Dockerfile) used
|
||||
by the previous step, which you can use to create a container image with
|
||||
everything you need. The container will contain Python 3 and all its dependency
|
||||
requirements, and a copy of the latest version of this repository.
|
||||
|
||||
Build the Docker container from the root of this repo like this:
|
||||
|
||||
```sh
|
||||
docker build --no-cache . -t stevenblack-hosts
|
||||
```
|
||||
|
||||
Then run your command as such:
|
||||
|
||||
```sh
|
||||
docker run --rm -it stevenblack-hosts updateHostsFile.py
|
||||
```
|
||||
|
||||
> This will create the hosts file, and remove it with the container when done,
|
||||
> so not very useful. You can use the example in option #1 to add volumes so
|
||||
> files on your host are replaced.
|
||||
|
||||
### Option 3: Generate it in your own environment
|
||||
|
||||
To generate your own amalgamated hosts files you will need Python 3.6 or later.
|
||||
|
||||
First, install the dependencies with:
|
||||
|
||||
@@ -128,9 +183,11 @@ First, install the dependencies with:
|
||||
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).
|
||||
**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:
|
||||
|
||||
@@ -138,61 +195,62 @@ To **run unit tests**, in the top-level directory, run:
|
||||
python3 testUpdateHostsFile.py
|
||||
```
|
||||
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
|
||||
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
|
||||
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
|
||||
will use the `hosts` file that's already there.
|
||||
The `updateHostsFile.py` script will generate a unified hosts file based on the
|
||||
sources in the local `data/` subfolder. The script will prompt you whether it
|
||||
should fetch updated versions (from locations defined by the `update.json` text
|
||||
file in each source's folder). Otherwise, it will use the `hosts` file that's
|
||||
already there.
|
||||
|
||||
```sh
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
```
|
||||
|
||||
#### Command line options:
|
||||
#### Command line options
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||
|
||||
* Hosts data sources, including extensions, are updated.
|
||||
* No extensions are included by default. Use the `--extensions` or `-e` flag
|
||||
to include any you want.
|
||||
* Your active hosts file is *not* replaced unless you include the `--replace`
|
||||
flag.
|
||||
- Hosts data sources, including extensions, are updated.
|
||||
- No extensions are included by default. Use the `--extensions` or `-e` flag to
|
||||
include any you want.
|
||||
- Your active hosts file is _not_ replaced unless you include the `--replace`
|
||||
flag.
|
||||
|
||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||
over them.
|
||||
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
|
||||
of subfolders below the `extensions` folder containing additional
|
||||
category-specific hosts files to include in the amalgamation. Example:
|
||||
`--extensions porn` or `-e social porn`.
|
||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of
|
||||
subfolders below the `extensions` folder containing additional category-specific
|
||||
hosts files to include in the amalgamation. Example: `--extensions porn` or
|
||||
`-e social porn`.
|
||||
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||
Only active when `--replace` is also active.
|
||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only
|
||||
active when `--replace` is also active.
|
||||
|
||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||
target. Default is `0.0.0.0`.
|
||||
target. Default is `0.0.0.0`.
|
||||
|
||||
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
that appear on the same line as domains. The default is `true`.
|
||||
|
||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
|
||||
in a subfolder. If the subfolder does not exist, it will be created.
|
||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in
|
||||
a subfolder. If the subfolder does not exist, it will be created.
|
||||
|
||||
`--replace`, or `-r`: trigger replacing your active hosts
|
||||
|
||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is
|
||||
useful for configuring proximate DNS services on the local network.
|
||||
section at the top, containing lines like `127.0.0.1 localhost`. This is useful
|
||||
for configuring proximate DNS services on the local network.
|
||||
|
||||
`--nogendata`, or `-g`: `false` (default) or `true`, skip the generation of the
|
||||
readmeData.json file used for generating readme.md files. This is useful if you are
|
||||
generating host files with additional whitelists or blacklists and want to keep your
|
||||
local checkout of this repo unmodified.
|
||||
readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
the performances under Windows (with DNS Client service enabled).
|
||||
@@ -202,51 +260,33 @@ each domain on a separate line. This is necessary because many implementations
|
||||
of URL blockers that rely on `hosts` files do not conform to the standard which
|
||||
allows multiple hosts on a single line.
|
||||
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given blacklist file
|
||||
in hosts format to the generated hosts file.
|
||||
`--blacklist <blacklistfile>`, or `-x <blacklistfile>`: Append the given
|
||||
blacklist file in hosts format to the generated hosts file.
|
||||
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist file
|
||||
to remove hosts from the generated hosts file.
|
||||
|
||||
#### Using NixOS:
|
||||
|
||||
To install hosts file on your machine add the following into your `configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
* NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
* NOTE: The call to `fetchurl` is impure.
|
||||
Use `fetchFromGitHub` with the exact commit if you want to always get the same result.
|
||||
`--whitelist <whitelistfile>`, or `-w <whitelistfile>`: Use the given whitelist
|
||||
file to remove hosts from the generated hosts file.
|
||||
|
||||
## How do I control which sources are unified?
|
||||
|
||||
Add one or more *additional* sources, each in a subfolder of the `data/`
|
||||
folder, and specify the `url` key in its `update.json` file.
|
||||
Add one or more _additional_ sources, each in a subfolder of the `data/` folder,
|
||||
and specify the `url` key in its `update.json` file.
|
||||
|
||||
Add one or more *optional* extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
Add one or more _optional_ extensions, which originate from subfolders of the
|
||||
`extensions/` folder. Again the url in `update.json` controls where this
|
||||
extension finds its updates.
|
||||
|
||||
Create an *optional* `blacklist` file. The contents of this file (containing a
|
||||
Create an _optional_ `blacklist` file. The contents of this file (containing a
|
||||
listing of additional domains in `hosts` file format) are appended to the
|
||||
unified hosts file during the update process. A sample `blacklist` is
|
||||
included, and may be modified as you need.
|
||||
unified hosts file during the update process. A sample `blacklist` is included,
|
||||
and may be modified as you need.
|
||||
|
||||
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
|
||||
be overridden when you `git pull` this repo from `origin` in the future.
|
||||
- NOTE: The `blacklist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
### How do I include my own custom domain mappings?
|
||||
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents
|
||||
of this file are prepended to the unified hosts file during the update
|
||||
process.
|
||||
If you have custom hosts records, place them in file `myhosts`. The contents of
|
||||
this file are prepended to the unified hosts file during the update process.
|
||||
|
||||
The `myhosts` file is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
@@ -256,41 +296,52 @@ overridden when you `git pull` this repo from `origin` in the future.
|
||||
The domains you list in the `whitelist` file are excluded from the final hosts
|
||||
file.
|
||||
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged
|
||||
into the final hosts file.
|
||||
The `whitelist` uses partial matching. Therefore if you whitelist
|
||||
`google-analytics.com`, that domain and all its subdomains won't be merged into
|
||||
the final hosts file.
|
||||
|
||||
The `whitelist` is not tracked by git, so any changes you make won't be
|
||||
overridden when you `git pull` this repo from `origin` in the future.
|
||||
|
||||
## How can I contribute hosts records?
|
||||
|
||||
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
|
||||
If you discover sketchy domains you feel should be included here, here are some
|
||||
ways to contribute them.
|
||||
|
||||
### Option 1: contact one of our hosts sources
|
||||
|
||||
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
|
||||
The best way to get new domains included is to submit an issue to any of the
|
||||
data providers whose home pages are
|
||||
[listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant).
|
||||
This is best because once you submit new domains, they will be curated and
|
||||
updated by the dedicated folks who maintain these sources.
|
||||
|
||||
### Option 2: Fork this repository, add your domains to Steven Black's personal data file, and submit a pull request
|
||||
|
||||
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
Fork this hosts this repo and add your links to
|
||||
[https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
|
||||
|
||||
Then, submit a pull request.
|
||||
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
|
||||
**WARNING**: this is less desirable than Option 1 because the ongoing curation
|
||||
falls on us. So this creates more work for us.
|
||||
|
||||
### Option 3: create your own hosts list as a repo on GitHub
|
||||
|
||||
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
|
||||
If you're able to curate your own collection of sketchy domains, then curate
|
||||
your own hosts list. Then signal the existence of your repo as
|
||||
[a new issue](https://github.com/StevenBlack/hosts/issues) and we may include
|
||||
your new repo into the collection of sources we pull whenever we create new
|
||||
versions.
|
||||
|
||||
## What is a hosts file?
|
||||
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file
|
||||
used by all operating systems to map hostnames to IP addresses.
|
||||
A hosts file, named `hosts` (with no file extension), is a plain-text file used
|
||||
by all operating systems to map hostnames to IP addresses.
|
||||
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`.
|
||||
Therefore if a domain name is resolved by the `hosts` file, the request never
|
||||
leaves your computer.
|
||||
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore
|
||||
if a domain name is resolved by the `hosts` file, the request never leaves your
|
||||
computer.
|
||||
|
||||
Having a smart `hosts` file goes a long way towards blocking malware, adware,
|
||||
and other irritants.
|
||||
@@ -310,77 +361,137 @@ lines to your hosts file will do it:
|
||||
|
||||
## We recommend using `0.0.0.0` instead of `127.0.0.1`
|
||||
|
||||
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
|
||||
Traditionally most host files use `127.0.0.1`, the _loopback address_, to
|
||||
establish an IP connection to the local machine.
|
||||
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non-applicable target.
|
||||
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used
|
||||
to designate an invalid, unknown, or non-applicable target.
|
||||
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
|
||||
interfere with a web server that may be running on the local PC.
|
||||
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a
|
||||
timeout resolution. It also does not interfere with a web server that may be
|
||||
running on the local PC.
|
||||
|
||||
## Why not use `0` instead of `0.0.0.0`?
|
||||
|
||||
We tried that. Using `0` doesn't work universally.
|
||||
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.
|
||||
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
|
||||
Gentoo users may find
|
||||
[`sb-hosts`](https://github.com/PF4Public/gentoo-overlay/tree/master/net-misc/sb-hosts)
|
||||
in [::pf4public](https://github.com/PF4Public/gentoo-overlay) Gentoo overlay
|
||||
|
||||
## NixOS
|
||||
|
||||
To install hosts file on your machine add the following into your
|
||||
`configuration.nix`:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.extraHosts = let
|
||||
hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts;
|
||||
hostsFile = builtins.fetchurl hostsPath;
|
||||
in builtins.readFile "${hostsFile}";
|
||||
}
|
||||
```
|
||||
|
||||
- NOTE: Change `hostsPath` if you need other versions of hosts file.
|
||||
- NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact
|
||||
commit if you want to always get the same result.
|
||||
|
||||
### Nix Flake
|
||||
|
||||
NixOS installations which are managed through _flakes_ can use the hosts file
|
||||
like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
inputs.hosts.url = github:StevenBlack/hosts;
|
||||
outputs = { self, nixpkgs, hosts }: {
|
||||
nixosConfigurations.my-hostname = {
|
||||
system = "<architecture>";
|
||||
modules = [
|
||||
hosts.nixosModule {
|
||||
networking.stevenBlackHosts.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The hosts extensions are also available with the following options:
|
||||
|
||||
```nix
|
||||
{
|
||||
networking.stevenBlackHosts = {
|
||||
blockFakenews = true;
|
||||
blockGambling = true;
|
||||
blockPorn = true;
|
||||
blockSocial = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Updating hosts file on Windows
|
||||
|
||||
(NOTE: See also some third-party Hosts managers, listed below.)
|
||||
|
||||
On Linux and macOS, run the Python script. On Windows more
|
||||
work is required due to compatibility issues so it's preferable to run the batch file as follows:
|
||||
On Linux and macOS, run the Python script. On Windows more work is required due
|
||||
to compatibility issues so it's preferable to run the batch file as follows:
|
||||
|
||||
```sh
|
||||
updateHostsWindows.bat
|
||||
```
|
||||
|
||||
This file **MUST** be run in command prompt with administrator privileges in
|
||||
the repository directory. In addition to updating the hosts file, it can also
|
||||
This file **MUST** be run in command prompt with administrator privileges in the
|
||||
repository directory. In addition to updating the hosts file, it can also
|
||||
replace the existing hosts file, and reload the DNS cache. It goes without
|
||||
saying that for this to work, you must be connected to the internet.
|
||||
|
||||
To open a command prompt as administrator in the repository's directory, do the following:
|
||||
To open a command prompt as administrator in the repository's directory, do the
|
||||
following:
|
||||
|
||||
**Windows XP**: Start → Run → `cmd`
|
||||
- **Windows XP**: Start → Run → `cmd`
|
||||
- **Windows Vista, 7**: Start Button → type `cmd` → right-click Command Prompt →
|
||||
"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 Vista, 7**: 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.
|
||||
|
||||
**Windows 8**: Start → Swipe Up → All Apps → Windows System → right-click Command Prompt →
|
||||
"Run as Administrator"
|
||||
### Warning: Using this `hosts` file in Windows may require disabling DNS Cache service
|
||||
|
||||
**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)
|
||||
Windows has issues with larger hosts files. Recent changes in security within
|
||||
Windows 10 denies access to changing services via other tools except registry
|
||||
hacks. Use the `disable-dnscache-service-win.cmd` file to make proper changes to
|
||||
the Windows registry. You will need to reboot your device once that's done. See
|
||||
the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
## 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.
|
||||
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 +505,35 @@ 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
|
||||
|
||||
@@ -435,61 +545,117 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||
|
||||
## Release management
|
||||
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an excellent CLI release
|
||||
tool for GitHub repos and npm packages, to automate creating [releases](https://github.com/StevenBlack/hosts/releases).
|
||||
This is why the [package.json](https://github.com/StevenBlack/hosts/blob/master/package.json) and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
|
||||
This repository uses [release-it](https://github.com/release-it/release-it), an
|
||||
excellent CLI release tool for GitHub repos and npm packages, to automate
|
||||
creating [releases](https://github.com/StevenBlack/hosts/releases). This is why
|
||||
the
|
||||
[package.json](https://github.com/StevenBlack/hosts/blob/master/package.json)
|
||||
and
|
||||
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json)
|
||||
files are bundled.
|
||||
|
||||
## Goals of this unified hosts file
|
||||
|
||||
The goals of this repo are to:
|
||||
|
||||
1. automatically combine high-quality lists of hosts,
|
||||
|
||||
2. provide situation-appropriate extensions,
|
||||
|
||||
3. de-dupe the resultant combined list,
|
||||
|
||||
4. and keep the resultant file reasonably sized.
|
||||
|
||||
A high-quality source is defined here as one that is actively curated. A
|
||||
hosts source should be frequently updated by its maintainers with both
|
||||
additions and removals. The larger the hosts file, the higher the level of
|
||||
curation is expected.
|
||||
A high-quality source is defined here as one that is actively curated. A hosts
|
||||
source should be frequently updated by its maintainers with both additions and
|
||||
removals. The larger the hosts file, the higher the level of curation is
|
||||
expected.
|
||||
|
||||
It is expected that this unified hosts file will serve both desktop and mobile
|
||||
devices under a variety of operating systems.
|
||||
|
||||
## Third-Party Hosts Managers
|
||||
|
||||
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutoUpdate package is purpose-built for this unified hosts project as well as in active development by community members. You can install and uninstall any blacklist and keep it automatically up to date, and can be placed in a shared network location and deployed across an organization via group policies. And since it is in active development by community members, your bug reports, feature requests, and other feedback are most welcome.
|
||||
|
||||
* [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager, written in Java, by Christian Martínez. Check it out!
|
||||
- [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate")
|
||||
(for Windows): The Unified Hosts AutoUpdate package is purpose-built for this
|
||||
unified hosts project as well as in active development by community members.
|
||||
You can install and uninstall any blacklist and keep it automatically up to
|
||||
date, and can be placed in a shared network location and deployed across an
|
||||
organization via group policies. And since it is in active development by
|
||||
community members, your bug reports, feature requests, and other feedback are
|
||||
most welcome.
|
||||
- [ViHoMa](https://github.com/cmabad/ViHoMa) is a Visual Hosts file Manager,
|
||||
written in Java, by Christian Martínez. Check it out!
|
||||
|
||||
## Interesting Applications
|
||||
|
||||
* [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash script that automatically updates host file. You can also update a fresh copy. And each time it generates a dnsmasq-compatible configuration file. Fast installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hosts-BL](https://github.com/ScriptTiger/Hosts-BL "Hosts-BL") is a simple
|
||||
tool to handle hosts file black lists. It can remove comments, remove
|
||||
duplicates, compress to 9 domains per line, add IPv6 entries. In addition, it
|
||||
can also convert black lists to multiple other black list formats compatible
|
||||
with other software, such as dnsmasq, DualServer, RPZ, Privoxy, and Unbound,
|
||||
to name a few.
|
||||
- [Host Minder](https://github.com/jeremehancock/hostminder#readme) is a simple
|
||||
GUI that allows you to easily update your /etc/hosts file to one of four
|
||||
consolidated hosts files from StevenBlack/hosts. It is provided as a deb
|
||||
package and comes pre-installed on [UbuntuCE](https://ubuntuce.com/).
|
||||
- [Maza ad blocking](https://github.com/tanrax/maza-ad-blocking) is a bash
|
||||
script that automatically updates host file. You can also update a fresh copy.
|
||||
And each time it generates a dnsmasq-compatible configuration file. Fast
|
||||
installation, compatible with MacOS, Linux and BSD.
|
||||
- [Hostile](https://github.com/feross/hostile) is a nifty command line utility
|
||||
to easily add or remove domains from your hosts file. If our hosts files are
|
||||
too aggressive for you, you can use `hostile` to remove domains, or you can
|
||||
use `hostile` in a bash script to automate a post process each time you
|
||||
download fresh versions of hosts.
|
||||
- [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config)
|
||||
helps customizing, re-installing and using macOS. It also provides a
|
||||
[script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh)
|
||||
to install and update the hosts file using this project on macOS. In
|
||||
combination with a
|
||||
[launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist)
|
||||
it updates the hosts file every x days (default is 4). To install both,
|
||||
download the GitHub repo and run the
|
||||
[install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh)
|
||||
from the directory one level up.
|
||||
- [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker
|
||||
that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
|
||||
Pi-hole uses this repository as one of its sources.
|
||||
- [Block ads and malware via local BIND9 DNS server](https://github.com/mueller-ma/block-ads-via-dns "Block ads and malware via local DNS server")
|
||||
(for Debian, Raspbian & Ubuntu): Set up a local DNS server with a
|
||||
`/etc/bind/named.conf.blocked` file, sourced from here.
|
||||
- [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver/ "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server")
|
||||
(for BSD, Windows & Linux): Set up a blacklist for everyone on your network
|
||||
using the power of the unified hosts reformatted for DualServer. And if you're
|
||||
on Windows, this project also maintains an update script to make updating
|
||||
DualServer's blacklist even easier.
|
||||
- [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound")
|
||||
–
|
||||
[Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.")
|
||||
is a validating, recursive, and caching DNS resolver.
|
||||
- [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware)
|
||||
This GitHub gist has a short shell script (bash, will work on any 'nix) and
|
||||
uses `wget` & `awk` present in most distros, to fetch a specified hosts file
|
||||
and convert it to the format required by dnsmasq. Supports IPv4 and IPv6.
|
||||
Designed to be used as either a shell script, or can be dropped into
|
||||
`/etc/cron.weekly` (or wherever suits). The script is short and easily edited,
|
||||
also has a short document attached with notes on dnsmasq setup.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [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.
|
||||
|
||||
* [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.
|
||||
## Contribute
|
||||
|
||||
* [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.
|
||||
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.
|
||||
|
||||
* [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.
|
||||
We are always interested in discovering well-curated sources of hosts. If you
|
||||
find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to
|
||||
draw our attention.
|
||||
|
||||
* [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.
|
||||
Before you create or respond to any issue, please read our
|
||||
[code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
|
||||
* [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.
|
||||
|
||||
* [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts) This is a cross-platform command line utility to help install/update hosts files found at this repository.
|
||||
|
||||
## Contribute!
|
||||
|
||||
Please read our [Contributing Guide](https://github.com/StevenBlack/hosts/blob/master/contributing.md). Among other things, this explains how we organize files and folders in this repository.
|
||||
|
||||
We are always interested in discovering well-curated sources of hosts. If you find one, please open an [issue](https://github.com/StevenBlack/hosts/issues) to draw our attention.
|
||||
|
||||
Before you create or respond to any issue, please read our [code of conduct](https://github.com/StevenBlack/hosts/blob/master/code_of_conduct.md).
|
||||
Logo by [@Tobaloidee](https://github.com/Tobaloidee) Thank you!.
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# Source domain history
|
||||
|
||||
This page is only occasionally refreshed.
|
||||
|
||||

|
||||
|
||||
The file `stats.out` in this folder contains raw data for this graph.
|
||||
@@ -0,0 +1,71 @@
|
||||
2021-03-31,39485
|
||||
2021-03-31,9168
|
||||
2021-04-19,11486
|
||||
2021-04-24,14304
|
||||
2021-04-26,11720
|
||||
2021-05-04,11052
|
||||
2021-05-12,11711
|
||||
2021-05-17,11233
|
||||
2021-05-25,12703
|
||||
2021-05-31,12304
|
||||
2021-06-07,12400
|
||||
2021-06-16,11750
|
||||
2021-06-22,11674
|
||||
2021-06-28,11880
|
||||
2021-07-13,12219
|
||||
2021-07-19,8082
|
||||
2021-07-26,12381
|
||||
2021-08-02,13398
|
||||
2021-08-09,13630
|
||||
2021-08-17,13690
|
||||
2021-08-20,13885
|
||||
2021-08-25,14801
|
||||
2021-08-30,13963
|
||||
2021-09-07,15429
|
||||
2021-09-17,14573
|
||||
2021-09-24,14029
|
||||
2021-09-30,13780
|
||||
2021-10-05,14081
|
||||
2021-10-12,13729
|
||||
2021-10-19,13100
|
||||
2021-10-27,13305
|
||||
2021-11-04,14015
|
||||
2021-11-11,14823
|
||||
2021-11-17,14951
|
||||
2021-11-21,17033
|
||||
2021-11-29,15939
|
||||
2021-12-09,14123
|
||||
2021-12-13,15292
|
||||
2021-12-20,15361
|
||||
2021-12-30,15274
|
||||
2022-01-04,15183
|
||||
2022-01-11,15921
|
||||
2022-01-18,16845
|
||||
2022-01-24,20709
|
||||
2022-01-31,17110
|
||||
2022-02-17,16569
|
||||
2022-02-22,16032
|
||||
2022-03-06,19026
|
||||
2022-03-07,17826
|
||||
2022-03-14,18173
|
||||
2022-03-24,49835
|
||||
2022-03-29,25405
|
||||
2022-04-05,26583
|
||||
2022-04-13,27556
|
||||
2022-04-18,27836
|
||||
2022-04-25,25377
|
||||
2022-05-03,27259
|
||||
2022-05-10,26933
|
||||
2022-05-19,28737
|
||||
2022-05-25,56601
|
||||
2022-05-31,25229
|
||||
2022-06-07,22038
|
||||
2022-06-16,39876
|
||||
2022-06-21,19978
|
||||
2022-06-29,32240
|
||||
2022-07-04,19668
|
||||
2022-07-13,55668
|
||||
2022-07-16,45929
|
||||
2022-07-18,21489
|
||||
2022-07-21,39485
|
||||
2022-07-29,39485
|
||||
|
After Width: | Height: | Size: 37 KiB |
@@ -5,5 +5,6 @@
|
||||
"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"
|
||||
"license": "MIT",
|
||||
"pause": true
|
||||
}
|
||||
|
||||
@@ -475,7 +475,6 @@
|
||||
0.0.0.0 amatrices-sexy.fr
|
||||
0.0.0.0 amatrixe.free.fr
|
||||
0.0.0.0 amatvideo.free.fr
|
||||
0.0.0.0 amospalla.es
|
||||
0.0.0.0 ampower.me
|
||||
0.0.0.0 amt-k.ru
|
||||
0.0.0.0 amung.us
|
||||
@@ -1172,7 +1171,6 @@
|
||||
0.0.0.0 www.amateurwifevids.com
|
||||
0.0.0.0 www.amatrice-partouzeuse.com
|
||||
0.0.0.0 www.amatrices-sexy.fr
|
||||
0.0.0.0 www.amospalla.es
|
||||
0.0.0.0 www.ampower.me
|
||||
0.0.0.0 www.amt-k.ru
|
||||
0.0.0.0 www.amung.us
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# Source domain history
|
||||
|
||||
This page is only occasionally refreshed.
|
||||
|
||||

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

|
||||
|
||||
The file `stats.out` in this folder contains raw data for this graph.
|
||||
@@ -0,0 +1,401 @@
|
||||
2016-11-20,1845
|
||||
2016-11-20,1845
|
||||
2016-11-25,1867
|
||||
2016-11-26,1874
|
||||
2016-11-27,1881
|
||||
2016-12-01,1909
|
||||
2016-12-02,1929
|
||||
2016-12-03,1933
|
||||
2016-12-09,1933
|
||||
2016-12-09,1940
|
||||
2016-12-10,1940
|
||||
2016-12-11,1948
|
||||
2016-12-15,1985
|
||||
2016-12-18,2013
|
||||
2016-12-28,2033
|
||||
2017-01-02,2038
|
||||
2017-01-05,2038
|
||||
2017-01-05,2038
|
||||
2017-01-05,2038
|
||||
2017-01-10,2109
|
||||
2017-01-18,2123
|
||||
2017-01-22,2149
|
||||
2017-01-31,2187
|
||||
2017-02-20,2256
|
||||
2017-02-22,2258
|
||||
2017-02-26,2273
|
||||
2017-03-01,2299
|
||||
2017-03-04,2306
|
||||
2017-03-15,2285
|
||||
2017-03-30,2304
|
||||
2017-04-08,2088
|
||||
2017-04-13,2100
|
||||
2017-04-26,2121
|
||||
2017-05-07,2153
|
||||
2017-05-21,2177
|
||||
2017-05-28,2192
|
||||
2017-06-02,2205
|
||||
2017-06-05,2216
|
||||
2017-06-21,2249
|
||||
2017-06-28,2260
|
||||
2017-07-04,2267
|
||||
2017-07-10,2279
|
||||
2017-07-17,2093
|
||||
2017-07-26,2087
|
||||
2017-07-31,2105
|
||||
2017-08-08,1748
|
||||
2017-08-15,1597
|
||||
2017-08-21,1545
|
||||
2017-08-31,1524
|
||||
2017-09-07,1531
|
||||
2017-09-21,1531
|
||||
2017-10-24,1531
|
||||
2017-10-28,1531
|
||||
2018-02-24,1304
|
||||
2018-07-16,1315
|
||||
2018-07-23,1190
|
||||
2018-08-01,1230
|
||||
2018-08-08,1244
|
||||
2018-08-13,1261
|
||||
2018-08-22,1258
|
||||
2018-08-24,1324
|
||||
2018-08-29,1316
|
||||
2018-09-05,1316
|
||||
2018-09-13,1372
|
||||
2018-09-18,1372
|
||||
2018-10-02,1372
|
||||
2018-10-05,1300
|
||||
2018-10-09,1300
|
||||
2018-10-14,1324
|
||||
2018-10-22,1324
|
||||
2018-11-01,1324
|
||||
2018-11-14,1480
|
||||
2018-11-20,1486
|
||||
2018-11-21,1486
|
||||
2018-11-29,1486
|
||||
2018-12-11,1506
|
||||
2018-12-15,1506
|
||||
2018-12-23,1506
|
||||
2018-12-29,1506
|
||||
2019-01-04,1526
|
||||
2019-01-10,1526
|
||||
2019-01-22,1526
|
||||
2019-01-26,1526
|
||||
2019-01-29,1551
|
||||
2019-02-06,1606
|
||||
2019-02-11,1613
|
||||
2019-02-18,1554
|
||||
2019-02-24,1582
|
||||
2019-03-02,1578
|
||||
2019-03-06,1616
|
||||
2019-03-15,1627
|
||||
2019-03-21,1630
|
||||
2019-03-26,1620
|
||||
2019-04-02,1627
|
||||
2019-04-07,1624
|
||||
2019-04-11,1619
|
||||
2019-04-17,1626
|
||||
2019-04-25,1722
|
||||
2019-05-02,1719
|
||||
2019-05-04,1719
|
||||
2019-05-05,1723
|
||||
2019-05-10,1729
|
||||
2019-05-13,1705
|
||||
2019-05-23,1746
|
||||
2019-05-24,1746
|
||||
2019-05-29,1760
|
||||
2019-06-05,1747
|
||||
2019-06-11,1746
|
||||
2019-06-17,3155
|
||||
2019-06-19,3163
|
||||
2019-06-22,3184
|
||||
2019-06-28,3231
|
||||
2019-07-04,3243
|
||||
2019-07-21,3311
|
||||
2019-07-27,3301
|
||||
2019-07-31,3305
|
||||
2019-08-06,3330
|
||||
2019-08-10,3299
|
||||
2019-08-13,3530
|
||||
2019-08-22,3547
|
||||
2019-08-30,3571
|
||||
2019-09-06,3581
|
||||
2019-09-09,3607
|
||||
2019-09-09,3619
|
||||
2019-09-19,3633
|
||||
2019-09-23,3637
|
||||
2019-09-29,3665
|
||||
2019-10-10,4244
|
||||
2019-10-12,4258
|
||||
2019-10-15,4270
|
||||
2019-10-18,4274
|
||||
2019-10-27,4304
|
||||
2019-10-27,4306
|
||||
2019-10-31,4404
|
||||
2019-11-03,4406
|
||||
2019-11-15,4491
|
||||
2019-11-17,4510
|
||||
2019-11-20,4526
|
||||
2019-11-26,4688
|
||||
2019-12-02,4688
|
||||
2019-12-02,4688
|
||||
2019-12-02,4689
|
||||
2019-12-11,4733
|
||||
2019-12-15,4737
|
||||
2019-12-20,4663
|
||||
2019-12-23,4625
|
||||
2019-12-30,4639
|
||||
2020-01-01,4617
|
||||
2020-01-04,4697
|
||||
2020-01-06,4619
|
||||
2020-01-09,5337
|
||||
2020-01-11,5663
|
||||
2020-01-14,5803
|
||||
2020-01-16,5876
|
||||
2020-01-19,5867
|
||||
2020-01-21,5837
|
||||
2020-01-23,5839
|
||||
2020-01-24,5903
|
||||
2020-01-30,6836
|
||||
2020-02-03,7084
|
||||
2020-02-05,7258
|
||||
2020-02-09,7262
|
||||
2020-02-14,7366
|
||||
2020-02-17,7412
|
||||
2020-02-21,7396
|
||||
2020-02-25,7377
|
||||
2020-03-01,7497
|
||||
2020-03-05,7557
|
||||
2020-03-07,7586
|
||||
2020-03-11,7816
|
||||
2020-03-15,7922
|
||||
2020-03-18,8154
|
||||
2020-03-21,8570
|
||||
2020-03-25,8730
|
||||
2020-03-21,8730
|
||||
2020-03-28,8938
|
||||
2020-03-29,8952
|
||||
2020-04-01,8968
|
||||
2020-04-03,9146
|
||||
2020-04-04,9184
|
||||
2020-04-06,9206
|
||||
2020-04-09,9370
|
||||
2020-04-10,9418
|
||||
2020-04-11,9440
|
||||
2020-04-13,9462
|
||||
2020-04-16,9665
|
||||
2020-04-18,9741
|
||||
2020-04-17,9741
|
||||
2020-04-22,9801
|
||||
2020-04-26,9859
|
||||
2020-04-28,9723
|
||||
2020-05-02,10395
|
||||
2020-05-05,10084
|
||||
2020-05-05,10114
|
||||
2020-05-12,10732
|
||||
2020-05-13,10814
|
||||
2020-05-15,10870
|
||||
2020-05-20,10881
|
||||
2020-05-26,10432
|
||||
2020-05-27,10532
|
||||
2020-06-02,10558
|
||||
2020-06-09,10510
|
||||
2020-06-16,10575
|
||||
2020-06-22,10689
|
||||
2020-07-02,11111
|
||||
2020-07-05,11029
|
||||
2020-07-06,10990
|
||||
2020-07-13,11148
|
||||
2020-07-18,11097
|
||||
2020-07-24,11065
|
||||
2020-07-29,11066
|
||||
2020-08-01,11185
|
||||
2020-08-03,10999
|
||||
2020-08-06,11036
|
||||
2020-08-13,11479
|
||||
2020-08-14,11497
|
||||
2020-08-15,11515
|
||||
2020-08-17,11475
|
||||
2020-08-19,11549
|
||||
2020-08-25,11924
|
||||
2020-09-02,12273
|
||||
2020-09-07,12486
|
||||
2020-09-14,12917
|
||||
2020-09-20,12969
|
||||
2020-09-26,13179
|
||||
2020-10-03,13241
|
||||
2020-10-08,13325
|
||||
2020-10-13,13064
|
||||
2020-10-14,13079
|
||||
2020-10-19,12907
|
||||
2020-10-29,13254
|
||||
2020-11-01,13353
|
||||
2020-11-03,13391
|
||||
2020-11-08,13915
|
||||
2020-11-10,14029
|
||||
2020-11-14,14193
|
||||
2020-11-15,14072
|
||||
2020-11-16,14139
|
||||
2020-11-19,14307
|
||||
2020-11-22,14391
|
||||
2020-11-25,14564
|
||||
2020-11-28,14775
|
||||
2020-12-02,14902
|
||||
2020-12-09,15156
|
||||
2020-12-14,15542
|
||||
2020-12-19,15762
|
||||
2020-12-26,15606
|
||||
2020-12-31,15606
|
||||
2020-12-31,14904
|
||||
2021-01-02,14916
|
||||
2021-01-05,15046
|
||||
2021-01-12,15130
|
||||
2021-01-17,15495
|
||||
2021-01-22,15737
|
||||
2021-01-24,15927
|
||||
2021-01-31,16294
|
||||
2021-02-02,16330
|
||||
2021-02-03,16445
|
||||
2021-02-08,16681
|
||||
2021-02-09,16745
|
||||
2021-02-14,17029
|
||||
2021-02-16,17078
|
||||
2021-02-21,17638
|
||||
2021-02-22,17654
|
||||
2021-02-26,17936
|
||||
2021-02-28,18005
|
||||
2021-03-06,18445
|
||||
2021-03-09,18661
|
||||
2021-03-10,18773
|
||||
2021-03-16,19063
|
||||
2021-03-21,19081
|
||||
2021-03-28,19832
|
||||
2021-03-31,20049
|
||||
2021-04-04,20393
|
||||
2021-04-09,21076
|
||||
2021-04-13,19067
|
||||
2021-04-19,19841
|
||||
2021-04-24,20528
|
||||
2021-04-26,20715
|
||||
2021-04-26,19965
|
||||
2021-04-29,20365
|
||||
2021-05-01,20427
|
||||
2021-05-04,19582
|
||||
2021-05-05,19645
|
||||
2021-05-06,19794
|
||||
2021-05-06,20171
|
||||
2021-05-12,20255
|
||||
2021-05-15,20587
|
||||
2021-05-17,20111
|
||||
2021-05-22,20727
|
||||
2021-05-25,20583
|
||||
2021-05-31,21195
|
||||
2021-06-07,21781
|
||||
2021-06-16,22102
|
||||
2021-06-22,21795
|
||||
2021-06-28,22235
|
||||
2021-07-01,22525
|
||||
2021-07-04,22369
|
||||
2021-07-13,23328
|
||||
2021-07-18,23858
|
||||
2021-07-19,23822
|
||||
2021-07-26,24665
|
||||
2021-07-29,25221
|
||||
2021-08-02,25457
|
||||
2021-08-09,26334
|
||||
2021-08-17,25942
|
||||
2021-08-20,26286
|
||||
2021-08-25,26663
|
||||
2021-08-26,26973
|
||||
2021-08-30,27320
|
||||
2021-09-02,28507
|
||||
2021-09-06,28957
|
||||
2021-09-07,29333
|
||||
2021-09-12,29847
|
||||
2021-09-17,30370
|
||||
2021-09-24,31652
|
||||
2021-09-30,32470
|
||||
2021-10-03,32786
|
||||
2021-10-05,32738
|
||||
2021-10-12,34062
|
||||
2021-10-14,34501
|
||||
2021-10-19,35338
|
||||
2021-10-23,35434
|
||||
2021-10-27,34379
|
||||
2021-11-04,34665
|
||||
2021-11-11,34816
|
||||
2021-11-14,34759
|
||||
2021-11-17,35318
|
||||
2021-11-21,35891
|
||||
2021-11-29,36245
|
||||
2021-12-05,36952
|
||||
2021-12-09,38195
|
||||
2021-12-12,38584
|
||||
2021-12-13,38100
|
||||
2021-12-16,38774
|
||||
2021-12-19,38966
|
||||
2021-12-20,39041
|
||||
2021-12-25,39551
|
||||
2021-12-30,40058
|
||||
2021-12-30,40068
|
||||
2022-01-02,40040
|
||||
2022-01-04,40436
|
||||
2022-01-07,40766
|
||||
2022-01-11,41502
|
||||
2022-01-18,42045
|
||||
2022-01-19,42333
|
||||
2022-01-21,42874
|
||||
2022-01-24,43200
|
||||
2022-01-28,44934
|
||||
2022-01-30,45208
|
||||
2022-01-31,45238
|
||||
2022-02-01,45489
|
||||
2022-02-07,46285
|
||||
2022-02-12,47356
|
||||
2022-02-13,47494
|
||||
2022-02-13,47502
|
||||
2022-02-17,48147
|
||||
2022-02-22,44066
|
||||
2022-02-26,44660
|
||||
2022-03-06,45414
|
||||
2022-03-07,45482
|
||||
2022-03-09,45772
|
||||
2022-03-12,46092
|
||||
2022-03-14,43748
|
||||
2022-03-19,44344
|
||||
2022-03-24,45177
|
||||
2022-03-29,44800
|
||||
2022-03-31,44955
|
||||
2022-04-05,45565
|
||||
2022-04-09,45911
|
||||
2022-04-13,46012
|
||||
2022-04-18,45732
|
||||
2022-04-21,46172
|
||||
2022-04-25,45790
|
||||
2022-04-29,36662
|
||||
2022-05-03,48213
|
||||
2022-05-05,48050
|
||||
2022-05-10,46723
|
||||
2022-05-14,47567
|
||||
2022-05-19,48621
|
||||
2022-05-25,48838
|
||||
2022-05-29,49332
|
||||
2022-05-31,49239
|
||||
2022-06-02,49659
|
||||
2022-06-07,49965
|
||||
2022-06-09,50207
|
||||
2022-06-16,51198
|
||||
2022-06-21,50974
|
||||
2022-06-21,51086
|
||||
2022-06-25,51697
|
||||
2022-06-29,51799
|
||||
2022-07-01,52089
|
||||
2022-07-04,52769
|
||||
2022-07-13,52305
|
||||
2022-07-16,52935
|
||||
2022-07-16,52939
|
||||
2022-07-18,53239
|
||||
2022-07-21,53945
|
||||
2022-07-23,54912
|
||||
2022-07-25,54029
|
||||
2022-07-29,55170
|
||||
|
After Width: | Height: | Size: 30 KiB |
@@ -454,7 +454,6 @@
|
||||
0.0.0.0 myetherwalletver.com
|
||||
0.0.0.0 privatix.top
|
||||
0.0.0.0 privatix.pro
|
||||
0.0.0.0 privatex.io
|
||||
0.0.0.0 stormtoken.cc
|
||||
0.0.0.0 raiden.online
|
||||
0.0.0.0 stormstoken.com
|
||||
@@ -1069,3 +1068,5 @@
|
||||
0.0.0.0 curve.so
|
||||
0.0.0.0 curvefi.io
|
||||
0.0.0.0 curwe.fi
|
||||
0.0.0.0 boredapeyachtclub.app
|
||||
0.0.0.0 convexfinance.org
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# Source domain history
|
||||
|
||||
This page is only occasionally refreshed.
|
||||
|
||||

|
||||
|
||||
The file `stats.out` in this folder contains raw data for this graph.
|
||||
@@ -0,0 +1,6 @@
|
||||
2021-03-10,1071
|
||||
2021-03-10,1071
|
||||
2021-03-10,1070
|
||||
2021-10-05,1071
|
||||
2021-10-12,1072
|
||||
2022-01-11,1071
|
||||
|
After Width: | Height: | Size: 30 KiB |
@@ -2,9 +2,9 @@
|
||||
# Title: Hosts contributed by Steven Black
|
||||
# http://stevenblack.com
|
||||
|
||||
0.0.0.0 wizhumpgyros.com
|
||||
0.0.0.0 eu1.clevertap-prod.com
|
||||
0.0.0.0 wizhumpgyros.com
|
||||
0.0.0.0 coccyxwickimp.com
|
||||
0.0.0.0 n2019cov.000webhostapp.com
|
||||
0.0.0.0 webmail-who-int.000webhostapp.com
|
||||
0.0.0.0 010sec.com
|
||||
0.0.0.0 01mspmd5yalky8.com
|
||||
@@ -864,9 +864,7 @@
|
||||
0.0.0.0 www.girlstofap.ga
|
||||
0.0.0.0 git-hub.co
|
||||
0.0.0.0 githb.co
|
||||
0.0.0.0 amerisleep.github.io
|
||||
0.0.0.0 superlogout.github.io
|
||||
0.0.0.0 www.superlogout.github.io
|
||||
0.0.0.0 goodblock.gladly.io
|
||||
0.0.0.0 www.goodblock.gladly.io
|
||||
0.0.0.0 ad-dev.globalnoticias.pt
|
||||
@@ -1311,7 +1309,6 @@
|
||||
0.0.0.0 oempprd.samsungcloudsolution.net
|
||||
0.0.0.0 invitation.samsungiotcloud.com
|
||||
0.0.0.0 gld.samsungosp.com
|
||||
0.0.0.0 gpm.samsungqbe.com
|
||||
0.0.0.0 osb-ussvc.samsungqbe.com
|
||||
0.0.0.0 www.saumweb.com
|
||||
0.0.0.0 udm.scorecardresearch.com
|
||||
@@ -1887,3 +1884,368 @@
|
||||
0.0.0.0 security-update.qhigh.com
|
||||
0.0.0.0 www.seure-update.fartit.com
|
||||
0.0.0.0 seure-update.fartit.com
|
||||
|
||||
# Added July 29, 2021 See https://github.com/StevenBlack/hosts/issues/1721
|
||||
0.0.0.0 www.updatecatalogs.com
|
||||
0.0.0.0 microsoft.updatecatalogs.com
|
||||
0.0.0.0 webmail.mmtimes.net
|
||||
0.0.0.0 myanmar.flymna.net
|
||||
0.0.0.0 new.mmtimes.org
|
||||
|
||||
# Added August 2, 2021 See https://github.com/StevenBlack/hosts/issues/1722
|
||||
0.0.0.0 ackng.com
|
||||
0.0.0.0 bb3u9.com
|
||||
0.0.0.0 ttr3p.com
|
||||
0.0.0.0 zz3r0.com
|
||||
0.0.0.0 sqlnetcat.com
|
||||
0.0.0.0 netcatkit.com
|
||||
0.0.0.0 hwqloan.com
|
||||
0.0.0.0 75.ag
|
||||
0.0.0.0 js88.ag
|
||||
0.0.0.0 qq8.ag
|
||||
0.0.0.0 cdnimages.xyz
|
||||
0.0.0.0 pp6r1.com
|
||||
0.0.0.0 amynx.com
|
||||
0.0.0.0 zer9g.com
|
||||
0.0.0.0 b69kq.com
|
||||
0.0.0.0 down.sqlnetcat.com
|
||||
|
||||
# Added August 8, 2021 see https://github.com/StevenBlack/hosts/issues/1725
|
||||
0.0.0.0 gjapplog.ucweb.com
|
||||
0.0.0.0 logssug.ucweb.com
|
||||
0.0.0.0 attr.union.ucweb.com
|
||||
|
||||
# Added August 11, 2021
|
||||
0.0.0.0 www.luckycrush.live
|
||||
|
||||
# Added September 17, 2021
|
||||
0.0.0.0 mmsotk.com
|
||||
|
||||
# Added September 24, 2021 see https://github.com/StevenBlack/hosts/issues/1764
|
||||
0.0.0.0 discord-app.net
|
||||
|
||||
# Added October 2, 2021 see https://github.com/StevenBlack/hosts/issues/1770
|
||||
0.0.0.0 sk.mplmnt.io
|
||||
|
||||
# Added October 17, 2021 see https://github.com/StevenBlack/hosts/issues/1752
|
||||
0.0.0.0 org-upgrade.com
|
||||
0.0.0.0 www.org-upgrade.com
|
||||
|
||||
# Added October 19, 2021
|
||||
0.0.0.0 www.abc.co.bz
|
||||
|
||||
# Added October 24, 2021 See https://github.com/StevenBlack/hosts/issues/1789
|
||||
0.0.0.0 xfnl-spspostit-online.preview-domain.com
|
||||
0.0.0.0 ibancalculator-com.preview-domain.com
|
||||
|
||||
# added November 29, 2021
|
||||
0.0.0.0 hiperdex.com
|
||||
|
||||
# added December 13, 2021 See https://github.com/StevenBlack/hosts/issues/1832
|
||||
0.0.0.0 cloudshare.nocoshop.ru
|
||||
0.0.0.0 easyfiles.nocoshop.ru
|
||||
0.0.0.0 filedrive.nocoshop.ru
|
||||
0.0.0.0 filekeeper.nocoshop.ru
|
||||
0.0.0.0 filestation.nocoshop.ru
|
||||
0.0.0.0 gouploads.nocoshop.ru
|
||||
0.0.0.0 linkbox.nocoshop.ru
|
||||
0.0.0.0 liquidfile.nocoshop.ru
|
||||
0.0.0.0 mirroruploads.nocoshop.ru
|
||||
0.0.0.0 openshare.nocoshop.ru
|
||||
0.0.0.0 quicklinks.nocoshop.ru
|
||||
0.0.0.0 secretfiles.nocoshop.ru
|
||||
0.0.0.0 sendbox.nocoshop.ru
|
||||
0.0.0.0 smartfiles.nocoshop.ru
|
||||
0.0.0.0 tinyfiles.nocoshop.ru
|
||||
0.0.0.0 turbobit.nocoshop.ru
|
||||
0.0.0.0 uberupload.nocoshop.ru
|
||||
0.0.0.0 upandshare.nocoshop.ru
|
||||
0.0.0.0 weupload.nocoshop.ru
|
||||
0.0.0.0 zippyfiles.nocoshop.ru
|
||||
0.0.0.0 easyfiles.topupload.ru
|
||||
0.0.0.0 filekeeper.topupload.ru
|
||||
0.0.0.0 linkbox.topupload.ru
|
||||
0.0.0.0 liquidfile.topupload.ru
|
||||
0.0.0.0 mirroruploads.topupload.ru
|
||||
0.0.0.0 openshare.topupload.ru
|
||||
0.0.0.0 sendbox.topupload.ru
|
||||
0.0.0.0 turbobit.topupload.ru
|
||||
0.0.0.0 uberupload.topupload.ru
|
||||
0.0.0.0 weupload.topupload.ru
|
||||
0.0.0.0 zippyfiles.topupload.ru
|
||||
0.0.0.0 cloudshare.uploadbox.world
|
||||
0.0.0.0 filedrive.uploadbox.world
|
||||
0.0.0.0 filestation.uploadbox.world
|
||||
0.0.0.0 gouploads.uploadbox.world
|
||||
0.0.0.0 quicklinks.uploadbox.world
|
||||
0.0.0.0 secretfiles.uploadbox.world
|
||||
0.0.0.0 smartfiles.uploadbox.world
|
||||
0.0.0.0 tinyfiles.uploadbox.world
|
||||
0.0.0.0 uberupload.uploadbox.world
|
||||
0.0.0.0 upandshare.uploadbox.world
|
||||
0.0.0.0 arabianpdfbooks.info
|
||||
0.0.0.0 james-joyce.site
|
||||
0.0.0.0 kutib-lilajhiza.info
|
||||
0.0.0.0 nathanielhawthorne.site
|
||||
0.0.0.0 samuel-beckett.site
|
||||
0.0.0.0 tahmil-kutib-pdf.info
|
||||
0.0.0.0 uberupload.online
|
||||
|
||||
# Added December 25, 2021 see https://github.com/StevenBlack/hosts/issues/1840
|
||||
0.0.0.0 pokemoney.biz
|
||||
0.0.0.0 pokemoney.shop
|
||||
|
||||
# added December 30, 2021 see https://github.com/StevenBlack/hosts/issues/1849
|
||||
0.0.0.0 1.220.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 1.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 10.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 101.101.170.199.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 101.170.199.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 101.58.46.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 103.98.133.66.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 106.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 107.162.155.1.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 108.84.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 110.206.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 110.26.112.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 110.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 112.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 118.236.253.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 12.8.110.206.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 12.85.10.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 121.132.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 121.136.92.16.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 122.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 124.106.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 125.61.29.122.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 125.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 126.13.125.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 126.13.134.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 127.171.246.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 127.173.74.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 13.125.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 13.134.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 13.207.228.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 131.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 132.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 133.66.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 134.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 136.255.190.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 136.92.16.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 139.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 14.254.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 142.186.110.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 146.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 155.1.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 155.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 16.36.131.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 16.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 162.155.1.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 168.92.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 170.199.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 171.246.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 172.223.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 173.31.53.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 173.74.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 177.224.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 181.226.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 182.35.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 186.110.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 186.207.233.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 187.172.223.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 187.250.139.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 187.250.45.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 190.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 191.223.146.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 193.13.207.228.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 193.58.14.254.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 194.186.207.233.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 195.77.229.31.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 197.222.215.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 198.96.84.56.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 199.203.121.132.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 199.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 2.67.200.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 20.43.177.224.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 200.24.4.146.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 200.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 202.127.171.246.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 202.127.173.74.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 202.173.31.53.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 202.4.6.58.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 203.121.132.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 204.110.26.112.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 204.126.13.125.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 204.126.13.134.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 206.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 207.228.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 207.233.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 208.59.124.106.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 209.197.222.215.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 210.99.182.35.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 212.24.225.8.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 213.187.250.139.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 213.187.250.45.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 213.33.108.84.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 213.5.168.92.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 215.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 220.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 222.215.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 223.146.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 223.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 224.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 225.8.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 226.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 228.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 229.31.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 233.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 236.253.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 24.225.8.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 24.4.146.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 246.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 25.93.59.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 250.139.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 250.45.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 253.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 254.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 255.190.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 26.112.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 27.101.58.46.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 29.122.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 31.53.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 31.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 33.108.84.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 33.155.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 35.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 36.131.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 36.37.33.155.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 37.25.93.59.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 37.33.155.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 38.142.186.110.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 4.146.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 4.16.36.131.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 4.6.58.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 40.118.236.253.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 40.67.181.226.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 43.177.224.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 45.12.85.10.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 45.63.1.220.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 45.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 46.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 5.168.92.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 5.2.67.200.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 5.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 52.136.255.190.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 52.187.172.223.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 52.191.223.146.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 53.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 56.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 58.14.254.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 58.46.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 58.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 59.124.106.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 59.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 6.58.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 61.29.122.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 63.1.220.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 66.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 67.181.226.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 67.200.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 74.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 77.229.31.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 8.110.206.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 8.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 84.56.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 84.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 85.10.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 92.16.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 92.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 93.59.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 96.84.56.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 98.133.66.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 99.182.35.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 c752sa.k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 c752sa3k9ob2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 c752sa3k9oeb2egpgc8fnhkeyyyyy.domsearch.net
|
||||
0.0.0.0 c752sa3k9oeb2ehgpgc8fnhkeyyyyy.domsearch.net
|
||||
0.0.0.0 domsearch.net
|
||||
0.0.0.0 k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 mail.domsearch.net
|
||||
0.0.0.0 net202.127.171.246.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 test.c752sa3k9oeb2eg2ehpgc8fnhkeyyyyyn.domsearch.net
|
||||
0.0.0.0 vor.ngo
|
||||
0.0.0.0 vor.ong
|
||||
0.0.0.0 www.domsearch.net
|
||||
|
||||
# Added December 31, 2021
|
||||
0.0.0.0 xxsweety.com
|
||||
0.0.0.0 manualdrain.com
|
||||
|
||||
# Added January 2, 2022
|
||||
0.0.0.0 mypornsnap.top
|
||||
|
||||
# Added January 11, 2022
|
||||
0.0.0.0 asecv.xyz
|
||||
|
||||
# Added January 12, 2022
|
||||
0.0.0.0 loopybatl.site
|
||||
0.0.0.0 technoob.info
|
||||
0.0.0.0 thefappeningpics.com
|
||||
0.0.0.0 hotzxgirl.com
|
||||
|
||||
# Added January 13, 2022
|
||||
0.0.0.0 roksa.sx
|
||||
|
||||
# Added January 30, 2022
|
||||
0.0.0.0 waaw.to
|
||||
|
||||
# Added February 5, 2022
|
||||
0.0.0.0 zmyslowyklub.com
|
||||
0.0.0.0 flndmyiove.com
|
||||
|
||||
# Added February 17, 2022
|
||||
0.0.0.0 yourbestwoman.life
|
||||
|
||||
# Added February 28, 2022
|
||||
0.0.0.0 sweetchicks.net
|
||||
0.0.0.0 rbgbq.sweetchicks.net
|
||||
0.0.0.0 fuckmebook.com
|
||||
|
||||
# Added May 20, 2022
|
||||
0.0.0.0 tracking.overwolf.com
|
||||
0.0.0.0 analyticsnew.overwolf.com
|
||||
0.0.0.0 raf.overwolf.com
|
||||
|
||||
# Added June 21, 2022
|
||||
0.0.0.0 speeddials.opera.com
|
||||
0.0.0.0 merchandise.opera-api.com
|
||||
|
||||
# added June 25, 2022
|
||||
0.0.0.0 analytics.binaryfortress.com
|
||||
|
||||
# added July 10, 2022
|
||||
0.0.0.0 seductivegirls.cyou
|
||||
0.0.0.0 amusingdates.net
|
||||
0.0.0.0 honey-date4u.life
|
||||
|
||||
# Added August 3, 2022
|
||||
0.0.0.0 secur.hopp.to
|
||||
|
||||
# Added August 9, 2022
|
||||
0.0.0.0 shopsplumbing.com
|
||||
|
||||
# Added August 12, 2022
|
||||
0.0.0.0 nl-crypto.com
|
||||
0.0.0.0 evri-package-gb.web.app
|
||||
|
||||
# Added August 13, 2022
|
||||
0.0.0.0 telemetry.acronis.com
|
||||
|
||||
# Added August 17, 2022
|
||||
0.0.0.0 mlbcash.com
|
||||
0.0.0.0 easy-extra-income-ways-makes-you-rich.store
|
||||
0.0.0.0 www.easy-extra-income-ways-makes-you-rich.store
|
||||
|
||||
# Added August 20, 2022
|
||||
0.0.0.0 arizona-golf-vacations.com
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# Source domain history
|
||||
|
||||
This page is only occasionally refreshed.
|
||||
|
||||

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

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

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

|
||||
|
||||
The file `stats.out` in this folder contains raw data for this graph.
|
||||
@@ -0,0 +1,165 @@
|
||||
2015-09-02,408
|
||||
2015-09-02,408
|
||||
2015-09-02,408
|
||||
2016-04-20,408
|
||||
2016-07-21,408
|
||||
2016-07-21,408
|
||||
2016-09-02,409
|
||||
2016-12-01,409
|
||||
2016-12-09,409
|
||||
2016-12-09,409
|
||||
2016-12-11,409
|
||||
2017-01-31,409
|
||||
2017-10-24,409
|
||||
2020-01-14,12561
|
||||
2020-01-16,12487
|
||||
2020-01-21,12480
|
||||
2020-01-23,12158
|
||||
2020-01-24,12153
|
||||
2020-01-30,12129
|
||||
2020-02-03,12156
|
||||
2020-02-05,12150
|
||||
2020-02-09,12197
|
||||
2020-02-14,12174
|
||||
2020-02-17,12168
|
||||
2020-02-21,12155
|
||||
2020-02-25,12157
|
||||
2020-02-25,12156
|
||||
2020-03-01,12185
|
||||
2020-03-05,12181
|
||||
2020-03-11,12175
|
||||
2020-03-18,12174
|
||||
2020-04-03,12173
|
||||
2020-04-06,12170
|
||||
2020-04-08,12170
|
||||
2020-04-11,12167
|
||||
2020-04-13,12166
|
||||
2020-04-16,12165
|
||||
2020-04-22,12159
|
||||
2020-04-28,12151
|
||||
2020-05-05,12149
|
||||
2020-05-05,12185
|
||||
2020-05-12,12183
|
||||
2020-05-15,12182
|
||||
2020-05-20,12148
|
||||
2020-06-02,12146
|
||||
2020-06-09,12096
|
||||
2020-06-16,12092
|
||||
2020-06-22,12086
|
||||
2020-06-25,12083
|
||||
2020-06-27,12076
|
||||
2020-07-02,12075
|
||||
2020-07-13,12066
|
||||
2020-07-18,12065
|
||||
2020-07-24,12042
|
||||
2020-07-29,12045
|
||||
2020-08-01,12039
|
||||
2020-08-06,12037
|
||||
2020-08-13,12032
|
||||
2020-08-14,12009
|
||||
2020-08-19,9735
|
||||
2020-08-25,7957
|
||||
2020-09-02,7951
|
||||
2020-09-14,7950
|
||||
2020-10-08,7957
|
||||
2020-10-14,6873
|
||||
2020-10-19,6872
|
||||
2020-11-01,9323
|
||||
2020-11-03,9322
|
||||
2020-11-08,9268
|
||||
2020-11-10,9258
|
||||
2020-11-14,9235
|
||||
2020-11-15,9241
|
||||
2020-11-16,9239
|
||||
2020-11-19,9262
|
||||
2020-11-22,9261
|
||||
2020-11-25,9260
|
||||
2020-11-28,9245
|
||||
2020-12-02,9255
|
||||
2020-12-09,9211
|
||||
2020-12-14,9212
|
||||
2020-12-19,9187
|
||||
2020-12-31,9184
|
||||
2021-01-12,9183
|
||||
2021-01-17,9182
|
||||
2021-02-03,9210
|
||||
2021-02-08,9171
|
||||
2021-02-14,9168
|
||||
2021-02-16,9167
|
||||
2021-02-26,9166
|
||||
2021-03-06,9281
|
||||
2021-03-09,9279
|
||||
2021-03-10,9276
|
||||
2021-03-16,8677
|
||||
2021-03-28,8669
|
||||
2021-03-31,8719
|
||||
2021-04-04,8715
|
||||
2021-04-09,8716
|
||||
2021-04-13,8714
|
||||
2021-04-19,8769
|
||||
2021-04-24,8761
|
||||
2021-05-05,8760
|
||||
2021-05-17,8740
|
||||
2021-05-22,8738
|
||||
2021-05-25,8787
|
||||
2021-05-31,8780
|
||||
2021-06-07,8793
|
||||
2021-06-16,8777
|
||||
2021-06-22,8233
|
||||
2021-06-28,8239
|
||||
2021-07-01,8238
|
||||
2021-07-04,8224
|
||||
2021-07-18,8224
|
||||
2021-07-29,8225
|
||||
2021-08-02,8220
|
||||
2021-08-09,8333
|
||||
2021-08-17,8325
|
||||
2021-08-20,8181
|
||||
2021-08-25,8172
|
||||
2021-08-30,8240
|
||||
2021-09-02,8123
|
||||
2021-09-06,8110
|
||||
2021-09-07,8123
|
||||
2021-09-12,8122
|
||||
2021-09-17,8124
|
||||
2021-10-19,8126
|
||||
2021-10-27,8123
|
||||
2021-11-04,8093
|
||||
2021-11-11,7395
|
||||
2021-11-17,7383
|
||||
2021-11-29,7449
|
||||
2021-12-09,7448
|
||||
2021-12-12,7561
|
||||
2021-12-16,7571
|
||||
2021-12-20,7569
|
||||
2021-12-30,7571
|
||||
2021-12-30,7570
|
||||
2022-01-02,7571
|
||||
2022-01-04,7569
|
||||
2022-01-07,7565
|
||||
2022-01-11,7563
|
||||
2022-01-18,7562
|
||||
2022-01-19,7528
|
||||
2022-01-21,7525
|
||||
2022-01-24,7067
|
||||
2022-01-28,7045
|
||||
2022-01-31,7042
|
||||
2022-02-01,7041
|
||||
2022-02-07,7040
|
||||
2022-02-12,7037
|
||||
2022-02-22,7024
|
||||
2022-02-26,7022
|
||||
2022-03-06,7021
|
||||
2022-03-14,7047
|
||||
2022-03-19,7044
|
||||
2022-03-24,7043
|
||||
2022-03-29,7054
|
||||
2022-03-31,7053
|
||||
2022-04-09,7060
|
||||
2022-04-18,7052
|
||||
2022-04-21,7048
|
||||
2022-04-29,7046
|
||||
2022-05-10,7045
|
||||
2022-05-14,7038
|
||||
2022-06-21,7030
|
||||
2022-07-13,7038
|
||||
|
After Width: | Height: | Size: 31 KiB |
@@ -0,0 +1,7 @@
|
||||
# Source domain history
|
||||
|
||||
This page is only occasionally refreshed.
|
||||
|
||||

|
||||
|
||||
The file `stats.out` in this folder contains raw data for this graph.
|
||||
@@ -0,0 +1,16 @@
|
||||
2016-09-22,1108
|
||||
2016-09-29,1108
|
||||
2016-09-30,1108
|
||||
2016-12-09,1108
|
||||
2016-12-09,1108
|
||||
2016-12-10,1108
|
||||
2016-12-11,1108
|
||||
2017-01-05,1108
|
||||
2017-10-24,1108
|
||||
2017-10-25,1108
|
||||
2018-03-17,1108
|
||||
2018-03-30,1108
|
||||
2018-04-02,1111
|
||||
2018-10-22,1286
|
||||
2020-04-18,1286
|
||||
2022-03-12,1286
|
||||
|
After Width: | Height: | Size: 25 KiB |
@@ -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",
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# Source domain history
|
||||
|
||||
This page is only occasionally refreshed.
|
||||
|
||||

|
||||
|
||||
The file `stats.out` in this folder contains raw data for this graph.
|
||||
@@ -0,0 +1,19 @@
|
||||
2016-09-30,116
|
||||
2016-12-09,116
|
||||
2016-12-10,116
|
||||
2016-12-11,116
|
||||
2017-01-05,116
|
||||
2017-07-26,31
|
||||
2017-10-24,31
|
||||
2017-10-25,31
|
||||
2018-01-13,21
|
||||
2018-03-17,21
|
||||
2018-03-30,21
|
||||
2018-04-02,114
|
||||
2018-07-16,25
|
||||
2018-09-05,23
|
||||
2018-11-01,21
|
||||
2019-03-21,20
|
||||
2020-04-18,20
|
||||
2021-07-19,14
|
||||
2022-03-12,14
|
||||
|
After Width: | Height: | Size: 28 KiB |
@@ -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",
|
||||
|
||||
@@ -371,7 +371,6 @@
|
||||
0.0.0.0 dlldlldll.sytes.net
|
||||
0.0.0.0 dmp.gravity4.com
|
||||
0.0.0.0 doctor-alex.com
|
||||
0.0.0.0 doda.redirectme.net
|
||||
0.0.0.0 dodian.site50.net
|
||||
0.0.0.0 dodostats.com
|
||||
0.0.0.0 dogpial.com
|
||||
@@ -445,7 +444,6 @@
|
||||
0.0.0.0 f-js1.spotsniper.ru
|
||||
0.0.0.0 f.gj555.net
|
||||
0.0.0.0 f.zeroredirect2.com
|
||||
0.0.0.0 fabrics-store.com
|
||||
0.0.0.0 facebook-proxy.hi5.com
|
||||
0.0.0.0 facebook-repto1040s2.ahlamountada.com
|
||||
0.0.0.0 facebook.cm
|
||||
@@ -458,7 +456,6 @@
|
||||
0.0.0.0 faunusaff.afftrack.com
|
||||
0.0.0.0 favicon.com
|
||||
0.0.0.0 fb.cashtraffic.com
|
||||
0.0.0.0 fecabook.redirectme.net
|
||||
0.0.0.0 federicksofhollywood.com
|
||||
0.0.0.0 feeds.videosz.com
|
||||
0.0.0.0 femeedia.com
|
||||
@@ -546,7 +543,6 @@
|
||||
0.0.0.0 h-adachi.org
|
||||
0.0.0.0 h0rnd0g.popunder.ru
|
||||
0.0.0.0 h21.ru
|
||||
0.0.0.0 haartezenglish.redirectme.net
|
||||
0.0.0.0 hacking.mysteria.cz
|
||||
0.0.0.0 haedong.es.kr
|
||||
0.0.0.0 handyarchive.com
|
||||
@@ -623,7 +619,6 @@
|
||||
0.0.0.0 jdfabrication.com
|
||||
0.0.0.0 jejuskypension.com
|
||||
0.0.0.0 jesnyxa.beep.com
|
||||
0.0.0.0 jn.redirectme.net
|
||||
0.0.0.0 joetoons.com
|
||||
0.0.0.0 joincreditexpert.co.uk
|
||||
0.0.0.0 joinourwebsite.com
|
||||
@@ -664,7 +659,6 @@
|
||||
0.0.0.0 letssearch.com
|
||||
0.0.0.0 letzonke.com
|
||||
0.0.0.0 libecki.net
|
||||
0.0.0.0 lilian.redirectme.net
|
||||
0.0.0.0 linconpark.com
|
||||
0.0.0.0 linkbucks.com
|
||||
0.0.0.0 linkjumps.com
|
||||
@@ -777,7 +771,6 @@
|
||||
0.0.0.0 nht-3.extreme-dm.com
|
||||
0.0.0.0 nl.mediaplayercodecpack.com
|
||||
0.0.0.0 nmapquest.com
|
||||
0.0.0.0 noredirecto.redirectme.net
|
||||
0.0.0.0 notrecommended.co.uk
|
||||
0.0.0.0 nryb.com
|
||||
0.0.0.0 ns1.the-sinner.net
|
||||
@@ -806,7 +799,6 @@
|
||||
0.0.0.0 optiker-michelmann.de
|
||||
0.0.0.0 optimization-methods.com
|
||||
0.0.0.0 orange.salesmanago.pl
|
||||
0.0.0.0 orango.redirectme.net
|
||||
0.0.0.0 orbiyz.com
|
||||
0.0.0.0 oreware.com
|
||||
0.0.0.0 oriceline.com
|
||||
@@ -922,8 +914,6 @@
|
||||
0.0.0.0 rd-direct.com
|
||||
0.0.0.0 redhotchilli.co.uk
|
||||
0.0.0.0 redirect.site50.net
|
||||
0.0.0.0 redirectlnk.redirectme.net
|
||||
0.0.0.0 redirectme.net
|
||||
0.0.0.0 redirects.coldhardcash.com
|
||||
0.0.0.0 reducelnk.com
|
||||
0.0.0.0 regclean.software-phile.com
|
||||
@@ -1169,7 +1159,6 @@
|
||||
0.0.0.0 thebugs.ws
|
||||
0.0.0.0 themexp.org
|
||||
0.0.0.0 themillionaireinpjs.net
|
||||
0.0.0.0 thenewupdatee.redirectme.net
|
||||
0.0.0.0 theroamingjew.com
|
||||
0.0.0.0 thesearchagency.net
|
||||
0.0.0.0 thesearchster.com
|
||||
@@ -1316,7 +1305,6 @@
|
||||
0.0.0.0 vokr-gtavc.ic.cz
|
||||
0.0.0.0 vpnaffiliates.com
|
||||
0.0.0.0 vq918450.com
|
||||
0.0.0.0 vyrus.redirectme.net
|
||||
0.0.0.0 w.ahalogy.com
|
||||
0.0.0.0 w.extreme-dm.com
|
||||
0.0.0.0 w1.extreme-dm.com
|
||||
@@ -1586,7 +1574,6 @@
|
||||
0.0.0.0 www.exactadvertising.com
|
||||
0.0.0.0 www.expressomatogrosso.com.br
|
||||
0.0.0.0 www.eyes.by
|
||||
0.0.0.0 www.fabrics-store.com
|
||||
0.0.0.0 www.facebook.cm
|
||||
0.0.0.0 www.facebookcrawl.co.cc
|
||||
0.0.0.0 www.facebookloginsignin.com
|
||||
@@ -1857,7 +1844,6 @@
|
||||
0.0.0.0 www.racingandclassic.com
|
||||
0.0.0.0 www.rd-direct.com
|
||||
0.0.0.0 www.redhotchilli.co.uk
|
||||
0.0.0.0 www.redirectme.net
|
||||
0.0.0.0 www.reducelnk.com
|
||||
0.0.0.0 www.regdefense.com
|
||||
0.0.0.0 www.registry-clean-up.net
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# Source domain history
|
||||
|
||||
This page is only occasionally refreshed.
|
||||
|
||||

|
||||
|
||||
The file `stats.out` in this folder contains raw data for this graph.
|
||||
@@ -0,0 +1,41 @@
|
||||
2016-09-30,3546
|
||||
2016-12-09,3546
|
||||
2016-12-10,3546
|
||||
2016-12-11,3546
|
||||
2017-01-05,3546
|
||||
2017-02-24,3158
|
||||
2017-07-17,3157
|
||||
2017-07-26,3063
|
||||
2017-08-15,3062
|
||||
2017-10-24,3062
|
||||
2017-10-25,3063
|
||||
2017-10-25,3063
|
||||
2018-01-13,2945
|
||||
2018-01-21,2933
|
||||
2018-02-13,2923
|
||||
2018-03-17,2923
|
||||
2018-03-28,2924
|
||||
2018-03-30,2927
|
||||
2018-04-02,3035
|
||||
2018-07-16,2944
|
||||
2018-09-05,2943
|
||||
2018-09-13,2849
|
||||
2018-10-05,2741
|
||||
2018-10-09,2739
|
||||
2018-11-01,2656
|
||||
2018-11-26,2613
|
||||
2018-11-29,2611
|
||||
2018-12-11,2584
|
||||
2019-02-18,2582
|
||||
2019-09-06,2580
|
||||
2019-09-29,2578
|
||||
2020-04-09,2569
|
||||
2020-04-18,2569
|
||||
2020-04-26,2568
|
||||
2020-08-06,2567
|
||||
2021-01-31,2565
|
||||
2021-03-06,2556
|
||||
2021-07-19,2204
|
||||
2021-11-29,2202
|
||||
2022-02-07,2190
|
||||
2022-03-12,2190
|
||||
|
After Width: | Height: | Size: 25 KiB |
@@ -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",
|
||||
|
||||
@@ -32,8 +32,6 @@
|
||||
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 +1,7 @@
|
||||
# Source domain history
|
||||
|
||||
This page is only occasionally refreshed.
|
||||
|
||||

|
||||
|
||||
The file `stats.out` in this folder contains raw data for this graph.
|
||||
@@ -0,0 +1,20 @@
|
||||
2016-09-30,307
|
||||
2016-12-09,307
|
||||
2016-12-10,307
|
||||
2016-12-11,307
|
||||
2017-01-05,307
|
||||
2017-02-24,262
|
||||
2017-07-26,152
|
||||
2017-10-24,152
|
||||
2017-10-25,154
|
||||
2017-10-25,154
|
||||
2018-02-13,101
|
||||
2018-03-17,101
|
||||
2018-03-30,101
|
||||
2018-04-02,78
|
||||
2018-07-16,74
|
||||
2019-06-11,73
|
||||
2020-04-18,73
|
||||
2021-07-19,59
|
||||
2021-12-30,57
|
||||
2022-03-12,57
|
||||
|
After Width: | Height: | Size: 27 KiB |
@@ -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",
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# Source domain history
|
||||
|
||||
This page is only occasionally refreshed.
|
||||
|
||||

|
||||
|
||||
The file `stats.out` in this folder contains raw data for this graph.
|
||||
@@ -0,0 +1,201 @@
|
||||
2019-08-05,1833
|
||||
2019-08-06,615
|
||||
2019-08-10,804
|
||||
2019-08-13,869
|
||||
2019-08-14,933
|
||||
2019-08-22,995
|
||||
2019-08-30,1008
|
||||
2019-09-06,1009
|
||||
2019-09-09,1010
|
||||
2019-09-10,1010
|
||||
2019-09-19,1010
|
||||
2019-09-23,1073
|
||||
2019-09-29,1097
|
||||
2019-10-10,1073
|
||||
2019-10-12,1073
|
||||
2019-10-15,1073
|
||||
2019-10-27,1095
|
||||
2019-10-30,1120
|
||||
2019-11-03,1120
|
||||
2019-11-15,1161
|
||||
2019-11-20,1161
|
||||
2019-11-26,1199
|
||||
2019-12-02,1206
|
||||
2019-12-11,1214
|
||||
2019-12-15,1214
|
||||
2019-12-20,1220
|
||||
2019-12-23,1243
|
||||
2019-12-30,1263
|
||||
2020-01-04,1338
|
||||
2020-01-06,1339
|
||||
2020-01-09,1339
|
||||
2020-01-14,1345
|
||||
2020-02-03,1347
|
||||
2020-02-05,1070
|
||||
2020-02-09,1070
|
||||
2020-02-14,1070
|
||||
2020-02-17,1070
|
||||
2020-02-21,1046
|
||||
2020-02-25,1048
|
||||
2020-03-07,1055
|
||||
2020-03-11,1053
|
||||
2020-03-15,1125
|
||||
2020-03-18,1163
|
||||
2020-03-21,1180
|
||||
2020-03-25,1184
|
||||
2020-03-28,1185
|
||||
2020-03-29,1186
|
||||
2020-04-01,1186
|
||||
2020-04-03,1187
|
||||
2020-04-04,1187
|
||||
2020-04-06,1245
|
||||
2020-04-09,1250
|
||||
2020-04-11,1254
|
||||
2020-04-13,1256
|
||||
2020-04-18,1316
|
||||
2020-04-22,1340
|
||||
2020-05-02,1364
|
||||
2020-05-05,1367
|
||||
2020-05-05,1374
|
||||
2020-05-12,1382
|
||||
2020-05-13,1383
|
||||
2020-05-15,1384
|
||||
2020-05-20,1384
|
||||
2020-05-26,1397
|
||||
2020-05-27,1397
|
||||
2020-06-02,1399
|
||||
2020-06-09,1403
|
||||
2020-06-16,1415
|
||||
2020-06-22,1430
|
||||
2020-06-25,1372
|
||||
2020-06-27,1368
|
||||
2020-07-02,1371
|
||||
2020-07-05,1371
|
||||
2020-07-13,1379
|
||||
2020-07-18,1379
|
||||
2020-07-29,1397
|
||||
2020-08-13,1402
|
||||
2020-08-17,1403
|
||||
2020-08-19,1396
|
||||
2020-08-25,1397
|
||||
2020-09-02,1397
|
||||
2020-09-07,1400
|
||||
2020-09-14,1394
|
||||
2020-09-20,1396
|
||||
2020-09-26,1417
|
||||
2020-10-03,1435
|
||||
2020-10-08,1439
|
||||
2020-10-13,1443
|
||||
2020-10-14,1443
|
||||
2020-10-19,1443
|
||||
2020-10-29,1448
|
||||
2020-11-01,1462
|
||||
2020-11-03,1465
|
||||
2020-11-10,1458
|
||||
2020-11-14,1458
|
||||
2020-11-16,1456
|
||||
2020-11-19,1458
|
||||
2020-11-22,1459
|
||||
2020-11-28,1459
|
||||
2020-12-02,1472
|
||||
2020-12-09,1476
|
||||
2020-12-19,1492
|
||||
2020-12-31,1509
|
||||
2021-01-05,1499
|
||||
2021-01-12,1538
|
||||
2021-01-17,1566
|
||||
2021-01-31,1606
|
||||
2021-02-02,1610
|
||||
2021-02-08,1634
|
||||
2021-02-21,1750
|
||||
2021-02-22,1754
|
||||
2021-02-28,1755
|
||||
2021-03-06,1733
|
||||
2021-03-09,1736
|
||||
2021-03-16,1749
|
||||
2021-03-21,1756
|
||||
2021-03-28,1770
|
||||
2021-03-31,1776
|
||||
2021-04-04,1776
|
||||
2021-04-09,1776
|
||||
2021-04-13,1775
|
||||
2021-04-19,1776
|
||||
2021-04-24,1776
|
||||
2021-04-29,1784
|
||||
2021-05-04,1796
|
||||
2021-05-06,1795
|
||||
2021-05-12,1788
|
||||
2021-05-15,1788
|
||||
2021-05-17,1788
|
||||
2021-05-22,1788
|
||||
2021-05-25,1788
|
||||
2021-05-31,1788
|
||||
2021-06-07,1788
|
||||
2021-06-16,1794
|
||||
2021-06-22,1794
|
||||
2021-06-28,1813
|
||||
2021-07-01,1813
|
||||
2021-07-13,1817
|
||||
2021-07-18,1823
|
||||
2021-07-19,1825
|
||||
2021-07-26,1827
|
||||
2021-07-29,1829
|
||||
2021-08-02,1829
|
||||
2021-08-09,1832
|
||||
2021-08-17,1851
|
||||
2021-08-20,1852
|
||||
2021-08-25,1856
|
||||
2021-08-30,1855
|
||||
2021-09-02,1859
|
||||
2021-09-07,1861
|
||||
2021-09-12,1863
|
||||
2021-09-17,1864
|
||||
2021-09-24,1844
|
||||
2021-09-30,1844
|
||||
2021-10-05,1844
|
||||
2021-10-12,1845
|
||||
2021-10-19,1845
|
||||
2021-10-23,1846
|
||||
2021-11-04,1847
|
||||
2021-11-11,1847
|
||||
2021-11-21,1660
|
||||
2021-11-29,1670
|
||||
2021-12-05,1676
|
||||
2021-12-09,1681
|
||||
2021-12-16,1681
|
||||
2021-12-25,1683
|
||||
2021-12-30,1676
|
||||
2022-01-02,1669
|
||||
2022-01-04,1676
|
||||
2022-01-07,1677
|
||||
2022-01-11,1688
|
||||
2022-01-18,1699
|
||||
2022-02-07,1705
|
||||
2022-02-12,1710
|
||||
2022-02-17,1711
|
||||
2022-02-22,1718
|
||||
2022-03-06,1720
|
||||
2022-03-12,1724
|
||||
2022-03-14,1724
|
||||
2022-03-19,1724
|
||||
2022-03-31,1725
|
||||
2022-04-05,1665
|
||||
2022-04-09,1681
|
||||
2022-04-13,1683
|
||||
2022-04-18,1689
|
||||
2022-04-21,1704
|
||||
2022-04-25,1712
|
||||
2022-05-03,1736
|
||||
2022-05-05,1737
|
||||
2022-05-10,1753
|
||||
2022-05-14,1753
|
||||
2022-05-25,1755
|
||||
2022-05-29,1769
|
||||
2022-05-31,1779
|
||||
2022-06-07,1789
|
||||
2022-06-09,1792
|
||||
2022-06-16,1787
|
||||
2022-06-21,1787
|
||||
2022-06-25,1790
|
||||
2022-07-04,1814
|
||||
2022-07-29,1833
|
||||
|
After Width: | Height: | Size: 27 KiB |
@@ -0,0 +1 @@
|
||||
2021-05-06,6
|
||||
@@ -266,7 +266,6 @@
|
||||
0.0.0.0 www.clickvalidator.net
|
||||
0.0.0.0 www.is1.clixgalore.com
|
||||
0.0.0.0 www.clixgalore.com
|
||||
0.0.0.0 www.clickhouse.com
|
||||
0.0.0.0 banners.clips4sale.com
|
||||
0.0.0.0 www.cnstats.com
|
||||
0.0.0.0 www.co2stats.com
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# Source domain history
|
||||
|
||||
This page is only occasionally refreshed.
|
||||
|
||||

|
||||
|
||||
The file `stats.out` in this folder contains raw data for this graph.
|
||||
@@ -0,0 +1,81 @@
|
||||
2012-04-12,14412
|
||||
2012-06-08,14445
|
||||
2012-09-28,14431
|
||||
2012-11-14,14437
|
||||
2012-12-08,14300
|
||||
2013-02-01,13964
|
||||
2013-02-09,13964
|
||||
2013-02-25,13781
|
||||
2013-02-27,13781
|
||||
2013-04-04,13920
|
||||
2013-05-29,13827
|
||||
2013-06-06,13827
|
||||
2013-07-13,13783
|
||||
2013-07-30,13865
|
||||
2013-09-02,13704
|
||||
2013-11-02,13780
|
||||
2014-05-29,13650
|
||||
2014-05-31,13649
|
||||
2014-05-31,13649
|
||||
2014-10-10,13712
|
||||
2014-11-15,13790
|
||||
2014-12-30,13832
|
||||
2015-02-08,13818
|
||||
2015-04-20,13975
|
||||
2015-05-30,13860
|
||||
2015-07-26,13671
|
||||
2015-09-02,13585
|
||||
2015-09-19,13734
|
||||
2015-10-23,13853
|
||||
2015-12-08,13636
|
||||
2016-01-06,13574
|
||||
2016-02-08,13544
|
||||
2016-04-01,13464
|
||||
2016-05-19,13402
|
||||
2016-06-26,13334
|
||||
2016-08-02,13235
|
||||
2016-09-12,13266
|
||||
2016-10-21,13284
|
||||
2016-12-09,13284
|
||||
2016-12-09,13284
|
||||
2016-12-11,13235
|
||||
2017-01-26,13222
|
||||
2017-03-10,13354
|
||||
2017-03-15,13353
|
||||
2017-04-13,13203
|
||||
2017-05-16,13273
|
||||
2017-06-24,13090
|
||||
2017-08-08,13173
|
||||
2017-09-18,13147
|
||||
2017-10-24,13147
|
||||
2017-12-07,13017
|
||||
2018-01-31,12835
|
||||
2018-03-04,12714
|
||||
2018-04-16,12615
|
||||
2018-07-11,12616
|
||||
2018-10-02,12449
|
||||
2019-02-11,12228
|
||||
2019-03-15,12071
|
||||
2019-04-11,11943
|
||||
2019-05-10,11800
|
||||
2019-06-17,11802
|
||||
2019-07-21,11809
|
||||
2019-08-22,11809
|
||||
2019-09-19,11819
|
||||
2019-10-27,11827
|
||||
2019-12-15,11440
|
||||
2020-01-24,10652
|
||||
2020-02-22,10652
|
||||
2020-03-05,10475
|
||||
2020-03-07,10475
|
||||
2020-03-15,10475
|
||||
2020-05-05,10356
|
||||
2020-05-24,10356
|
||||
2020-06-16,9953
|
||||
2020-08-01,9573
|
||||
2020-09-14,9513
|
||||
2020-10-29,9259
|
||||
2020-12-19,8815
|
||||
2021-03-06,8730
|
||||
2022-05-31,8730
|
||||
2022-05-31,8729
|
||||