Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
539489187b | ||
|
|
623ac31630 | ||
|
|
8009dc6a69 | ||
|
|
340d3404e1 | ||
|
|
eac40ff5bd | ||
|
|
fde3889dc3 | ||
|
|
db884bcfcd | ||
|
|
eae2d0e5ba | ||
|
|
885087bf64 | ||
|
|
b8b0716a4c | ||
|
|
e898f1172e | ||
|
|
5408de598a | ||
|
|
a915555ddc | ||
|
|
2185dae471 | ||
|
|
3928d79c18 | ||
|
|
15faa6d5c2 | ||
|
|
2e362aa089 | ||
|
|
6017d06739 | ||
|
|
12d0a19e0b | ||
|
|
db34f595c9 | ||
|
|
a8fccec141 | ||
|
|
0c12f19ab5 | ||
|
|
e2d262809e | ||
|
|
598794a484 | ||
|
|
45276ff4bc | ||
|
|
4ee89fc68a | ||
|
|
cd6bc56380 | ||
|
|
6f2ff67069 | ||
|
|
5554d47959 | ||
|
|
afe430fa6c | ||
|
|
145cd3ac81 | ||
|
|
58e163fa08 | ||
|
|
23daf15da1 | ||
|
|
bc64dc748a | ||
|
|
00f37ec9e8 | ||
|
|
10a16bb8a4 | ||
|
|
a826ba6e59 | ||
|
|
c52ed3e3ef | ||
|
|
ed6e26e05a | ||
|
|
bf5b5d0019 | ||
|
|
0cb8fc4cfd | ||
|
|
a3bb4d52eb | ||
|
|
0ad0d260ae | ||
|
|
2dae914835 | ||
|
|
1e6c9deb77 | ||
|
|
6fb2c3e993 | ||
|
|
b78cc75d5f | ||
|
|
2fc923b014 | ||
|
|
85984027fd | ||
|
|
95de13f369 | ||
|
|
3994461be4 | ||
|
|
d74ce1378b | ||
|
|
72a3311812 | ||
|
|
bbdf58449c | ||
|
|
3ec89cdd9e | ||
|
|
3512f10a51 | ||
|
|
82047cac55 | ||
|
|
ecf7bd1bfc | ||
|
|
3dc0fdbac0 | ||
|
|
d7be1222e5 | ||
|
|
85fd0ee9ce | ||
|
|
bbd606a2dd | ||
|
|
88ca322261 | ||
|
|
523117d97d | ||
|
|
3ef37886ca | ||
|
|
07a0b7bfc5 | ||
|
|
8ba66c7795 | ||
|
|
8fb51bef59 | ||
|
|
b6ca8ecb6e | ||
|
|
0c204b58b9 | ||
|
|
6c4416ffdb | ||
|
|
b05eca9505 | ||
|
|
14d41542ed | ||
|
|
bc8d4dfc88 | ||
|
|
05cdb4d0a2 | ||
|
|
171b9b5978 | ||
|
|
3f49ee8ee9 | ||
|
|
dc4dae96f5 | ||
|
|
5b03c5f9c1 | ||
|
|
1a8e75f1cb | ||
|
|
59b1c275ef | ||
|
|
ef75b456a7 | ||
|
|
9b6cb1109a | ||
|
|
084de54c10 | ||
|
|
be423f999d | ||
|
|
b00edef74c | ||
|
|
57f952e03b | ||
|
|
4a8813eba6 | ||
|
|
6e55708c64 | ||
|
|
469ba4b3cc | ||
|
|
581cc63395 | ||
|
|
83b54bcbfd | ||
|
|
cc00a44552 | ||
|
|
eba6ecf910 | ||
|
|
8467c14270 | ||
|
|
b46f32728d | ||
|
|
a84c71c8fb | ||
|
|
8fdb1c49cd | ||
|
|
1cdb3159b9 | ||
|
|
a9ac7f44f2 | ||
|
|
c557e2e856 | ||
|
|
df52f06ff4 | ||
|
|
232ec8443f | ||
|
|
79958bb0e6 | ||
|
|
f806474ab2 | ||
|
|
5cca0e924c | ||
|
|
d28f94c9dd | ||
|
|
0a0ca47ac6 | ||
|
|
51995304ea | ||
|
|
257b52c13b | ||
|
|
72a4183fb8 | ||
|
|
554e938fc5 | ||
|
|
234b370284 | ||
|
|
5a2a084ef8 | ||
|
|
1d7db04fb5 | ||
|
|
6334082982 | ||
|
|
65feee2b48 | ||
|
|
38e53dd654 | ||
|
|
7b50a1feb9 | ||
|
|
99a6d7c18a | ||
|
|
6cc3bece8b | ||
|
|
ec5b916223 | ||
|
|
ab5aad0f5a | ||
|
|
6199ccd528 | ||
|
|
f91afbf85c | ||
|
|
9dc3f29c1b | ||
|
|
3f8a528df8 | ||
|
|
1f74593459 | ||
|
|
80d72b6688 | ||
|
|
e998360d33 | ||
|
|
f2eaf7a704 | ||
|
|
783c3bc710 | ||
|
|
e2348bceb4 | ||
|
|
870ade3522 | ||
|
|
16f0e134ab | ||
|
|
7467798d5c | ||
|
|
e652c0e815 | ||
|
|
85e88e9d42 | ||
|
|
0b939e499b | ||
|
|
3b4709f25f | ||
|
|
422d6a5d98 | ||
|
|
32f96d5492 | ||
|
|
88214ffcd2 | ||
|
|
7ad2811572 | ||
|
|
6a3a329abf | ||
|
|
65ebac6bf8 | ||
|
|
da98969cf1 | ||
|
|
34735e32c9 | ||
|
|
f1d2ff31cf | ||
|
|
6d10be852c | ||
|
|
0c117e8c1c | ||
|
|
38185015b4 | ||
|
|
6f9ab23c66 | ||
|
|
d919b0e25d | ||
|
|
272659110c | ||
|
|
fed5590f26 | ||
|
|
33bd0df131 | ||
|
|
8fc7f948a8 | ||
|
|
15da4c8406 | ||
|
|
b3f93f1528 | ||
|
|
85cc9dff95 | ||
|
|
34ba3638fb | ||
|
|
87950f72ee | ||
|
|
eb73e9a07a | ||
|
|
4579444412 | ||
|
|
fb03756f6b | ||
|
|
66f6e9c3d3 | ||
|
|
3e7548ea87 | ||
|
|
bca2e76b4f | ||
|
|
ca08e62e5b | ||
|
|
1c25bd1693 | ||
|
|
03e1e33213 | ||
|
|
94c0ac2cdf | ||
|
|
7311969c45 | ||
|
|
23b74c7756 | ||
|
|
479b5923a3 | ||
|
|
560615dd7f | ||
|
|
2415078892 | ||
|
|
4574a4a48c | ||
|
|
616408666f | ||
|
|
f0b6120075 | ||
|
|
369b483787 | ||
|
|
0bf24bb5b0 | ||
|
|
df85659d54 | ||
|
|
b52e6db372 | ||
|
|
7ecb84e53b | ||
|
|
682bb73b6d | ||
|
|
e9f679312b | ||
|
|
17b5fcb344 | ||
|
|
96a0e1bf72 | ||
|
|
1aa462c141 | ||
|
|
8695605224 | ||
|
|
17f6bb4d88 | ||
|
|
497e52d7a4 | ||
|
|
3b2c9dda2b | ||
|
|
1f3f3236ed | ||
|
|
8f208abb74 | ||
|
|
ef9a61fec0 | ||
|
|
072062f9e8 | ||
|
|
35ea9abbb4 | ||
|
|
439665cb9a | ||
|
|
726763af69 | ||
|
|
19478b8a0d | ||
|
|
178907f54e | ||
|
|
1892e80aa4 | ||
|
|
a3f202074b | ||
|
|
7e25ed039a | ||
|
|
93f0d86d46 | ||
|
|
fd703f9baa | ||
|
|
98ce8df763 | ||
|
|
7e881e6cfb | ||
|
|
ef1ac68038 | ||
|
|
78c092dcb0 | ||
|
|
fa33288ca3 | ||
|
|
80c0db326d | ||
|
|
8f50a92d29 | ||
|
|
0318c66170 | ||
|
|
b5e0ad141a | ||
|
|
dd58715041 | ||
|
|
4733e70ce6 | ||
|
|
e1aed14323 | ||
|
|
4565eef107 | ||
|
|
9e0fa8dbf4 | ||
|
|
cfdf2526b2 | ||
|
|
bdf4bafbf9 | ||
|
|
5bf0802369 | ||
|
|
cd382a63df | ||
|
|
da336f2745 | ||
|
|
adbbd807d6 | ||
|
|
735f9bcdde | ||
|
|
ab9caa3969 | ||
|
|
570fb4302a | ||
|
|
0ab1237b15 | ||
|
|
f94289b856 | ||
|
|
95b0381560 | ||
|
|
6b64d2e573 | ||
|
|
3c3de5ed84 | ||
|
|
b2512fcd57 | ||
|
|
c6b0aae93f | ||
|
|
bbe11d622e | ||
|
|
d1b1d87dea | ||
|
|
29435ac463 | ||
|
|
6729005309 | ||
|
|
d6fd71fa66 | ||
|
|
f731939d98 | ||
|
|
677a036d68 | ||
|
|
e86d6b8a97 | ||
|
|
828dc13cb0 | ||
|
|
506a33f5aa | ||
|
|
343eec32af | ||
|
|
107082b0e2 | ||
|
|
c2cc10cc0e | ||
|
|
d1807cf543 | ||
|
|
2c5ea4e113 | ||
|
|
1c11dc2a8b | ||
|
|
510502de68 | ||
|
|
0ea9a40158 | ||
|
|
6d48930c6f | ||
|
|
a4d9fb6c4c | ||
|
|
0a76a88a38 | ||
|
|
fcdf163ba5 | ||
|
|
060ebf2f47 | ||
|
|
aacd2b02a2 | ||
|
|
b9a92daf6b | ||
|
|
a7d1521e95 | ||
|
|
3157d55049 | ||
|
|
7b45134c8d | ||
|
|
97b0146fdb | ||
|
|
cbadab339b | ||
|
|
72b69bb5c8 | ||
|
|
8007e17d0a | ||
|
|
e1a2bf21c2 |
No files matched your search
|
After Width: | Height: | Size: 27 KiB |
@@ -1,20 +0,0 @@
|
||||
# Number of days of inactivity before an issue becomes stale
|
||||
daysUntilStale: 120
|
||||
# Number of days of inactivity before a stale issue is closed
|
||||
daysUntilClose: 14
|
||||
# Issues with these labels will never be considered stale
|
||||
exemptLabels:
|
||||
- bug
|
||||
- discussion
|
||||
- monitor (ongoing)
|
||||
- enhancement
|
||||
# Label to use when marking an issue as stale
|
||||
staleLabel: wontfix
|
||||
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||
markComment: >
|
||||
This issue has been automatically marked as stale because it has not had
|
||||
recent activity. It will be closed in 14 days if no further activity occurs.
|
||||
Thank you for your contributions.
|
||||
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||
closeComment: >
|
||||
Closing.
|
||||
@@ -20,19 +20,26 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python:
|
||||
- '3.7'
|
||||
- '3.8'
|
||||
- '3.9'
|
||||
- '3.10'
|
||||
- '3.11'
|
||||
- '3.12'
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- macos-latest
|
||||
- windows-latest
|
||||
include:
|
||||
- os: macos-latest
|
||||
python: '3.8'
|
||||
- os: macos-latest
|
||||
python: '3.12'
|
||||
- os: windows-latest
|
||||
python: '3.8'
|
||||
- os: windows-latest
|
||||
python: '3.12'
|
||||
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
|
||||
@@ -20,15 +20,15 @@ jobs:
|
||||
packages: write
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
@@ -36,12 +36,12 @@ jobs:
|
||||
|
||||
- name: Extract metadata (tags, labels)
|
||||
id: meta
|
||||
uses: docker/metadata-action@v4
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
|
||||
- name: Build and push container image
|
||||
uses: docker/build-push-action@v4
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
|
||||
@@ -9,7 +9,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
|
||||
@@ -8,3 +8,4 @@ hosts-*
|
||||
/__pycache__
|
||||
/node_modules/
|
||||
/package-lock.json
|
||||
/yarn.lock
|
||||
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 40 KiB |
@@ -0,0 +1,674 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

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

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

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

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

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

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

|
||||
|
||||
- Last updated: **May 25 2023**.
|
||||
- Last updated: **January 07 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts)
|
||||
containing 247,284 entries.
|
||||
[raw hosts file Unified hosts file with fakenews, gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts)
|
||||
containing 216,886 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 186,359 | [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) | 188,553 | [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) | 193,884 | [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) | 234,742 | [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) | 189,183 | [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) | 196,078 | [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) | 236,936 | [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) | 191,377 | [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) | 242,267 | [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) | 196,708 | [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) | 237,565 | [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) | 244,461 | [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) | 198,902 | [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) | 239,759 | [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) | 245,090 | [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) | 247,284 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 147,972 | [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) | 150,166 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 155,871 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,911 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 203,967 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 56,636 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 150,800 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,845 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 158,065 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,105 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 206,161 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 58,830 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 152,994 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,039 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 211,866 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 64,547 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 158,699 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,756 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 206,793 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 59,479 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 214,060 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 66,741 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 160,893 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,950 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 208,987 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 61,673 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 214,692 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 67,390 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 216,886 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 69,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -195,6 +210,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -258,6 +277,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -491,6 +513,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -649,6 +673,8 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **May 25 2023**.
|
||||
- Last updated: **January 07 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts)
|
||||
containing 244,461 entries.
|
||||
[raw hosts file Unified hosts file with fakenews, gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts)
|
||||
containing 214,060 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 186,359 | [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) | 188,553 | [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) | 193,884 | [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) | 234,742 | [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) | 189,183 | [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) | 196,078 | [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) | 236,936 | [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) | 191,377 | [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) | 242,267 | [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) | 196,708 | [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) | 237,565 | [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) | 244,461 | [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) | 198,902 | [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) | 239,759 | [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) | 245,090 | [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) | 247,284 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 147,972 | [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) | 150,166 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 155,871 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,911 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 203,967 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 56,636 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 150,800 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,845 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 158,065 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,105 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 206,161 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 58,830 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 152,994 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,039 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 211,866 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 64,547 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 158,699 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,756 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 206,793 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 59,479 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 214,060 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 66,741 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 160,893 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,950 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 208,987 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 61,673 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 214,692 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 67,390 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 216,886 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 69,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -193,6 +208,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -256,6 +275,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -489,6 +511,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -647,6 +671,8 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
|
||||
@@ -0,0 +1,676 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

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

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

|
||||
|
||||
- Last updated: **May 25 2023**.
|
||||
- Last updated: **January 07 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts)
|
||||
containing 198,902 entries.
|
||||
[raw hosts file Unified hosts file with fakenews, gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts)
|
||||
containing 160,893 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 186,359 | [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) | 188,553 | [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) | 193,884 | [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) | 234,742 | [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) | 189,183 | [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) | 196,078 | [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) | 236,936 | [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) | 191,377 | [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) | 242,267 | [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) | 196,708 | [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) | 237,565 | [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) | 244,461 | [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) | 198,902 | [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) | 239,759 | [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) | 245,090 | [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) | 247,284 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 147,972 | [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) | 150,166 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 155,871 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,911 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 203,967 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 56,636 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 150,800 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,845 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 158,065 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,105 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 206,161 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 58,830 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 152,994 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,039 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 211,866 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 64,547 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 158,699 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,756 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 206,793 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 59,479 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 214,060 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 66,741 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 160,893 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,950 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 208,987 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 61,673 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 214,692 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 67,390 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 216,886 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 69,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -189,6 +204,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -252,6 +271,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -485,6 +507,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -643,6 +667,8 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **May 25 2023**.
|
||||
- Last updated: **January 07 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts)
|
||||
containing 196,078 entries.
|
||||
[raw hosts file Unified hosts file with fakenews, gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts)
|
||||
containing 158,065 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 186,359 | [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) | 188,553 | [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) | 193,884 | [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) | 234,742 | [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) | 189,183 | [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) | 196,078 | [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) | 236,936 | [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) | 191,377 | [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) | 242,267 | [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) | 196,708 | [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) | 237,565 | [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) | 244,461 | [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) | 198,902 | [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) | 239,759 | [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) | 245,090 | [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) | 247,284 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 147,972 | [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) | 150,166 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 155,871 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,911 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 203,967 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 56,636 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 150,800 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,845 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 158,065 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,105 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 206,161 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 58,830 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 152,994 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,039 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 211,866 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 64,547 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 158,699 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,756 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 206,793 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 59,479 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 214,060 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 66,741 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 160,893 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,950 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 208,987 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 61,673 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 214,692 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 67,390 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 216,886 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 69,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -187,6 +202,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -250,6 +269,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -483,6 +505,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -641,6 +665,8 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
|
||||
@@ -0,0 +1,672 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

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

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

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

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

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

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

|
||||
|
||||
- Last updated: **May 25 2023**.
|
||||
- Last updated: **January 07 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts)
|
||||
containing 239,759 entries.
|
||||
[raw hosts file Unified hosts file with fakenews, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts)
|
||||
containing 208,987 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 186,359 | [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) | 188,553 | [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) | 193,884 | [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) | 234,742 | [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) | 189,183 | [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) | 196,078 | [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) | 236,936 | [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) | 191,377 | [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) | 242,267 | [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) | 196,708 | [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) | 237,565 | [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) | 244,461 | [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) | 198,902 | [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) | 239,759 | [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) | 245,090 | [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) | 247,284 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 147,972 | [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) | 150,166 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 155,871 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,911 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 203,967 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 56,636 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 150,800 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,845 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 158,065 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,105 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 206,161 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 58,830 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 152,994 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,039 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 211,866 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 64,547 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 158,699 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,756 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 206,793 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 59,479 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 214,060 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 66,741 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 160,893 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,950 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 208,987 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 61,673 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 214,692 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 67,390 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 216,886 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 69,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -193,6 +208,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -256,6 +275,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -489,6 +511,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -647,6 +671,8 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **May 25 2023**.
|
||||
- Last updated: **January 07 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts)
|
||||
containing 236,936 entries.
|
||||
[raw hosts file Unified hosts file with fakenews, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts)
|
||||
containing 206,161 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 186,359 | [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) | 188,553 | [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) | 193,884 | [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) | 234,742 | [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) | 189,183 | [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) | 196,078 | [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) | 236,936 | [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) | 191,377 | [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) | 242,267 | [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) | 196,708 | [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) | 237,565 | [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) | 244,461 | [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) | 198,902 | [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) | 239,759 | [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) | 245,090 | [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) | 247,284 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 147,972 | [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) | 150,166 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 155,871 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,911 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 203,967 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 56,636 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 150,800 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,845 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 158,065 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,105 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 206,161 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 58,830 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 152,994 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,039 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 211,866 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 64,547 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 158,699 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,756 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 206,793 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 59,479 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 214,060 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 66,741 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 160,893 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,950 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 208,987 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 61,673 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 214,692 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 67,390 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 216,886 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 69,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -191,6 +206,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -254,6 +273,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -487,6 +509,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -645,6 +669,8 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
|
||||
@@ -0,0 +1,674 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

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

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

|
||||
|
||||
- Last updated: **May 25 2023**.
|
||||
- Last updated: **January 07 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts)
|
||||
containing 191,377 entries.
|
||||
[raw hosts file Unified hosts file with fakenews, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts)
|
||||
containing 152,994 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 186,359 | [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) | 188,553 | [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) | 193,884 | [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) | 234,742 | [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) | 189,183 | [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) | 196,078 | [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) | 236,936 | [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) | 191,377 | [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) | 242,267 | [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) | 196,708 | [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) | 237,565 | [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) | 244,461 | [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) | 198,902 | [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) | 239,759 | [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) | 245,090 | [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) | 247,284 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 147,972 | [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) | 150,166 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 155,871 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,911 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 203,967 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 56,636 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 150,800 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,845 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 158,065 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,105 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 206,161 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 58,830 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 152,994 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,039 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 211,866 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 64,547 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 158,699 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,756 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 206,793 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 59,479 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 214,060 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 66,741 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 160,893 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,950 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 208,987 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 61,673 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 214,692 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 67,390 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 216,886 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 69,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -187,6 +202,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -250,6 +269,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -483,6 +505,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -641,6 +665,8 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **May 25 2023**.
|
||||
- Last updated: **January 07 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with fakenews extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts)
|
||||
containing 188,553 entries.
|
||||
[raw hosts file Unified hosts file with fakenews extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts)
|
||||
containing 150,166 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 186,359 | [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) | 188,553 | [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) | 193,884 | [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) | 234,742 | [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) | 189,183 | [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) | 196,078 | [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) | 236,936 | [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) | 191,377 | [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) | 242,267 | [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) | 196,708 | [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) | 237,565 | [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) | 244,461 | [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) | 198,902 | [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) | 239,759 | [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) | 245,090 | [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) | 247,284 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 147,972 | [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) | 150,166 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 155,871 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,911 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 203,967 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 56,636 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 150,800 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,845 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 158,065 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,105 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 206,161 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 58,830 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 152,994 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,039 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 211,866 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 64,547 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 158,699 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,756 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 206,793 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 59,479 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 214,060 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 66,741 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 160,893 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,950 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 208,987 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 61,673 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 214,692 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 67,390 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 216,886 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 69,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -185,6 +200,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -248,6 +267,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -481,6 +503,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -639,6 +663,8 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
|
||||
@@ -0,0 +1,673 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

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

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

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

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

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

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

|
||||
|
||||
- Last updated: **May 25 2023**.
|
||||
- Last updated: **January 07 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts)
|
||||
containing 245,090 entries.
|
||||
[raw hosts file Unified hosts file with gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts)
|
||||
containing 214,692 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 186,359 | [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) | 188,553 | [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) | 193,884 | [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) | 234,742 | [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) | 189,183 | [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) | 196,078 | [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) | 236,936 | [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) | 191,377 | [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) | 242,267 | [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) | 196,708 | [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) | 237,565 | [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) | 244,461 | [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) | 198,902 | [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) | 239,759 | [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) | 245,090 | [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) | 247,284 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 147,972 | [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) | 150,166 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 155,871 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,911 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 203,967 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 56,636 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 150,800 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,845 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 158,065 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,105 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 206,161 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 58,830 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 152,994 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,039 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 211,866 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 64,547 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 158,699 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,756 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 206,793 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 59,479 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 214,060 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 66,741 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 160,893 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,950 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 208,987 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 61,673 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 214,692 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 67,390 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 216,886 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 69,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -194,6 +209,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -257,6 +276,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -490,6 +512,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -648,6 +672,8 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **May 25 2023**.
|
||||
- Last updated: **January 07 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts)
|
||||
containing 242,267 entries.
|
||||
[raw hosts file Unified hosts file with gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts)
|
||||
containing 211,866 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 186,359 | [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) | 188,553 | [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) | 193,884 | [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) | 234,742 | [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) | 189,183 | [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) | 196,078 | [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) | 236,936 | [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) | 191,377 | [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) | 242,267 | [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) | 196,708 | [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) | 237,565 | [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) | 244,461 | [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) | 198,902 | [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) | 239,759 | [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) | 245,090 | [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) | 247,284 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 147,972 | [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) | 150,166 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 155,871 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,911 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 203,967 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 56,636 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 150,800 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,845 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 158,065 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,105 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 206,161 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 58,830 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 152,994 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,039 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 211,866 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 64,547 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 158,699 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,756 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 206,793 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 59,479 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 214,060 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 66,741 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 160,893 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,950 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 208,987 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 61,673 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 214,692 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 67,390 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 216,886 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 69,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -192,6 +207,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -255,6 +274,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -488,6 +510,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -646,6 +670,8 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
|
||||
@@ -0,0 +1,675 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

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

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

|
||||
|
||||
- Last updated: **May 25 2023**.
|
||||
- Last updated: **January 07 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts)
|
||||
containing 196,708 entries.
|
||||
[raw hosts file Unified hosts file with gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts)
|
||||
containing 158,699 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 186,359 | [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) | 188,553 | [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) | 193,884 | [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) | 234,742 | [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) | 189,183 | [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) | 196,078 | [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) | 236,936 | [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) | 191,377 | [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) | 242,267 | [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) | 196,708 | [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) | 237,565 | [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) | 244,461 | [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) | 198,902 | [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) | 239,759 | [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) | 245,090 | [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) | 247,284 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 147,972 | [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) | 150,166 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 155,871 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,911 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 203,967 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 56,636 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 150,800 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,845 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 158,065 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,105 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 206,161 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 58,830 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 152,994 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,039 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 211,866 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 64,547 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 158,699 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,756 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 206,793 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 59,479 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 214,060 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 66,741 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 160,893 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,950 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 208,987 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 61,673 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 214,692 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 67,390 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 216,886 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 69,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -188,6 +203,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -251,6 +270,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -484,6 +506,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -642,6 +666,8 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **May 25 2023**.
|
||||
- Last updated: **January 07 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts)
|
||||
containing 193,884 entries.
|
||||
[raw hosts file Unified hosts file with gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts)
|
||||
containing 155,871 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 186,359 | [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) | 188,553 | [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) | 193,884 | [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) | 234,742 | [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) | 189,183 | [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) | 196,078 | [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) | 236,936 | [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) | 191,377 | [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) | 242,267 | [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) | 196,708 | [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) | 237,565 | [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) | 244,461 | [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) | 198,902 | [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) | 239,759 | [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) | 245,090 | [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) | 247,284 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 147,972 | [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) | 150,166 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 155,871 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,911 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 203,967 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 56,636 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 150,800 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,845 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 158,065 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,105 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 206,161 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 58,830 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 152,994 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,039 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 211,866 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 64,547 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 158,699 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,756 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 206,793 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 59,479 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 214,060 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 66,741 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 160,893 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,950 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 208,987 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 61,673 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 214,692 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 67,390 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 216,886 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 69,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -186,6 +201,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -249,6 +268,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -482,6 +504,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -640,6 +664,8 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
|
||||
@@ -0,0 +1,677 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

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

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

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

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

|
||||
|
||||
- Last updated: **May 25 2023**.
|
||||
- Last updated: **January 07 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts)
|
||||
containing 237,565 entries.
|
||||
[raw hosts file Unified hosts file with porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts)
|
||||
containing 206,793 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 186,359 | [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) | 188,553 | [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) | 193,884 | [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) | 234,742 | [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) | 189,183 | [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) | 196,078 | [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) | 236,936 | [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) | 191,377 | [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) | 242,267 | [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) | 196,708 | [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) | 237,565 | [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) | 244,461 | [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) | 198,902 | [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) | 239,759 | [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) | 245,090 | [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) | 247,284 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 147,972 | [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) | 150,166 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 155,871 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,911 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 203,967 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 56,636 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 150,800 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,845 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 158,065 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,105 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 206,161 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 58,830 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 152,994 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,039 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 211,866 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 64,547 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 158,699 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,756 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 206,793 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 59,479 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 214,060 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 66,741 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 160,893 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,950 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 208,987 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 61,673 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 214,692 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 67,390 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 216,886 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 69,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -192,6 +207,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -255,6 +274,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -488,6 +510,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -646,6 +670,8 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **May 25 2023**.
|
||||
- Last updated: **January 07 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts)
|
||||
containing 234,742 entries.
|
||||
[raw hosts file Unified hosts file with porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts)
|
||||
containing 203,967 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 186,359 | [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) | 188,553 | [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) | 193,884 | [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) | 234,742 | [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) | 189,183 | [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) | 196,078 | [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) | 236,936 | [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) | 191,377 | [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) | 242,267 | [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) | 196,708 | [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) | 237,565 | [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) | 244,461 | [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) | 198,902 | [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) | 239,759 | [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) | 245,090 | [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) | 247,284 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 147,972 | [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) | 150,166 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 155,871 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,911 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 203,967 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 56,636 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 150,800 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,845 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 158,065 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,105 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 206,161 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 58,830 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 152,994 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,039 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 211,866 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 64,547 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 158,699 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,756 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 206,793 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 59,479 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 214,060 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 66,741 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 160,893 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,950 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 208,987 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 61,673 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 214,692 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 67,390 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 216,886 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 69,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -190,6 +205,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -253,6 +272,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -486,6 +508,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -644,6 +668,8 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
|
||||
@@ -0,0 +1,673 @@
|
||||
**Take Note!**
|
||||
|
||||
With the exception of issues and PRs regarding changes to
|
||||
`hosts/data/StevenBlack/hosts`, all other issues regarding the content of the
|
||||
produced hosts files should be made with the appropriate data source that
|
||||
contributed the content in question. The contact information for all of the data
|
||||
sources can be found in the `hosts/data/` directory.
|
||||
|
||||
---
|
||||
|
||||

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

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

|
||||
|
||||
- Last updated: **May 25 2023**.
|
||||
- Last updated: **January 07 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts)
|
||||
containing 189,183 entries.
|
||||
[raw hosts file Unified hosts file with social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts)
|
||||
containing 150,800 entries.
|
||||
|
||||
|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 186,359 | [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) | 188,553 | [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) | 193,884 | [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) | 234,742 | [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) | 189,183 | [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) | 196,078 | [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) | 236,936 | [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) | 191,377 | [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) | 242,267 | [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) | 196,708 | [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) | 237,565 | [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) | 244,461 | [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) | 198,902 | [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) | 239,759 | [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) | 245,090 | [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) | 247,284 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 147,972 | [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) | 150,166 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 155,871 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,911 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 203,967 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 56,636 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 150,800 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,845 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 158,065 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,105 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 206,161 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 58,830 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 152,994 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,039 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 211,866 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 64,547 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 158,699 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,756 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 206,793 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 59,479 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 214,060 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 66,741 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 160,893 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,950 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 208,987 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 61,673 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 214,692 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 67,390 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 216,886 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 69,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -186,6 +201,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -249,6 +268,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -482,6 +504,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -640,6 +664,8 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
|
||||
@@ -399,3 +399,119 @@
|
||||
2022-07-23,54912
|
||||
2022-07-25,54029
|
||||
2022-07-29,55170
|
||||
2022-07-29,55170
|
||||
2022-08-03,56212
|
||||
2022-08-09,55363
|
||||
2022-08-12,56199
|
||||
2022-08-17,57242
|
||||
2022-08-20,58029
|
||||
2022-08-24,58671
|
||||
2022-08-25,59079
|
||||
2022-08-31,58909
|
||||
2022-09-04,59632
|
||||
2022-09-05,59801
|
||||
2022-09-08,60419
|
||||
2022-09-11,60871
|
||||
2022-09-13,61716
|
||||
2022-09-17,62637
|
||||
2022-09-23,69250
|
||||
2022-10-01,70975
|
||||
2022-10-06,71961
|
||||
2022-10-09,72393
|
||||
2022-10-13,73542
|
||||
2022-10-15,73812
|
||||
2022-10-17,74045
|
||||
2022-10-20,74663
|
||||
2022-10-27,75985
|
||||
2022-11-01,76659
|
||||
2022-11-09,77533
|
||||
2022-11-12,77958
|
||||
2022-11-13,78048
|
||||
2022-11-20,79200
|
||||
2022-11-21,79392
|
||||
2022-11-26,80074
|
||||
2022-11-28,80242
|
||||
2022-11-29,80593
|
||||
2022-12-03,81424
|
||||
2022-12-04,81480
|
||||
2022-12-05,81939
|
||||
2022-12-06,82151
|
||||
2022-12-11,83395
|
||||
2022-12-13,83729
|
||||
2022-12-15,84409
|
||||
2022-12-18,85143
|
||||
2022-12-20,85678
|
||||
2022-12-26,86493
|
||||
2022-12-29,87155
|
||||
2022-12-29,87249
|
||||
2023-01-01,87381
|
||||
2023-01-06,88183
|
||||
2023-01-08,88327
|
||||
2023-01-11,90282
|
||||
2023-01-13,90627
|
||||
2023-01-19,92889
|
||||
2023-01-23,93644
|
||||
2023-01-24,94292
|
||||
2023-01-27,95607
|
||||
2023-01-31,96093
|
||||
2023-02-05,98119
|
||||
2023-02-07,99720
|
||||
2023-02-16,103828
|
||||
2023-02-19,105052
|
||||
2023-02-23,105764
|
||||
2023-02-28,106639
|
||||
2023-03-03,107407
|
||||
2023-03-06,107829
|
||||
2023-03-07,108127
|
||||
2023-03-10,109968
|
||||
2023-03-14,111107
|
||||
2023-03-21,114538
|
||||
2023-03-25,115719
|
||||
2023-03-29,116916
|
||||
2023-04-07,123209
|
||||
2023-04-11,125209
|
||||
2023-04-16,127216
|
||||
2023-04-18,130388
|
||||
2023-04-19,130588
|
||||
2023-04-23,131577
|
||||
2023-04-26,134882
|
||||
2023-04-27,135241
|
||||
2023-04-30,135656
|
||||
2023-05-02,136074
|
||||
2023-05-05,136917
|
||||
2023-05-08,137729
|
||||
2023-05-11,138767
|
||||
2023-05-14,141533
|
||||
2023-05-15,142238
|
||||
2023-05-20,143946
|
||||
2023-05-21,144092
|
||||
2023-05-24,146074
|
||||
2023-06-02,148891
|
||||
2023-06-06,150385
|
||||
2023-06-10,151188
|
||||
2023-06-11,151275
|
||||
2023-06-13,151745
|
||||
2023-06-14,152002
|
||||
2023-06-14,152198
|
||||
2023-06-16,152956
|
||||
2023-06-17,153132
|
||||
2023-06-18,153288
|
||||
2023-06-23,154980
|
||||
2023-06-27,156185
|
||||
2023-07-01,157308
|
||||
2023-07-06,158737
|
||||
2023-07-09,159309
|
||||
2023-07-14,160857
|
||||
2023-07-15,160953
|
||||
2023-07-21,162723
|
||||
2023-07-23,162923
|
||||
2023-07-27,164181
|
||||
2023-08-01,165426
|
||||
2023-08-04,167551
|
||||
2023-08-05,167697
|
||||
2023-08-08,168343
|
||||
2023-08-13,170007
|
||||
2023-08-17,170776
|
||||
2023-08-21,171751
|
||||
2023-08-22,172007
|
||||
2023-08-26,173323
|
||||
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 25 KiB |
@@ -825,7 +825,6 @@
|
||||
0.0.0.0 a.faymobi.com
|
||||
0.0.0.0 fdn-en.net
|
||||
0.0.0.0 ads.feedly.com
|
||||
0.0.0.0 feylibertad.org
|
||||
0.0.0.0 fgddl9szdof7.com
|
||||
0.0.0.0 fgoogle.com
|
||||
0.0.0.0 www.fgoogle.com
|
||||
@@ -865,7 +864,7 @@
|
||||
0.0.0.0 www.girlstofap.ga
|
||||
0.0.0.0 git-hub.co
|
||||
0.0.0.0 githb.co
|
||||
0.0.0.0 superlogout.github.io
|
||||
|
||||
0.0.0.0 goodblock.gladly.io
|
||||
0.0.0.0 www.goodblock.gladly.io
|
||||
0.0.0.0 ad-dev.globalnoticias.pt
|
||||
@@ -2229,9 +2228,6 @@
|
||||
0.0.0.0 amusingdates.net
|
||||
0.0.0.0 honey-date4u.life
|
||||
|
||||
# Added August 3, 2022
|
||||
0.0.0.0 secur.hopp.to
|
||||
|
||||
# Added August 9, 2022
|
||||
0.0.0.0 shopsplumbing.com
|
||||
|
||||
@@ -2430,8 +2426,8 @@
|
||||
0.0.0.0 vs.hotstar.com
|
||||
|
||||
# Added December 11, 2022
|
||||
analytics.shein.com
|
||||
analytics.shein.co.uk
|
||||
0.0.0.0 analytics.shein.com
|
||||
0.0.0.0 analytics.shein.co.uk
|
||||
|
||||
# Added December 29, 2022
|
||||
0.0.0.0 8a97175fd63e1d3a69f36979b9b34470.safeframe.googlesyndication.com
|
||||
@@ -2501,7 +2497,6 @@ analytics.shein.co.uk
|
||||
0.0.0.0 a125375509.cdn.optimizely.com
|
||||
0.0.0.0 cdn.cookielaw.org
|
||||
0.0.0.0 cdn.indexww.com
|
||||
0.0.0.0 encrypted-tbn1.gstatic.com
|
||||
|
||||
# Added March 25, 2023
|
||||
0.0.0.0 wpad.www.tendawifi.com
|
||||
@@ -2521,11 +2516,8 @@ analytics.shein.co.uk
|
||||
0.0.0.0 use1.fptls3.com
|
||||
|
||||
# Added April 7, 2023
|
||||
0.0.0.0 turnip.cdn.turner.com
|
||||
0.0.0.0 d2uap9jskdzp2.cloudfront.net
|
||||
0.0.0.0 steadfastseat.com
|
||||
0.0.0.0 medium.ngtv.io
|
||||
0.0.0.0 licensing.bitmovin.com
|
||||
0.0.0.0 eq97f.publishers.tremorhub.com
|
||||
|
||||
# Added April 13, 2023
|
||||
@@ -2559,17 +2551,6 @@ analytics.shein.co.uk
|
||||
0.0.0.0 ads-tm-glb.click
|
||||
0.0.0.0 cbox4.ignorelist.com
|
||||
0.0.0.0 hsdps.cc
|
||||
0.0.0.0 slotmagie.de
|
||||
0.0.0.0 www.slotmagie.de
|
||||
0.0.0.0 slotmagie.zendesk.com
|
||||
0.0.0.0 tubepornclassics.com
|
||||
0.0.0.0 www.tubepornclassics.com
|
||||
0.0.0.0 ww1.tubepornclassics.com
|
||||
0.0.0.0 ww7.tubepornclassics.com
|
||||
0.0.0.0 ww12.tubepornclassics.com
|
||||
0.0.0.0 kwrn.eu
|
||||
0.0.0.0 www.kwrn.eu
|
||||
0.0.0.0 profile.omega.kwrn.eu
|
||||
0.0.0.0 api.sprig.com
|
||||
|
||||
# Added May 15, 2023
|
||||
@@ -2579,3 +2560,130 @@ analytics.shein.co.uk
|
||||
0.0.0.0 clorec4.net
|
||||
0.0.0.0 wu.idismfonts.com
|
||||
0.0.0.0 xml-eu.flairadscpc.com
|
||||
|
||||
# Added May 30, 2023
|
||||
0.0.0.0 serasearchtop.com
|
||||
0.0.0.0 track.atom-ds.com
|
||||
|
||||
# Added June 3, 2023
|
||||
0.0.0.0 addatamarket.net
|
||||
0.0.0.0 backuprabbit.com
|
||||
0.0.0.0 businessvideonews.com
|
||||
0.0.0.0 cloudsponcer.com
|
||||
0.0.0.0 datamarketplace.net
|
||||
0.0.0.0 mobilegamerstats.com
|
||||
0.0.0.0 snoweeanalytics.com
|
||||
0.0.0.0 tagclick-cdn.com
|
||||
0.0.0.0 topographyupdates.com
|
||||
0.0.0.0 unlimitedteacup.com
|
||||
0.0.0.0 virtuallaughing.com
|
||||
0.0.0.0 web-trackers.com
|
||||
0.0.0.0 growthtransport.com
|
||||
0.0.0.0 anstv.net
|
||||
0.0.0.0 ans7tv.net
|
||||
0.0.0.0 123-vendasvoos25.lovestoblog.com
|
||||
0.0.0.0 c-123milhas.shop
|
||||
|
||||
# Added June 13, 2023
|
||||
0.0.0.0 assistant-chronopost.com
|
||||
0.0.0.0 zhihu-web-analytics.zhihu.com
|
||||
|
||||
# Added July 4, 2023
|
||||
0.0.0.0 stmicroelectronics.d3.sc.omtrdc.net
|
||||
|
||||
0.0.0.0 giyhub.com
|
||||
0.0.0.0 d2wzkjnj9pfptq.cloudfront.net
|
||||
0.0.0.0 storiesnexus.com
|
||||
0.0.0.0 rumadel.com
|
||||
|
||||
# Added August 8, 2023
|
||||
0.0.0.0 ms4.applvn.com
|
||||
0.0.0.0 adsninjacdn.b-cdn.net
|
||||
0.0.0.0 cdn.adsninja.ca
|
||||
0.0.0.0 nom.telemetrydeck.com
|
||||
0.0.0.0 api.ibeat-analytics.com
|
||||
0.0.0.0 mads.amazon.com
|
||||
|
||||
# Add August 9, 2023
|
||||
0.0.0.0 s2.bl-1.com
|
||||
|
||||
# Added August 10, 2023
|
||||
0.0.0.0 w61.1piecemanga.com
|
||||
0.0.0.0 fbet.com
|
||||
0.0.0.0 stemboastfulrattle.com
|
||||
0.0.0.0 onwardrespirationcommandment.com
|
||||
|
||||
# Added October 13, 2023
|
||||
0.0.0.0 s.dmmew.com
|
||||
|
||||
# Added November 2, 2023
|
||||
0.0.0.0 run.cntxtfl.com
|
||||
0.0.0.0 live-manifests-lln.warnermediacdn.com
|
||||
0.0.0.0 live-manifests-aka.warnermediacdn.com
|
||||
0.0.0.0 logs.browser-intake-datadoghq.com
|
||||
|
||||
# Added November 3, 2023
|
||||
0.0.0.0 b2b6d102cb7a4898bc54a3b73e31b759.safeframe.googlesyndication.com
|
||||
0.0.0.0 cpm.didna.io
|
||||
0.0.0.0 hb.minutemedia-prebid.com
|
||||
0.0.0.0 ox-rtb-us-east1.openx.net
|
||||
0.0.0.0 ox-rtb-us-east4.openx.net
|
||||
0.0.0.0 pbs.nextmillmedia.com
|
||||
0.0.0.0 report2.hb.brainlyads.com
|
||||
0.0.0.0 ssp-sync.criteo.com
|
||||
0.0.0.0 st.pubmatic.com
|
||||
|
||||
# Added November 9, 2023
|
||||
0.0.0.0 beacons5.gvt2.com
|
||||
0.0.0.0 beacons4.gvt2.com
|
||||
0.0.0.0 beacons3.gvt2.com
|
||||
0.0.0.0 beacons2.gvt2.com
|
||||
|
||||
# Added November 21, 2023
|
||||
0.0.0.0 pickanewdeliverytime.com
|
||||
|
||||
# Added November 24, 2023
|
||||
0.0.0.0 80d4b6e40cc712bf92fcdbabdd4345fd.safeframe.googlesyndication.com
|
||||
0.0.0.0 a6709203f34992a5095d2bc7ceaf2ec504f651a8.cws.conviva.com
|
||||
0.0.0.0 a.jsrdn.com
|
||||
0.0.0.0 atom.warnermedia.com
|
||||
0.0.0.0 d9esmwyn3ffr1.cloudfront.net
|
||||
0.0.0.0 dqif5bl25s0bf.cloudfront.net
|
||||
0.0.0.0 healthguides.cnn.com
|
||||
0.0.0.0 ipv4.cws.conviva.com
|
||||
0.0.0.0 licensing.bitmovin.com
|
||||
0.0.0.0 live-media-aka.warnermediacdn.com
|
||||
0.0.0.0 medium.ngtv.io
|
||||
0.0.0.0 registry.api.cnn.io
|
||||
0.0.0.0 s.cdn.turner.com
|
||||
0.0.0.0 turnip.cdn.turner.com
|
||||
0.0.0.0 vi.ml314.com
|
||||
0.0.0.0 vod-media-aka.warnermediacdn.com
|
||||
0.0.0.0 warnermediagroup-com.videoplayerhub.com
|
||||
0.0.0.0 www.i.cdn.cnn.com
|
||||
0.0.0.0 d32ajg1ye8vnl9.cloudfront.net
|
||||
0.0.0.0 dvqcs4w0eo35b.cloudfront.net
|
||||
0.0.0.0 facf31c1c8559131d653f3c5ad4ecc78.safeframe.googlesyndication.com
|
||||
0.0.0.0 i.jsrdn.com
|
||||
0.0.0.0 lb.eu-1-id5-sync.com
|
||||
0.0.0.0 live-media-lln.warnermediacdn.com
|
||||
0.0.0.0 zion.api.cnn.io
|
||||
|
||||
# Added November 25, 2023
|
||||
0.0.0.0 bucket.cdnwebcloud.com
|
||||
0.0.0.0 c23811bc8d067cdb4f00f6af2c918f3d.safeframe.googlesyndication.com
|
||||
0.0.0.0 cadmus.script.ac
|
||||
0.0.0.0 cdn.topsrvimp.com
|
||||
0.0.0.0 cookies.nextmillmedia.com
|
||||
0.0.0.0 didna.b-cdn.net
|
||||
0.0.0.0 exchange.kueezrtb.com
|
||||
0.0.0.0 neural40.cdnwebcloud.com
|
||||
0.0.0.0 rt.marphezis.com
|
||||
0.0.0.0 sync.colossusssp.com
|
||||
0.0.0.0 sync.kueezrtb.com
|
||||
0.0.0.0 t.adx.opera.com
|
||||
0.0.0.0 web.hb.ad.cpe.dotomi.com
|
||||
|
||||
# Added December 17, 2023
|
||||
0.0.0.0 co.vaicore.site
|
||||
0.0.0.0 int.vaicore.site
|
||||
@@ -10898,10 +10898,6 @@
|
||||
# [vads.net.vn]
|
||||
127.0.0.1 vads.net.vn
|
||||
|
||||
# [vaicore.site]
|
||||
127.0.0.1 co.vaicore.site
|
||||
127.0.0.1 int.vaicore.site
|
||||
|
||||
# [vaicore.store]
|
||||
127.0.0.1 int.vaicore.store
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Title: hostsVN
|
||||
# Last modified: 24 May 2023 10:05 UTC+7
|
||||
# Version: 2305241005
|
||||
# Blocked: 1,793 domains
|
||||
# Last modified: 05 Jan 2024 15:51 UTC+7
|
||||
# Version: 2401051551
|
||||
# Blocked: 1,812 domains
|
||||
# Only include advertisers in Vietnam
|
||||
# Homepage: https://bigdargon.github.io/hostsVN/
|
||||
# GitHub: https://github.com/bigdargon/hostsVN
|
||||
@@ -424,13 +424,16 @@
|
||||
0.0.0.0 log.zingmp3.vn
|
||||
0.0.0.0 za.zingmp3.vn
|
||||
0.0.0.0 zlog.zingmp3.vn
|
||||
#[zingnews.vn]
|
||||
#[zingnews]
|
||||
0.0.0.0 log.zingnews.vn
|
||||
0.0.0.0 za.zingnews.vn
|
||||
#[zingnews.com.vn]
|
||||
0.0.0.0 log.zingnews.com.vn
|
||||
0.0.0.0 za.zingnews.com.vn
|
||||
0.0.0.0 log.znews.vn
|
||||
#[zingplay.com]
|
||||
0.0.0.0 trackingbr.zingplay.com
|
||||
0.0.0.0 trackingin.zingplay.com
|
||||
0.0.0.0 trackingsea.zingplay.com
|
||||
0.0.0.0 trackingvn.zingplay.com
|
||||
#[zalo.me]
|
||||
0.0.0.0 ads-platform.zalo.me
|
||||
0.0.0.0 ads.platform.zalo.me
|
||||
0.0.0.0 button-call.zalo.me
|
||||
0.0.0.0 button-follow.zalo.me
|
||||
@@ -453,6 +456,8 @@
|
||||
0.0.0.0 page.widget.zalo.me
|
||||
#[zalo.ai]
|
||||
0.0.0.0 stats.lab.zalo.ai
|
||||
#[log.zalo.video]
|
||||
0.0.0.0 log.zalo.video
|
||||
#[zaloapp.com]
|
||||
0.0.0.0 centralized.zaloapp.com
|
||||
0.0.0.0 px.dmp.zaloapp.com
|
||||
@@ -1076,19 +1081,23 @@
|
||||
0.0.0.0 api.piads.vn
|
||||
0.0.0.0 piads.vn
|
||||
0.0.0.0 static.piads.vn
|
||||
#[haraloyalty.com]
|
||||
0.0.0.0 app.haraloyalty.com
|
||||
0.0.0.0 haraloyalty.com
|
||||
0.0.0.0 www.haraloyalty.com
|
||||
#[harafunnel.com]
|
||||
#[hara*.com]
|
||||
0.0.0.0 app.harafunnel.com
|
||||
0.0.0.0 assets.harafunnel.com
|
||||
0.0.0.0 harafunnel.com
|
||||
0.0.0.0 www.harafunnel.com
|
||||
#[haraads.com]
|
||||
0.0.0.0 app.haraloyalty.com
|
||||
0.0.0.0 app.harasocial.com
|
||||
0.0.0.0 apps.haraads.com
|
||||
0.0.0.0 haraads.com
|
||||
0.0.0.0 www.haraads.com
|
||||
0.0.0.0 assets.harafunnel.com
|
||||
#[haravan.com]
|
||||
0.0.0.0 combo-omni.haravan.com
|
||||
0.0.0.0 socialloginplus-apps.haravan.com
|
||||
0.0.0.0 facebookinbox-omni-onapp.haravan.com
|
||||
0.0.0.0 promotion.haravan.com
|
||||
0.0.0.0 onapp.haravan.com
|
||||
#[hara.vn]
|
||||
0.0.0.0 facebook-ads.hara.vn
|
||||
0.0.0.0 google-ads.hara.vn
|
||||
0.0.0.0 stats.hara.vn
|
||||
0.0.0.0 tiktok-ads.hara.vn
|
||||
#[starseed.fr]
|
||||
0.0.0.0 cdn.starseed.fr
|
||||
0.0.0.0 log.starseed.fr
|
||||
@@ -1294,6 +1303,7 @@
|
||||
0.0.0.0 adnetwork-adserver.aiactiv.io
|
||||
0.0.0.0 adnetwork-core-lb7.aiactiv.io
|
||||
0.0.0.0 adnetwork-core.aiactiv.io
|
||||
0.0.0.0 aiactiv.io
|
||||
0.0.0.0 identify.aiactiv.io
|
||||
0.0.0.0 sdk-cdn.aiactiv.io
|
||||
0.0.0.0 static.aiactiv.io
|
||||
@@ -1407,16 +1417,21 @@
|
||||
#[imacdn.com]
|
||||
0.0.0.0 ff.imacdn.com
|
||||
0.0.0.0 sponsor.imacdn.com
|
||||
#[epicdn.me]
|
||||
#[quangcao-*.epicdn.me]
|
||||
0.0.0.0 quangcao-thanhnien.epicdn.me
|
||||
#[log-*.epicdn.me]
|
||||
0.0.0.0 log-baodauthau.epicdn.me
|
||||
0.0.0.0 log-baogialai.epicdn.me
|
||||
0.0.0.0 log-dttc-sggp.epicdn.me
|
||||
0.0.0.0 log-en-nhandan.epicdn.me
|
||||
0.0.0.0 log-en-sggp.epicdn.me
|
||||
0.0.0.0 log-giaoduc.epicdn.me
|
||||
0.0.0.0 log-giaoducthoidai.epicdn.me
|
||||
0.0.0.0 log-kienthucnet.epicdn.me
|
||||
0.0.0.0 log-mekongasean.epicdn.me
|
||||
0.0.0.0 log-nhandan.epicdn.me
|
||||
0.0.0.0 log-thanhnien.epicdn.me
|
||||
0.0.0.0 log-thuonggiaonline.epicdn.me
|
||||
0.0.0.0 log-tinnhanhchungkhoan.epicdn.me
|
||||
#[thanhnien.vn]
|
||||
0.0.0.0 ads.thanhnien.vn
|
||||
@@ -1466,6 +1481,22 @@
|
||||
0.0.0.0 cdn.aanetwork.vn
|
||||
0.0.0.0 imgs2.aanetwork.vn
|
||||
0.0.0.0 pub.aanetwork.vn
|
||||
#[ultraviewer.net]
|
||||
0.0.0.0 ads.ultraviewer.net
|
||||
0.0.0.0 qc.ultraviewer.net
|
||||
#[vipads.cc]
|
||||
0.0.0.0 vipads.cc
|
||||
0.0.0.0 pv.vipads.cc
|
||||
0.0.0.0 www.vipads.cc
|
||||
#[kernh41.com]
|
||||
0.0.0.0 kernh41.com
|
||||
0.0.0.0 static1.kernh41.com
|
||||
#[realclick.vn]
|
||||
0.0.0.0 as.realclick.vn
|
||||
0.0.0.0 i.realclick.vn
|
||||
0.0.0.0 realclick.vn
|
||||
0.0.0.0 stats.realclick.vn
|
||||
0.0.0.0 www.realclick.vn
|
||||
# --- Block adsVN ---
|
||||
0.0.0.0 12signup.com
|
||||
0.0.0.0 ad-admin.vnay.vn
|
||||
@@ -1494,13 +1525,11 @@
|
||||
0.0.0.0 adms.phunusuckhoe.vn
|
||||
0.0.0.0 adpostback.headlines.pw
|
||||
0.0.0.0 ads-api.playfun.vn
|
||||
0.0.0.0 ads-backend.nhadatmoi.net
|
||||
0.0.0.0 ads-cdn.fptplay.net
|
||||
0.0.0.0 ads.1thegioi.vn
|
||||
0.0.0.0 ads.568play.vn
|
||||
0.0.0.0 ads.6svn.com
|
||||
0.0.0.0 ads.admatrix.vn
|
||||
0.0.0.0 ads.alophim.org
|
||||
0.0.0.0 ads.autonet.com.vn
|
||||
0.0.0.0 ads.baoangiang.com.vn
|
||||
0.0.0.0 ads.baobinhduong.vn
|
||||
@@ -1538,10 +1567,10 @@
|
||||
0.0.0.0 ads.thegioitiepthi.vn
|
||||
0.0.0.0 ads.thesaigontimes.vn
|
||||
0.0.0.0 ads.thitruongtaichinhtiente.vn
|
||||
0.0.0.0 ads.thvli.vn
|
||||
0.0.0.0 ads.tiki.vn
|
||||
0.0.0.0 ads.vietbao.vn
|
||||
0.0.0.0 ads.vishare.vn
|
||||
0.0.0.0 ads.vkool.info
|
||||
0.0.0.0 ads.vlr.vn
|
||||
0.0.0.0 ads.vovlive.vn
|
||||
0.0.0.0 ads.xedoisong.vn
|
||||
@@ -1562,20 +1591,18 @@
|
||||
0.0.0.0 adtima.org
|
||||
0.0.0.0 adv.anhsangvacuocsong.vn
|
||||
0.0.0.0 adv.autosurf.vn
|
||||
0.0.0.0 adv.baoangiang.com.vn
|
||||
0.0.0.0 adv.baotintuc.vn
|
||||
0.0.0.0 adv.baovemoitruong.org.vn
|
||||
0.0.0.0 adv.thuvienphapluat.vn
|
||||
0.0.0.0 adv.vnnshop.vn
|
||||
0.0.0.0 adver.24h.com.vn
|
||||
0.0.0.0 advert-admin.vnay.vn
|
||||
0.0.0.0 advertisement-nhatanh.com
|
||||
0.0.0.0 advserver.cgv.vn
|
||||
0.0.0.0 advzone.ioe.vn
|
||||
0.0.0.0 adx.baolongan.vn
|
||||
0.0.0.0 adx.chinmedia.vn
|
||||
0.0.0.0 adx.edutimes.com.vn
|
||||
0.0.0.0 adx.golfnews.vn
|
||||
0.0.0.0 adx.hoanggia.net
|
||||
0.0.0.0 adx.hoanggia.net.vn
|
||||
0.0.0.0 adx.hongtinnhanh.com
|
||||
0.0.0.0 adx.kul.vn
|
||||
@@ -1592,6 +1619,7 @@
|
||||
0.0.0.0 api2.boclinkads.com
|
||||
0.0.0.0 apia.headlines.pw
|
||||
0.0.0.0 avoadsservices.com
|
||||
0.0.0.0 ax.mpcdn.top
|
||||
0.0.0.0 banner.5giay.vn
|
||||
0.0.0.0 banner.etargeting.mobifone.vn
|
||||
0.0.0.0 banner.thadaco.vn
|
||||
@@ -1600,7 +1628,6 @@
|
||||
0.0.0.0 bgadx.com
|
||||
0.0.0.0 bidgear-syndication.com
|
||||
0.0.0.0 cdn-ads.thesaigontimes.vn
|
||||
0.0.0.0 cdn.rongzhouxing.com
|
||||
0.0.0.0 cdn2.cache.vn
|
||||
0.0.0.0 chiasephim.xyz
|
||||
0.0.0.0 click.vieon.vn
|
||||
@@ -1619,7 +1646,6 @@
|
||||
0.0.0.0 duamilsyr.com
|
||||
0.0.0.0 financial-agent.headlines.pw
|
||||
0.0.0.0 gamma.cachefly.net
|
||||
0.0.0.0 ghimc.vn
|
||||
0.0.0.0 go.vnecdn.com
|
||||
0.0.0.0 hexapinow.xyz
|
||||
0.0.0.0 iads.staticscdn.net
|
||||
@@ -1633,31 +1659,28 @@
|
||||
0.0.0.0 lottery.headlines.pw
|
||||
0.0.0.0 marketing.hub-js.com
|
||||
0.0.0.0 media.dabong247.com
|
||||
0.0.0.0 mega1.yeah1.com
|
||||
0.0.0.0 menu.metu.vn
|
||||
0.0.0.0 microad.vn
|
||||
0.0.0.0 mobileads.dieuviet.com
|
||||
0.0.0.0 ng-vn-notice.gameitop.com
|
||||
0.0.0.0 offerwall.headlines.pw
|
||||
0.0.0.0 onapp.haravan.com
|
||||
0.0.0.0 openx.motgame.vn
|
||||
0.0.0.0 ox1.vietstock.vn
|
||||
0.0.0.0 promotion.haravan.com
|
||||
0.0.0.0 qc.5giay.vn
|
||||
0.0.0.0 qc.designervn.net
|
||||
0.0.0.0 qc.japo.vn
|
||||
0.0.0.0 qc.kqbd88.com
|
||||
0.0.0.0 qc.mhsolution.vn
|
||||
0.0.0.0 qc.violet.vn
|
||||
0.0.0.0 qcao.happyskin.vn
|
||||
0.0.0.0 qctt24h.24h.com.vn
|
||||
0.0.0.0 qcv5.blogtruyen.vn
|
||||
0.0.0.0 quangcao.24h.com.vn
|
||||
0.0.0.0 quangcao.baovannghe.com.vn
|
||||
0.0.0.0 quangcao.fff.com.vn
|
||||
0.0.0.0 quangcao247.com.vn
|
||||
0.0.0.0 quangcaococcoc.vn
|
||||
0.0.0.0 quangcaodantri.vn
|
||||
0.0.0.0 r.tinmoi24.vn
|
||||
0.0.0.0 realclick.vn
|
||||
0.0.0.0 s.cntqk.com
|
||||
0.0.0.0 s.cntqk.vn
|
||||
0.0.0.0 s.giaoducthoidai.vn
|
||||
@@ -1686,32 +1709,28 @@
|
||||
0.0.0.0 trenddigital.vn
|
||||
0.0.0.0 truoctran.com
|
||||
0.0.0.0 ttus.tructiepbongda.me
|
||||
0.0.0.0 tvnotice.kg.garena.vn
|
||||
0.0.0.0 tvc.biphim.club
|
||||
0.0.0.0 upfile16.mediaphim.com
|
||||
0.0.0.0 user.headlines.pw
|
||||
0.0.0.0 v9banners.com
|
||||
0.0.0.0 vietbuzzad.com
|
||||
0.0.0.0 vietdorje.com
|
||||
0.0.0.0 vinaads.vn
|
||||
0.0.0.0 vipads.live
|
||||
0.0.0.0 vlxx.host
|
||||
0.0.0.0 vnadssb.com
|
||||
0.0.0.0 webpush.vn
|
||||
0.0.0.0 widget.headlines.pw
|
||||
0.0.0.0 www.12signup.com
|
||||
0.0.0.0 www.adsweb.vn
|
||||
0.0.0.0 www.adt.com.vn
|
||||
0.0.0.0 www.advertisement-nhatanh.com
|
||||
0.0.0.0 www.avoadsservices.com
|
||||
0.0.0.0 www.bidgear-syndication.com
|
||||
0.0.0.0 www.delecpuzz.com
|
||||
0.0.0.0 www.hexapinow.xyz
|
||||
0.0.0.0 www.ketquaxosotoancau.org
|
||||
0.0.0.0 www.landingpagelagi.vn
|
||||
0.0.0.0 www.microad.vn
|
||||
0.0.0.0 www.realclick.vn
|
||||
0.0.0.0 www.sbbanner.com
|
||||
0.0.0.0 www.v9banners.com
|
||||
0.0.0.0 www.vietbuzzad.com
|
||||
0.0.0.0 www.vietdorje.com
|
||||
0.0.0.0 www.vipads.live
|
||||
0.0.0.0 xads.joboko.com
|
||||
0.0.0.0 xmadsapi.joboko.com
|
||||
# --- Block trackingVN ---
|
||||
@@ -1725,19 +1744,22 @@
|
||||
0.0.0.0 affiliate.chiaki.vn
|
||||
0.0.0.0 alexajstrack.com
|
||||
0.0.0.0 analytic.baodantoc.vn
|
||||
0.0.0.0 analytic.thuanbui.me
|
||||
0.0.0.0 analytic.vnanet.vn
|
||||
0.0.0.0 analytics.admon.com.vn
|
||||
0.0.0.0 analytics.aita.gov.vn
|
||||
0.0.0.0 analytics.amedigital.vn
|
||||
0.0.0.0 analytics.bachtuongphat.com
|
||||
0.0.0.0 analytics.bkav.com
|
||||
0.0.0.0 analytics.bkav.com.vn
|
||||
0.0.0.0 analytics.diamondstarfinancial.com.vn
|
||||
0.0.0.0 analytics.digi8.vn
|
||||
0.0.0.0 analytics.evgcdn.net
|
||||
0.0.0.0 analytics.fsoft.com.vn
|
||||
0.0.0.0 analytics.gotama.link
|
||||
0.0.0.0 analytics.hapo.vn
|
||||
0.0.0.0 analytics.hebela.vn
|
||||
0.0.0.0 analytics.hub-js.com
|
||||
0.0.0.0 analytics.jamstackvietnam.com
|
||||
0.0.0.0 analytics.mfocus.vn
|
||||
0.0.0.0 analytics.molistar.com
|
||||
0.0.0.0 analytics.moneycat.vn
|
||||
0.0.0.0 analytics.nhattao.com
|
||||
@@ -1772,11 +1794,11 @@
|
||||
0.0.0.0 counter.24h.com.vn
|
||||
0.0.0.0 counter.ntdvn.com
|
||||
0.0.0.0 counter.ntdvn.net
|
||||
0.0.0.0 countervov.emitech.vn
|
||||
0.0.0.0 crm.bizfly.vn
|
||||
0.0.0.0 crm.englishtown.edu.vn
|
||||
0.0.0.0 crmbizfly.todo.vn
|
||||
0.0.0.0 crmx.eqvn.net
|
||||
0.0.0.0 cskh-hcm.fpt.edu.vn
|
||||
0.0.0.0 cskh.onlinecrm.vn
|
||||
0.0.0.0 digi.vinut.com.vn
|
||||
0.0.0.0 elink.nhanlucnganhluat.vn
|
||||
@@ -1785,10 +1807,10 @@
|
||||
0.0.0.0 event.headlines.pw
|
||||
0.0.0.0 f-emc.ngsp.gov.vn
|
||||
0.0.0.0 fa.fpt.shop
|
||||
0.0.0.0 facebookinbox-omni-onapp.haravan.com
|
||||
0.0.0.0 fbuser.ovp.vn
|
||||
0.0.0.0 file-subiz.com
|
||||
0.0.0.0 follow.vnay.vn
|
||||
0.0.0.0 gtm.saostar.vn
|
||||
0.0.0.0 gtmjs.com
|
||||
0.0.0.0 hit.123c.vn
|
||||
0.0.0.0 intranet.dcorp.com.vn
|
||||
@@ -1801,8 +1823,10 @@
|
||||
0.0.0.0 live.careplusvn.com
|
||||
0.0.0.0 live.vnpgroup.net
|
||||
0.0.0.0 liveonline.nhanhoa.com
|
||||
0.0.0.0 lmsreport.systems.vn
|
||||
0.0.0.0 log-collector.shopee.vn
|
||||
0.0.0.0 log-dttc.sggp.org.vn
|
||||
0.0.0.0 log-en.nhandan.vn
|
||||
0.0.0.0 log-en.sggp.org.vn
|
||||
0.0.0.0 log.anninhthudo.vn
|
||||
0.0.0.0 log.baobackan.com.vn
|
||||
0.0.0.0 log.baocaobang.vn
|
||||
@@ -1826,8 +1850,8 @@
|
||||
0.0.0.0 log.infonet.vn
|
||||
0.0.0.0 log.kaka.me
|
||||
0.0.0.0 log.kienthuc.net.vn
|
||||
0.0.0.0 log.kinhdoanhhoinhap.vn
|
||||
0.0.0.0 log.kinhtedouong.vn
|
||||
0.0.0.0 log.mekongasean.vn
|
||||
0.0.0.0 log.ngaynay.vn
|
||||
0.0.0.0 log.nhandan.vn
|
||||
0.0.0.0 log.nhipcaudautu.vn
|
||||
@@ -1839,16 +1863,13 @@
|
||||
0.0.0.0 log.tapchimattran.vn
|
||||
0.0.0.0 log.tapchitaichinh.vn
|
||||
0.0.0.0 log.theleader.vn
|
||||
0.0.0.0 log.thuonggiaonline.vn
|
||||
0.0.0.0 log.tienphong.vn
|
||||
0.0.0.0 log.tieudungthoinay.vn
|
||||
0.0.0.0 log.tinnhac.com
|
||||
0.0.0.0 log.tinnhanhchungkhoan.vn
|
||||
0.0.0.0 log.tinxe.vn
|
||||
0.0.0.0 log.toss.vn
|
||||
0.0.0.0 log.trithuctructuyen.com.vn
|
||||
0.0.0.0 log.trithuctructuyen.vn
|
||||
0.0.0.0 log.tv360.vn
|
||||
0.0.0.0 log.vietnamdaily.net.vn
|
||||
0.0.0.0 log.viettimes.vn
|
||||
0.0.0.0 log.vnay.vn
|
||||
0.0.0.0 log.vneconomy.vn
|
||||
@@ -1861,14 +1882,16 @@
|
||||
0.0.0.0 log4x.nixcdn.com
|
||||
0.0.0.0 logapi.misa.com.vn
|
||||
0.0.0.0 logging.kinhtedothi.vn
|
||||
0.0.0.0 logs-ott.fbox.fpt.vn
|
||||
0.0.0.0 logs.1cdn.vn
|
||||
0.0.0.0 logs.docnhanh.com.vn
|
||||
0.0.0.0 logs.thethaovanhoa.vn
|
||||
0.0.0.0 logsbin.dantri.com.vn
|
||||
0.0.0.0 logscafef.channelvn.net
|
||||
0.0.0.0 logv3.metric.vn
|
||||
0.0.0.0 marketing.itgeek.vn
|
||||
0.0.0.0 matomo.quan.hoabinh.vn
|
||||
0.0.0.0 matomo.vietlottsms.vn
|
||||
0.0.0.0 mautic-learn.teky.edu.vn
|
||||
0.0.0.0 mautic.200lab.io
|
||||
0.0.0.0 mautic.teky.edu.vn
|
||||
0.0.0.0 mkt.hoanghamobile.com
|
||||
@@ -1878,10 +1901,9 @@
|
||||
0.0.0.0 newlog.daidoanket.vn
|
||||
0.0.0.0 newlog.tapchitaichinh.vn
|
||||
0.0.0.0 nstat.headlines.pw
|
||||
0.0.0.0 pixel.chotot.com
|
||||
0.0.0.0 plausible.vucar.vn
|
||||
0.0.0.0 production-tracking.riviu.co
|
||||
0.0.0.0 proof.sudo.vn
|
||||
0.0.0.0 px-cdn.saostar.vn
|
||||
0.0.0.0 px.saostar.vn
|
||||
0.0.0.0 report.mediahub.vn
|
||||
0.0.0.0 report.vnay.vn
|
||||
@@ -1890,8 +1912,8 @@
|
||||
0.0.0.0 s.homedy.com
|
||||
0.0.0.0 s.kenh14.vn
|
||||
0.0.0.0 s.soha.vn
|
||||
0.0.0.0 s6.textlink.vn
|
||||
0.0.0.0 smetrics.kone.vn
|
||||
0.0.0.0 socialloginplus-apps.haravan.com
|
||||
0.0.0.0 st-a.vtvdigital.vn
|
||||
0.0.0.0 stat.headlines.pw
|
||||
0.0.0.0 static.masoffer.net
|
||||
@@ -1906,7 +1928,6 @@
|
||||
0.0.0.0 stats.bizweb.vn
|
||||
0.0.0.0 stats.dongphim.net
|
||||
0.0.0.0 stats.hstatic.net
|
||||
0.0.0.0 stats.muasamcong.gov.vn
|
||||
0.0.0.0 stats.petrotimes.vn
|
||||
0.0.0.0 stats.tamdiem247.com
|
||||
0.0.0.0 stats.vietnammoi.vn
|
||||
@@ -1921,6 +1942,7 @@
|
||||
0.0.0.0 thongke.bookingcare.vn
|
||||
0.0.0.0 thongke.opencps.vn
|
||||
0.0.0.0 thongke.tcdulichtphcm.vn
|
||||
0.0.0.0 thongke.thethaovanhoa.vn
|
||||
0.0.0.0 thongke.vui.vn
|
||||
0.0.0.0 thongke99.baogiaothong.vn
|
||||
0.0.0.0 tr.topdevvn.com
|
||||
@@ -1932,13 +1954,13 @@
|
||||
0.0.0.0 track.lapa.pub
|
||||
0.0.0.0 track.lemonnovel.com
|
||||
0.0.0.0 track.pnj.com.vn
|
||||
0.0.0.0 track.popsww.com
|
||||
0.0.0.0 track.sendo.vn
|
||||
0.0.0.0 track.vio.edu.vn
|
||||
0.0.0.0 tracker.anime47.com
|
||||
0.0.0.0 tracker.edupia.vn
|
||||
0.0.0.0 tracker.fado.vn
|
||||
0.0.0.0 tracker.gigaphim.com
|
||||
0.0.0.0 tracker.nhandaovadoisong.vn
|
||||
0.0.0.0 tracker.phunusuckhoe.vn
|
||||
0.0.0.0 tracker.phunuvagiadinh.vn
|
||||
0.0.0.0 tracker.thichxemphim.net
|
||||
@@ -1959,8 +1981,8 @@
|
||||
0.0.0.0 tracking.vegaid.vn
|
||||
0.0.0.0 tracking.vht.com.vn
|
||||
0.0.0.0 tracking.vietbao.vn
|
||||
0.0.0.0 tracking.viez.vn
|
||||
0.0.0.0 trackingapi.foody.vn
|
||||
0.0.0.0 trackingvn.zingplay.com
|
||||
0.0.0.0 trackity.tiki.vn
|
||||
0.0.0.0 traffic.vietnhan.co
|
||||
0.0.0.0 trk.123c.vn
|
||||
@@ -1980,9 +2002,11 @@
|
||||
# --- Block popupVN ---
|
||||
0.0.0.0 b8zk2cl6bjs92j7ah8k2kzi92jf8ck9vj7v0z5bv2v3cj2azlp0c8z5vb7dt.me
|
||||
0.0.0.0 ch6p2aj2gh8zy5cm0px9ow7aj3tmzhtk6lzx2ch9xj7gx2jq1cj8v4jklz6b.me
|
||||
0.0.0.0 e7z9t4x6a0v5mk3zo1a0xj2z7c6g8sa6js5z7s2c3h9x0s5fh3a6sjwb8q7m.xyz
|
||||
0.0.0.0 h6o2z0pwx5ja7dwxn0wx4fhv7mp0qoladm8vj6do4h1c6gja8evrn6g5fixk.me
|
||||
0.0.0.0 kz2oq0xm6ie7gn5dkswlpv6mfgci8yoe3xlqp12gjotp5fdjxs5ckztb8rzn.codes
|
||||
0.0.0.0 m6pz5h8qi18jq1s7hjkytxn7sjc0zpxw5gks3vyk8dcxs2cstjgdxkp7t1eb.me
|
||||
0.0.0.0 n7e4t5trg0u3yegn8szj9c8xjz5wf8szcj2a5h9dzxjs50salczs8azls0zm.com
|
||||
0.0.0.0 q2h0x5l7gj8xdm5wdx8ht5szd4jw8nzq5klt8sr9sk2zjg6mtk0q8xzi0i9z.me
|
||||
0.0.0.0 rei9jc56oyqux0rcpcquqmm7jc5freirpsquqkope3n3axrjacg8ipolxvbm.codes
|
||||
0.0.0.0 su6t2a0v1cbj6fu8o2cjdo1dx0oxdm6kgl6f7zdjxt6aqxjlwrt7cu2r5g2d.me
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
# minecraft-hosts - Tracking Domains
|
||||
# License: CC0
|
||||
|
||||
analytics.atlauncher.com
|
||||
auxilium.ftb.team
|
||||
beacon.quiltmc.org
|
||||
bstats.org
|
||||
mcmc.dev
|
||||
mcstats.org
|
||||
|
||||
@@ -68,7 +68,6 @@
|
||||
0.0.0.0 stats.framasoft.org
|
||||
0.0.0.0 stats.kde.org
|
||||
0.0.0.0 stats.nextcloud.com
|
||||
0.0.0.0 t.stripe.com
|
||||
0.0.0.0 tag.rmp.rakuten.com
|
||||
0.0.0.0 trackjs.com
|
||||
0.0.0.0 trk.justanswer.com
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
# Please forward any additions, corrections or comments by email to
|
||||
# hosts@someonewhocares.org
|
||||
|
||||
# Last updated: Mon, 22 May 2023 at 22:53:33 GMT
|
||||
# Last updated: Fri, 05 Jan 2024 at 18:21:25 GMT
|
||||
|
||||
# Use this file to prevent your computer from connecting to selected
|
||||
# internet hosts. This is an easy and effective way to protect you from
|
||||
@@ -115,7 +115,6 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 4girlsfingerpaint.org
|
||||
0.0.0.0 bagslap.com
|
||||
0.0.0.0 ballsack.org
|
||||
0.0.0.0 bestgore.com
|
||||
0.0.0.0 bestgore.fun
|
||||
0.0.0.0 bestshockers.com
|
||||
0.0.0.0 bluewaffle.biz
|
||||
@@ -353,6 +352,11 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 1us.cqcounter.com
|
||||
0.0.0.0 1xxx.cqcounter.com
|
||||
0.0.0.0 20585485p.rfihub.com
|
||||
0.0.0.0 3dns-1.adobe.com
|
||||
0.0.0.0 3dns-2.adobe.com
|
||||
0.0.0.0 3dns-3.adobe.com
|
||||
0.0.0.0 3dns-4.adobe.com
|
||||
0.0.0.0 3dns.adobe.com
|
||||
0.0.0.0 4-counter.com
|
||||
0.0.0.0 a-nj.1rx.io
|
||||
0.0.0.0 a-ssl.ligatus.com
|
||||
@@ -1139,6 +1143,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 stats.adultswim.com
|
||||
0.0.0.0 stats.airfarewatchdog.com
|
||||
0.0.0.0 stats.allliquid.com
|
||||
0.0.0.0 stats.arrowos.net
|
||||
0.0.0.0 stats.askmen.com
|
||||
0.0.0.0 stats.bbc.co.uk
|
||||
0.0.0.0 stats.becu.org
|
||||
@@ -1167,6 +1172,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 stats.iwebtrack.com
|
||||
0.0.0.0 stats.jippii.com
|
||||
0.0.0.0 stats.ladotstats.nl
|
||||
0.0.0.0 stats.ozguryazilim.com.tr
|
||||
0.0.0.0 stats.paycounter.com
|
||||
0.0.0.0 stats.popscreen.com
|
||||
0.0.0.0 stats.resellerratings.com
|
||||
@@ -1177,6 +1183,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 stats.townnews.com
|
||||
0.0.0.0 stats.ultimate-webservices.com
|
||||
0.0.0.0 stats.unionleader.com
|
||||
0.0.0.0 stats.unipi.it
|
||||
0.0.0.0 stats.vodpod.com
|
||||
0.0.0.0 stats.wordpress.com
|
||||
0.0.0.0 stats.wp.com
|
||||
@@ -1440,6 +1447,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 whentheyopened.com
|
||||
0.0.0.0 wt.bankmillennium.pl
|
||||
0.0.0.0 wtnj.worldnow.com
|
||||
0.0.0.0 www-stats.unipi.it
|
||||
0.0.0.0 www.0stats.com
|
||||
0.0.0.0 www.123count.com
|
||||
0.0.0.0 www.123counter.superstats.com
|
||||
@@ -1588,18 +1596,16 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 20mlinutes.fr
|
||||
0.0.0.0 237online.fr
|
||||
0.0.0.0 247blinds.fr
|
||||
0.0.0.0 2g312kn32qfy-1323053341.cos.ap-bangkok.myqcloud.com
|
||||
0.0.0.0 2roueselectrique.fr
|
||||
0.0.0.0 3mfrances.fr
|
||||
0.0.0.0 59-106-20-39.r-bl100.sakura.ne.jp
|
||||
0.0.0.0 6range.fr
|
||||
0.0.0.0 6w1.sharedlinkconnect.com
|
||||
0.0.0.0 75esession.fr
|
||||
0.0.0.0 7frenchweb.fr
|
||||
0.0.0.0 7zip.fr
|
||||
0.0.0.0 8hj500ro4t7.groovepages.com
|
||||
0.0.0.0 ASKBOT.com
|
||||
0.0.0.0 Arrayshift.com
|
||||
0.0.0.0 OSQA.com
|
||||
0.0.0.0 Question2Answer.com
|
||||
0.0.0.0 a.kaytri.com
|
||||
0.0.0.0 a.phormlabs.com
|
||||
0.0.0.0 a.webwise.org
|
||||
@@ -1619,7 +1625,9 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 ac-strasboourg.fr
|
||||
0.0.0.0 ac-versdailles.fr
|
||||
0.0.0.0 aca-languedoc.fr
|
||||
0.0.0.0 account-review.com
|
||||
0.0.0.0 accounts.secure-ua.website
|
||||
0.0.0.0 accounts.ukr.net.ssl2.in
|
||||
0.0.0.0 acessoires-electromenager.fr
|
||||
0.0.0.0 acglgoa.com
|
||||
0.0.0.0 acmen.fr
|
||||
@@ -1645,6 +1653,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 ajouny.com
|
||||
0.0.0.0 aktiv-mit-ms.fr
|
||||
0.0.0.0 ale-gratka.pl
|
||||
0.0.0.0 alert1dhlshipment.info
|
||||
0.0.0.0 alexyu.fr
|
||||
0.0.0.0 aliecpress.fr
|
||||
0.0.0.0 aliexress.fr
|
||||
@@ -1689,6 +1698,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 aresweb.fr
|
||||
0.0.0.0 argenta.fr
|
||||
0.0.0.0 armsart.com
|
||||
0.0.0.0 arrayshift.com
|
||||
0.0.0.0 arteradio.fr
|
||||
0.0.0.0 artissanat.fr
|
||||
0.0.0.0 asemblee-nationale.fr
|
||||
@@ -1697,6 +1707,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 asianread.com
|
||||
0.0.0.0 ask-coder.com
|
||||
0.0.0.0 ask.webatall.com
|
||||
0.0.0.0 askbot.com
|
||||
0.0.0.0 askto.net
|
||||
0.0.0.0 askubal.fr
|
||||
0.0.0.0 assistcom.fr
|
||||
@@ -1725,6 +1736,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 avsvmcloud.com
|
||||
0.0.0.0 avtec.fr
|
||||
0.0.0.0 azureus.es
|
||||
0.0.0.0 b.doloaqywbvq.ru
|
||||
0.0.0.0 b.webwise.org
|
||||
0.0.0.0 babouche-maroc.fr
|
||||
0.0.0.0 bac-reunion.fr
|
||||
@@ -1760,6 +1772,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 biaugerme.fr
|
||||
0.0.0.0 bighow.net
|
||||
0.0.0.0 bioware.fr
|
||||
0.0.0.0 biserka.xyz
|
||||
0.0.0.0 bitcoin-upappl.com
|
||||
0.0.0.0 bitcoinplus.com
|
||||
0.0.0.0 bitsoin.fr
|
||||
@@ -1836,7 +1849,11 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 campinglespins.fr
|
||||
0.0.0.0 camplace.fr
|
||||
0.0.0.0 campus-forprof.fr
|
||||
0.0.0.0 canadapost-delivery-reshedule.com
|
||||
0.0.0.0 canadapost-paymentservice.com
|
||||
0.0.0.0 canadapost-postescanada.uwpackege.top
|
||||
0.0.0.0 capitalregionusa.fr
|
||||
0.0.0.0 capostdelivery.com
|
||||
0.0.0.0 carac-terres.fr
|
||||
0.0.0.0 carrfefour.fr
|
||||
0.0.0.0 cartoonnetworkarabic.fr
|
||||
@@ -1850,6 +1867,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 cd-sport.fr
|
||||
0.0.0.0 cdn.jquery-uim.download
|
||||
0.0.0.0 ce-marketing.fr
|
||||
0.0.0.0 cebue.magmafurnace.top
|
||||
0.0.0.0 celestia.es
|
||||
0.0.0.0 celestia.fr
|
||||
0.0.0.0 cellu-clean.fr
|
||||
@@ -1886,6 +1904,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 cleanmobilephone.com
|
||||
0.0.0.0 click.get-answers-fast.com
|
||||
0.0.0.0 clicktripz.com
|
||||
0.0.0.0 climate-actionpayment.com
|
||||
0.0.0.0 clonezilla.es
|
||||
0.0.0.0 clonezilla.fr
|
||||
0.0.0.0 cmcre.fr
|
||||
@@ -1915,6 +1934,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 compe-nickel.fr
|
||||
0.0.0.0 compufixshop.com
|
||||
0.0.0.0 comsss-56.com
|
||||
0.0.0.0 con-trnroayl.online
|
||||
0.0.0.0 conduit.com
|
||||
0.0.0.0 confg.fr
|
||||
0.0.0.0 conseil-coaching-jardinage.fr
|
||||
@@ -1930,6 +1950,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 coupondio.fr
|
||||
0.0.0.0 cplelangues.fr
|
||||
0.0.0.0 cra-arc-gc-ca.noads.biz
|
||||
0.0.0.0 cra-etransfer.online
|
||||
0.0.0.0 crdp-strsbourg.fr
|
||||
0.0.0.0 creativlonk.fr
|
||||
0.0.0.0 creditmuteuel.fr
|
||||
@@ -1959,16 +1980,20 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 decompiler.fr
|
||||
0.0.0.0 dejoyaux.fr
|
||||
0.0.0.0 delamaisn.fr
|
||||
0.0.0.0 delivery-change-reschedule6128.com
|
||||
0.0.0.0 deloitteca.com
|
||||
0.0.0.0 delphix.fr
|
||||
0.0.0.0 deltarviews.bond
|
||||
0.0.0.0 denx.fr
|
||||
0.0.0.0 department06.fr
|
||||
0.0.0.0 deposit-cra2023.com
|
||||
0.0.0.0 depositphotos.fr
|
||||
0.0.0.0 depottool.bond
|
||||
0.0.0.0 devguardmap.org
|
||||
0.0.0.0 dewinci.fr
|
||||
0.0.0.0 dfnac.fr
|
||||
0.0.0.0 dhauzja511.co.cc
|
||||
0.0.0.0 digiclk.com
|
||||
0.0.0.0 digicub.fr
|
||||
0.0.0.0 digipote.fr
|
||||
0.0.0.0 digipsote.fr
|
||||
@@ -1978,17 +2003,20 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 disneyholidays.fr
|
||||
0.0.0.0 dns2.net1.it
|
||||
0.0.0.0 dnythgt.com
|
||||
0.0.0.0 docs.ukr.net.ssl2.in
|
||||
0.0.0.0 dogry.fr
|
||||
0.0.0.0 dogtrace.fr
|
||||
0.0.0.0 domaine-voyance.fr
|
||||
0.0.0.0 donforama.fr
|
||||
0.0.0.0 dontacos.fr
|
||||
0.0.0.0 doors.co.kr
|
||||
0.0.0.0 dpflyingoncs.top
|
||||
0.0.0.0 dsbzk.comfortykive.xyz
|
||||
0.0.0.0 dtcc.fr
|
||||
0.0.0.0 dveug.comfortykive.xyz
|
||||
0.0.0.0 e-kern.fr
|
||||
0.0.0.0 e-lords.fr
|
||||
0.0.0.0 e-trn-incm.com
|
||||
0.0.0.0 east.05tz2e9.com
|
||||
0.0.0.0 easyflier.fr
|
||||
0.0.0.0 easytic.fr
|
||||
@@ -1997,6 +2025,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 ecirque.fr
|
||||
0.0.0.0 eckosport.fr
|
||||
0.0.0.0 edecideur.fr
|
||||
0.0.0.0 edisk.ukr.net.ssl2.in
|
||||
0.0.0.0 edmo.fr
|
||||
0.0.0.0 education-securiter-routiere.fr
|
||||
0.0.0.0 eeude.comfortykive.xyz
|
||||
@@ -2025,6 +2054,8 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 esmoutonsenrages.fr
|
||||
0.0.0.0 espaceagazines.fr
|
||||
0.0.0.0 espub.fr
|
||||
0.0.0.0 et-1nt3rc.com
|
||||
0.0.0.0 etdeposit-interac.com
|
||||
0.0.0.0 etribunaldunet.fr
|
||||
0.0.0.0 euriosport.fr
|
||||
0.0.0.0 europr1.fr
|
||||
@@ -2054,12 +2085,16 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 fanniemae.fr
|
||||
0.0.0.0 fasola.fr
|
||||
0.0.0.0 fclb.fr
|
||||
0.0.0.0 fedex-rescheduel-date.com
|
||||
0.0.0.0 fedex-rescheduel-delivery-date.com
|
||||
0.0.0.0 fedgroceryrebate.com
|
||||
0.0.0.0 feedbackexplorer.com
|
||||
0.0.0.0 fengyixin.com
|
||||
0.0.0.0 festicolor.fr
|
||||
0.0.0.0 ffesm.fr
|
||||
0.0.0.0 fichier-pdfr.fr
|
||||
0.0.0.0 figato.fr
|
||||
0.0.0.0 files.ukr.net.ssl2.in
|
||||
0.0.0.0 filezilla.fr
|
||||
0.0.0.0 filosvybfimpsv.ru.gg
|
||||
0.0.0.0 filter.mediacpc.com
|
||||
@@ -2091,6 +2126,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 freedon.fr
|
||||
0.0.0.0 freelanced.fr
|
||||
0.0.0.0 fref.fr
|
||||
0.0.0.0 freighttools.live
|
||||
0.0.0.0 frenchbweb.fr
|
||||
0.0.0.0 frenesies.fr
|
||||
0.0.0.0 freshzz00.duckdns.org
|
||||
@@ -2113,10 +2149,12 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 gasasthe.freehostia.com
|
||||
0.0.0.0 gautmont.fr
|
||||
0.0.0.0 gazia.fr
|
||||
0.0.0.0 gcn-1nterc.com
|
||||
0.0.0.0 geolantis.fr
|
||||
0.0.0.0 geopostcodes.fr
|
||||
0.0.0.0 get-answers-fast.com
|
||||
0.0.0.0 get24update.link4all.info
|
||||
0.0.0.0 getdispadsshop.com
|
||||
0.0.0.0 gglcash4u.info # twitter worm
|
||||
0.0.0.0 gifii.fr
|
||||
0.0.0.0 gigaonclick.com
|
||||
@@ -2145,6 +2183,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 gtamoding.fr
|
||||
0.0.0.0 guidelon.fr
|
||||
0.0.0.0 guiltygear.fr
|
||||
0.0.0.0 gv-1nt3rc.com
|
||||
0.0.0.0 gwklaser.fr
|
||||
0.0.0.0 gyros.es
|
||||
0.0.0.0 h9tkd.rdtk.io
|
||||
@@ -2166,6 +2205,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 helpmedb.com
|
||||
0.0.0.0 hentavost.fr
|
||||
0.0.0.0 heritagebathrooms.fr
|
||||
0.0.0.0 heuither.sbs
|
||||
0.0.0.0 hfrni.comfortykive.xyz
|
||||
0.0.0.0 hibody.fr
|
||||
0.0.0.0 hifa.fr
|
||||
@@ -2175,6 +2215,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 hireproplus.com
|
||||
0.0.0.0 hirsch-ille.fr
|
||||
0.0.0.0 hiteck.fr
|
||||
0.0.0.0 hiuinder.beauty
|
||||
0.0.0.0 hocolats-voisin.fr
|
||||
0.0.0.0 hommetendance.fr
|
||||
0.0.0.0 hostify.fr
|
||||
@@ -2210,6 +2251,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 imago-tv.fr
|
||||
0.0.0.0 imotors.fr
|
||||
0.0.0.0 inateck.fr
|
||||
0.0.0.0 incuirfes.beauty
|
||||
0.0.0.0 info-sectes.fr
|
||||
0.0.0.0 infodjour.fr
|
||||
0.0.0.0 infographicworld.fr
|
||||
@@ -2226,6 +2268,8 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 installmac.com
|
||||
0.0.0.0 instantstreetview.fr
|
||||
0.0.0.0 interac-etransfer.net
|
||||
0.0.0.0 interac1-ssl2.info
|
||||
0.0.0.0 interacpayment-cra.com
|
||||
0.0.0.0 interhomes.fr
|
||||
0.0.0.0 interimairesssante.fr
|
||||
0.0.0.0 internwise.fr
|
||||
@@ -2252,6 +2296,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 joomlaworks.fr
|
||||
0.0.0.0 juegosdechicas.fr
|
||||
0.0.0.0 juliettehasagun.fr
|
||||
0.0.0.0 juliyea.sbs
|
||||
0.0.0.0 jump.ewoss.net
|
||||
0.0.0.0 juste.ru # Twitter trojan
|
||||
0.0.0.0 juventuis.fr
|
||||
@@ -2282,6 +2327,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 kpremium.com
|
||||
0.0.0.0 krakragames.com
|
||||
0.0.0.0 kuder.fr
|
||||
0.0.0.0 kweiqox.beauty
|
||||
0.0.0.0 l-histoire.fr
|
||||
0.0.0.0 la1dwne9cn5c.com
|
||||
0.0.0.0 laatribune.fr
|
||||
@@ -2308,6 +2354,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 laredoutre.fr
|
||||
0.0.0.0 lareplubliquedespyrenees.fr
|
||||
0.0.0.0 larusse.fr
|
||||
0.0.0.0 lasopabowl158.weebly.com
|
||||
0.0.0.0 latribuen.fr
|
||||
0.0.0.0 latrubune.fr
|
||||
0.0.0.0 lavoixedunord.fr
|
||||
@@ -2565,6 +2612,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 neko-scan.fr
|
||||
0.0.0.0 neon-genesis-evangelion-online.fr
|
||||
0.0.0.0 neowordprss.fr
|
||||
0.0.0.0 netflix-updateinfo.com
|
||||
0.0.0.0 netflix.apple-green.net
|
||||
0.0.0.0 new-vid-zone-1.blogspot.com.au
|
||||
0.0.0.0 newouest.fr
|
||||
@@ -2609,6 +2657,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 openinternetexchange.com
|
||||
0.0.0.0 openinternetexchange.net
|
||||
0.0.0.0 openoverflow.com
|
||||
0.0.0.0 optionmodifycanitem.info
|
||||
0.0.0.0 orange.npix.net
|
||||
0.0.0.0 orangemali.fr
|
||||
0.0.0.0 orangf.fr
|
||||
@@ -2620,6 +2669,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 orowy.comfortykive.xyz
|
||||
0.0.0.0 ortange.fr
|
||||
0.0.0.0 osonscomprendre.fr
|
||||
0.0.0.0 osqa.com
|
||||
0.0.0.0 osqa.net
|
||||
0.0.0.0 ostalgie.fr
|
||||
0.0.0.0 otsserver.com
|
||||
@@ -2645,6 +2695,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 paytel.fr
|
||||
0.0.0.0 pbworks.fr
|
||||
0.0.0.0 pcblibraries.fr
|
||||
0.0.0.0 pckgatups.bond
|
||||
0.0.0.0 pdns.nudt.edu.cn
|
||||
0.0.0.0 pearlfeet.fr
|
||||
0.0.0.0 peircing-street.fr
|
||||
@@ -2675,6 +2726,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 plagtracker.fr
|
||||
0.0.0.0 plains.fr
|
||||
0.0.0.0 planetside2.fr
|
||||
0.0.0.0 planrecanpost1.info
|
||||
0.0.0.0 plasticker.fr
|
||||
0.0.0.0 platinmods.fr
|
||||
0.0.0.0 playbaspresse.fr
|
||||
@@ -2691,11 +2743,14 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 poolin.fr
|
||||
0.0.0.0 poonstwifterspick.work
|
||||
0.0.0.0 portdusoleil.fr
|
||||
0.0.0.0 posicionamientonatural.es
|
||||
0.0.0.0 post-canada-delivery2023.com
|
||||
0.0.0.0 post.mil-gov.space
|
||||
0.0.0.0 postbox.mos.ru
|
||||
0.0.0.0 postcanada.ship-express.info
|
||||
0.0.0.0 postcanada.ship-priority.info
|
||||
0.0.0.0 postecan-canpost.confrm942.link
|
||||
0.0.0.0 postecan-canpost.updt491.link
|
||||
0.0.0.0 postis.fr
|
||||
0.0.0.0 powertrfic.fr
|
||||
0.0.0.0 ppoi.org
|
||||
@@ -2710,7 +2765,9 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 prk.roverinvolv.bid
|
||||
0.0.0.0 pro-accesssoires.fr
|
||||
0.0.0.0 probikesshop.fr
|
||||
0.0.0.0 proclickpacket.com
|
||||
0.0.0.0 profilenetflix.com
|
||||
0.0.0.0 profilenotice.info
|
||||
0.0.0.0 profit-btc.org
|
||||
0.0.0.0 proflashdata.com # Facebook trojan
|
||||
0.0.0.0 proidees.fr
|
||||
@@ -2730,12 +2787,15 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 qevia.doubleclick.bond
|
||||
0.0.0.0 qfsya.comfortykive.xyz
|
||||
0.0.0.0 quaidesbulles.fr
|
||||
0.0.0.0 question2answer.com
|
||||
0.0.0.0 quickchess.fr
|
||||
0.0.0.0 quicksaledeal.su
|
||||
0.0.0.0 quirinale.fr
|
||||
0.0.0.0 radio42.fr
|
||||
0.0.0.0 randki-sex.com
|
||||
0.0.0.0 raptp.fr
|
||||
0.0.0.0 rb-on1in-sec.com
|
||||
0.0.0.0 rbc-anth-ogrn.com
|
||||
0.0.0.0 reacherinst.com
|
||||
0.0.0.0 realstar.fr
|
||||
0.0.0.0 recettes-vegetariennes.fr
|
||||
@@ -2750,11 +2810,13 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 renov-landes.fr
|
||||
0.0.0.0 rentacars.fr
|
||||
0.0.0.0 rentamotorcycle.fr
|
||||
0.0.0.0 resetcibc-logincibc.com
|
||||
0.0.0.0 reskins.fr
|
||||
0.0.0.0 resulabi.fr
|
||||
0.0.0.0 resultatspmu.fr
|
||||
0.0.0.0 retaildetail.fr
|
||||
0.0.0.0 retrofuture.fr
|
||||
0.0.0.0 rev-cvnada-dep.com
|
||||
0.0.0.0 rezeptwelt.fr
|
||||
0.0.0.0 rgp-ign.fr
|
||||
0.0.0.0 rickrolling.com
|
||||
@@ -2794,6 +2856,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 screencast-o-matic.fr
|
||||
0.0.0.0 scribbens.fr
|
||||
0.0.0.0 scribe.ttwitter.com
|
||||
0.0.0.0 scure-royaibamk.com
|
||||
0.0.0.0 scwharzkopf.fr
|
||||
0.0.0.0 scyxj.comfortykive.xyz
|
||||
0.0.0.0 sea.net.edu.cn
|
||||
@@ -2802,6 +2865,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 search.privitize.com
|
||||
0.0.0.0 secret.xn--oogle-wmc.com
|
||||
0.0.0.0 secretosdelagua.fr
|
||||
0.0.0.0 secure-accept-e-transfer-interac.info
|
||||
0.0.0.0 securielite.com
|
||||
0.0.0.0 securityscan.us
|
||||
0.0.0.0 seebox.fr
|
||||
@@ -2865,6 +2929,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 starbuckssurvey.life
|
||||
0.0.0.0 startmarket.su
|
||||
0.0.0.0 statutorjuihui.site
|
||||
0.0.0.0 stay.decentralappps.com
|
||||
0.0.0.0 steelbitepro24.com
|
||||
0.0.0.0 stellarium.fr
|
||||
0.0.0.0 steveberry.fr
|
||||
@@ -2885,6 +2950,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 suxap.comfortykive.xyz
|
||||
0.0.0.0 suzukiauto.fr
|
||||
0.0.0.0 sverd.net
|
||||
0.0.0.0 swflightinfo.bond
|
||||
0.0.0.0 swiftype.fr
|
||||
0.0.0.0 swisslide.fr
|
||||
0.0.0.0 sybonymo.fr
|
||||
@@ -2924,6 +2990,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 thenewswire.fr
|
||||
0.0.0.0 thesimsresource.fr
|
||||
0.0.0.0 thetorrentz.fr
|
||||
0.0.0.0 thickporter.sa.com
|
||||
0.0.0.0 thomasmore.fr
|
||||
0.0.0.0 thunderbird.es
|
||||
0.0.0.0 tibs.fr
|
||||
@@ -2945,6 +3012,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 traffic-bam.link
|
||||
0.0.0.0 traffic.adwitty.com
|
||||
0.0.0.0 tranisere.fr
|
||||
0.0.0.0 trauiqce.click
|
||||
0.0.0.0 trioadvisor.fr
|
||||
0.0.0.0 trk.wizzdeal.trade
|
||||
0.0.0.0 trouveunfilm.fr
|
||||
@@ -2965,6 +3033,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 ubuntu-fr.fr
|
||||
0.0.0.0 udgth.comfortykive.xyz
|
||||
0.0.0.0 ufpcdn.com
|
||||
0.0.0.0 umgpjdlllhl.ru
|
||||
0.0.0.0 un-ruly.fr
|
||||
0.0.0.0 unetbootin.net
|
||||
0.0.0.0 unetbootin.org
|
||||
@@ -2992,6 +3061,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 utauniv-lyon2.fr
|
||||
0.0.0.0 utenti.lycos.it
|
||||
0.0.0.0 utrace.fr
|
||||
0.0.0.0 van-city-sign-on.com
|
||||
0.0.0.0 vcarrefour.fr
|
||||
0.0.0.0 venturead.com
|
||||
0.0.0.0 verify.rambler-profile.site
|
||||
@@ -3033,6 +3103,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 waldenfarms.com
|
||||
0.0.0.0 wanadzoo.fr
|
||||
0.0.0.0 wanatoo.fr
|
||||
0.0.0.0 watch-netfiix.com
|
||||
0.0.0.0 watchpro.fr
|
||||
0.0.0.0 waterstudio.fr
|
||||
0.0.0.0 waudeesestew.com
|
||||
@@ -3107,6 +3178,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 www.comfortykive.xyz
|
||||
0.0.0.0 www.compufixshop.com
|
||||
0.0.0.0 www.didata.bw
|
||||
0.0.0.0 www.e-transfer-cra.com
|
||||
0.0.0.0 www.faggotry.com
|
||||
0.0.0.0 www.filezilla.fr
|
||||
0.0.0.0 www.findalgorithm.com
|
||||
@@ -3177,6 +3249,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 www.shinilchurch.net # domain was hacked and had a trojan installed
|
||||
0.0.0.0 www.simplyhelper.com
|
||||
0.0.0.0 www.sinera.org
|
||||
0.0.0.0 www.ssl2.in
|
||||
0.0.0.0 www.stellarium.fr
|
||||
0.0.0.0 www.stopphoulplay.com
|
||||
0.0.0.0 www.tanger.com.br
|
||||
@@ -3205,6 +3278,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 www.willysy.com
|
||||
0.0.0.0 www.winlottofrequently.com
|
||||
0.0.0.0 www.youfiletor.com
|
||||
0.0.0.0 www1-van-city-signon.com
|
||||
0.0.0.0 wyoutube.fr
|
||||
0.0.0.0 xcdkb.comfortykive.xyz
|
||||
0.0.0.0 xen-media.com
|
||||
@@ -3233,6 +3307,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 zenigameblinger.org
|
||||
0.0.0.0 zettapetta.com
|
||||
0.0.0.0 zip.er.cz
|
||||
0.0.0.0 ztriskl.divisionfair.homes
|
||||
0.0.0.0 zzhc.vnet.cn
|
||||
0.0.0.0 zzkwg.comfortykive.xyz
|
||||
#</malware-sites>
|
||||
@@ -4648,6 +4723,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 ac.rnm.ca
|
||||
0.0.0.0 ac.tynt.com
|
||||
0.0.0.0 academy-internet.net
|
||||
0.0.0.0 acceptable.a-ads.com
|
||||
0.0.0.0 acces.streaming-direct.co
|
||||
0.0.0.0 accessfreevpn.com
|
||||
0.0.0.0 accountprotection.xyz
|
||||
@@ -6150,7 +6226,6 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 aporasal.net
|
||||
0.0.0.0 app-measurement.com
|
||||
0.0.0.0 app.datafastguru.info
|
||||
0.0.0.0 app.getresponse.com
|
||||
0.0.0.0 app.monetizze.com.br
|
||||
0.0.0.0 app.scanscout.com
|
||||
0.0.0.0 app1.letitbefaster.website
|
||||
@@ -6395,6 +6470,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 blog.br0vvnn.io
|
||||
0.0.0.0 blogads.com
|
||||
0.0.0.0 blogvertising.pl
|
||||
0.0.0.0 bloodsugarberry.com
|
||||
0.0.0.0 blu.mobileads.msn.com
|
||||
0.0.0.0 blueconic.net
|
||||
0.0.0.0 bluediamondoffers.com
|
||||
@@ -6585,6 +6661,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 ccpmo.com
|
||||
0.0.0.0 cctv.adsunion.com
|
||||
0.0.0.0 cdbs.com.tr
|
||||
0.0.0.0 cdddfia.hornylocals24.com
|
||||
0.0.0.0 cdn.8digits.com
|
||||
0.0.0.0 cdn.acloudvideos.com
|
||||
0.0.0.0 cdn.ad.citynews.it
|
||||
@@ -6789,6 +6866,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 computertechanalysis.com
|
||||
0.0.0.0 conexionesymanguerashidrocalidas.com.mx
|
||||
0.0.0.0 config.getmyip.com
|
||||
0.0.0.0 config.seedtag.com
|
||||
0.0.0.0 config.sensic.net
|
||||
0.0.0.0 config.unityads.unity3d.com
|
||||
0.0.0.0 connect.247media.ads.link4ads.com
|
||||
@@ -7221,6 +7299,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 fr.a2dfp.net
|
||||
0.0.0.0 fr.adserver.yahoo.com
|
||||
0.0.0.0 fr.classic.clickintext.net
|
||||
0.0.0.0 fra1-ib.adnxs-simple.com
|
||||
0.0.0.0 fra1-ib.adnxs.com
|
||||
0.0.0.0 franko.info
|
||||
0.0.0.0 free.thesocialsexnetwork.com
|
||||
@@ -7954,6 +8033,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 m.openv.tv
|
||||
0.0.0.0 m.pl.pornzone.tv
|
||||
0.0.0.0 m.quantcount.com
|
||||
0.0.0.0 m.servedby-buysellads.com
|
||||
0.0.0.0 m.tidebuy.com
|
||||
0.0.0.0 m.tribalfusion.com
|
||||
0.0.0.0 m1.nsimg.net
|
||||
@@ -8021,6 +8101,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 mcfg.sandai.net
|
||||
0.0.0.0 mcsgrp.com
|
||||
0.0.0.0 mdunker.gmxhome.de
|
||||
0.0.0.0 mechtech.za.com
|
||||
0.0.0.0 medhiartis.com
|
||||
0.0.0.0 media-angel.de
|
||||
0.0.0.0 media-fire.org
|
||||
@@ -8113,6 +8194,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 microsoft-home-en.com
|
||||
0.0.0.0 microsoft-online-en-us.com
|
||||
0.0.0.0 microsoft-ware.com
|
||||
0.0.0.0 microwinds.de
|
||||
0.0.0.0 mightymagoo.com
|
||||
0.0.0.0 milyondolar.com
|
||||
0.0.0.0 minden-egyben.com
|
||||
@@ -8145,6 +8227,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 mokavilag.com
|
||||
0.0.0.0 monarchy.nl
|
||||
0.0.0.0 monetate.net
|
||||
0.0.0.0 monetizepros.com
|
||||
0.0.0.0 moneybot.net
|
||||
0.0.0.0 moneyraid.com
|
||||
0.0.0.0 monkposseacre.casa
|
||||
@@ -8269,6 +8352,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 new.lerian-nti.be
|
||||
0.0.0.0 newads.cmpnet.com
|
||||
0.0.0.0 newadserver.interfree.it
|
||||
0.0.0.0 newagevz.homes
|
||||
0.0.0.0 newclk.com
|
||||
0.0.0.0 newip427.changeip.net
|
||||
0.0.0.0 newjunk4u.com
|
||||
@@ -8408,6 +8492,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 openx.adfactor.nl
|
||||
0.0.0.0 openxxx.viragemedia.com
|
||||
0.0.0.0 oplaca-sie.pl
|
||||
0.0.0.0 opr.adx.opera.com
|
||||
0.0.0.0 opsonew3org.sg
|
||||
0.0.0.0 optimaconsulting.com.au
|
||||
0.0.0.0 optimize.indieclick.com
|
||||
@@ -8659,6 +8744,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 pro.hit.gemius.pl
|
||||
0.0.0.0 pro.letv.com
|
||||
0.0.0.0 probusinesshub.com
|
||||
0.0.0.0 proclickpacket.com
|
||||
0.0.0.0 prod-a.applovin.com
|
||||
0.0.0.0 productresearchpanel.com
|
||||
0.0.0.0 producttestpanel.com
|
||||
@@ -8976,6 +9062,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 s.oroll.com
|
||||
0.0.0.0 s.ppjol.net
|
||||
0.0.0.0 s.rev2pub.com
|
||||
0.0.0.0 s.seedtag.com
|
||||
0.0.0.0 s.skimresources.com
|
||||
0.0.0.0 s.spolecznosci.net
|
||||
0.0.0.0 s.spoutable.com
|
||||
@@ -9057,6 +9144,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 secure.netscope.marktest.pt
|
||||
0.0.0.0 secure.webconnect.net
|
||||
0.0.0.0 securecloud-smart.com
|
||||
0.0.0.0 secureir.ebaystatic.com
|
||||
0.0.0.0 securerr.com
|
||||
0.0.0.0 securerunner.com
|
||||
0.0.0.0 security60-e.com
|
||||
@@ -9084,6 +9172,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 serve.mediayan.com
|
||||
0.0.0.0 serve.popads.net
|
||||
0.0.0.0 serve.prestigecasino.com
|
||||
0.0.0.0 servedby-buysellads.com
|
||||
0.0.0.0 servedby.adcombination.com
|
||||
0.0.0.0 servedby.flashtalking.com
|
||||
0.0.0.0 servedbyadbutler.com
|
||||
@@ -9157,6 +9246,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 shrek.6.cn
|
||||
0.0.0.0 shrimpsqueezed.com
|
||||
0.0.0.0 si.hit.gemius.pl
|
||||
0.0.0.0 sidare.homes
|
||||
0.0.0.0 sifomedia.citypaketet.se
|
||||
0.0.0.0 signup.advance.net
|
||||
0.0.0.0 silcom.com
|
||||
@@ -9400,10 +9490,12 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 szupertanacsok.blog.hu
|
||||
0.0.0.0 t-ads.adap.tv
|
||||
0.0.0.0 t-o-kitano.com
|
||||
0.0.0.0 t-odx.op-mobile.opera.com
|
||||
0.0.0.0 t.atpanel.com
|
||||
0.0.0.0 t.dynad.net
|
||||
0.0.0.0 t.frtyg.com
|
||||
0.0.0.0 t.mdn2015x3.com
|
||||
0.0.0.0 t.seedtag.com
|
||||
0.0.0.0 t.silvinst.com
|
||||
0.0.0.0 t1.adserver.com
|
||||
0.0.0.0 t2.junbi-tracker.com
|
||||
@@ -9436,6 +9528,8 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 tdc.advertorials.dk
|
||||
0.0.0.0 te.kontera.com
|
||||
0.0.0.0 te1.techgeetam.com
|
||||
0.0.0.0 tealium.com
|
||||
0.0.0.0 tealiumiq.com
|
||||
0.0.0.0 techexpert.site
|
||||
0.0.0.0 techms-shop.su
|
||||
0.0.0.0 techreview-images.adbureau.net
|
||||
@@ -9481,6 +9575,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 tidebuy.com
|
||||
0.0.0.0 tiltott.net
|
||||
0.0.0.0 timetunnel.net
|
||||
0.0.0.0 tiqcdn.com
|
||||
0.0.0.0 titan-gel-extra.com
|
||||
0.0.0.0 titkoshirek.wordpress.com
|
||||
0.0.0.0 titokterminal.com
|
||||
@@ -9581,6 +9676,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 trustaffs.com
|
||||
0.0.0.0 trvlnet-images.adbureau.net
|
||||
0.0.0.0 trvlnet.adbureau.net
|
||||
0.0.0.0 tryanimalemale.com
|
||||
0.0.0.0 ts-shimada.com
|
||||
0.0.0.0 tsbm.ch
|
||||
0.0.0.0 tsp2002.com
|
||||
@@ -9829,6 +9925,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 windows-several-update.com
|
||||
0.0.0.0 windows-update-02-en.com
|
||||
0.0.0.0 windows-wsus-update.com
|
||||
0.0.0.0 winner-prize.com
|
||||
0.0.0.0 wm.baidu.com
|
||||
0.0.0.0 wmedia.adk2x.com
|
||||
0.0.0.0 wms-eu.amazon-adsystem.com
|
||||
@@ -10129,6 +10226,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 www.eastwood35.idps.co.uk
|
||||
0.0.0.0 www.easy2date.net
|
||||
0.0.0.0 www.easyadservice.com
|
||||
0.0.0.0 www.ebayadservices.com
|
||||
0.0.0.0 www.ebayadvertising.com
|
||||
0.0.0.0 www.ebaybanner.com
|
||||
0.0.0.0 www.edv-waldherr.at
|
||||
@@ -10318,6 +10416,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 www.mjonkers.nl
|
||||
0.0.0.0 www.mlntracker.com
|
||||
0.0.0.0 www.mochibot.com
|
||||
0.0.0.0 www.monetizemore.com
|
||||
0.0.0.0 www.morefreecamsecrets.com
|
||||
0.0.0.0 www.morevisits.info
|
||||
0.0.0.0 www.mpression.net
|
||||
@@ -10444,6 +10543,7 @@ ff02::3 ip6-allhosts
|
||||
0.0.0.0 www.searchingzone.com
|
||||
0.0.0.0 www.searchwe.com
|
||||
0.0.0.0 www.securerunner.com
|
||||
0.0.0.0 www.servedby-buysellads.com
|
||||
0.0.0.0 www.servitemequipos.cl
|
||||
0.0.0.0 www.seward.net
|
||||
0.0.0.0 www.sexadvertentiesite.nl
|
||||
|
||||
@@ -41,11 +41,13 @@
|
||||
0.0.0.0 777.com
|
||||
0.0.0.0 7777.bg
|
||||
0.0.0.0 777bets.co.uk
|
||||
0.0.0.0 7bet.lt
|
||||
0.0.0.0 7epta7.com
|
||||
0.0.0.0 7godscasino.com
|
||||
0.0.0.0 7jackpots.com
|
||||
0.0.0.0 828bet.net
|
||||
0.0.0.0 888.com
|
||||
0.0.0.0 888.pt
|
||||
0.0.0.0 888sport.com
|
||||
0.0.0.0 88asia88.com
|
||||
0.0.0.0 88sports.com
|
||||
@@ -87,6 +89,7 @@
|
||||
0.0.0.0 atg.se
|
||||
0.0.0.0 axbet.com
|
||||
0.0.0.0 b-bets.com
|
||||
0.0.0.0 bacanaplay.pt
|
||||
0.0.0.0 balkanbet.co.rs
|
||||
0.0.0.0 ballebaazi.com
|
||||
0.0.0.0 bananajackpot.com
|
||||
@@ -125,6 +128,7 @@
|
||||
0.0.0.0 betandclick.com
|
||||
0.0.0.0 betano.bg
|
||||
0.0.0.0 betano.cz
|
||||
0.0.0.0 betano.pt
|
||||
0.0.0.0 betanysports.eu
|
||||
0.0.0.0 betbanks.com
|
||||
0.0.0.0 betboro.com
|
||||
@@ -140,6 +144,7 @@
|
||||
0.0.0.0 betcityru.com
|
||||
0.0.0.0 betclic.com
|
||||
0.0.0.0 betclic.pl
|
||||
0.0.0.0 betclic.pt
|
||||
0.0.0.0 betclock.com
|
||||
0.0.0.0 betcostarica.ag
|
||||
0.0.0.0 betcris.com
|
||||
@@ -227,6 +232,7 @@
|
||||
0.0.0.0 bets10go.com
|
||||
0.0.0.0 bets4all.com
|
||||
0.0.0.0 betsafe.com
|
||||
0.0.0.0 betsafe.lt
|
||||
0.0.0.0 betsbi.com
|
||||
0.0.0.0 betser.com
|
||||
0.0.0.0 betshop.com
|
||||
@@ -261,12 +267,14 @@
|
||||
0.0.0.0 betway.co.ke
|
||||
0.0.0.0 betway.bg
|
||||
0.0.0.0 betway.com
|
||||
0.0.0.0 betway.pt
|
||||
0.0.0.0 betworks.com
|
||||
0.0.0.0 betxchange.co.za
|
||||
0.0.0.0 betzest.com
|
||||
0.0.0.0 betzone.com
|
||||
0.0.0.0 bgbet.com
|
||||
0.0.0.0 bgo.com
|
||||
0.0.0.0 bidluck.pt
|
||||
0.0.0.0 bigbetworld.com
|
||||
0.0.0.0 bingo.com
|
||||
0.0.0.0 bingo.vernons.com
|
||||
@@ -309,6 +317,7 @@
|
||||
0.0.0.0 bustadice.com
|
||||
0.0.0.0 butterflybingo.com
|
||||
0.0.0.0 bwin.com
|
||||
0.0.0.0 bwin.pt
|
||||
0.0.0.0 cafecasino.lv
|
||||
0.0.0.0 caliente.mx
|
||||
0.0.0.0 campaign.rizk.com
|
||||
@@ -353,8 +362,10 @@
|
||||
0.0.0.0 casinostugan.com
|
||||
0.0.0.0 casinotown.se
|
||||
0.0.0.0 casinowinner.com
|
||||
0.0.0.0 casinoportugal.pt
|
||||
0.0.0.0 casinsi.com
|
||||
0.0.0.0 casumo.com
|
||||
0.0.0.0 cbet.lt
|
||||
0.0.0.0 cbmsport.com
|
||||
0.0.0.0 cc898.com
|
||||
0.0.0.0 celebbingo.com
|
||||
@@ -540,7 +551,9 @@
|
||||
0.0.0.0 eloterija.si
|
||||
0.0.0.0 emeraldbet.com
|
||||
0.0.0.0 en.betclic.com
|
||||
0.0.0.0 en.cbet.lt
|
||||
0.0.0.0 en.expekt.com
|
||||
0.0.0.0 en.topsport.lt
|
||||
0.0.0.0 energybet.com
|
||||
0.0.0.0 enterbet.com
|
||||
0.0.0.0 eqraffle.com
|
||||
@@ -550,6 +563,7 @@
|
||||
0.0.0.0 esports.gtorb.com
|
||||
0.0.0.0 esportsbetting.com
|
||||
0.0.0.0 esportscasino.com
|
||||
0.0.0.0 estorilsolcasinos.pt
|
||||
0.0.0.0 etherdice.io
|
||||
0.0.0.0 etipos.sk
|
||||
0.0.0.0 etopaz.az
|
||||
@@ -635,6 +649,7 @@
|
||||
0.0.0.0 golazobet.com
|
||||
0.0.0.0 goldbetsports.com
|
||||
0.0.0.0 goldenbetsng.com
|
||||
0.0.0.0 goldenpark.pt
|
||||
0.0.0.0 goldmedalbingo.com
|
||||
0.0.0.0 goliathcasino.com
|
||||
0.0.0.0 gossipbingo.com
|
||||
@@ -775,6 +790,7 @@
|
||||
0.0.0.0 latloto.lv
|
||||
0.0.0.0 lazvegas.com
|
||||
0.0.0.0 leaguex.com
|
||||
0.0.0.0 lebull.pt
|
||||
0.0.0.0 legendsportsbook.com
|
||||
0.0.0.0 legolas.bet
|
||||
0.0.0.0 leisure888.com
|
||||
@@ -813,6 +829,7 @@
|
||||
0.0.0.0 loterie.ma
|
||||
0.0.0.0 loteries.lotoquebec.com
|
||||
0.0.0.0 loterija.si
|
||||
0.0.0.0 loto.lt
|
||||
0.0.0.0 loto.mk
|
||||
0.0.0.0 loto.ro
|
||||
0.0.0.0 lotoquebec.com
|
||||
@@ -919,6 +936,7 @@
|
||||
0.0.0.0 monacoaces.com
|
||||
0.0.0.0 moneyplayscasino.com
|
||||
0.0.0.0 montecarlocasino.com
|
||||
0.0.0.0 moosh.pt
|
||||
0.0.0.0 morganbet.eu
|
||||
0.0.0.0 mozzartbet.co.ke
|
||||
0.0.0.0 mozzartbet.com
|
||||
@@ -980,6 +998,7 @@
|
||||
0.0.0.0 norskeautomater.com
|
||||
0.0.0.0 norskespilleautomater.com
|
||||
0.0.0.0 nostrabet.com
|
||||
0.0.0.0 nossaaposta.pt
|
||||
0.0.0.0 novibet.com
|
||||
0.0.0.0 noxwin.com
|
||||
0.0.0.0 nyspins.com
|
||||
@@ -995,6 +1014,7 @@
|
||||
0.0.0.0 olimp.com
|
||||
0.0.0.0 olybet.com
|
||||
0.0.0.0 olybet.eu
|
||||
0.0.0.0 olybet.lt
|
||||
0.0.0.0 omniacasino.com
|
||||
0.0.0.0 onetpedia.net
|
||||
0.0.0.0 online.caliente.mx
|
||||
@@ -1003,6 +1023,7 @@
|
||||
0.0.0.0 opap.gr
|
||||
0.0.0.0 opcrates.com
|
||||
0.0.0.0 optibet.com
|
||||
0.0.0.0 optibet.lt
|
||||
0.0.0.0 optionsports.com
|
||||
0.0.0.0 orakulas.lt
|
||||
0.0.0.0 orlandocasino.com
|
||||
@@ -1021,6 +1042,7 @@
|
||||
0.0.0.0 paradisewin.com
|
||||
0.0.0.0 parasino.com
|
||||
0.0.0.0 parimatch.com
|
||||
0.0.0.0 partycasino.lt
|
||||
0.0.0.0 partypoker.cz
|
||||
0.0.0.0 pasarbola.com
|
||||
0.0.0.0 pelaa.com
|
||||
@@ -1037,6 +1059,7 @@
|
||||
0.0.0.0 playojo.com
|
||||
0.0.0.0 playolg.ca
|
||||
0.0.0.0 playtech.com
|
||||
0.0.0.0 placard.pt
|
||||
0.0.0.0 plexodds.com
|
||||
0.0.0.0 plus.betway.com
|
||||
0.0.0.0 pocketvegas.co.uk
|
||||
@@ -1103,6 +1126,8 @@
|
||||
0.0.0.0 royrichie.com
|
||||
0.0.0.0 rubet.com
|
||||
0.0.0.0 rush777.com
|
||||
0.0.0.0 ru.cbet.lt
|
||||
0.0.0.0 ru.topsport.lt
|
||||
0.0.0.0 saartoto.de
|
||||
0.0.0.0 sachsenlotto.de
|
||||
0.0.0.0 safaribet.com.gh
|
||||
@@ -1160,6 +1185,7 @@
|
||||
0.0.0.0 socalsportbook.com
|
||||
0.0.0.0 society.gg
|
||||
0.0.0.0 softbet.eu
|
||||
0.0.0.0 solverde.pt
|
||||
0.0.0.0 speedybet.com
|
||||
0.0.0.0 spela.com
|
||||
0.0.0.0 spindipity.com
|
||||
@@ -1255,6 +1281,7 @@
|
||||
0.0.0.0 tabgold.co.za
|
||||
0.0.0.0 taiwanlottery.com.tw
|
||||
0.0.0.0 takarakuji-official.jp
|
||||
0.0.0.0 tatkazino.lt
|
||||
0.0.0.0 tatts.com
|
||||
0.0.0.0 templenile.com
|
||||
0.0.0.0 tempobet.com
|
||||
@@ -1287,6 +1314,7 @@
|
||||
0.0.0.0 topodds.com.au
|
||||
0.0.0.0 topplay.cc
|
||||
0.0.0.0 topsport.com.au
|
||||
0.0.0.0 topsport.lt
|
||||
0.0.0.0 topsportwetten.com
|
||||
0.0.0.0 topwin.cc
|
||||
0.0.0.0 totalbets.com
|
||||
@@ -1343,6 +1371,7 @@
|
||||
0.0.0.0 wap.moneyyellow.com
|
||||
0.0.0.0 webbookmakers.com
|
||||
0.0.0.0 webpartners.co
|
||||
0.0.0.0 welcome.olybet.lt
|
||||
0.0.0.0 westlotto.de
|
||||
0.0.0.0 wettpunkt.com
|
||||
0.0.0.0 wgh.ag
|
||||
@@ -1405,6 +1434,7 @@
|
||||
0.0.0.0 www.724sports.com
|
||||
0.0.0.0 www.777.com
|
||||
0.0.0.0 www.7777.bg
|
||||
0.0.0.0 www.7bet.lt
|
||||
0.0.0.0 www.7epta7.com
|
||||
0.0.0.0 www.7godscasino.com
|
||||
0.0.0.0 www.7jackpots.com
|
||||
@@ -1578,6 +1608,7 @@
|
||||
0.0.0.0 www.bets10go.com
|
||||
0.0.0.0 www.bets4all.com
|
||||
0.0.0.0 www.betsafe.com
|
||||
0.0.0.0 www.betsafe.lt
|
||||
0.0.0.0 www.betsbc.com
|
||||
0.0.0.0 www.betsbi.com
|
||||
0.0.0.0 www.betser.com
|
||||
@@ -1690,6 +1721,7 @@
|
||||
0.0.0.0 www.casinotown.se
|
||||
0.0.0.0 www.casinsi.com
|
||||
0.0.0.0 www.casumo.com
|
||||
0.0.0.0 www.cbet.lt
|
||||
0.0.0.0 www.cbmsport.com
|
||||
0.0.0.0 www.cc898.com
|
||||
0.0.0.0 www.celebbingo.com
|
||||
@@ -2080,6 +2112,7 @@
|
||||
0.0.0.0 www.loterie.ma
|
||||
0.0.0.0 www.loteries.lotoquebec.com
|
||||
0.0.0.0 www.loterija.si
|
||||
0.0.0.0 www.loto.lt
|
||||
0.0.0.0 www.loto.mk
|
||||
0.0.0.0 www.loto.ro
|
||||
0.0.0.0 www.lotoquebec.com
|
||||
@@ -2252,12 +2285,14 @@
|
||||
0.0.0.0 www.olimp.com
|
||||
0.0.0.0 www.olybet.com
|
||||
0.0.0.0 www.olybet.eu
|
||||
0.0.0.0 www.olybet.lt
|
||||
0.0.0.0 www.omniacasino.com
|
||||
0.0.0.0 www.online.singaporepools.com
|
||||
0.0.0.0 www.onlywinners.com
|
||||
0.0.0.0 www.opap.gr
|
||||
0.0.0.0 www.opcrates.com
|
||||
0.0.0.0 www.optibet.com
|
||||
0.0.0.0 www.optibet.lt
|
||||
0.0.0.0 www.optionsports.com
|
||||
0.0.0.0 www.orakulas.lt
|
||||
0.0.0.0 www.orlandocasino.com
|
||||
@@ -2273,6 +2308,7 @@
|
||||
0.0.0.0 www.parasino.com
|
||||
0.0.0.0 www.parimatch.com
|
||||
0.0.0.0 www.parimatchplay1.com
|
||||
0.0.0.0 www.partycasino.lt
|
||||
0.0.0.0 www.partypoker.cz
|
||||
0.0.0.0 www.pasarbola.com
|
||||
0.0.0.0 www.pinnacle.com
|
||||
@@ -2297,6 +2333,7 @@
|
||||
0.0.0.0 www.pokerstars.cz
|
||||
0.0.0.0 www.pokerstars.eu
|
||||
0.0.0.0 www.pokerstars.uk
|
||||
0.0.0.0 www.pokerstars.pt
|
||||
0.0.0.0 www.pokerstarscasino.uk
|
||||
0.0.0.0 www.portail.lotoquebec.com
|
||||
0.0.0.0 www.postcodeloterij.nl
|
||||
@@ -2464,6 +2501,7 @@
|
||||
0.0.0.0 www.tabgold.co.za
|
||||
0.0.0.0 www.taiwanlottery.com.tw
|
||||
0.0.0.0 www.takarakuji-official.jp
|
||||
0.0.0.0 www.tatkazino.lt
|
||||
0.0.0.0 www.tempobet.com
|
||||
0.0.0.0 www.texascasino.com
|
||||
0.0.0.0 www.thebetarena.com
|
||||
@@ -2489,6 +2527,7 @@
|
||||
0.0.0.0 www.topodds.com.au
|
||||
0.0.0.0 www.topplay.cc
|
||||
0.0.0.0 www.topsport.com.au
|
||||
0.0.0.0 www.topsport.lt
|
||||
0.0.0.0 www.topsportwetten.com
|
||||
0.0.0.0 www.topwin.cc
|
||||
0.0.0.0 www.totalbets.com
|
||||
@@ -2581,3 +2620,6 @@
|
||||
0.0.0.0 zetpoker.eu
|
||||
0.0.0.0 zodiacu.com
|
||||
0.0.0.0 zpisportbk.com
|
||||
0.0.0.0 www.draftkings.com
|
||||
0.0.0.0 luckia.pt
|
||||
0.0.0.0 luckylandslots.com
|
||||
@@ -1,7 +1,7 @@
|
||||
# Title: hostsVN Adult
|
||||
# Last modified: 24 May 2023 10:04 UTC+7
|
||||
# Version: 2305241004
|
||||
# Blocked: 3,405 domains
|
||||
# Last modified: 05 Jan 2024 15:52 UTC+7
|
||||
# Version: 2401051552
|
||||
# Blocked: 3,412 domains
|
||||
# Only include adult domains (Vietnamese language)
|
||||
# Homepage: https://bigdargon.github.io/hostsVN/
|
||||
# GitHub: https://github.com/bigdargon/hostsVN
|
||||
@@ -22,10 +22,12 @@
|
||||
0.0.0.0 12hdem.com
|
||||
0.0.0.0 1phimsex.vip
|
||||
0.0.0.0 1pondohd.com
|
||||
0.0.0.0 2089.vntopg88.live
|
||||
0.0.0.0 210vn.net
|
||||
0.0.0.0 247live.mobi
|
||||
0.0.0.0 24hchudu.com
|
||||
0.0.0.0 24hphimsex.com
|
||||
0.0.0.0 28363.one
|
||||
0.0.0.0 2jav.net
|
||||
0.0.0.0 2ola.pro
|
||||
0.0.0.0 303cc.xyz
|
||||
@@ -59,7 +61,6 @@
|
||||
0.0.0.0 999live.pro
|
||||
0.0.0.0 9lxx.com
|
||||
0.0.0.0 9xlove.xyz
|
||||
0.0.0.0 a444.live
|
||||
0.0.0.0 adultepic.com
|
||||
0.0.0.0 alkux.com
|
||||
0.0.0.0 allx.tube
|
||||
@@ -71,11 +72,9 @@
|
||||
0.0.0.0 alohi.xyz
|
||||
0.0.0.0 aloyeu.com
|
||||
0.0.0.0 amurz.com
|
||||
0.0.0.0 anhgaihotnhat.blogspot.com
|
||||
0.0.0.0 anhgainude.com
|
||||
0.0.0.0 anhgaisexy.com
|
||||
0.0.0.0 anhgaixinh.us
|
||||
0.0.0.0 anhgaixinh.vip
|
||||
0.0.0.0 anhjavdep.blogspot.com
|
||||
0.0.0.0 anhlondep.xyz
|
||||
0.0.0.0 anhmodel.com
|
||||
@@ -87,14 +86,12 @@
|
||||
0.0.0.0 anhsex18.net
|
||||
0.0.0.0 anhsex18.top
|
||||
0.0.0.0 anhsexjav.xyz
|
||||
0.0.0.0 anhsexvietnam.com
|
||||
0.0.0.0 anhsexvip.me
|
||||
0.0.0.0 anhsexvip.net
|
||||
0.0.0.0 anhsexy69.com
|
||||
0.0.0.0 anhvl.net
|
||||
0.0.0.0 anhx.net
|
||||
0.0.0.0 antonstepanok.com
|
||||
0.0.0.0 app-live567.com
|
||||
0.0.0.0 app567lives.com
|
||||
0.0.0.0 appchichlive.top
|
||||
0.0.0.0 appgaixinh.com
|
||||
@@ -110,7 +107,6 @@
|
||||
0.0.0.0 badtopsex.com
|
||||
0.0.0.0 bantinh.xyz
|
||||
0.0.0.0 bb11.live
|
||||
0.0.0.0 bblive.fun
|
||||
0.0.0.0 bblive.org
|
||||
0.0.0.0 bblive17.vip
|
||||
0.0.0.0 bblive6.vip
|
||||
@@ -129,6 +125,7 @@
|
||||
0.0.0.0 buom.tv
|
||||
0.0.0.0 buomdep.pro
|
||||
0.0.0.0 buomsex.com
|
||||
0.0.0.0 buomtv.tv
|
||||
0.0.0.0 buomxinh.org
|
||||
0.0.0.0 bupbetinhduc.co
|
||||
0.0.0.0 bupnhau.com
|
||||
@@ -138,23 +135,25 @@
|
||||
0.0.0.0 cavekiemdinh.xyz
|
||||
0.0.0.0 caysex.net
|
||||
0.0.0.0 cbhentai.one
|
||||
0.0.0.0 cbhentai.xyz
|
||||
0.0.0.0 cd-taxi.com
|
||||
0.0.0.0 cdn.hencb.top
|
||||
0.0.0.0 cdn.hentaicb.xyz
|
||||
0.0.0.0 cdn.khosex.me
|
||||
0.0.0.0 cdn.manhwa24hs.com
|
||||
0.0.0.0 cdn2.seaporn.net
|
||||
0.0.0.0 changtrai.net
|
||||
0.0.0.0 chanheo.com
|
||||
0.0.0.0 chanrau.cc
|
||||
0.0.0.0 checkerfc.xyz
|
||||
0.0.0.0 checkerviet.bet
|
||||
0.0.0.0 checkerviet.bid
|
||||
0.0.0.0 checkerviet.bz
|
||||
0.0.0.0 checkerviet.fan
|
||||
0.0.0.0 checkerviet.fun
|
||||
0.0.0.0 checkerviet.one
|
||||
0.0.0.0 checkgai.org
|
||||
0.0.0.0 checkgaigoi.blogspot.com
|
||||
0.0.0.0 checkgaigoi.cc
|
||||
0.0.0.0 checkgaigoi.co
|
||||
0.0.0.0 checkgaigoi.info
|
||||
0.0.0.0 checkgaigoi.one
|
||||
0.0.0.0 checkgaigoi.tv
|
||||
0.0.0.0 checkgaigoi.us
|
||||
0.0.0.0 checkgaigoi.xyz
|
||||
0.0.0.0 checkgaiviet.com
|
||||
@@ -166,12 +165,10 @@
|
||||
0.0.0.0 chich.live
|
||||
0.0.0.0 chich.mobi
|
||||
0.0.0.0 chich.pro
|
||||
0.0.0.0 chich.vnzb8.com
|
||||
0.0.0.0 chich.xyz
|
||||
0.0.0.0 chich3x.net
|
||||
0.0.0.0 chichchichchich.com
|
||||
0.0.0.0 chichgaixinh.com
|
||||
0.0.0.0 chichlive.app
|
||||
0.0.0.0 chichlive.biz
|
||||
0.0.0.0 chichlive.club
|
||||
0.0.0.0 chichlive.com
|
||||
@@ -195,7 +192,6 @@
|
||||
0.0.0.0 choiemdi.com
|
||||
0.0.0.0 choigai.xyz
|
||||
0.0.0.0 choigaigoi.com
|
||||
0.0.0.0 choigaingon.xyz
|
||||
0.0.0.0 choitrai.com
|
||||
0.0.0.0 choitrai.net
|
||||
0.0.0.0 chuoito.com
|
||||
@@ -242,7 +238,6 @@
|
||||
0.0.0.0 clipnong.me
|
||||
0.0.0.0 clipnong.mobi
|
||||
0.0.0.0 clipnong.online
|
||||
0.0.0.0 clipnong.pro
|
||||
0.0.0.0 clipnong.video
|
||||
0.0.0.0 clipnong.xyz
|
||||
0.0.0.0 clipnong18.com
|
||||
@@ -272,8 +267,6 @@
|
||||
0.0.0.0 clipsexvn.me
|
||||
0.0.0.0 clipsexvn.net
|
||||
0.0.0.0 clipsexvn.org
|
||||
0.0.0.0 clipsexvn.xyz
|
||||
0.0.0.0 clipsexx.com
|
||||
0.0.0.0 clipsexx.net
|
||||
0.0.0.0 clipshowhang.xyz
|
||||
0.0.0.0 cliptrongngay.com
|
||||
@@ -322,10 +315,10 @@
|
||||
0.0.0.0 damvlerz.com
|
||||
0.0.0.0 damvodoi.com
|
||||
0.0.0.0 danchoihot.com
|
||||
0.0.0.0 daoxinh.bio
|
||||
0.0.0.0 demnay.com
|
||||
0.0.0.0 dep3x.pro
|
||||
0.0.0.0 diendanjav.com
|
||||
0.0.0.0 ditcucmanh.xyz
|
||||
0.0.0.0 ditdu.com
|
||||
0.0.0.0 ditem.sbs
|
||||
0.0.0.0 ditgai.club
|
||||
@@ -356,11 +349,9 @@
|
||||
0.0.0.0 ditnhauvietnam.com
|
||||
0.0.0.0 ditnhauz.com
|
||||
0.0.0.0 ditnhauz.net
|
||||
0.0.0.0 ditphim.com
|
||||
0.0.0.0 dl.bb11.live
|
||||
0.0.0.0 dmhentai.net
|
||||
0.0.0.0 dmsex.net
|
||||
0.0.0.0 doctruyen.biz
|
||||
0.0.0.0 doctruyen14x.com
|
||||
0.0.0.0 doctruyennguoilonhay.blogspot.com
|
||||
0.0.0.0 doctruyennguoilonvl.wordpress.com
|
||||
@@ -399,7 +390,6 @@
|
||||
0.0.0.0 faggai.pro
|
||||
0.0.0.0 fanpay.org
|
||||
0.0.0.0 fap18.net
|
||||
0.0.0.0 fapviet.com
|
||||
0.0.0.0 file.dp568phim.com
|
||||
0.0.0.0 file.mm1cloud.com
|
||||
0.0.0.0 film18.pro
|
||||
@@ -413,7 +403,6 @@
|
||||
0.0.0.0 gai35.com
|
||||
0.0.0.0 gai3s.net
|
||||
0.0.0.0 gai3x.com
|
||||
0.0.0.0 gai88.xyz
|
||||
0.0.0.0 gaicaocap.link
|
||||
0.0.0.0 gaicaocap.xyz
|
||||
0.0.0.0 gaichanh.co
|
||||
@@ -421,7 +410,6 @@
|
||||
0.0.0.0 gaidam.host
|
||||
0.0.0.0 gaidam.in
|
||||
0.0.0.0 gaidam.link
|
||||
0.0.0.0 gaidam.net
|
||||
0.0.0.0 gaidam.org
|
||||
0.0.0.0 gaidam.pro
|
||||
0.0.0.0 gaidam.site
|
||||
@@ -432,7 +420,6 @@
|
||||
0.0.0.0 gaidanang.fun
|
||||
0.0.0.0 gaidanang.in
|
||||
0.0.0.0 gaidanang.link
|
||||
0.0.0.0 gaidanang2022.website
|
||||
0.0.0.0 gaidep.pro
|
||||
0.0.0.0 gaidephanoi.xyz
|
||||
0.0.0.0 gaidepvietnam.com
|
||||
@@ -440,29 +427,22 @@
|
||||
0.0.0.0 gaidepvn.xyz
|
||||
0.0.0.0 gaidikhach.xyz
|
||||
0.0.0.0 gaigoi.app
|
||||
0.0.0.0 gaigoi.art
|
||||
0.0.0.0 gaigoi.icu
|
||||
0.0.0.0 gaigoi.link
|
||||
0.0.0.0 gaigoi.live
|
||||
0.0.0.0 gaigoi.news
|
||||
0.0.0.0 gaigoi18.biz
|
||||
0.0.0.0 gaigoi18.pro
|
||||
0.0.0.0 gaigoi18.site
|
||||
0.0.0.0 gaigoi24h.net
|
||||
0.0.0.0 gaigoi33.xyz
|
||||
0.0.0.0 gaigoi3m.xyz
|
||||
0.0.0.0 gaigoi3mien.xyz
|
||||
0.0.0.0 gaigoi9.com
|
||||
0.0.0.0 gaigoialo.com
|
||||
0.0.0.0 gaigoiangiang.xyz
|
||||
0.0.0.0 gaigoiaz.xyz
|
||||
0.0.0.0 gaigoibaclieu.xyz
|
||||
0.0.0.0 gaigoibamien.us
|
||||
0.0.0.0 gaigoibentre.xyz
|
||||
0.0.0.0 gaigoibienhoadongnai.xyz
|
||||
0.0.0.0 gaigoicamau.xyz
|
||||
0.0.0.0 gaigoicantho.xyz
|
||||
0.0.0.0 gaigoicaocap.xyz
|
||||
0.0.0.0 gaigoicave.xyz
|
||||
0.0.0.0 gaigoidalat.xyz
|
||||
0.0.0.0 gaigoidanang.link
|
||||
@@ -471,7 +451,6 @@
|
||||
0.0.0.0 gaigoidananghot.com
|
||||
0.0.0.0 gaigoidananghot.net
|
||||
0.0.0.0 gaigoidananghot.xyz
|
||||
0.0.0.0 gaigoidem.com
|
||||
0.0.0.0 gaigoidep.info
|
||||
0.0.0.0 gaigoidep.org
|
||||
0.0.0.0 gaigoidep.pro
|
||||
@@ -520,7 +499,6 @@
|
||||
0.0.0.0 gaigoisinhvien.xyz
|
||||
0.0.0.0 gaigoisoctrang.xyz
|
||||
0.0.0.0 gaigoitayninh.xyz
|
||||
0.0.0.0 gaigoiteen.xyz
|
||||
0.0.0.0 gaigoitelegram.xyz
|
||||
0.0.0.0 gaigoitiengiang.xyz
|
||||
0.0.0.0 gaigoitop.xyz
|
||||
@@ -529,7 +507,6 @@
|
||||
0.0.0.0 gaigoituoi18.link
|
||||
0.0.0.0 gaigoituoi18.xyz
|
||||
0.0.0.0 gaigoiviet.info
|
||||
0.0.0.0 gaigoiviet.us
|
||||
0.0.0.0 gaigoivinhlong.xyz
|
||||
0.0.0.0 gaigoivip.info
|
||||
0.0.0.0 gaigoivip.live
|
||||
@@ -600,7 +577,6 @@
|
||||
0.0.0.0 gaixinh.space
|
||||
0.0.0.0 gaixinh.us
|
||||
0.0.0.0 gaixinh.vipvn.net
|
||||
0.0.0.0 gaixinh.xyz
|
||||
0.0.0.0 gaixinh18.info
|
||||
0.0.0.0 gaixinh18.zalovn.net
|
||||
0.0.0.0 gaixinh24h.xyz
|
||||
@@ -613,20 +589,15 @@
|
||||
0.0.0.0 gaixinhgiare.com
|
||||
0.0.0.0 gaixinhhenho.com
|
||||
0.0.0.0 gaixinhkhoehang.com
|
||||
0.0.0.0 gaixinhngon.com
|
||||
0.0.0.0 gaixinhonline.com
|
||||
0.0.0.0 gaixinhshowhang.online
|
||||
0.0.0.0 gaixinhthudam.net
|
||||
0.0.0.0 gaixinhvip.com
|
||||
0.0.0.0 gaizin.xyz
|
||||
0.0.0.0 gay3x.top
|
||||
0.0.0.0 gay3x.tv
|
||||
0.0.0.0 gaycan.pro
|
||||
0.0.0.0 gayhd.tv
|
||||
0.0.0.0 gaysex69.net
|
||||
0.0.0.0 ggvn.xyz
|
||||
0.0.0.0 ghepdoi.site
|
||||
0.0.0.0 giaitriviet.click
|
||||
0.0.0.0 girl3x.xyz
|
||||
0.0.0.0 girlkiemdinh.link
|
||||
0.0.0.0 girlkiemdinh.xyz
|
||||
@@ -636,15 +607,9 @@
|
||||
0.0.0.0 gockhuat.net
|
||||
0.0.0.0 gocquaytay.com
|
||||
0.0.0.0 goctoi.xyz
|
||||
0.0.0.0 goigai18.xyz
|
||||
0.0.0.0 goigai24.xyz
|
||||
0.0.0.0 goigai2k.xyz
|
||||
0.0.0.0 goigai3m.xyz
|
||||
0.0.0.0 goigaicaocap.xyz
|
||||
0.0.0.0 goigaidep.xyz
|
||||
0.0.0.0 goigainhanh.xyz
|
||||
0.0.0.0 goigaire.xyz
|
||||
0.0.0.0 goigaisv.xyz
|
||||
0.0.0.0 goikieu.org
|
||||
0.0.0.0 gvnvh18.com
|
||||
0.0.0.0 gwweb.xyz
|
||||
@@ -676,6 +641,7 @@
|
||||
0.0.0.0 hencb.top
|
||||
0.0.0.0 henho.cucvui.com
|
||||
0.0.0.0 henho.us
|
||||
0.0.0.0 henho.vip
|
||||
0.0.0.0 henho247.xyz
|
||||
0.0.0.0 henho24az.xyz
|
||||
0.0.0.0 henho24h.com
|
||||
@@ -701,6 +667,7 @@
|
||||
0.0.0.0 hentaivl.vip
|
||||
0.0.0.0 hentaivlv.com
|
||||
0.0.0.0 hentaivlz.com
|
||||
0.0.0.0 hentaivn.autos
|
||||
0.0.0.0 hentaivn.cc
|
||||
0.0.0.0 hentaivn.com
|
||||
0.0.0.0 hentaivn.de
|
||||
@@ -765,6 +732,7 @@
|
||||
0.0.0.0 heovl.net
|
||||
0.0.0.0 heovl.tv
|
||||
0.0.0.0 heovl1.com
|
||||
0.0.0.0 heovl1.net
|
||||
0.0.0.0 heozz.net
|
||||
0.0.0.0 heyzo.pro
|
||||
0.0.0.0 hhentai.net
|
||||
@@ -813,6 +781,7 @@
|
||||
0.0.0.0 jav789.tv
|
||||
0.0.0.0 jav99.biz
|
||||
0.0.0.0 javabc.com
|
||||
0.0.0.0 javagv.biz
|
||||
0.0.0.0 javbiz.net
|
||||
0.0.0.0 javdemz.com
|
||||
0.0.0.0 javdep.com
|
||||
@@ -830,6 +799,7 @@
|
||||
0.0.0.0 javhay.co
|
||||
0.0.0.0 javhay.cyou
|
||||
0.0.0.0 javhay.media
|
||||
0.0.0.0 javhay.movie
|
||||
0.0.0.0 javhay.one
|
||||
0.0.0.0 javhay.online
|
||||
0.0.0.0 javhay.org
|
||||
@@ -850,6 +820,7 @@
|
||||
0.0.0.0 javhd.contact
|
||||
0.0.0.0 javhd.im
|
||||
0.0.0.0 javhd.lol
|
||||
0.0.0.0 javhd.moe
|
||||
0.0.0.0 javhd.news
|
||||
0.0.0.0 javhd.ninja
|
||||
0.0.0.0 javhd.page
|
||||
@@ -860,6 +831,7 @@
|
||||
0.0.0.0 javhdhay.me
|
||||
0.0.0.0 javhdhayz.com
|
||||
0.0.0.0 javhdhayz.net
|
||||
0.0.0.0 javhdhayz.pro
|
||||
0.0.0.0 javhdkhongche.com
|
||||
0.0.0.0 javhdpro.org
|
||||
0.0.0.0 javhdvd.net
|
||||
@@ -948,6 +920,7 @@
|
||||
0.0.0.0 kenhjav.pro
|
||||
0.0.0.0 kenhporn.xyz
|
||||
0.0.0.0 kenhsex.net
|
||||
0.0.0.0 kenhvitamin.com
|
||||
0.0.0.0 kenxxx.com
|
||||
0.0.0.0 ketban24h.xyz
|
||||
0.0.0.0 ketdoi.net
|
||||
@@ -982,6 +955,7 @@
|
||||
0.0.0.0 kieunuvadaigia.xyz
|
||||
0.0.0.0 kieunuviet.xyz
|
||||
0.0.0.0 kphimsex.xyz
|
||||
0.0.0.0 ktv.bio
|
||||
0.0.0.0 kute3x.net
|
||||
0.0.0.0 kynu.live
|
||||
0.0.0.0 kynudanang.link
|
||||
@@ -1066,6 +1040,7 @@
|
||||
0.0.0.0 manhwa24h.com
|
||||
0.0.0.0 manhwa24hs.com
|
||||
0.0.0.0 manhwa24hz.com
|
||||
0.0.0.0 manhwavn.com
|
||||
0.0.0.0 manquynh.com
|
||||
0.0.0.0 manquynh.net
|
||||
0.0.0.0 manquynh1.com
|
||||
@@ -1098,8 +1073,10 @@
|
||||
0.0.0.0 mekiep.pro
|
||||
0.0.0.0 mephimsex.com
|
||||
0.0.0.0 mesex.pro
|
||||
0.0.0.0 mhuu6.wiki
|
||||
0.0.0.0 migraine-aura.com
|
||||
0.0.0.0 milive.fun
|
||||
0.0.0.0 minosa68.com
|
||||
0.0.0.0 miuxinh.art
|
||||
0.0.0.0 mlem.live
|
||||
0.0.0.0 mm.mm1cloud.com
|
||||
@@ -1957,6 +1934,7 @@
|
||||
0.0.0.0 rauvn.net
|
||||
0.0.0.0 reviewxx.net
|
||||
0.0.0.0 ribaysteak.ru
|
||||
0.0.0.0 rphang.cc
|
||||
0.0.0.0 rphang.online
|
||||
0.0.0.0 rphangcdn.com
|
||||
0.0.0.0 rphangs.net
|
||||
@@ -2338,6 +2316,7 @@
|
||||
0.0.0.0 sexsung.com
|
||||
0.0.0.0 sexsuong.net
|
||||
0.0.0.0 sext.pro
|
||||
0.0.0.0 sexthailan.com
|
||||
0.0.0.0 sexthu.top
|
||||
0.0.0.0 sexthudam.pro
|
||||
0.0.0.0 sexthudam.top
|
||||
@@ -2349,6 +2328,7 @@
|
||||
0.0.0.0 sextop.tv
|
||||
0.0.0.0 sextop1.app
|
||||
0.0.0.0 sextop1.best
|
||||
0.0.0.0 sextop1.bio
|
||||
0.0.0.0 sextop1.club
|
||||
0.0.0.0 sextop1.dev
|
||||
0.0.0.0 sextop1.fun
|
||||
@@ -2364,6 +2344,7 @@
|
||||
0.0.0.0 sextop123.com
|
||||
0.0.0.0 sextop18.org
|
||||
0.0.0.0 sextop18.plus
|
||||
0.0.0.0 sextop1jav.info
|
||||
0.0.0.0 sextop1jav.net
|
||||
0.0.0.0 sextop1s.net
|
||||
0.0.0.0 sextop1x.com
|
||||
@@ -2525,6 +2506,7 @@
|
||||
0.0.0.0 sieukhungz.net
|
||||
0.0.0.0 sieukhungzz.net
|
||||
0.0.0.0 sieusexpro.com
|
||||
0.0.0.0 sieuthigai.cc
|
||||
0.0.0.0 sieuthitruyen.com
|
||||
0.0.0.0 sinhvienngon.biz
|
||||
0.0.0.0 socvl.net
|
||||
@@ -2580,6 +2562,7 @@
|
||||
0.0.0.0 thiendia.club
|
||||
0.0.0.0 thiendia.com
|
||||
0.0.0.0 thiendia.uk
|
||||
0.0.0.0 thiendia1.com
|
||||
0.0.0.0 thiendia88.org
|
||||
0.0.0.0 thiendia99.co
|
||||
0.0.0.0 thiendia99.net
|
||||
@@ -2621,6 +2604,7 @@
|
||||
0.0.0.0 topapp.vin
|
||||
0.0.0.0 topapplive.com
|
||||
0.0.0.0 topbot.pro
|
||||
0.0.0.0 topg88.live
|
||||
0.0.0.0 topgaigoi.us
|
||||
0.0.0.0 topgaixinh.com
|
||||
0.0.0.0 topgaixinh.net
|
||||
@@ -2871,33 +2855,42 @@
|
||||
0.0.0.0 vlxx.ac
|
||||
0.0.0.0 vlxx.ai
|
||||
0.0.0.0 vlxx.bet
|
||||
0.0.0.0 vlxx.bio
|
||||
0.0.0.0 vlxx.blue
|
||||
0.0.0.0 vlxx.buzz
|
||||
0.0.0.0 vlxx.cc
|
||||
0.0.0.0 vlxx.chat
|
||||
0.0.0.0 vlxx.city
|
||||
0.0.0.0 vlxx.club
|
||||
0.0.0.0 vlxx.cm
|
||||
0.0.0.0 vlxx.com.co
|
||||
0.0.0.0 vlxx.contact
|
||||
0.0.0.0 vlxx.cyou
|
||||
0.0.0.0 vlxx.day
|
||||
0.0.0.0 vlxx.fan
|
||||
0.0.0.0 vlxx.fun
|
||||
0.0.0.0 vlxx.gay
|
||||
0.0.0.0 vlxx.group
|
||||
0.0.0.0 vlxx.homes
|
||||
0.0.0.0 vlxx.icu
|
||||
0.0.0.0 vlxx.info
|
||||
0.0.0.0 vlxx.io
|
||||
0.0.0.0 vlxx.kim
|
||||
0.0.0.0 vlxx.la
|
||||
0.0.0.0 vlxx.lat
|
||||
0.0.0.0 vlxx.live
|
||||
0.0.0.0 vlxx.me
|
||||
0.0.0.0 vlxx.media
|
||||
0.0.0.0 vlxx.men
|
||||
0.0.0.0 vlxx.mobi
|
||||
0.0.0.0 vlxx.moe
|
||||
0.0.0.0 vlxx.network
|
||||
0.0.0.0 vlxx.pw
|
||||
0.0.0.0 vlxx.rocks
|
||||
0.0.0.0 vlxx.run
|
||||
0.0.0.0 vlxx.sbs
|
||||
0.0.0.0 vlxx.sex
|
||||
0.0.0.0 vlxx.social
|
||||
0.0.0.0 vlxx.space
|
||||
0.0.0.0 vlxx.store
|
||||
0.0.0.0 vlxx.studio
|
||||
@@ -2905,6 +2898,8 @@
|
||||
0.0.0.0 vlxx.today
|
||||
0.0.0.0 vlxx.tube
|
||||
0.0.0.0 vlxx.tv
|
||||
0.0.0.0 vlxx.tw
|
||||
0.0.0.0 vlxx.uk
|
||||
0.0.0.0 vlxx.uno
|
||||
0.0.0.0 vlxx.vip
|
||||
0.0.0.0 vlxx.wiki
|
||||
@@ -2930,6 +2925,7 @@
|
||||
0.0.0.0 vlxxphim.pro
|
||||
0.0.0.0 vlxxs.net
|
||||
0.0.0.0 vlxxsex.com
|
||||
0.0.0.0 vlxxsex.vip
|
||||
0.0.0.0 vlxxsub.net
|
||||
0.0.0.0 vlxxtop.com
|
||||
0.0.0.0 vlxxtube.cc
|
||||
@@ -2963,6 +2959,7 @@
|
||||
0.0.0.0 vn.sexviet88.top
|
||||
0.0.0.0 vn.viet69.chat
|
||||
0.0.0.0 vn.vlxxtube.cc
|
||||
0.0.0.0 vn.websex.tube
|
||||
0.0.0.0 vn3x.me
|
||||
0.0.0.0 vnanchoi.ca
|
||||
0.0.0.0 vnchich.com
|
||||
@@ -2974,6 +2971,8 @@
|
||||
0.0.0.0 vnok.net
|
||||
0.0.0.0 vnphimsex.info
|
||||
0.0.0.0 vnshow.cc
|
||||
0.0.0.0 vntopg88.live
|
||||
0.0.0.0 vntopg88.vip
|
||||
0.0.0.0 vnxnxx.cc
|
||||
0.0.0.0 vnxnxx.pro
|
||||
0.0.0.0 vnxnxx.xyz
|
||||
@@ -2997,6 +2996,7 @@
|
||||
0.0.0.0 vuianime.tv
|
||||
0.0.0.0 vuighe.net
|
||||
0.0.0.0 vuisex.net
|
||||
0.0.0.0 vznalvek.com
|
||||
0.0.0.0 w1.sextop1.life
|
||||
0.0.0.0 wap3xdep.sextgem.com
|
||||
0.0.0.0 wapsex.wordpress.com
|
||||
@@ -3037,6 +3037,7 @@
|
||||
0.0.0.0 www.anhsex18.com
|
||||
0.0.0.0 www.anhsex18.net
|
||||
0.0.0.0 www.anhsexvip.me
|
||||
0.0.0.0 www.buomtv.tv
|
||||
0.0.0.0 www.phim18k.com
|
||||
0.0.0.0 www.phimsexcom.com
|
||||
0.0.0.0 www.phimsexs.net
|
||||
@@ -3055,6 +3056,7 @@
|
||||
0.0.0.0 www.xnxx.gold
|
||||
0.0.0.0 www.xvideos98.xxx
|
||||
0.0.0.0 www.xxxphim.mobi
|
||||
0.0.0.0 www.yeuu.net
|
||||
0.0.0.0 wwwxxx.pro
|
||||
0.0.0.0 x-video-s.com
|
||||
0.0.0.0 x.phimsec1.pro
|
||||
@@ -3177,6 +3179,7 @@
|
||||
0.0.0.0 xemshow.live
|
||||
0.0.0.0 xemsv.com
|
||||
0.0.0.0 xemtrai.top
|
||||
0.0.0.0 xemvl.com
|
||||
0.0.0.0 xemvlxx.me
|
||||
0.0.0.0 xemxx.info
|
||||
0.0.0.0 xemxx.org
|
||||
@@ -3276,10 +3279,12 @@
|
||||
0.0.0.0 xvideo-phimsex.pro
|
||||
0.0.0.0 xvideo1.site
|
||||
0.0.0.0 xvideo98.com
|
||||
0.0.0.0 xvideos-vlxx.com
|
||||
0.0.0.0 xvideos102.com
|
||||
0.0.0.0 xvideos21.xde.mx
|
||||
0.0.0.0 xvideos3x.net
|
||||
0.0.0.0 xvideos888.net
|
||||
0.0.0.0 xvideos98.pro
|
||||
0.0.0.0 xvideos98.xxx
|
||||
0.0.0.0 xvideosss.com
|
||||
0.0.0.0 xvideosviet.co
|
||||
@@ -3315,6 +3320,7 @@
|
||||
0.0.0.0 xxphap.net
|
||||
0.0.0.0 xxphe.cc
|
||||
0.0.0.0 xxphe.me
|
||||
0.0.0.0 xxphim.cam
|
||||
0.0.0.0 xxphim.club
|
||||
0.0.0.0 xxphim.co
|
||||
0.0.0.0 xxphim.live
|
||||
@@ -3389,6 +3395,7 @@
|
||||
0.0.0.0 yeusex.org
|
||||
0.0.0.0 yeusex.pro
|
||||
0.0.0.0 yeutinhduc.com
|
||||
0.0.0.0 yeuu.net
|
||||
0.0.0.0 ynknc.com
|
||||
0.0.0.0 yo69.me
|
||||
0.0.0.0 yo69.one
|
||||
|
||||
@@ -3662,7 +3662,7 @@ fe80::1%lo0 localhost
|
||||
0.0.0.0 cast13.porngo.com
|
||||
0.0.0.0 cast14.porngo.com
|
||||
0.0.0.0 cast15.porngo.com
|
||||
0.0.0.0 cast.porngo.com.
|
||||
0.0.0.0 cast.porngo.com
|
||||
0.0.0.0 cast.xxxfiles.com
|
||||
0.0.0.0 castingcouch-x.com
|
||||
0.0.0.0 castingcouchxfan.com
|
||||
@@ -20943,7 +20943,6 @@ fe80::1%lo0 localhost
|
||||
0.0.0.0 www.blog-sexo-gratis.blogspot.com
|
||||
0.0.0.0 www.blogsexoverbal.blogspot.com
|
||||
0.0.0.0 www.blogs-list.com
|
||||
0.0.0.0 www.blogspot.com
|
||||
0.0.0.0 www.blog-thegoose.blogspot.com
|
||||
0.0.0.0 www.blogtothepeople.blogspot.com
|
||||
0.0.0.0 www.blogtravestis.blogspot.com
|
||||
|
||||
@@ -23,4 +23,3 @@
|
||||
127.0.0.1 devilpain.com
|
||||
127.0.0.1 crazypain.com
|
||||
127.0.0.1 sadovids.com
|
||||
|
||||
@@ -1738,7 +1738,7 @@
|
||||
127.0.0.1 badges.instagram.com
|
||||
127.0.0.1 black.ish.instagram.com
|
||||
127.0.0.1 business.instagram.com
|
||||
127.0.0.1 c.ns.cdninstagram.com
|
||||
127.0.0.1 c.ns.cdninstagram.com
|
||||
127.0.0.1 cdninstagram.com
|
||||
127.0.0.1 creative.cdninstagram.com
|
||||
127.0.0.1 d.ns.cdninstagram.com
|
||||
@@ -1748,7 +1748,7 @@
|
||||
127.0.0.1 external-vie1-1.cdninstagram.com
|
||||
127.0.0.1 external-waw1-1.cdninstagram.com
|
||||
127.0.0.1 external.cdninstagram.com
|
||||
127.0.0.1 fundingchoicesmessages.google.com
|
||||
127.0.0.1 fundingchoicesmessages.google.com
|
||||
127.0.0.1 help.instagram.com
|
||||
127.0.0.1 i.instagram.com
|
||||
127.0.0.1 images.instagram.com
|
||||
@@ -1931,7 +1931,7 @@
|
||||
127.0.0.1 scontent-frt.cdninstagram.com
|
||||
127.0.0.1 scontent-frt3-1.cdninstagram.com
|
||||
127.0.0.1 scontent-frt3-2.cdninstagram.com
|
||||
127.0.0.1 scontent-frx.cdninstagram.com
|
||||
127.0.0.1 scontent-frx.cdninstagram.com
|
||||
127.0.0.1 scontent-frx5-1.cdninstagram.com
|
||||
127.0.0.1 scontent-gig2-1.cdninstagram.com
|
||||
127.0.0.1 scontent-gmp1-1.cdninstagram.com
|
||||
@@ -2111,8 +2111,7 @@
|
||||
127.0.0.1 z-p42-scontent-waw1-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent-yyz1-1.cdninstagram.com
|
||||
127.0.0.1 z-p42-scontent.cdninstagram.com
|
||||
127.0.0.1 z-p42-static.cdninstagram.com
|
||||
|
||||
127.0.0.1 z-p42-static.cdninstagram.com
|
||||
# Whatsapp
|
||||
127.0.0.1 account.whatsapp.com
|
||||
127.0.0.1 alpha.whatsapp.com
|
||||
@@ -2269,6 +2268,10 @@
|
||||
127.0.0.1 www.whatsapp.com
|
||||
127.0.0.1 wwwl.whatsapp.com
|
||||
|
||||
# Threads
|
||||
127.0.0.1 threads.net
|
||||
127.0.0.1 www.threads.net
|
||||
|
||||
# Twitter
|
||||
127.0.0.1 0.twitter.com
|
||||
127.0.0.1 2010.twitter.com
|
||||
@@ -2386,6 +2389,8 @@
|
||||
127.0.0.1 www.twitter.com
|
||||
127.0.0.1 www2.twitter.com
|
||||
127.0.0.1 www4.twitter.com
|
||||
127.0.0.1 www.x.com
|
||||
127.0.0.1 x.com
|
||||
|
||||
# LinkedIn
|
||||
127.0.0.1 addtoprofile.linkedin.com
|
||||
@@ -2795,7 +2800,7 @@
|
||||
127.0.0.1 www.redditmedia.com
|
||||
127.0.0.1 www.redditstatic.com
|
||||
|
||||
127.0.0.1 pinpages.alwaysdata.net
|
||||
127.0.0.1 pinpages.alwaysdata.net
|
||||
127.0.0.1 allotalk.com
|
||||
|
||||
# TikTok
|
||||
|
||||
@@ -1,45 +1,50 @@
|
||||
{
|
||||
description = "Unified hosts file with base extensions.";
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
outputs = { self, nixpkgs, flake-utils }: {
|
||||
nixosModule = { config, ... }:
|
||||
with nixpkgs.lib;
|
||||
let
|
||||
cfg = config.networking.stevenBlackHosts;
|
||||
alternatesList = (if cfg.blockFakenews then [ "fakenews" ] else []) ++
|
||||
(if cfg.blockGambling then [ "gambling" ] else []) ++
|
||||
(if cfg.blockPorn then [ "porn" ] else []) ++
|
||||
(if cfg.blockSocial then [ "social" ] else []);
|
||||
alternatesPath = "alternates/" + builtins.concatStringsSep "-" alternatesList + "/";
|
||||
in
|
||||
{
|
||||
options.networking.stevenBlackHosts = {
|
||||
enable = mkEnableOption "Use Steven Black's hosts file as extra hosts.";
|
||||
blockFakenews = mkEnableOption "Additionally block fakenews hosts.";
|
||||
blockGambling = mkEnableOption "Additionally block gambling hosts.";
|
||||
blockPorn = mkEnableOption "Additionally block porn hosts.";
|
||||
blockSocial = mkEnableOption "Additionally block social hosts.";
|
||||
outputs = { self, nixpkgs, ... }@inputs:
|
||||
let
|
||||
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.platforms.unix;
|
||||
|
||||
nixpkgsFor = forAllSystems (system: import nixpkgs {
|
||||
inherit system;
|
||||
});
|
||||
in
|
||||
{
|
||||
nixosModule = { config, ... }:
|
||||
with nixpkgs.lib;
|
||||
let
|
||||
cfg = config.networking.stevenBlackHosts;
|
||||
alternatesList = (if cfg.blockFakenews then [ "fakenews" ] else []) ++
|
||||
(if cfg.blockGambling then [ "gambling" ] else []) ++
|
||||
(if cfg.blockPorn then [ "porn" ] else []) ++
|
||||
(if cfg.blockSocial then [ "social" ] else []);
|
||||
alternatesPath = "alternates/" + builtins.concatStringsSep "-" alternatesList + "/";
|
||||
in
|
||||
{
|
||||
options.networking.stevenBlackHosts = {
|
||||
enable = mkEnableOption "Use Steven Black's hosts file as extra hosts.";
|
||||
blockFakenews = mkEnableOption "Additionally block fakenews hosts.";
|
||||
blockGambling = mkEnableOption "Additionally block gambling hosts.";
|
||||
blockPorn = mkEnableOption "Additionally block porn hosts.";
|
||||
blockSocial = mkEnableOption "Additionally block social hosts.";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
networking.extraHosts =
|
||||
builtins.readFile (
|
||||
"${self}/" + (if alternatesList != [] then alternatesPath else "") + "hosts"
|
||||
);
|
||||
};
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
networking.extraHosts =
|
||||
builtins.readFile (
|
||||
"${self}/" + (if alternatesList != [] then alternatesPath else "") + "hosts"
|
||||
);
|
||||
};
|
||||
};
|
||||
} // flake-utils.lib.eachDefaultSystem
|
||||
(system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
devShell = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
python3
|
||||
python3Packages.flake8
|
||||
python3Packages.requests
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
devShells = forAllSystems (system:
|
||||
let pkgs = nixpkgsFor.${system}; in
|
||||
{
|
||||
default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
python3
|
||||
python3Packages.flake8
|
||||
python3Packages.requests
|
||||
];
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 32 KiB |
@@ -53,6 +53,30 @@ def update_readme_file():
|
||||
print_failure("Failed to update readme file")
|
||||
|
||||
|
||||
def recursively_loop_extensions(extension, extensions, current_extensions):
|
||||
"""
|
||||
Helper function that recursively calls itself to prevent manually creating
|
||||
all possible combinations of extensions.
|
||||
|
||||
Will call update_hosts_file for all combinations of extensions
|
||||
"""
|
||||
|
||||
c_extensions = extensions.copy()
|
||||
c_current_extensions = current_extensions.copy()
|
||||
c_current_extensions.append(extension)
|
||||
|
||||
name = "-".join(c_current_extensions)
|
||||
|
||||
params = ("-a", "-n", "-o", "alternates/"+name, "-e") + tuple(c_current_extensions)
|
||||
update_hosts_file(*params)
|
||||
|
||||
params = ("-a", "-n", "-s", "--nounifiedhosts", "-o", "alternates/"+name+"-only", "-e") + tuple(c_current_extensions)
|
||||
update_hosts_file(*params)
|
||||
|
||||
while len(c_extensions) > 0:
|
||||
recursively_loop_extensions(c_extensions.pop(0), c_extensions, c_current_extensions)
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(
|
||||
description="Creates custom hosts "
|
||||
@@ -61,84 +85,15 @@ def main():
|
||||
)
|
||||
parser.parse_args()
|
||||
|
||||
update_hosts_file("-a", "-o", "alternates/gambling", "-e", "gambling")
|
||||
update_hosts_file("-a", "-n", "-o", "alternates/porn", "-e", "porn")
|
||||
update_hosts_file("-a", "-n", "-o", "alternates/social", "-e", "social")
|
||||
update_hosts_file("-a", "-n", "-o", "alternates/fakenews", "-e", "fakenews")
|
||||
# Update the unified hosts file
|
||||
update_hosts_file("-a")
|
||||
|
||||
update_hosts_file(
|
||||
"-a", "-n", "-o", "alternates/fakenews-gambling", "-e", "fakenews", "gambling"
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a", "-n", "-o", "alternates/fakenews-porn", "-e", "fakenews", "porn"
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a", "-n", "-o", "alternates/fakenews-social", "-e", "fakenews", "social"
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a", "-n", "-o", "alternates/gambling-porn", "-e", "gambling", "porn"
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a", "-n", "-o", "alternates/gambling-social", "-e", "gambling", "social"
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a", "-n", "-o", "alternates/porn-social", "-e", "porn", "social"
|
||||
)
|
||||
# List of extensions we want to generate, we will loop over them recursively to prevent manual definitions
|
||||
# Only add new extensions to the end of the array, to avoid relocating existing hosts-files
|
||||
extensions = ["fakenews", "gambling", "porn", "social"]
|
||||
|
||||
update_hosts_file(
|
||||
"-a",
|
||||
"-n",
|
||||
"-o",
|
||||
"alternates/fakenews-gambling-porn",
|
||||
"-e",
|
||||
"fakenews",
|
||||
"gambling",
|
||||
"porn",
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a",
|
||||
"-n",
|
||||
"-o",
|
||||
"alternates/fakenews-gambling-social",
|
||||
"-e",
|
||||
"fakenews",
|
||||
"gambling",
|
||||
"social",
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a",
|
||||
"-n",
|
||||
"-o",
|
||||
"alternates/fakenews-porn-social",
|
||||
"-e",
|
||||
"fakenews",
|
||||
"porn",
|
||||
"social",
|
||||
)
|
||||
update_hosts_file(
|
||||
"-a",
|
||||
"-n",
|
||||
"-o",
|
||||
"alternates/gambling-porn-social",
|
||||
"-e",
|
||||
"gambling",
|
||||
"porn",
|
||||
"social",
|
||||
)
|
||||
|
||||
update_hosts_file(
|
||||
"-a",
|
||||
"-n",
|
||||
"-o",
|
||||
"alternates/fakenews-gambling-porn-social",
|
||||
"-e",
|
||||
"fakenews",
|
||||
"gambling",
|
||||
"porn",
|
||||
"social",
|
||||
)
|
||||
|
||||
update_hosts_file("-a", "-n")
|
||||
while len(extensions) > 0:
|
||||
recursively_loop_extensions(extensions.pop(0), extensions, [])
|
||||
|
||||
# Update the readme files.
|
||||
update_readme_file()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hosts",
|
||||
"version": "3.12.36",
|
||||
"version": "3.14.44",
|
||||
"description": "Extending and consolidating hosts files from several well-curated sources like adaway.org, mvps.org, malwaredomainlist.com, someonewhocares.org, and potentially others. You can optionally invoke extensions to block additional sites by category.",
|
||||
"main": "",
|
||||
"private": true,
|
||||
@@ -35,6 +35,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/StevenBlack/hosts#readme",
|
||||
"devDependencies": {
|
||||
"release-it": "^15.10.1"
|
||||
"release-it": "^16.1.5"
|
||||
}
|
||||
}
|
||||
@@ -30,18 +30,18 @@ files are provided.
|
||||
|
||||

|
||||
|
||||
- Last updated: **May 25 2023**.
|
||||
- Last updated: **January 07 2024**.
|
||||
- Here's the
|
||||
[raw hosts file with base extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts)
|
||||
containing 186,359 entries.
|
||||
[raw hosts file Unified hosts file with base extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts)
|
||||
containing 147,972 entries.
|
||||
|
||||

|
||||
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -49,22 +49,37 @@ with GitHub download links.
|
||||
|
||||
| Host file recipe | Readme | Raw hosts | Unique domains | Non GitHub mirror |
|
||||
| ---------------- | :----: | :-------: | :------------: | :---------------: |
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 186,359 | [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) | 188,553 | [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) | 193,884 | [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) | 234,742 | [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) | 189,183 | [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) | 196,078 | [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) | 236,936 | [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) | 191,377 | [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) | 242,267 | [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) | 196,708 | [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) | 237,565 | [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) | 244,461 | [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) | 198,902 | [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) | 239,759 | [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) | 245,090 | [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) | 247,284 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 147,972 | [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) | 150,166 | [link](http://sbc.io/hosts/alternates/fakenews/hosts)
|
||||
**fakenews** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts) | 2,194 | [link](http://sbc.io/hosts/alternates/fakenews-only/hosts)
|
||||
Unified hosts **+ gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) | 155,871 | [link](http://sbc.io/hosts/alternates/gambling/hosts)
|
||||
**gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-only/hosts) | 7,911 | [link](http://sbc.io/hosts/alternates/gambling-only/hosts)
|
||||
Unified hosts **+ porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) | 203,967 | [link](http://sbc.io/hosts/alternates/porn/hosts)
|
||||
**porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-only/hosts) | 56,636 | [link](http://sbc.io/hosts/alternates/porn-only/hosts)
|
||||
Unified hosts **+ social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) | 150,800 | [link](http://sbc.io/hosts/alternates/social/hosts)
|
||||
**social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social-only/hosts) | 2,845 | [link](http://sbc.io/hosts/alternates/social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) | 158,065 | [link](http://sbc.io/hosts/alternates/fakenews-gambling/hosts)
|
||||
**fakenews + gambling** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-only/hosts) | 10,105 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-only/hosts)
|
||||
Unified hosts **+ fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) | 206,161 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
|
||||
**fakenews + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-only/hosts) | 58,830 | [link](http://sbc.io/hosts/alternates/fakenews-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 152,994 | [link](http://sbc.io/hosts/alternates/fakenews-social/hosts)
|
||||
**fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social-only/hosts) | 5,039 | [link](http://sbc.io/hosts/alternates/fakenews-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) | 211,866 | [link](http://sbc.io/hosts/alternates/gambling-porn/hosts)
|
||||
**gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-only/hosts) | 64,547 | [link](http://sbc.io/hosts/alternates/gambling-porn-only/hosts)
|
||||
Unified hosts **+ gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) | 158,699 | [link](http://sbc.io/hosts/alternates/gambling-social/hosts)
|
||||
**gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social-only/hosts) | 10,756 | [link](http://sbc.io/hosts/alternates/gambling-social-only/hosts)
|
||||
Unified hosts **+ porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) | 206,793 | [link](http://sbc.io/hosts/alternates/porn-social/hosts)
|
||||
**porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social-only/hosts) | 59,479 | [link](http://sbc.io/hosts/alternates/porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) | 214,060 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn/hosts)
|
||||
**fakenews + gambling + porn** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-only/hosts) | 66,741 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) | 160,893 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social/hosts)
|
||||
**fakenews + gambling + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social-only/hosts) | 12,950 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-social-only/hosts)
|
||||
Unified hosts **+ fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) | 208,987 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social/hosts)
|
||||
**fakenews + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social-only/hosts) | 61,673 | [link](http://sbc.io/hosts/alternates/fakenews-porn-social-only/hosts)
|
||||
Unified hosts **+ gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) | 214,692 | [link](http://sbc.io/hosts/alternates/gambling-porn-social/hosts)
|
||||
**gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social-only/hosts) | 67,390 | [link](http://sbc.io/hosts/alternates/gambling-porn-social-only/hosts)
|
||||
Unified hosts **+ fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) | 216,886 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
|
||||
**fakenews + gambling + porn + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-gambling-porn-social-only/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social-only/hosts) | 69,584 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social-only/hosts)
|
||||
|
||||
|
||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||
@@ -184,6 +199,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -247,6 +266,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -480,6 +502,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -638,6 +662,8 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"fakenews-gambling-porn": {"location": "alternates/fakenews-gambling-porn/", "entries": 244461, "sourcesdata": [{"name": "Steven Black's ad-hoc list", "description": "Additional sketch domains as I come across them.", "homeurl": "https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts", "frequency": "occasionally", "issues": "https://github.com/StevenBlack/hosts/issues", "url": "https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts", "license": "MIT"}, {"name": "AdAway", "description": "AdAway is an open source ad blocker for Android using the hosts file.", "homeurl": "https://adaway.org/", "frequency": "frequently", "issues": "https://github.com/AdAway/adaway.github.io/issues", "url": "https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt", "license": "CC BY 3.0", "pause": true}, {"name": "add.2o7Net", "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", "url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts", "license": "MIT"}, {"name": "add.Dead", "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", "url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts", "license": "MIT"}, {"name": "add.Risk", "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", "url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts", "license": "MIT"}, {"name": "add.Spam", "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", "url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts", "license": "MIT"}, {"name": "Mitchell Krog's - Badd Boyz Hosts", "description": "Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers", "homeurl": "https://github.com/mitchellkrogza/Badd-Boyz-Hosts", "frequency": "weekly", "issues": "https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues", "url": "https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts", "license": "MIT"}, {"name": "hostsVN", "description": "Hosts block ads of Vietnamese", "homeurl": "https://github.com/bigdargon/hostsVN", "frequency": "occasionally", "issues": "https://github.com/bigdargon/hostsVN/issues", "url": "https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN", "license": "MIT"}, {"name": "KADhosts", "description": "Fraud/adware/scam websites.", "homeurl": "https://kadantiscam.netlify.app/", "frequency": "frequently", "issues": "https://github.com/PolishFiltersTeam/KADhosts/issues", "url": "https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt", "license": "CC BY-SA 4.0"}, {"name": "MetaMask eth-phishing-detect", "description": "Phishing domains targeting Ethereum users.", "homeurl": "https://github.com/MetaMask/eth-phishing-detect", "frequency": "frequent", "issues": "https://github.com/MetaMask/eth-phishing-detect/issues", "url": "https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt", "license": "DON'T BE A DICK PUBLIC LICENSE"}, {"name": "minecraft-hosts", "description": "Minecraft related tracker hosts", "homeurl": "https://github.com/jamiemansfield/minecraft-hosts", "frequency": "occasionally", "issues": "https://github.com/jamiemansfield/minecraft-hosts/issues", "url": "https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt", "license": "CC0-1.0"}, {"name": "MVPS hosts file", "description": "The purpose of this site is to provide the user with a high quality custom HOSTS file.", "homeurl": "https://winhelp2002.mvps.org/", "frequency": "monthly", "issues": "mailto:winhelp2002@gmail.com", "url": "https://winhelp2002.mvps.org/hosts.txt", "license": "CC BY-NC-SA 4.0", "pause": true}, {"name": "shady-hosts", "description": "Analytics, ad, and activity monitoring hosts", "homeurl": "https://github.com/shreyasminocha/shady-hosts", "frequency": "occasionally", "issues": "https://github.com/shreyasminocha/shady-hosts/issues", "url": "https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts", "license": "CC0-1.0"}, {"name": "Dan Pollock \u2013 [someonewhocares](https://someonewhocares.org/)", "description": "How to make the interneLine truncated
|
||||
{"fakenews-gambling-porn": {"location": "alternates/fakenews-gambling-porn/", "no_unified_hosts": false, "entries": 214060, "sourcesdata": [{"name": "Steven Black's ad-hoc list", "description": "Additional sketch domains as I come across them.", "homeurl": "https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts", "frequency": "occasionally", "issues": "https://github.com/StevenBlack/hosts/issues", "url": "https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts", "license": "MIT"}, {"name": "AdAway", "description": "AdAway is an open source ad blocker for Android using the hosts file.", "homeurl": "https://adaway.org/", "frequency": "frequently", "issues": "https://github.com/AdAway/adaway.github.io/issues", "url": "https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt", "license": "CC BY 3.0", "pause": true}, {"name": "add.2o7Net", "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", "url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts", "license": "MIT"}, {"name": "add.Dead", "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", "url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts", "license": "MIT"}, {"name": "add.Risk", "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", "url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts", "license": "MIT"}, {"name": "add.Spam", "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", "url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts", "license": "MIT"}, {"name": "Mitchell Krog's - Badd Boyz Hosts", "description": "Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers", "homeurl": "https://github.com/mitchellkrogza/Badd-Boyz-Hosts", "frequency": "weekly", "issues": "https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues", "url": "https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts", "license": "MIT"}, {"name": "hostsVN", "description": "Hosts block ads of Vietnamese", "homeurl": "https://github.com/bigdargon/hostsVN", "frequency": "occasionally", "issues": "https://github.com/bigdargon/hostsVN/issues", "url": "https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN", "license": "MIT"}, {"name": "KADhosts", "description": "Fraud/adware/scam websites.", "homeurl": "https://kadantiscam.netlify.app/", "frequency": "frequently", "issues": "https://github.com/PolishFiltersTeam/KADhosts/issues", "url": "https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt", "license": "CC BY-SA 4.0"}, {"name": "MetaMask eth-phishing-detect", "description": "Phishing domains targeting Ethereum users.", "homeurl": "https://github.com/MetaMask/eth-phishing-detect", "frequency": "frequent", "issues": "https://github.com/MetaMask/eth-phishing-detect/issues", "url": "https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt", "license": "DON'T BE A DICK PUBLIC LICENSE"}, {"name": "minecraft-hosts", "description": "Minecraft related tracker hosts", "homeurl": "https://github.com/jamiemansfield/minecraft-hosts", "frequency": "occasionally", "issues": "https://github.com/jamiemansfield/minecraft-hosts/issues", "url": "https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt", "license": "CC0-1.0"}, {"name": "MVPS hosts file", "description": "The purpose of this site is to provide the user with a high quality custom HOSTS file.", "homeurl": "https://winhelp2002.mvps.org/", "frequency": "monthly", "issues": "mailto:winhelp2002@gmail.com", "url": "https://winhelp2002.mvps.org/hosts.txt", "license": "CC BY-NC-SA 4.0", "pause": true}, {"name": "shady-hosts", "description": "Analytics, ad, and activity monitoring hosts", "homeurl": "https://github.com/shreyasminocha/shady-hosts", "frequency": "occasionally", "issues": "https://github.com/shreyasminocha/shady-hosts/issues", "url": "https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts", "license": "CC0-1.0"}, {"name": "Dan Pollock \u2013 [someonewhocares](https://someonewhocares.org/)", "descriptionLine truncated
|
||||
@@ -20,7 +20,7 @@ sources can be found in the `hosts/data/` directory.
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
[](https://github.com/StevenBlack/hosts/commits/master)
|
||||
|
||||
# Unified hosts file @EXTENSIONS_HEADER@
|
||||
# @EXTENSIONS_HEADER@
|
||||
|
||||
This repository consolidates several reputable `hosts` files, and merges them
|
||||
into a unified hosts file with duplicates removed. A variety of tailored hosts
|
||||
@@ -40,8 +40,8 @@ files are provided.
|
||||
## List of all hosts file variants
|
||||
|
||||
This repository offers
|
||||
[15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant.
|
||||
[31 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates),
|
||||
in addition to the base variant, with and without the unified hosts included.
|
||||
|
||||
The **Non GitHub mirror** is the link to use for some hosts file managers like
|
||||
[Hostsman for Windows](https://www.abelhadigital.com/hostsman/) that don't work
|
||||
@@ -150,6 +150,10 @@ pip3 install --user -r requirements.txt
|
||||
at the user level. More information about it can be found on pip
|
||||
[documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
### Option 4: Generate it in Google Colab
|
||||
|
||||
Spin up a free remote [Google Colab](https://colab.research.google.com/drive/1tYWXpU2iuPDqN_o03JW9ml3ExO80eBLq?usp=sharing) environment.
|
||||
|
||||
### Common steps regardless of your development environment
|
||||
|
||||
To **run unit tests**, in the top-level directory, run:
|
||||
@@ -213,6 +217,9 @@ readmeData.json file used for generating readme.md files. This is useful if you
|
||||
are generating host files with additional whitelists or blacklists and want to
|
||||
keep your local checkout of this repo unmodified.
|
||||
|
||||
`--nounifiedhosts`: `false` (default) or `true`, do not include the unified hosts
|
||||
file in the final hosts file. Usually used together with `--extensions`.
|
||||
|
||||
`--compress`, or `-c`: `false` (default) or `true`, _Compress_ the hosts file
|
||||
ignoring non-necessary lines (empty lines and comments) and putting multiple
|
||||
domains in each line. Reducing the number of lines of the hosts file improves
|
||||
@@ -446,6 +453,8 @@ the
|
||||
[the comments within the `cmd` file](https://github.com/StevenBlack/hosts/blob/master/disable-dnscache-service-win.bat)
|
||||
for more details.
|
||||
|
||||
Disabling the DNS Cache Service can cause issues with services and applications like *WSL* and it's possible to compress the hosts file and negate the need to disable the DNS caching service. You can try the *C++* Windows command line tool at [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) (the recommended method) or the *PowerShell* compression script and check out the guide located at the [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) repository.
|
||||
|
||||
## Reloading hosts file
|
||||
|
||||
Your operating system will cache DNS lookups. You can either reboot or run the
|
||||
@@ -604,6 +613,8 @@ devices under a variety of operating systems.
|
||||
- [BlackHosts - Command Line Installer/Updater](https://github.com/Lateralus138/blackhosts)
|
||||
This is a cross-platform command line utility to help install/update hosts
|
||||
files found at this repository.
|
||||
- [Hosts Compression Scripts](https://github.com/Lateralus138/hosts-compression-scripts) These are various scripts to help compress hosts files (by the author of BlackHosts).
|
||||
- [Hosts Compress - Windows](https://github.com/Lateralus138/hosts-compress-windows) This is a *C++* Windows command line tool to help compress hosts files (by the author of BlackHosts and Hosts Compression Scripts). This is highly recommended over the scripts as it is **exponentially faster**.
|
||||
- [dnscrypt-proxy](https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Combining-Blocklists)
|
||||
provides a tool to build block lists from local and remote lists in common
|
||||
formats.
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
requests ~=2.20
|
||||
flake8 ~=4.0
|
||||
flake8 ~=6.0
|
||||
@@ -10,10 +10,10 @@
|
||||
NotebookFileLineBreakTest
|
||||
NotebookFileLineBreakTest
|
||||
NotebookDataPosition[ 161, 7]
|
||||
NotebookDataLength[ 38799, 931]
|
||||
NotebookOptionsPosition[ 38225, 913]
|
||||
NotebookOutlinePosition[ 38622, 929]
|
||||
CellTagsIndexPosition[ 38579, 926]
|
||||
NotebookDataLength[ 31389, 701]
|
||||
NotebookOptionsPosition[ 30815, 683]
|
||||
NotebookOutlinePosition[ 31212, 699]
|
||||
CellTagsIndexPosition[ 31169, 696]
|
||||
WindowFrame->Normal*)
|
||||
|
||||
(* Beginning of Notebook Content *)
|
||||
@@ -56,7 +56,7 @@ Cell[BoxData[{
|
||||
RowBox[{"ToString", "[",
|
||||
RowBox[{
|
||||
RowBox[{"Last", "[", "data", "]"}], "[",
|
||||
RowBox[{"[", "2", "]"}], "]"}], "]"}], ",", "Right", ",", " ",
|
||||
RowBox[{"[", "2", "]"}], "]"}], "]"}], ",", "Left", ",", " ",
|
||||
RowBox[{"LabelStyle", "->", "Small"}], ",", " ",
|
||||
RowBox[{"Background", "->", "LightBlue"}]}], "]"}]}],
|
||||
";"}], "\[IndentingNewLine]",
|
||||
@@ -82,8 +82,10 @@ Cell[BoxData[{
|
||||
3.867443529594183*^9, 3.867443565893339*^9}, {3.867445761749815*^9,
|
||||
3.86744582007928*^9}, {3.867445877108981*^9, 3.867445877563551*^9}, {
|
||||
3.88987554010293*^9, 3.889875542354431*^9}, {3.8909097713956842`*^9,
|
||||
3.890909773446272*^9}},
|
||||
CellLabel->"In[30]:=",ExpressionUUID->"e5e34011-aa3d-4e95-90b1-863054ac32f5"],
|
||||
3.890909773446272*^9}, {3.89765774638717*^9, 3.8976577472230463`*^9}, {
|
||||
3.898379436246955*^9, 3.898379440050661*^9}, {3.90338401735606*^9,
|
||||
3.9033840200448112`*^9}, {3.906908185436775*^9, 3.9069081879516287`*^9}},
|
||||
CellLabel->"In[9]:=",ExpressionUUID->"e5e34011-aa3d-4e95-90b1-863054ac32f5"],
|
||||
|
||||
Cell[CellGroupData[{
|
||||
|
||||
@@ -158,123 +160,135 @@ Cell[BoxData[{
|
||||
3.867190455350173*^9}, {3.867191170483214*^9, 3.867191170658471*^9}, {
|
||||
3.8671912032969103`*^9, 3.867191245177144*^9}, {3.867443579626745*^9,
|
||||
3.867443615991692*^9}, {3.867445864801002*^9, 3.867445865695055*^9}, {
|
||||
3.8675854619929047`*^9, 3.867585470469511*^9}},
|
||||
3.8675854619929047`*^9, 3.867585470469511*^9}, {3.904556674711198*^9,
|
||||
3.90455667849632*^9}},
|
||||
NumberMarks->False,
|
||||
CellLabel->"In[37]:=",ExpressionUUID->"55c17c4f-14a9-40f1-a01c-ab0b0c9b3309"],
|
||||
CellLabel->"In[16]:=",ExpressionUUID->"55c17c4f-14a9-40f1-a01c-ab0b0c9b3309"],
|
||||
|
||||
Cell[BoxData[
|
||||
GraphicsBox[{{}, {{{}, {},
|
||||
{RGBColor[0.368417, 0.506779, 0.709798], PointSize[
|
||||
0.0055000000000000005`], AbsoluteThickness[1.6], LineBox[CompressedData["
|
||||
1:eJyN2HmcTXUfB/BjbDOW3KQ8KI6QnSNRaDnoQaXckW0sOWYeSxGXRIU6yYRs
|
||||
x66kzoNsY7lZZijlJEqWXIwashwZjGHMNbbZ8DSf7+f8cXvp9Xr6o+n9+v1+
|
||||
39/3+/397r3nVDN+RNeBUYqiPPTXv4r+/vWPOX3PpbZF/+H2vKTfw8Hkf7AT
|
||||
F2mzC+wr+4tY7wEH+tN2d9ie6lnihTbRjliL3kv3hq2+tNsHdj6m9c8irfaD
|
||||
1T+89WKz6T6xES/5xtHqYMl3PW2L9TRv/tysezkQtZ9eLvn3oNUkyT+J1jfB
|
||||
xlHa2Sj13KVtsfr+Adb3XqTtNpL/YVrNzkT+hbR+GXYf+5U+B+vjaOMkrNQ+
|
||||
SJ+Gnf3/5MNw+Cativ0vhegNsv+XIa8+2f8XWhHr1Q/xPmyGA51odzlsVDvM
|
||||
+pJk/xG0M0v2u0KblsQfdoTrJ8D2g6lcb8Kh52hVbGXQSi+p5+mjHBeb3x71
|
||||
7q/0p/zv3O+UrJ/m2YXVMmnsT4HUP4V2P5H7c5K2Z8h9SDzG/T+PtLs40o5Y
|
||||
O06rKXJfShznfgflvjSh9eNweCJtFr+MfBr+wXgxcCD1H+yWh0P1TtCPwNYh
|
||||
2kyDw3VOMv9uV9Cv5bQaC7u5tJuMz0No3ymuT4HVa6c5fxwcHOlyfI58fqqe
|
||||
YT15sn6452KIry74k/1sDfteP8t8EmBtUDrHf4OddNqdIutbnaObw/4Ez/Ul
|
||||
XrnzEflrMReY7zrY6ke7/r85Dg5/TTu9YHdSBn1V+l38IuvtI/3uSRvZ8n3V
|
||||
IJP7lZH5Ky6xfrFS5zLnT5D5B2h7lHx/2VlcP17uT84V5jdfPl8PZ3P+aNi3
|
||||
KMx8Tl8ssr7Ts08+D9tz2N+S4SLb265xfE028j/reSvsJF9nvZ1hf4sb9AxY
|
||||
j77J/afDVtNbdLqcRxptnIND9fPoBzA//Fg+PS8H5xlL2zEY99UuYL3Zch9q
|
||||
FjL/G38ivy9pVRyodofxcmFtF61XOov57e5yvDKsz1Mui1VYG1xMrJSBzZlR
|
||||
YqckbE8rLjajJd6UElxfWuY3K0nvlf3XlWK89bB/TWmxuwLWJ0RzfjJsLY8R
|
||||
60HYHFuG65NkvlqW+UyGjUfKMV4c7A4vz/UDZf8F93G8GfKzMmm1oeRfqQLr
|
||||
EQcveK4q/Rnk4/oHYbVcxYhxf0vPVWR+zANiu5Xsp1Win5L4jR9kPHGowUP0
|
||||
Ben/B54zJL/btH0ZdvMr09dgJfdf3D9P1u+uRhdKfjsfZjyxb+gjHL8r84dU
|
||||
p7ukFznsq8H48bA5izYT4eA2zzNgrWxNxl8g430f5fhiWJlUi+4j/Yiqzf5X
|
||||
jLTTP9L2A1J/I1pZhniBVXV4vitl/9jHGG897H+lLtdvho3q9bn/IIk3yvMQ
|
||||
6c9V2s7HfHdEA8a/CFuXGvJ+ZkfaFqtvNGL9ObL/PM93JF7Fxlx/V+aXb8r9
|
||||
06S/A2jDhX0ubWdKfSc19qfCOdRTuhnji/3Hab0iHGrYPMJKD9qdKvXfoZ0E
|
||||
uY+HnuD4a3K/CmhTzkP3t7i3VZlvjW3J8Xg4vI+2Zb754pP0WxL/C89D5f6P
|
||||
fIrrs2EjTCt3M5Dv8628+xpp529WFHzf+39s5fUf48HKrdmPfNg3jHZPwPoC
|
||||
Wv0cNua24XglxFOffppuAZsWrTeQ35dWzzC/prBW7lnm8wzsfEKr7WR98+cY
|
||||
r83/Zf0ErbeOtCrWNugc7wyHe7blfdKlH2tp+3nY170dbcCh27SjyO/p+PZ0
|
||||
DXmezKeVl+V5cNnz3C9Bnn8f/Tf3Gy/Pv51pVX6PlX3e+AcSv0YH1lc30sZc
|
||||
eR59gbany/5LaGWh/H4/3JHxN0o+HTwny/NzgHZSJL/dtCHzQ+07Md5xWFtE
|
||||
2xn3dFh/gfH4PHyRVm7J88azL3L8isQ/T6ux8nw78CX2q3Kk1XryfDO9M/tR
|
||||
Gc9DbjJt14+02gDWy77MeprB2inaqQf7/3iF64vBZskudCnYjvIzXhV5/q0f
|
||||
y/t7n8SP7cr5YuOVVzn/tjyP76eNErJfzW7cP0/eJ6/TbtnLEXbEoVHdvc83
|
||||
5itLaL0A9u/qwfXMZ2FP7ldX8pnXi/k1kf0Hx3H+EunXOVqfLetb96afuadD
|
||||
W2lnPKy6fTh+TOKX6cv6T0s/n6AdGXen0O5MiX+SNm7IeR/vx3wbwW7D/hwf
|
||||
JO9Hd/p735fyPvzYAO/3TfpZK57zl0o8NYHn9avcn47/YT6p8v8bqg7k+tXy
|
||||
PpVFu+Pk+bryIPZf7mMwk7aryvuRNYTjSdKPCq8z3kdSfwKtDJX3m5ZvcP9B
|
||||
8n7zCW3XkfeJ5kPZvzZY7/QbGjEenkyb9WGz1LB7W22L9b5EWnkK43bxN5lf
|
||||
H3m/mfim93sv8RsM537D5Xy6jmA/l8vnp06A47ul3lxa3yzvKzVGcXyD3L8c
|
||||
2pgm9XR4i+Oj5b7spk1LPm+XR7P/i6S/O95m/O+ln3PGcP79WRFWKsr75PZI
|
||||
u+dp91mp9753OG5Iv+M9y/uoM522P5B4/d9l/rMk3lTaXSDn1/c9nuc3Ev9r
|
||||
2k2W981J45h/dXkfWu/5uLyv9BzP+PlwIIlWC+X9aNUEjqt4/1Lrvu/9vsL+
|
||||
WNo/HQ688oE4OBo2apqMNwIOdvqQ81fC+s+0lYP3KSUwUayVvlbkcLuPuL4+
|
||||
HLxEW0mYH8qYxPnjMe58m8jz6XYd+fo+FvtGX4uwf6LEm0mHkmHfWdpdDdsD
|
||||
JrNfXeDQNNp5FVaSaV+fSNujZL9NU5j/T7Jfs6mMd0r2+5h21sr6uE/EgUuw
|
||||
9Tvt11FPMHUa1z8OK4XTmX+MjI+dyf0PSL6jZ9FfST9HWqxvD2yGaS1X8hkx
|
||||
m74h/cycw/OvJfG/m8t47WD3Au1omK9VmM/4wzDuzKCt2bDZcgHnp8GhfgvF
|
||||
4bY3iuzfsIj1qLDb+FOeZ3s4pHzG/hyDlYa0HXUT+x2hQz9KvK6LGb80xn0F
|
||||
tP4orNf5nOPzYC2X9m+G1X1LuN8yOJDzhff7CVvZX7I/LWX+cJv96wibO2l7
|
||||
BBy6+F/OXyH7PbuUn5dDsv7+Zaz3DOxuo7UL97Qdv5z17pD1m7/i98l5yfeP
|
||||
Fcw3G1Z6r2Q9WZJ/Gu2LuYV+fbiK+Qbh0OHVXF8iN8JWcTh8cA3r2Yv5wXeS
|
||||
WM9uWL9Fm6lwoOZa9jcfVmxab4h4VvV1zKcp7HSitU5wsNp6fp5mwfYVOpwY
|
||||
6ZAFa29u4P6TJf4PtG8RrOpBrl8Nuxl0YCLy03wbOf8YbLSmA7tgZyYdypT+
|
||||
ld/EerYjni+ZNhrlof4ym+kWsP0E7XaX/r5Gh4dLf/tsYf8XS35Nknk+JyR+
|
||||
HO2kR9oSh4qlsP4M6WcqHdqHfM0JW3lev8l5HNzG+Eekf3m0OVX69/I3PI8l
|
||||
0r/9tJECm+q3PN+OcOAabb0JGz9t985XKfrr//Q7zu+Zj/PNorW3Ydv5nvN3
|
||||
wsbrO1hvFqxWdNi/agWo/xxtVYHthB+YXyfYKLeT8efI+i20Okj62+9Hrl+B
|
||||
+fpG2t4Ca4m7eD7N4HDj3eyfAbvKT1xfuRD9vEMbbxcr+uus+Jn1JsJqAa33
|
||||
xXqzyx7GHwUHHv2F9W1HvqExtHUk0rZY/WIv6xl4F/0YuY/nN0bmV9nP8/8G
|
||||
tnbSwR23Uc9DBzj/IGzOp4Mu5mv3HxSn/ST1zKKdZUqEp4jVdFp7A/UE40N0
|
||||
nuSXQtuVMD9Q9hD3D2Nc20xHPyzxJh8WP/UMrE86Is54Dg5FpTKfOMnnKB39
|
||||
rty3bkfFufNh323aXC3x6v4mficFNmr/zvUbZf8DdGiPxLtFbz0Au2+n8XzO
|
||||
SD3XaSVb8ut0jC6D/llXaaM5HLxynN8vTaKK/mr6Ce4/ElYfOMn5n8LB2fQQ
|
||||
Gw60PsX6XTg0k151VeKdpQM5sDPgtHhR6eLox1RX3Ks9rPQ9w/s5DjbX/cn6
|
||||
DJnf6Cz73w/We9Bqb9iakM77kwo7Kz0fhoPvnWN+yyTeQTowW+Ll0XuSJJ+l
|
||||
55nvUljbT29dKPupF9ivnbLfi7T7p+R/jdZSYLdjBs/jF9nvczqtfQn0r+pF
|
||||
cb0s2W/ERe/7CuP+YZm871VhN9Pz43Dg9UvsZ0vYePoy6+sCOxY95VWJVyGL
|
||||
93s2HEyg7cWSj3GF3w9nYCsmm+vzJF5zeut9JRFvI73oSdjVwty/A6w0ucr5
|
||||
ibAxkc5Nhn13ctifNqWK/trjrzE/AzbqXOf381jYn0trW2B3zA3unwQHbtBW
|
||||
isSrcZP9/kHi7aG1Qjjc4Rb737Q0zmd4rrjTNFipnMfz+B52dtB7UuFAmwLW
|
||||
90I0zi+dVhJgNaWQ+U2DzbK3Ge9mpBcdkvM8Raelw0q/Ozyf3uiXNpn2D4ad
|
||||
knf5+XkDVnvT/o9hcz1trYX1nkoW/M4aOHSUNs7K+XQrRtdCf6z36eiOsBkb
|
||||
JR4yDA6Oo40ArOfTW3eUavs/ZgDfFQ==
|
||||
1:eJyN2Gl0FFUWB/AibEnYWkTDJhTIDkIxKIZNC3AgOggdRSAsQ0GGTRAaRERZ
|
||||
LBn2tUDEKKI1wrAFoQcxicpIiaBRQBoIGJClgARCSEgTtiRsY+7/3x/ag+eM
|
||||
H4y/89677977Xnd12WD4hJdGRCiK0vf3f5X+/f0fc3H65a6l/+H2v6w/wP6U
|
||||
P7GTEG6zj9hT6SdY7yf2DaXtV8T2gpARL/AF7cBa5M/0QLE1mHYHiZ25tP5R
|
||||
uNUhYvW30HrYbLMPNoYj3wRaHYV8t9I2rGeG5r+X/yD7IvbT65B/P1pNRv7J
|
||||
tP6F2DhKO9tRz33ahtWZB1jf2+G2OyH/w7RakCv536H1PLHb5Bc6W6xPo41T
|
||||
YqXRQfqM2Nn/Zz4sDt6kVdj7twC9Dft/GgjVh/1/ohVYr3eI92GH2BdHu+vE
|
||||
Rp3DrC8Z+0+gnWXY7wptWog/7gjXzxDbj2RwvSkOPEursJVDKwNQT+ejHIfN
|
||||
b46G7i/6U+VX7nca6xeF7IrV6Ez25zbqn0+7C3F/TtH2EtyHOce5/8fhdleH
|
||||
24G1E7SaivtS7gT3O4j70prWT4iDs2izbJ7k0/I3xosS+zL+xG4VcaDZSfox
|
||||
sXWINjPFwcanmH/fK9KvdbQaL3aLaDdFPg+Bfae5PlWsXjvD+dPE/okux1fg
|
||||
81P7LOspxvrxIZeR+Oqqc+xnR7FnzHnmkyjWRmZx/JjYyaLd+VjfIZtuJ/Ym
|
||||
htwc8SpfCMtfi7rIfD8XW0No1/sHJ4iD/6GdAWJ3dg59Ff0ue4n1DkK/+9NG
|
||||
Ab6vWuRyv2jMX3+Z9cNK4zzOn4H5B2h7Er6/7Hyun477U3iF+b2Pz1fdAs6f
|
||||
LPYkBZnPmUul1neH7MHnYWch+1s+WGr7q2sc31wg+Z8POU3spFxnvb3E3qdu
|
||||
0EvEeuRN7r9YbLW5RWfhPDJpI1scaF5MPyzzg01K6JWFcp7xtB0l455Gt1lv
|
||||
Ae5DgzvM/8Y5ye9TWoV9de4xXpFY20PrNc7L/G73OR4j1lcqebAq1kaVgZVo
|
||||
sbk0AnbKi+1FZWEzEvHml+P6ipjftjz9M/b/vALjbRV7N1eE3fVifUYk56eI
|
||||
rXVRsO4Xm29Gc30y5quVmM88sfFYZcZLELvjq3D9COy/qirH20p+Vi6ttkT+
|
||||
NaqxHth/MeTa6M9ID9c/IlYrVw8b97YPuRbmRz0M2x2wn1aDjkX8Jx5hPDjQ
|
||||
4lH6Ivr/Tsg5yO8ubeeJ3ZIY+ppYKarJ/Yuxfm8d+g7y212X8WDP2Mc4fh/z
|
||||
R9ej+2SVOuipz/jDxeYy2pwj9n8V8hKxVqkB46/C+OCGHF8tVmY/Tg9CPyIa
|
||||
sf/Vw+0MDbf9MOpvRStrJZ5vY2Oe7wbsH9+E8baKvb2bcv0OsVGvOfcfiXiT
|
||||
Qh6N/lyl7RKZ705owfiXxNbllryfBeG2YfXVVqy/EPuvDPke4lV/guvvY36V
|
||||
Ntw/E/0dRhuu2OPSdi7qO6WxP9WypZ6KbRkf9p6g9eriQMt2YVb60e4C1H+P
|
||||
dhJxHw89yfG/437dpk2ch+596sFWMd96sz3Hh4uD+2gb880XnqZfR/xPQh6L
|
||||
+z8xlusLxEaQVu7nSL7PdQjd13A7f7CiyPe99/sOof7LuD+mI/tRIvaMo92T
|
||||
Yn0VrX4sNt7rxPEaEk/t3Jl+SmxatN4Cz5cOXZhfG7FW+Rnm00XsLKTVbljf
|
||||
7lnG6/R/WT9J6x3DrcLaNp3jvcTB/l15n3T0YwttPyf2vNKNNsSBu7Sj4Hk6
|
||||
vTtdH78nS2jlRfweXPsc90vE79+Gf+V+0/H7txet4nms7AuNv4P49Xuwvqbh
|
||||
Nt7D79HnaXsx9l9DKx/g+V23J+NvRz49Qk7B72cf7aQiv720gfmB7nGMd0Ks
|
||||
JdF2zgMd1J9nPP4evkQrt/B745kXOH4F8S/Qajx+3474G/sVE261GX7fLO7F
|
||||
fsTI7yE3hbabh1ttIdYrvch62oq107TTTOz9rTfXlxGb5fvQFcR2hJfxauH3
|
||||
b/N43t+qiB//EufDRu+XOf8ufo/vp41y2K9BX+5fjPfJ67RbKS/MDhyY9Ero
|
||||
8y3zlTW0flvs3dOP65nPB/25X1Pks3IA82uN/UclcP4a9Cub1pdjfceBdJcH
|
||||
OpBGO9PFqjuI48cRP3ow6z+Dfj5JOxh359PuUsQ/RRs3cN4nhjDfVmK35VCO
|
||||
j8T70b2hoe9LvA83GRZ6vqGfjw/n/M8QT03kef2C+9PzH8wnA/+/ofYIrt+E
|
||||
96l82p2G39cxI9l/3Ed/Lm3XxvuRNZrjyehHtTGM90/Un0grY/F+0/5V7j8S
|
||||
7zcLabsx3ifajWX/Osl6Z8jYsPHgPNpsLjYrjHuw1a6y3jOHVmJl3C77GvMb
|
||||
hPebWa+FnveI32I89xuP83lpAvu5Dp+fxj6O70W9RbS+A+8r9SdxfBvuXyFt
|
||||
LEI9PV7n+GTcl720aeHzljeZ/U9Cf3e9wfjfop8rpnD+Q/lhVqrjfXJnuN0L
|
||||
tPsM6q06leMG+j08ZLyPOotp+x3EG/oW81+GeAtodxXOb/DbPM+vEf8/tJuC
|
||||
983Z05h/PbwPbQ35BN5X+k9n/BKxL5lW7+D9aOMMjqvy/qU2nRl6voq98bR3
|
||||
sdjX+x3YP1lsNDAZb4LYH/cu528Q6z/SVqG8Tym+WbBW8Vqpg93+yfXNxf7L
|
||||
tJUs8wM5szl/uow738zh+fS9Lvl65sKeydfC7J2FeEvpQIrYc552N4ntYfPY
|
||||
rz7iwCLaeVmspNCeQeG2J2G/L+Yz/x+wX9sFjHca+82lnS1Yn7AQ9l0WW7/S
|
||||
Xl3q8Wcs4vq/iJU7i5l/FMbfXMr9DyDfycvof6OfEy3Wly42g7RWhHwmLKdv
|
||||
oJ+5K3j+jyP+f99jvG5i9yLtaDJfq/Y+44+TcWcJbS0Xm+1XcX6mODDkAzjY
|
||||
9UapvduSWI8qdp/4kOfZXRxQPmJ/jouVlrQdcVP2O0IHvke8l1YzfkUZ99ym
|
||||
9YZivfHHHF8p1opo7w6xum8N91sr9hV+Enp+iq2CT9mf9pg/3mb/eorN3bQ9
|
||||
QRy49C/OX4/9nvmMn5dDWP/QWtZ7Vux+RWsXH2h7+DrWuwvrd/yb3ycXkO9v
|
||||
65lvgVgZuIH15CP/TNoTdUv69e5G5usXBw5v4vpyRWG2yoqDBzeznp9lvn9q
|
||||
MuvZK9Zv0WaG2NdgC/tbIlZsWm8p8ax6nzOfNmInjtbixP46W/l5Wia2r9DB
|
||||
OeEOWGLttW3cfx7if0d7ksSq7uf6TWI3h/bNkvw0z3bOPy42OtK+PWJnKR3I
|
||||
Rf+qfMF6dko8TwpttCqW+qN30E+J7Sdp9xX09+90cDz6O+hL9n818mudwvM5
|
||||
ifgJtJMVbgsOlEll/TnoZwYd2Cf5mjPSeF7HcB4Hv2L8I+hfMW0uQP9e/Jrn
|
||||
sQb9208bqWJT/Ybn21Psu0Zbr4mNH3aGzlcp/ev98L+c379Ezjef1t4Q2863
|
||||
nL9bbIzZxXrzxWp1h/2rc1vqz6atWmI78TvmFyc2Ku9m/BVY/yWtjkR/h3zP
|
||||
9etlvr6dtr8Ua3P28HzaioNP7GX/DLGr/MD1MXekn/do440ypX+d9T+y3jli
|
||||
9TatD5b1Zp90xp8k9jX8ifXtlHwDU2jrSLhtWP3kZ9Yz4r70Y+I+nt8UzK+1
|
||||
n+f/tdjaTft33ZV6Hj3A+QfF5vu035X52kMH4cwfUM8y2lmrhHk+rGbR2qtS
|
||||
j394gC5Gfqm0XUPm+yod4v5BGdd20JF1EW/eYTi2i1iffQTOeVYciMhgPgnI
|
||||
5ygd+RbuW9+jcNH7Ys9d2tyEeE2PwVNTxUajX7l+O/Y/QAfSEe8WnXZA7L6R
|
||||
yfM5i3qu00oB8os7TkdL/6yrtNFO7L9ygt8vrSNK/2r6Se4/Uaw+fIrzPxT7
|
||||
l9OjbbGv42nW74oDS+mNVxHvPO0rFDvDzsBJFctKPxa48IDuYmXwWd7PaWLz
|
||||
83Osz8D8VufZ/yFivR+tDhRbM7J4fzLEzoaQD4v9b2czv7WId5D2LUe8Yjo9
|
||||
Gfl8doH5fibW9tNpH2A/9SL7tRv7vUC755D/NVpLFbs9c3geP2G/j+nM7uWk
|
||||
f7Uvwc3ysd+ES6HvKxn3jsvlfa8tdnND/ovYN+Yy+9lebHTOY319xI5Fz38Z
|
||||
8arl834vF/sTaXs18jGu8PvhrNiKKuD6YsRrR6dVLS/xttNJT4tdLcj9e4iV
|
||||
1lc5f47YmEUXpYg99wrZn04VSv/a068xP0NsNL7O7+c3xd4iWvtS7E65wf2T
|
||||
xb4btJWKePVvst/fIV46rd0RB3vcYv/bVJTzGV8Exy0SKzHFPI9vxc4uOj1D
|
||||
7Ot0m/U9Hynnl0UriWI19Q7zWyQ2K91lvJvhTjqE8zxNZ2aJlSH3eD4DpV/a
|
||||
PNo7SuyUv8/Pz6tidSDtnSs2t9LWFrHeX8kXT90sDhyljfM4n75l6MelP9ZM
|
||||
OrKn2IyPgEePE/un0YZPrJfQabvEql0OjvVIv/z1ysMbn0T/fqSDL4rtq7TX
|
||||
i/73qAAnDRVrPjpymtj4iI61xNae0Lgf53WFnr9eHKxZEXY/FbuX6chj2H9l
|
||||
JGxeQvwuUbBSVc7L64mGtY5idymd1lMcGFYJznlbrCyma87EfVhQGfbvwPmf
|
||||
ou2vxfrcKnDROdynhKqwFRUl9fxKx/USB8tUY/59xGor2v9utMQ36amfiN0M
|
||||
WkX9vg8fYf6wUvNROODg8+7Q7jo8j56NYb4pYnMM7VmF51HnmnD6GrHyDW3j
|
||||
+adl05FHxcElteDMoNjfvjbHR8nzyjXoqTPEdlQd2EkSB9rRsRvFxnY6/SR+
|
||||
P1Soy36cw/PvOD0Azz/frMc4P15sb6G9Y/B8O0anvYXn2aZ67F+K2NusPu/D
|
||||
YTwvp9NWNta/pXK/Nvh+/4VWe+P50asB78tMcXAKrSwUq/+iY5fi+TW5IY36
|
||||
fem0tUHsHd+I9+d59C+PDrwr9sQ0Zj/moT8rmvB8NovNTk2Z30GxnkXH5oiV
|
||||
Jc047ono+j+P4rpy
|
||||
"]]}},
|
||||
TagBox[
|
||||
{Opacity[0.], PointBox[{{3.8938752*^9, 186359.}}]},
|
||||
Annotation[#, {{Callout}, Charting`Private`Tag$239048, {
|
||||
534}}]& ]}, {{{}, {{}, GraphicsGroupBox[{
|
||||
{Opacity[0.], PointBox[{{3.9135744*^9, 147972.}}]},
|
||||
Annotation[#, {{Callout}, Charting`Private`Tag$184165, {
|
||||
596}}]& ]}, {{{}, {{}, GraphicsGroupBox[{
|
||||
{RGBColor[0.87, 0.94, 1], AbsoluteThickness[4], Opacity[
|
||||
NCache[
|
||||
Rational[2, 3], 0.6666666666666666]], CapForm["Butt"], JoinForm[
|
||||
"Round"],
|
||||
BSplineCurveBox[{
|
||||
Offset[{3., 0.}, {3.894125625*^9, 186359.}],
|
||||
Offset[{8., 0.}, {3.894125625*^9, 186359.}],
|
||||
Offset[{10., 0.}, {3.894125625*^9, 186359.}],
|
||||
Offset[{12., 0.}, {3.894125625*^9, 186359.}],
|
||||
Offset[{12., 0.}, {3.894125625*^9, 186359.}]}]},
|
||||
Offset[{-3., 3.6739403974420594`*^-16}, {3.91329405*^9, 147972.}],
|
||||
Offset[{-8., 9.797174393178826*^-16}, {3.91329405*^9, 147972.}],
|
||||
Offset[{-10., 9.797174393178826*^-16}, {3.91329405*^9, 147972.}],
|
||||
Offset[{-12., 9.797174393178826*^-16}, {3.91329405*^9, 147972.}],
|
||||
Offset[{-12., 9.797174393178826*^-16}, {3.91329405*^9,
|
||||
147972.}]}]},
|
||||
{RGBColor[0.6666666666666666, 0.6666666666666666, 0.6666666666666666],
|
||||
AbsoluteThickness[1.25],
|
||||
BSplineCurveBox[{
|
||||
Offset[{3., 0.}, {3.894125625*^9, 186359.}],
|
||||
Offset[{8., 0.}, {3.894125625*^9, 186359.}],
|
||||
Offset[{10., 0.}, {3.894125625*^9, 186359.}],
|
||||
Offset[{12., 0.}, {3.894125625*^9, 186359.}],
|
||||
Offset[{12., 0.}, {3.894125625*^9, 186359.}]}]},
|
||||
Offset[{-3., 3.6739403974420594`*^-16}, {3.91329405*^9, 147972.}],
|
||||
Offset[{-8., 9.797174393178826*^-16}, {3.91329405*^9, 147972.}],
|
||||
Offset[{-10., 9.797174393178826*^-16}, {3.91329405*^9, 147972.}],
|
||||
Offset[{-12., 9.797174393178826*^-16}, {3.91329405*^9, 147972.}],
|
||||
Offset[{-12., 9.797174393178826*^-16}, {3.91329405*^9,
|
||||
147972.}]}]},
|
||||
{EdgeForm[None], FaceForm[{RGBColor[0.87, 0.94, 1], Opacity[
|
||||
NCache[
|
||||
Rational[2, 3], 0.6666666666666666]]}],
|
||||
PolygonBox[{
|
||||
Offset[{48., 6.0000000000000036`}, {3.894125625*^9, 186359.}],
|
||||
Offset[{48., -5.9999999999999964`}, {3.894125625*^9, 186359.}],
|
||||
Offset[{12., -6.0000000000000036`}, {3.894125625*^9, 186359.}],
|
||||
Offset[{12., 5.9999999999999964`}, {3.894125625*^9, 186359.}]}]},
|
||||
Offset[{-12., 6.000000000000004}, {3.91329405*^9, 147972.}],
|
||||
Offset[{-12., -5.999999999999996}, {3.91329405*^9, 147972.}],
|
||||
Offset[{-48., -6.000000000000003}, {3.91329405*^9, 147972.}],
|
||||
Offset[{-48., 5.999999999999997}, {3.91329405*^9, 147972.}]}]},
|
||||
{RGBColor[0.6666666666666666, 0.6666666666666666, 0.6666666666666666],
|
||||
AbsoluteThickness[1.25], EdgeForm[None]}, {}, InsetBox[
|
||||
StyleBox[
|
||||
RotationBox["\<\"186359\"\>",
|
||||
RotationBox["\<\"147972\"\>",
|
||||
BoxRotation->0.],
|
||||
StripOnInput->False,
|
||||
LineColor->GrayLevel[0],
|
||||
@@ -287,7 +301,8 @@ JR4yDA6Oo40ArOfTW3eUavs/ZgDfFQ==
|
||||
Opacity->1,
|
||||
FontSize->Small,
|
||||
FontColor->GrayLevel[0],
|
||||
FontOpacity->1], Offset[{30., 0.}, {3.894125625*^9, 186359.}],
|
||||
FontOpacity->1],
|
||||
Offset[{-30., 9.797174393178826*^-16}, {3.91329405*^9, 147972.}],
|
||||
NCache[ImageScaled[{Rational[1, 2], Rational[1, 2]}],
|
||||
ImageScaled[{0.5, 0.5}]]]}]}}, {}}},
|
||||
AspectRatio->NCache[GoldenRatio^(-1), 0.6180339887498948],
|
||||
@@ -315,88 +330,34 @@ JR4yDA6Oo40ArOfTW3eUavs/ZgDfFQ==
|
||||
StyleBox["\"2018\"",
|
||||
Directive[], {}, StripOnInput -> False], TraditionalForm], {
|
||||
Rational[1, 72], 0},
|
||||
Directive[]}, {3.7552896*^9,
|
||||
FormBox[
|
||||
StyleBox["\"2019\"",
|
||||
Directive[], {}, StripOnInput -> False], TraditionalForm], {
|
||||
Rational[1, 72], 0},
|
||||
Directive[]}, {3.7868256*^9,
|
||||
FormBox[
|
||||
StyleBox["\"2020\"",
|
||||
Directive[], {}, StripOnInput -> False], TraditionalForm], {
|
||||
Rational[1, 72], 0},
|
||||
Directive[]}, {3.818448*^9,
|
||||
FormBox[
|
||||
StyleBox["\"2021\"",
|
||||
Directive[], {}, StripOnInput -> False], TraditionalForm], {
|
||||
Rational[1, 72], 0},
|
||||
Directive[]}, {3.849984*^9,
|
||||
FormBox[
|
||||
StyleBox["\"2022\"",
|
||||
Directive[], {}, StripOnInput -> False], TraditionalForm], {
|
||||
Rational[1, 72], 0},
|
||||
Directive[]}, {3.88152*^9,
|
||||
FormBox[
|
||||
StyleBox["\"2023\"",
|
||||
Directive[], {}, StripOnInput -> False], TraditionalForm], {
|
||||
Rational[1, 72], 0},
|
||||
Directive[]}, {3.913056*^9,
|
||||
FormBox[
|
||||
StyleBox["\"2024\"",
|
||||
Directive[], {}, StripOnInput -> False], TraditionalForm], {
|
||||
Rational[1, 72], 0},
|
||||
Directive[]}, {3.9762144*^9,
|
||||
FormBox[
|
||||
StyleBox["\"2026\"",
|
||||
Directive[], {}, StripOnInput -> False], TraditionalForm], {
|
||||
Rational[1, 72], 0},
|
||||
Directive[]}, {3.7237536*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7288512*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7341216*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.739392*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7447488*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7500192*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7552896*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7552896*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7603872*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7656576*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.770928*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7762848*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7815552*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7868256*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
@@ -405,54 +366,10 @@ JR4yDA6Oo40ArOfTW3eUavs/ZgDfFQ==
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7920096*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.79728*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8025504*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8079072*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8131776*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.818448*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.818448*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8235456*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.828816*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8340864*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8394432*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8447136*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.849984*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
@@ -461,71 +378,31 @@ JR4yDA6Oo40ArOfTW3eUavs/ZgDfFQ==
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8550816*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.860352*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8656224*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8709792*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8762496*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.88152*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.88152*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8866176*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.891888*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8971584*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.9025152*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.9077856*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.913056*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.913056*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.9446784*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.9762144*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}}, {{3.7237536*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
Rational[1, 72], 0},
|
||||
Directive[]}, {3.7552896*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
Rational[1, 72], 0},
|
||||
Directive[]}, {3.7868256*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
Rational[1, 72], 0},
|
||||
Directive[]}, {3.818448*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
Rational[1, 72], 0},
|
||||
@@ -533,11 +410,11 @@ JR4yDA6Oo40ArOfTW3eUavs/ZgDfFQ==
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
Rational[1, 72], 0},
|
||||
Directive[]}, {3.88152*^9,
|
||||
Directive[]}, {3.913056*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
Rational[1, 72], 0},
|
||||
Directive[]}, {3.913056*^9,
|
||||
Directive[]}, {3.9762144*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
Rational[1, 72], 0},
|
||||
@@ -545,54 +422,10 @@ JR4yDA6Oo40ArOfTW3eUavs/ZgDfFQ==
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7288512*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7341216*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.739392*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7447488*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7500192*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7552896*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7552896*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7603872*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7656576*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.770928*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7762848*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7815552*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7868256*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
@@ -601,54 +434,10 @@ JR4yDA6Oo40ArOfTW3eUavs/ZgDfFQ==
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.7920096*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.79728*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8025504*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8079072*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8131776*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.818448*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.818448*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8235456*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.828816*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8340864*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8394432*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8447136*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.849984*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
@@ -657,58 +446,26 @@ JR4yDA6Oo40ArOfTW3eUavs/ZgDfFQ==
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8550816*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.860352*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8656224*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8709792*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8762496*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.88152*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.88152*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8866176*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.891888*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.8971584*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.9025152*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.9077856*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.913056*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.913056*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.9446784*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}, {3.9762144*^9,
|
||||
FormBox[
|
||||
TemplateBox[{0, 0}, "Spacer2"], TraditionalForm], {
|
||||
0.009722222222222222, 0.},
|
||||
Directive[]}}}}],
|
||||
GridLines->FrontEndValueCache[{Charting`ScaledTickValues[
|
||||
((Transpose[{#,
|
||||
@@ -726,21 +483,11 @@ JR4yDA6Oo40ArOfTW3eUavs/ZgDfFQ==
|
||||
Alternatives["",
|
||||
Spacer[{0, 0}]]], Head[#] === List, Length[#] > 0]& ], All, 1]]& )[
|
||||
SlotSequence[1]], {Identity, Identity}]& , Automatic}, {{{3.7237536*^9,
|
||||
Directive[
|
||||
GrayLevel[0.4],
|
||||
Opacity[0.5],
|
||||
AbsoluteThickness[1.],
|
||||
AbsoluteDashing[{1., 2.}]]}, {3.7552896*^9,
|
||||
Directive[
|
||||
GrayLevel[0.4],
|
||||
Opacity[0.5],
|
||||
AbsoluteThickness[1.],
|
||||
AbsoluteDashing[{1., 2.}]]}, {3.7868256*^9,
|
||||
Directive[
|
||||
GrayLevel[0.4],
|
||||
Opacity[0.5],
|
||||
AbsoluteThickness[1.],
|
||||
AbsoluteDashing[{1., 2.}]]}, {3.818448*^9,
|
||||
Directive[
|
||||
GrayLevel[0.4],
|
||||
Opacity[0.5],
|
||||
@@ -750,12 +497,12 @@ JR4yDA6Oo40ArOfTW3eUavs/ZgDfFQ==
|
||||
GrayLevel[0.4],
|
||||
Opacity[0.5],
|
||||
AbsoluteThickness[1.],
|
||||
AbsoluteDashing[{1., 2.}]]}, {3.88152*^9,
|
||||
AbsoluteDashing[{1., 2.}]]}, {3.913056*^9,
|
||||
Directive[
|
||||
GrayLevel[0.4],
|
||||
Opacity[0.5],
|
||||
AbsoluteThickness[1.],
|
||||
AbsoluteDashing[{1., 2.}]]}, {3.913056*^9,
|
||||
AbsoluteDashing[{1., 2.}]]}, {3.9762144*^9,
|
||||
Directive[
|
||||
GrayLevel[0.4],
|
||||
Opacity[0.5],
|
||||
@@ -847,13 +594,13 @@ JR4yDA6Oo40ArOfTW3eUavs/ZgDfFQ==
|
||||
"\"base version: (adware + malware) only\"", 12, Bold, StripOnInput ->
|
||||
False]}, {
|
||||
StyleBox[
|
||||
"\"updated: Thu 25 May 2023 02:53:57 UTC\"", 12, StripOnInput ->
|
||||
"\"updated: Sun 7 Jan 2024 03:04:45 UTC\"", 12, StripOnInput ->
|
||||
False]}}, GridBoxAlignment -> {"Columns" -> {{Center}}},
|
||||
DefaultBaseStyle -> "Column",
|
||||
GridBoxItemSize -> {
|
||||
"Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}], "Column"],
|
||||
TraditionalForm],
|
||||
PlotRange->{{3.729024*^9, 3.8938752*^9}, {0, 204490.}},
|
||||
PlotRange->{{3.729024*^9, 3.9135744*^9}, {0, 218063.}},
|
||||
PlotRangePadding->{{
|
||||
Scaled[0.02],
|
||||
Scaled[0.02]}, {
|
||||
@@ -907,8 +654,31 @@ JR4yDA6Oo40ArOfTW3eUavs/ZgDfFQ==
|
||||
3.8916073042523813`*^9, 3.891872341652968*^9, 3.892072401751935*^9,
|
||||
3.89228235594491*^9, 3.892544999424947*^9, 3.892806179970969*^9,
|
||||
3.893095552437428*^9, 3.8931723751025543`*^9, 3.89362060069613*^9,
|
||||
3.893686053639799*^9, 3.89397203764882*^9},
|
||||
CellLabel->"Out[39]=",ExpressionUUID->"2c51e26e-b750-4b96-8e9f-7ad4fd7c9abc"]
|
||||
3.893686053639799*^9, 3.89397203764882*^9, 3.894751203039884*^9,
|
||||
3.895084844111672*^9, 3.895439490125032*^9, 3.8955263216939163`*^9,
|
||||
3.895657784061549*^9, 3.8957448599055853`*^9, 3.895931247787265*^9,
|
||||
3.896013566564756*^9, 3.896095386373332*^9, 3.8965191786429*^9,
|
||||
3.8968936313937263`*^9, 3.897216178858164*^9, 3.897657754621402*^9,
|
||||
3.897926194231195*^9, 3.8983794149994497`*^9, 3.8983794476037083`*^9,
|
||||
3.8984342923172283`*^9, 3.898951274337104*^9, 3.899121622375916*^9,
|
||||
3.899475149831279*^9, 3.899911501496304*^9, 3.900175205856585*^9,
|
||||
3.900270527812401*^9, 3.900491563343502*^9, {3.903025185560467*^9,
|
||||
3.9030252059821978`*^9}, 3.903174150401764*^9, 3.903182074275147*^9,
|
||||
3.903383990135808*^9, 3.903384025396119*^9, 3.903726387165244*^9,
|
||||
3.903971852825098*^9, 3.904336629052966*^9, 3.904556665826528*^9,
|
||||
3.904660734636202*^9, 3.905083048189001*^9, 3.9052851290532703`*^9,
|
||||
3.905441042720232*^9, 3.905782272103561*^9, 3.906106379419388*^9,
|
||||
3.90620708413487*^9, 3.906558811905631*^9, 3.9066353015959377`*^9,
|
||||
3.906908194396344*^9, 3.907055587466549*^9, 3.907452024145508*^9,
|
||||
3.90783837173269*^9, 3.90797214412626*^9, 3.908034764359009*^9,
|
||||
3.908469310792593*^9, 3.908732154353013*^9, 3.908732190062996*^9,
|
||||
3.908901085229148*^9, {3.909427575397406*^9, 3.909427588602787*^9},
|
||||
3.909612415221402*^9, 3.909847575834868*^9, 3.909936481017467*^9,
|
||||
3.909991254378272*^9, 3.910005424673617*^9, 3.910456143107051*^9,
|
||||
3.910647476573389*^9, 3.911433387460314*^9, 3.911728222756092*^9,
|
||||
3.9118237070907784`*^9, 3.912544596386341*^9, 3.912962757486238*^9,
|
||||
3.91332901505127*^9, 3.913585485561975*^9},
|
||||
CellLabel->"Out[18]=",ExpressionUUID->"9487d849-30d7-4747-a023-e7b383a2561f"]
|
||||
}, Open ]]
|
||||
},
|
||||
WindowSize->{1234, 1257},
|
||||
@@ -928,10 +698,10 @@ CellTagsIndex->{}
|
||||
*)
|
||||
(*NotebookFileOutline
|
||||
Notebook[{
|
||||
Cell[561, 20, 2810, 65, 157, "Input",ExpressionUUID->"e5e34011-aa3d-4e95-90b1-863054ac32f5"],
|
||||
Cell[561, 20, 3004, 67, 157, "Input",ExpressionUUID->"e5e34011-aa3d-4e95-90b1-863054ac32f5"],
|
||||
Cell[CellGroupData[{
|
||||
Cell[3396, 89, 3319, 73, 409, "Input",ExpressionUUID->"55c17c4f-14a9-40f1-a01c-ab0b0c9b3309"],
|
||||
Cell[6718, 164, 31491, 746, 426, "Output",ExpressionUUID->"2c51e26e-b750-4b96-8e9f-7ad4fd7c9abc"]
|
||||
Cell[3590, 91, 3368, 74, 409, "Input",ExpressionUUID->"55c17c4f-14a9-40f1-a01c-ab0b0c9b3309"],
|
||||
Cell[6961, 167, 23838, 513, 474, "Output",ExpressionUUID->"9487d849-30d7-4747-a023-e7b383a2561f"]
|
||||
}, Open ]]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -532,3 +532,65 @@
|
||||
2023-05-20,183693
|
||||
2023-05-21,183820
|
||||
2023-05-24,186359
|
||||
2023-06-03,188935
|
||||
2023-06-06,190101
|
||||
2023-06-10,190910
|
||||
2023-06-11,190986
|
||||
2023-06-13,191475
|
||||
2023-06-14,192353
|
||||
2023-06-15,193031
|
||||
2023-06-16,194049
|
||||
2023-06-17,193745
|
||||
2023-06-18,193532
|
||||
2023-06-23,195265
|
||||
2023-06-27,195888
|
||||
2023-07-01,197056
|
||||
2023-07-06,198470
|
||||
2023-07-09,198903
|
||||
2023-07-14,200541
|
||||
2023-07-15,200643
|
||||
2023-07-21,202390
|
||||
2023-07-23,202580
|
||||
2023-07-27,203871
|
||||
2023-08-01,205106
|
||||
2023-08-04,207241
|
||||
2023-08-05,207329
|
||||
2023-08-06,217142
|
||||
2023-08-08,218063
|
||||
2023-08-10,193508
|
||||
2023-09-14,193527
|
||||
2023-09-17,170010
|
||||
2023-09-21,136348
|
||||
2023-09-24,136916
|
||||
2023-09-25,135874
|
||||
2023-09-30,136121
|
||||
2023-10-03,136500
|
||||
2023-10-04,137889
|
||||
2023-10-08,138779
|
||||
2023-10-12,142561
|
||||
2023-10-13,143279
|
||||
2023-10-17,144152
|
||||
2023-10-18,144647
|
||||
2023-10-21,146329
|
||||
2023-10-23,146518
|
||||
2023-10-28,148939
|
||||
2023-11-01,150073
|
||||
2023-11-02,150826
|
||||
2023-11-03,151351
|
||||
2023-11-08,153284
|
||||
2023-11-11,154182
|
||||
2023-11-13,154802
|
||||
2023-11-19,157163
|
||||
2023-11-21,158148
|
||||
2023-11-24,159709
|
||||
2023-11-25,160064
|
||||
2023-11-26,160199
|
||||
2023-12-01,144135
|
||||
2023-12-03,144626
|
||||
2023-12-13,141631
|
||||
2023-12-16,143418
|
||||
2023-12-17,143606
|
||||
2023-12-26,144724
|
||||
2023-12-30,145892
|
||||
2024-01-03,146695
|
||||
2024-01-07,147972
|
||||
@@ -113,6 +113,7 @@ class TestGetDefaults(Base):
|
||||
"keepdomaincomments": True,
|
||||
"extensionspath": "foo" + self.sep + "extensions",
|
||||
"extensions": [],
|
||||
"nounifiedhosts": False,
|
||||
"compress": False,
|
||||
"minimise": False,
|
||||
"outputsubfolder": "",
|
||||
@@ -679,6 +680,7 @@ class TestUpdateSourcesData(Base):
|
||||
datapath=self.data_path,
|
||||
extensionspath=self.extensions_path,
|
||||
sourcedatafilename=self.source_data_filename,
|
||||
nounifiedhosts=False,
|
||||
)
|
||||
|
||||
def update_sources_data(self, sources_data, extensions):
|
||||
@@ -838,8 +840,12 @@ class TestNormalizeRule(BaseStdout):
|
||||
# Note: "Bare"- Domains are accepted. IP are excluded.
|
||||
for rule in [
|
||||
"128.0.0.1",
|
||||
"0.0.0 google",
|
||||
"0.1.2.3.4 foo/bar",
|
||||
"::1",
|
||||
"0.0.0.0 128.0.0.2",
|
||||
"0.1.2.3 foo/bar",
|
||||
"0.3.4.5 example.org/hello/world",
|
||||
"0.0.0.0 https",
|
||||
"0.0.0.0 https..",
|
||||
]:
|
||||
self.assertEqual(normalize_rule(rule, **kwargs), (None, None))
|
||||
|
||||
@@ -849,6 +855,25 @@ class TestNormalizeRule(BaseStdout):
|
||||
expected = "==>" + rule + "<=="
|
||||
self.assertIn(expected, output)
|
||||
|
||||
def test_mixed_cases(self):
|
||||
for rule, expected_target in (
|
||||
("tWiTTer.cOM", "twitter.com"),
|
||||
("goOgLe.Com", "google.com"),
|
||||
("FoO.bAR.edu", "foo.bar.edu"),
|
||||
):
|
||||
expected = (expected_target, "0.0.0.0 " + expected_target + "\n")
|
||||
|
||||
actual = normalize_rule(
|
||||
rule, target_ip="0.0.0.0", keep_domain_comments=False
|
||||
)
|
||||
self.assertEqual(actual, expected)
|
||||
|
||||
# Nothing gets printed if there's a match.
|
||||
output = sys.stdout.getvalue()
|
||||
self.assertEqual(output, "")
|
||||
|
||||
sys.stdout = StringIO()
|
||||
|
||||
def test_no_comments(self):
|
||||
for target_ip in ("0.0.0.0", "127.0.0.1", "8.8.8.8"):
|
||||
rule = "127.0.0.1 1.google.com foo"
|
||||
@@ -888,21 +913,28 @@ class TestNormalizeRule(BaseStdout):
|
||||
def test_two_ips(self):
|
||||
for target_ip in ("0.0.0.0", "127.0.0.1", "8.8.8.8"):
|
||||
rule = "127.0.0.1 11.22.33.44 foo"
|
||||
expected = ("11.22.33.44", str(target_ip) + " 11.22.33.44\n")
|
||||
|
||||
actual = normalize_rule(
|
||||
rule, target_ip=target_ip, keep_domain_comments=False
|
||||
)
|
||||
self.assertEqual(actual, expected)
|
||||
self.assertEqual(actual, (None, None))
|
||||
|
||||
# Nothing gets printed if there's a match.
|
||||
output = sys.stdout.getvalue()
|
||||
self.assertEqual(output, "")
|
||||
|
||||
expected = "==>" + rule + "<=="
|
||||
self.assertIn(expected, output)
|
||||
|
||||
sys.stdout = StringIO()
|
||||
|
||||
def test_no_comment_raw(self):
|
||||
for rule in ("twitter.com", "google.com", "foo.bar.edu"):
|
||||
for rule in (
|
||||
"twitter.com",
|
||||
"google.com",
|
||||
"foo.bar.edu",
|
||||
"www.example-foo.bar.edu",
|
||||
"www.example-3045.foobar.com",
|
||||
"www.example.xn--p1ai"
|
||||
):
|
||||
expected = (rule, "0.0.0.0 " + rule + "\n")
|
||||
|
||||
actual = normalize_rule(
|
||||
@@ -990,7 +1022,7 @@ class TestWriteOpeningHeader(BaseMockDir):
|
||||
|
||||
def test_missing_keyword(self):
|
||||
kwargs = dict(
|
||||
extensions="", outputsubfolder="", numberofrules=5, skipstatichosts=False
|
||||
extensions="", outputsubfolder="", numberofrules=5, skipstatichosts=False, nounifiedhosts=False
|
||||
)
|
||||
|
||||
for k in kwargs.keys():
|
||||
@@ -1003,7 +1035,7 @@ class TestWriteOpeningHeader(BaseMockDir):
|
||||
|
||||
def test_basic(self):
|
||||
kwargs = dict(
|
||||
extensions="", outputsubfolder="", numberofrules=5, skipstatichosts=True
|
||||
extensions="", outputsubfolder="", numberofrules=5, skipstatichosts=True, nounifiedhosts=False
|
||||
)
|
||||
write_opening_header(self.final_file, **kwargs)
|
||||
|
||||
@@ -1032,7 +1064,7 @@ class TestWriteOpeningHeader(BaseMockDir):
|
||||
|
||||
def test_basic_include_static_hosts(self):
|
||||
kwargs = dict(
|
||||
extensions="", outputsubfolder="", numberofrules=5, skipstatichosts=False
|
||||
extensions="", outputsubfolder="", numberofrules=5, skipstatichosts=False, nounifiedhosts=False
|
||||
)
|
||||
with self.mock_property("platform.system") as obj:
|
||||
obj.return_value = "Windows"
|
||||
@@ -1059,7 +1091,7 @@ class TestWriteOpeningHeader(BaseMockDir):
|
||||
|
||||
def test_basic_include_static_hosts_linux(self):
|
||||
kwargs = dict(
|
||||
extensions="", outputsubfolder="", numberofrules=5, skipstatichosts=False
|
||||
extensions="", outputsubfolder="", numberofrules=5, skipstatichosts=False, nounifiedhosts=False
|
||||
)
|
||||
with self.mock_property("platform.system") as system:
|
||||
system.return_value = "Linux"
|
||||
@@ -1096,6 +1128,7 @@ class TestWriteOpeningHeader(BaseMockDir):
|
||||
outputsubfolder="",
|
||||
numberofrules=5,
|
||||
skipstatichosts=True,
|
||||
nounifiedhosts=False,
|
||||
)
|
||||
write_opening_header(self.final_file, **kwargs)
|
||||
|
||||
@@ -1123,6 +1156,41 @@ class TestWriteOpeningHeader(BaseMockDir):
|
||||
):
|
||||
self.assertNotIn(expected, contents)
|
||||
|
||||
def test_no_unified_hosts(self):
|
||||
kwargs = dict(
|
||||
extensions=["epsilon", "gamma"],
|
||||
outputsubfolder="",
|
||||
numberofrules=5,
|
||||
skipstatichosts=True,
|
||||
nounifiedhosts=True,
|
||||
)
|
||||
write_opening_header(self.final_file, **kwargs)
|
||||
|
||||
contents = self.final_file.getvalue()
|
||||
contents = contents.decode("UTF-8")
|
||||
|
||||
# Expected contents.
|
||||
for expected in (
|
||||
", ".join(kwargs["extensions"]),
|
||||
"# The unified hosts file was not used while generating this file.",
|
||||
"# Extensions used to generate this file:",
|
||||
"# This hosts file is a merged collection",
|
||||
"# with a dash of crowd sourcing via GitHub",
|
||||
"# Number of unique domains: {count}".format(count=kwargs["numberofrules"]),
|
||||
"Fetch the latest version of this file:",
|
||||
"Project home page: https://github.com/StevenBlack/hosts",
|
||||
):
|
||||
self.assertIn(expected, contents)
|
||||
|
||||
# Expected non-contents.
|
||||
for expected in (
|
||||
"127.0.0.1 localhost",
|
||||
"127.0.0.1 local",
|
||||
"127.0.0.53",
|
||||
"127.0.1.1",
|
||||
):
|
||||
self.assertNotIn(expected, contents)
|
||||
|
||||
def _check_preamble(self, check_copy):
|
||||
hosts_file = os.path.join(self.test_dir, "myhosts")
|
||||
hosts_file += ".example" if check_copy else ""
|
||||
@@ -1131,7 +1199,7 @@ class TestWriteOpeningHeader(BaseMockDir):
|
||||
f.write("peter-piper-picked-a-pepper")
|
||||
|
||||
kwargs = dict(
|
||||
extensions="", outputsubfolder="", numberofrules=5, skipstatichosts=True
|
||||
extensions="", outputsubfolder="", numberofrules=5, skipstatichosts=True, nounifiedhosts=False
|
||||
)
|
||||
|
||||
with self.mock_property("updateHostsFile.BASEDIR_PATH"):
|
||||
@@ -1180,7 +1248,7 @@ class TestUpdateReadmeData(BaseMockDir):
|
||||
|
||||
def test_missing_keyword(self):
|
||||
kwargs = dict(
|
||||
extensions="", outputsubfolder="", numberofrules="", sourcesdata=""
|
||||
extensions="", outputsubfolder="", numberofrules="", sourcesdata="", nounifiedhosts=False
|
||||
)
|
||||
|
||||
for k in kwargs.keys():
|
||||
@@ -1196,7 +1264,7 @@ class TestUpdateReadmeData(BaseMockDir):
|
||||
json.dump({"foo": "bar"}, f)
|
||||
|
||||
kwargs = dict(
|
||||
extensions=None, outputsubfolder="foo", numberofrules=5, sourcesdata="hosts"
|
||||
extensions=None, outputsubfolder="foo", numberofrules=5, sourcesdata="hosts", nounifiedhosts=False
|
||||
)
|
||||
update_readme_data(self.readme_file, **kwargs)
|
||||
|
||||
@@ -1206,7 +1274,7 @@ class TestUpdateReadmeData(BaseMockDir):
|
||||
sep = self.sep
|
||||
|
||||
expected = {
|
||||
"base": {"location": "foo" + sep, "sourcesdata": "hosts", "entries": 5},
|
||||
"base": {"location": "foo" + sep, 'no_unified_hosts': False, "sourcesdata": "hosts", "entries": 5},
|
||||
"foo": "bar",
|
||||
}
|
||||
|
||||
@@ -1219,7 +1287,7 @@ class TestUpdateReadmeData(BaseMockDir):
|
||||
json.dump({"base": "soprano"}, f)
|
||||
|
||||
kwargs = dict(
|
||||
extensions=None, outputsubfolder="foo", numberofrules=5, sourcesdata="hosts"
|
||||
extensions=None, outputsubfolder="foo", numberofrules=5, sourcesdata="hosts", nounifiedhosts=False
|
||||
)
|
||||
update_readme_data(self.readme_file, **kwargs)
|
||||
|
||||
@@ -1229,7 +1297,7 @@ class TestUpdateReadmeData(BaseMockDir):
|
||||
sep = self.sep
|
||||
|
||||
expected = {
|
||||
"base": {"location": "foo" + sep, "sourcesdata": "hosts", "entries": 5}
|
||||
"base": {"location": "foo" + sep, 'no_unified_hosts': False, "sourcesdata": "hosts", "entries": 5},
|
||||
}
|
||||
|
||||
with open(self.readme_file, "r") as f:
|
||||
@@ -1245,6 +1313,7 @@ class TestUpdateReadmeData(BaseMockDir):
|
||||
outputsubfolder="foo",
|
||||
numberofrules=5,
|
||||
sourcesdata="hosts",
|
||||
nounifiedhosts=False,
|
||||
)
|
||||
update_readme_data(self.readme_file, **kwargs)
|
||||
|
||||
@@ -1254,7 +1323,33 @@ class TestUpdateReadmeData(BaseMockDir):
|
||||
sep = self.sep
|
||||
|
||||
expected = {
|
||||
"com-org": {"location": "foo" + sep, "sourcesdata": "hosts", "entries": 5}
|
||||
"com-org": {"location": "foo" + sep, 'no_unified_hosts': False, "sourcesdata": "hosts", "entries": 5}
|
||||
}
|
||||
|
||||
with open(self.readme_file, "r") as f:
|
||||
actual = json.load(f)
|
||||
self.assertEqual(actual, expected)
|
||||
|
||||
def test_set_no_unified_hosts(self):
|
||||
with open(self.readme_file, "w") as f:
|
||||
json.dump({}, f)
|
||||
|
||||
kwargs = dict(
|
||||
extensions=["com", "org"],
|
||||
outputsubfolder="foo",
|
||||
numberofrules=5,
|
||||
sourcesdata="hosts",
|
||||
nounifiedhosts=True,
|
||||
)
|
||||
update_readme_data(self.readme_file, **kwargs)
|
||||
|
||||
if platform.system().lower() == "windows":
|
||||
sep = "/"
|
||||
else:
|
||||
sep = self.sep
|
||||
|
||||
expected = {
|
||||
"com-org-only": {"location": "foo" + sep, 'no_unified_hosts': True, "sourcesdata": "hosts", "entries": 5}
|
||||
}
|
||||
|
||||
with open(self.readme_file, "r") as f:
|
||||
@@ -1424,52 +1519,53 @@ class TestFlushDnsCache(BaseStdout):
|
||||
class TestRemoveOldHostsFile(BaseMockDir):
|
||||
def setUp(self):
|
||||
super(TestRemoveOldHostsFile, self).setUp()
|
||||
self.hosts_file = os.path.join(self.test_dir, "hosts")
|
||||
self.hosts_file = "hosts"
|
||||
self.full_hosts_path = os.path.join(self.test_dir, "hosts")
|
||||
|
||||
def test_remove_hosts_file(self):
|
||||
old_dir_count = self.dir_count
|
||||
|
||||
remove_old_hosts_file(self.hosts_file, backup=False)
|
||||
remove_old_hosts_file(self.test_dir, self.hosts_file, backup=False)
|
||||
|
||||
new_dir_count = old_dir_count + 1
|
||||
self.assertEqual(self.dir_count, new_dir_count)
|
||||
|
||||
with open(self.hosts_file, "r") as f:
|
||||
with open(self.full_hosts_path, "r") as f:
|
||||
contents = f.read()
|
||||
self.assertEqual(contents, "")
|
||||
|
||||
def test_remove_hosts_file_exists(self):
|
||||
with open(self.hosts_file, "w") as f:
|
||||
with open(self.full_hosts_path, "w") as f:
|
||||
f.write("foo")
|
||||
|
||||
old_dir_count = self.dir_count
|
||||
|
||||
remove_old_hosts_file(self.hosts_file, backup=False)
|
||||
remove_old_hosts_file(self.test_dir, self.hosts_file, backup=False)
|
||||
|
||||
new_dir_count = old_dir_count
|
||||
self.assertEqual(self.dir_count, new_dir_count)
|
||||
|
||||
with open(self.hosts_file, "r") as f:
|
||||
with open(self.full_hosts_path, "r") as f:
|
||||
contents = f.read()
|
||||
self.assertEqual(contents, "")
|
||||
|
||||
@mock.patch("time.strftime", return_value="new")
|
||||
def test_remove_hosts_file_backup(self, _):
|
||||
with open(self.hosts_file, "w") as f:
|
||||
with open(self.full_hosts_path, "w") as f:
|
||||
f.write("foo")
|
||||
|
||||
old_dir_count = self.dir_count
|
||||
|
||||
remove_old_hosts_file(self.hosts_file, backup=True)
|
||||
remove_old_hosts_file(self.test_dir, self.hosts_file, backup=True)
|
||||
|
||||
new_dir_count = old_dir_count + 1
|
||||
self.assertEqual(self.dir_count, new_dir_count)
|
||||
|
||||
with open(self.hosts_file, "r") as f:
|
||||
with open(self.full_hosts_path, "r") as f:
|
||||
contents = f.read()
|
||||
self.assertEqual(contents, "")
|
||||
|
||||
new_hosts_file = self.hosts_file + "-new"
|
||||
new_hosts_file = self.full_hosts_path + "-new"
|
||||
|
||||
with open(new_hosts_file, "r") as f:
|
||||
contents = f.read()
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
import argparse
|
||||
import fnmatch
|
||||
import ipaddress
|
||||
import json
|
||||
import locale
|
||||
import os
|
||||
@@ -72,6 +73,7 @@ def get_defaults():
|
||||
"keepdomaincomments": True,
|
||||
"extensionspath": path_join_robust(BASEDIR_PATH, "extensions"),
|
||||
"extensions": [],
|
||||
"nounifiedhosts": False,
|
||||
"compress": False,
|
||||
"minimise": False,
|
||||
"outputsubfolder": "",
|
||||
@@ -124,6 +126,13 @@ def main():
|
||||
nargs="*",
|
||||
help="Host extensions to include in the final hosts file.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--nounifiedhosts",
|
||||
dest="nounifiedhosts",
|
||||
default=False,
|
||||
action="store_true",
|
||||
help="Do not include the unified hosts file in the final hosts file. Usually used together with `--extensions`.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--ip",
|
||||
"-i",
|
||||
@@ -248,6 +257,7 @@ def main():
|
||||
auto = settings["auto"]
|
||||
exclusion_regexes = settings["exclusionregexes"]
|
||||
source_data_filename = settings["sourcedatafilename"]
|
||||
no_unified_hosts = settings["nounifiedhosts"]
|
||||
|
||||
update_sources = prompt_for_update(freshen=settings["freshen"], update_auto=auto)
|
||||
if update_sources:
|
||||
@@ -271,12 +281,13 @@ def main():
|
||||
extensions=extensions,
|
||||
extensionspath=extensions_path,
|
||||
sourcedatafilename=source_data_filename,
|
||||
nounifiedhosts=no_unified_hosts,
|
||||
)
|
||||
|
||||
merge_file = create_initial_file()
|
||||
remove_old_hosts_file(
|
||||
path_join_robust(settings["outputpath"], "hosts"), settings["backup"]
|
||||
merge_file = create_initial_file(
|
||||
nounifiedhosts=no_unified_hosts,
|
||||
)
|
||||
remove_old_hosts_file(settings["outputpath"], "hosts", settings["backup"])
|
||||
if settings["compress"]:
|
||||
final_file = open(path_join_robust(settings["outputpath"], "hosts"), "w+b")
|
||||
compressed_file = tempfile.NamedTemporaryFile()
|
||||
@@ -300,6 +311,7 @@ def main():
|
||||
numberofrules=number_of_rules,
|
||||
outputsubfolder=output_subfolder,
|
||||
skipstatichosts=skip_static_hosts,
|
||||
nounifiedhosts=no_unified_hosts,
|
||||
)
|
||||
final_file.close()
|
||||
|
||||
@@ -310,6 +322,7 @@ def main():
|
||||
numberofrules=number_of_rules,
|
||||
outputsubfolder=output_subfolder,
|
||||
sourcesdata=sources_data,
|
||||
nounifiedhosts=no_unified_hosts,
|
||||
)
|
||||
|
||||
print_success(
|
||||
@@ -372,7 +385,7 @@ def prompt_for_update(freshen, update_auto):
|
||||
)
|
||||
|
||||
if not freshen:
|
||||
return
|
||||
return False
|
||||
|
||||
prompt = "Do you want to update all data sources?"
|
||||
|
||||
@@ -668,6 +681,7 @@ def update_sources_data(sources_data, **sources_params):
|
||||
2) extensions
|
||||
3) extensionspath
|
||||
4) sourcedatafilename
|
||||
5) nounifiedhosts
|
||||
|
||||
Returns
|
||||
-------
|
||||
@@ -677,13 +691,16 @@ def update_sources_data(sources_data, **sources_params):
|
||||
|
||||
source_data_filename = sources_params["sourcedatafilename"]
|
||||
|
||||
for source in sort_sources(
|
||||
recursive_glob(sources_params["datapath"], source_data_filename)
|
||||
):
|
||||
update_file = open(source, "r", encoding="UTF-8")
|
||||
update_data = json.load(update_file)
|
||||
sources_data.append(update_data)
|
||||
update_file.close()
|
||||
if not sources_params["nounifiedhosts"]:
|
||||
for source in sort_sources(
|
||||
recursive_glob(sources_params["datapath"], source_data_filename)
|
||||
):
|
||||
update_file = open(source, "r", encoding="UTF-8")
|
||||
try:
|
||||
update_data = json.load(update_file)
|
||||
sources_data.append(update_data)
|
||||
finally:
|
||||
update_file.close()
|
||||
|
||||
for source in sources_params["extensions"]:
|
||||
source_dir = path_join_robust(sources_params["extensionspath"], source)
|
||||
@@ -691,10 +708,11 @@ def update_sources_data(sources_data, **sources_params):
|
||||
recursive_glob(source_dir, source_data_filename)
|
||||
):
|
||||
update_file = open(update_file_path, "r")
|
||||
update_data = json.load(update_file)
|
||||
|
||||
sources_data.append(update_data)
|
||||
update_file.close()
|
||||
try:
|
||||
update_data = json.load(update_file)
|
||||
sources_data.append(update_data)
|
||||
finally:
|
||||
update_file.close()
|
||||
|
||||
return sources_data
|
||||
|
||||
@@ -744,7 +762,7 @@ def update_all_sources(source_data_filename, host_filename):
|
||||
|
||||
# we can pause updating any given hosts source.
|
||||
# if the update.json "pause" key is missing, don't pause.
|
||||
if update_data.get('pause', False):
|
||||
if update_data.get("pause", False):
|
||||
continue
|
||||
|
||||
update_url = update_data["url"]
|
||||
@@ -778,23 +796,31 @@ def update_all_sources(source_data_filename, host_filename):
|
||||
|
||||
|
||||
# File Logic
|
||||
def create_initial_file():
|
||||
def create_initial_file(**initial_file_params):
|
||||
"""
|
||||
Initialize the file in which we merge all host files for later pruning.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
header_params : kwargs
|
||||
Dictionary providing additional parameters for populating the initial file
|
||||
information. Currently, those fields are:
|
||||
|
||||
1) nounifiedhosts
|
||||
"""
|
||||
|
||||
merge_file = tempfile.NamedTemporaryFile()
|
||||
|
||||
# spin the sources for the base file
|
||||
for source in sort_sources(
|
||||
recursive_glob(settings["datapath"], settings["hostfilename"])
|
||||
):
|
||||
if not initial_file_params["nounifiedhosts"]:
|
||||
# spin the sources for the base file
|
||||
for source in sort_sources(
|
||||
recursive_glob(settings["datapath"], settings["hostfilename"])
|
||||
):
|
||||
start = "# Start {}\n\n".format(os.path.basename(os.path.dirname(source)))
|
||||
end = "\n# End {}\n\n".format(os.path.basename(os.path.dirname(source)))
|
||||
|
||||
start = "# Start {}\n\n".format(os.path.basename(os.path.dirname(source)))
|
||||
end = "\n# End {}\n\n".format(os.path.basename(os.path.dirname(source)))
|
||||
|
||||
with open(source, "r", encoding="UTF-8") as curFile:
|
||||
write_data(merge_file, start + curFile.read() + end)
|
||||
with open(source, "r", encoding="UTF-8") as curFile:
|
||||
write_data(merge_file, start + curFile.read() + end)
|
||||
|
||||
# spin the sources for extensions to the base file
|
||||
for source in settings["extensions"]:
|
||||
@@ -1026,59 +1052,117 @@ def normalize_rule(rule, target_ip, keep_domain_comments):
|
||||
|
||||
if keep_domain_comments and extracted_suffix:
|
||||
if not extracted_suffix.strip().startswith("#"):
|
||||
rule += " #%s" % extracted_suffix
|
||||
# Strings are stripped, therefore we need to add the space back.
|
||||
rule += " # %s" % extracted_suffix
|
||||
else:
|
||||
rule += " %s" % extracted_suffix
|
||||
|
||||
return extracted_hostname, rule + "\n"
|
||||
|
||||
def is_ip(dataset: str) -> bool:
|
||||
"""
|
||||
Checks whether the given dataset is an IP.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
dataset: str
|
||||
The dataset to work with.
|
||||
|
||||
Returns
|
||||
-------
|
||||
is_ip: bool
|
||||
Whether the dataset is an IP.
|
||||
"""
|
||||
|
||||
try:
|
||||
_ = ipaddress.ip_address(dataset)
|
||||
return True
|
||||
except ValueError:
|
||||
return False
|
||||
|
||||
def belch_unwanted(unwanted: str) -> Tuple[None, None]:
|
||||
"""
|
||||
Belches unwanted to screen.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
unwanted: str
|
||||
The unwanted string to belch.
|
||||
|
||||
Returns
|
||||
-------
|
||||
belched: tuple
|
||||
A tuple of None, None.
|
||||
"""
|
||||
|
||||
"""
|
||||
finally, if we get here, just belch to screen
|
||||
"""
|
||||
print("==>%s<==" % unwanted)
|
||||
return None, None
|
||||
|
||||
"""
|
||||
first try: IP followed by domain
|
||||
"""
|
||||
regex = r"^\s*(\d{1,3}\.){3}\d{1,3}\s+([\w\.-]+[a-zA-Z])(.*)"
|
||||
result = re.search(regex, rule)
|
||||
|
||||
if result:
|
||||
hostname, suffix = result.group(2, 3)
|
||||
static_ip_regex = r"^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$"
|
||||
split_rule = rule.split(maxsplit=1)
|
||||
|
||||
# Explicitly lowercase and trim the hostname.
|
||||
hostname = hostname.lower().strip()
|
||||
if is_ip(split_rule[0]):
|
||||
# Assume that the first item is an IP address following the rule.
|
||||
|
||||
if " " or "\t" in split_rule[-1]:
|
||||
try:
|
||||
# Example: 0.0.0.0 example.org # hello, world!
|
||||
hostname, suffix = split_rule[-1].split(maxsplit=1)
|
||||
except ValueError:
|
||||
# Example: 0.0.0.0 example.org[:space:]
|
||||
hostname, suffix = split_rule[-1], None
|
||||
else:
|
||||
# Example: 0.0.0.0 example.org
|
||||
hostname, suffix = split_rule[-1], None
|
||||
|
||||
hostname = hostname.lower()
|
||||
|
||||
if (
|
||||
is_ip(hostname)
|
||||
or re.search(static_ip_regex, hostname)
|
||||
or "." not in hostname
|
||||
or "/" in hostname
|
||||
or ".." in hostname
|
||||
or ":" in hostname
|
||||
):
|
||||
# Example: 0.0.0.0 127.0.0.1
|
||||
|
||||
# If the hostname is:
|
||||
# - an IP - or looks like it,
|
||||
# - doesn't contain dots, or
|
||||
# - contains a colon,
|
||||
# we don't want to normalize it.
|
||||
return belch_unwanted(rule)
|
||||
|
||||
return normalize_response(hostname, suffix)
|
||||
|
||||
"""
|
||||
next try: IP address followed by host IP address
|
||||
"""
|
||||
regex = r"^\s*(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s+(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s*(.*)"
|
||||
result = re.search(regex, rule)
|
||||
if (
|
||||
not re.search(static_ip_regex, split_rule[0])
|
||||
and ":" not in split_rule[0]
|
||||
and ".." not in split_rule[0]
|
||||
and "/" not in split_rule[0]
|
||||
and "." in split_rule[0]
|
||||
):
|
||||
# Deny anything that looks like an IP; doesn't container dots or INVALID.
|
||||
|
||||
if result:
|
||||
ip_host, suffix = result.group(2, 3)
|
||||
# Explicitly trim the ip host.
|
||||
ip_host = ip_host.strip()
|
||||
try:
|
||||
hostname, suffix = split_rule
|
||||
except ValueError:
|
||||
hostname, suffix = split_rule[0], None
|
||||
|
||||
return normalize_response(ip_host, suffix)
|
||||
hostname = hostname.lower()
|
||||
|
||||
"""
|
||||
next try: Keep RAW domain.
|
||||
"""
|
||||
# deny any potential IPv6 address here.
|
||||
if ":" not in rule:
|
||||
regex = r"^\s*([\w\.-]+[a-zA-Z])(.*)"
|
||||
result = re.search(regex, rule)
|
||||
return normalize_response(hostname, suffix)
|
||||
|
||||
if result:
|
||||
hostname, suffix = result.group(1, 2)
|
||||
# Explicitly lowercase and trim the hostname.
|
||||
hostname = hostname.lower().strip()
|
||||
|
||||
return normalize_response(hostname, suffix)
|
||||
|
||||
"""
|
||||
finally, if we get here, just belch to screen
|
||||
"""
|
||||
print("==>%s<==" % rule)
|
||||
return None, None
|
||||
return belch_unwanted(rule)
|
||||
|
||||
|
||||
def strip_rule(line):
|
||||
@@ -1115,6 +1199,7 @@ def write_opening_header(final_file, **header_params):
|
||||
2) numberofrules
|
||||
3) outputsubfolder
|
||||
4) skipstatichosts
|
||||
5) nounifiedhosts
|
||||
"""
|
||||
|
||||
final_file.seek(0) # Reset file pointer.
|
||||
@@ -1122,22 +1207,41 @@ def write_opening_header(final_file, **header_params):
|
||||
|
||||
final_file.seek(0) # Write at the top.
|
||||
|
||||
no_unified_hosts = header_params["nounifiedhosts"]
|
||||
|
||||
if header_params["extensions"]:
|
||||
if len(header_params["extensions"]) > 1:
|
||||
write_data(
|
||||
final_file,
|
||||
"# Title: StevenBlack/hosts with the {0} and {1} extensions\n#\n".format(
|
||||
", ".join(header_params["extensions"][:-1]),
|
||||
header_params["extensions"][-1],
|
||||
),
|
||||
)
|
||||
if no_unified_hosts:
|
||||
if len(header_params["extensions"]) > 1:
|
||||
write_data(
|
||||
final_file,
|
||||
"# Title: StevenBlack/hosts extensions {0} and {1} \n#\n".format(
|
||||
", ".join(header_params["extensions"][:-1]),
|
||||
header_params["extensions"][-1],
|
||||
),
|
||||
)
|
||||
else:
|
||||
write_data(
|
||||
final_file,
|
||||
"# Title: StevenBlack/hosts extension {0}\n#\n".format(
|
||||
", ".join(header_params["extensions"])
|
||||
),
|
||||
)
|
||||
else:
|
||||
write_data(
|
||||
final_file,
|
||||
"# Title: StevenBlack/hosts with the {0} extension\n#\n".format(
|
||||
", ".join(header_params["extensions"])
|
||||
),
|
||||
)
|
||||
if len(header_params["extensions"]) > 1:
|
||||
write_data(
|
||||
final_file,
|
||||
"# Title: StevenBlack/hosts with the {0} and {1} extensions\n#\n".format(
|
||||
", ".join(header_params["extensions"][:-1]),
|
||||
header_params["extensions"][-1],
|
||||
),
|
||||
)
|
||||
else:
|
||||
write_data(
|
||||
final_file,
|
||||
"# Title: StevenBlack/hosts with the {0} extension\n#\n".format(
|
||||
", ".join(header_params["extensions"])
|
||||
),
|
||||
)
|
||||
else:
|
||||
write_data(final_file, "# Title: StevenBlack/hosts\n#\n")
|
||||
|
||||
@@ -1153,12 +1257,21 @@ def write_opening_header(final_file, **header_params):
|
||||
)
|
||||
|
||||
if header_params["extensions"]:
|
||||
write_data(
|
||||
final_file,
|
||||
"# Extensions added to this file: "
|
||||
+ ", ".join(header_params["extensions"])
|
||||
+ "\n",
|
||||
)
|
||||
if header_params["nounifiedhosts"]:
|
||||
write_data(
|
||||
final_file,
|
||||
"# The unified hosts file was not used while generating this file.\n"
|
||||
"# Extensions used to generate this file: "
|
||||
+ ", ".join(header_params["extensions"])
|
||||
+ "\n",
|
||||
)
|
||||
else:
|
||||
write_data(
|
||||
final_file,
|
||||
"# Extensions added to this file: "
|
||||
+ ", ".join(header_params["extensions"])
|
||||
+ "\n",
|
||||
)
|
||||
|
||||
write_data(
|
||||
final_file,
|
||||
@@ -1236,17 +1349,22 @@ def update_readme_data(readme_file, **readme_updates):
|
||||
2) sourcesdata
|
||||
3) numberofrules
|
||||
4) outputsubfolder
|
||||
5) nounifiedhosts
|
||||
"""
|
||||
|
||||
extensions_key = "base"
|
||||
extensions = readme_updates["extensions"]
|
||||
no_unified_hosts = readme_updates["nounifiedhosts"]
|
||||
|
||||
if extensions:
|
||||
extensions_key = "-".join(extensions)
|
||||
if no_unified_hosts:
|
||||
extensions_key = extensions_key + "-only"
|
||||
|
||||
output_folder = readme_updates["outputsubfolder"]
|
||||
generation_data = {
|
||||
"location": path_join_robust(output_folder, ""),
|
||||
"no_unified_hosts": no_unified_hosts,
|
||||
"entries": readme_updates["numberofrules"],
|
||||
"sourcesdata": readme_updates["sourcesdata"],
|
||||
}
|
||||
@@ -1291,7 +1409,9 @@ def move_hosts_file_into_place(final_file):
|
||||
return False
|
||||
|
||||
if platform.system() == "Windows":
|
||||
target_file = str(Path(os.getenv("SystemRoot")) / "system32" / "drivers" / "etc" / "hosts")
|
||||
target_file = str(
|
||||
Path(os.getenv("SystemRoot")) / "system32" / "drivers" / "etc" / "hosts"
|
||||
)
|
||||
else:
|
||||
target_file = "/etc/hosts"
|
||||
|
||||
@@ -1308,7 +1428,11 @@ def move_hosts_file_into_place(final_file):
|
||||
except Exception:
|
||||
print_failure(f"Replacing content of {target_file} failed.")
|
||||
return False
|
||||
elif platform.system() == "Linux" or platform.system() == "Windows" or platform.system() == "Darwin":
|
||||
elif (
|
||||
platform.system() == "Linux"
|
||||
or platform.system() == "Windows"
|
||||
or platform.system() == "Darwin"
|
||||
):
|
||||
print(
|
||||
f"Replacing {target_file} requires root privileges. You might need to enter your password."
|
||||
)
|
||||
@@ -1411,7 +1535,7 @@ def flush_dns_cache():
|
||||
print_failure("Unable to determine DNS management tool.")
|
||||
|
||||
|
||||
def remove_old_hosts_file(old_file_path, backup):
|
||||
def remove_old_hosts_file(path_to_file, file_name, backup):
|
||||
"""
|
||||
Remove the old hosts file.
|
||||
|
||||
@@ -1424,21 +1548,25 @@ def remove_old_hosts_file(old_file_path, backup):
|
||||
Whether or not to backup the existing hosts file.
|
||||
"""
|
||||
|
||||
# Create if already removed, so remove won't raise an error.
|
||||
open(old_file_path, "a").close()
|
||||
full_file_path = path_join_robust(path_to_file, file_name)
|
||||
|
||||
if backup:
|
||||
backup_file_path = old_file_path + "-{}".format(
|
||||
time.strftime("%Y-%m-%d-%H-%M-%S")
|
||||
)
|
||||
if os.path.exists(full_file_path):
|
||||
if backup:
|
||||
backup_file_path = full_file_path + "-{}".format(
|
||||
time.strftime("%Y-%m-%d-%H-%M-%S")
|
||||
)
|
||||
|
||||
# Make a backup copy, marking the date in which the list was updated
|
||||
shutil.copy(old_file_path, backup_file_path)
|
||||
# Make a backup copy, marking the date in which the list was updated
|
||||
shutil.copy(full_file_path, backup_file_path)
|
||||
|
||||
os.remove(old_file_path)
|
||||
os.remove(full_file_path)
|
||||
|
||||
# Create directory if not exists
|
||||
if not os.path.exists(path_to_file):
|
||||
os.makedirs(path_to_file)
|
||||
|
||||
# Create new empty hosts file
|
||||
open(old_file_path, "a").close()
|
||||
open(full_file_path, "a").close()
|
||||
|
||||
|
||||
# End File Logic
|
||||
|
||||
@@ -32,7 +32,7 @@ def main():
|
||||
keys = list(data.keys())
|
||||
# Sort by the number of en-dashes in the key
|
||||
# and then by the key string itself.
|
||||
keys.sort(key=lambda item: (item.count("-"), item))
|
||||
keys.sort(key=lambda item: (item.replace("-only", "").count("-"), item.replace("-only", "")))
|
||||
|
||||
toc_rows = ""
|
||||
for key in keys:
|
||||
@@ -40,9 +40,14 @@ def main():
|
||||
if key == "base":
|
||||
data[key]["description"] = "Unified hosts = **(adware + malware)**"
|
||||
else:
|
||||
data[key]["description"] = (
|
||||
"Unified hosts **+ " + key.replace("-", " + ") + "**"
|
||||
)
|
||||
if data[key]["no_unified_hosts"]:
|
||||
data[key]["description"] = (
|
||||
"**" + key.replace("-only", "").replace("-", " + ") + "**"
|
||||
)
|
||||
else:
|
||||
data[key]["description"] = (
|
||||
"Unified hosts **+ " + key.replace("-", " + ") + "**"
|
||||
)
|
||||
|
||||
if "\\" in data[key]["location"]:
|
||||
data[key]["location"] = data[key]["location"].replace("\\", "/")
|
||||
@@ -64,9 +69,12 @@ def main():
|
||||
)
|
||||
size_history_graph = ""
|
||||
for key in keys:
|
||||
extensions = key.replace("-", ", ")
|
||||
extensions = key.replace("-only", "").replace("-", ", ")
|
||||
extensions_str = "* Extensions: **" + extensions + "**."
|
||||
extensions_header = "with " + extensions + " extensions"
|
||||
if data[key]["no_unified_hosts"]:
|
||||
extensions_header = "Limited to the extensions: " + extensions
|
||||
else:
|
||||
extensions_header = "Unified hosts file with " + extensions + " extensions"
|
||||
|
||||
source_rows = ""
|
||||
source_list = data[key]["sourcesdata"]
|
||||
|
||||