Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4218 commits
Select commit Hold shift + click to select a range
d50598a
Release 3.15.22
StevenBlack Mar 8, 2025
de2c069
Updates from URLHaus and KADhosts.
StevenBlack Mar 9, 2025
511c57b
Release 3.15.23
StevenBlack Mar 9, 2025
909d8f5
Updates from BigDargon, URLHaus, and KADhosts.
StevenBlack Mar 13, 2025
9644218
Release 3.15.24
StevenBlack Mar 13, 2025
5c3490d
Updates from BigDargon, URLHaus, and KADhosts.
StevenBlack Mar 17, 2025
5c72f8f
Release 3.15.25
StevenBlack Mar 17, 2025
bfe72bc
Updates from sinfonietta, BigDargon, URLHaus, someonewhocares.org, an…
StevenBlack Mar 21, 2025
99c5f53
Release 3.15.26
StevenBlack Mar 21, 2025
202a52c
Updates from URLHaus and KADhosts.
StevenBlack Mar 26, 2025
60f9832
Release 3.15.27
StevenBlack Mar 26, 2025
5424279
Add defaultText to options.networking.stevenBlackHosts.enableIPv6
Pandapip1 Mar 27, 2025
9cc0a01
Issue #2849: add streamboo.com.
StevenBlack Mar 28, 2025
4d95851
Updates from BigDargon, URLHaus, and KADhosts.
StevenBlack Mar 28, 2025
7e4a962
Release 3.15.28
StevenBlack Mar 28, 2025
4dfbcfc
Updates from URLHaus and KADhosts.
StevenBlack Apr 1, 2025
50524d5
Release 3.15.29
StevenBlack Apr 1, 2025
058b044
Added rosysolvingscallion.com to he blocked hosts
akhal3d96 Apr 1, 2025
815487e
Merge pull request #2856 from akhal3d96/patch-1
StevenBlack Apr 2, 2025
acab5f6
Issue
StevenBlack Apr 5, 2025
a649a95
Updates from BigDargon, URLHaus, and KADhosts.
StevenBlack Apr 5, 2025
37a200a
Release 3.15.30
StevenBlack Apr 5, 2025
26fc979
Issue #2852: add startseite24.net.
StevenBlack Apr 10, 2025
034cb9a
Updates from BigDargon, URLHaus, KADhosts, and hostsVN.
StevenBlack Apr 10, 2025
f4235ac
Release 3.15.31
StevenBlack Apr 10, 2025
21f7f0a
Issue #2863: fix — exclude domains with underscores in the domain name.
StevenBlack Apr 12, 2025
dabb064
Updates from URLHaus and KADhosts.
StevenBlack Apr 12, 2025
6e7698a
Updates from BigDargon, URLHaus, someonewhocares.org, and KADhosts.
StevenBlack Apr 17, 2025
8c73d74
Release 3.15.33
StevenBlack Apr 17, 2025
cb2893d
Issue #2869 — adding rcvlink.com.
StevenBlack Apr 21, 2025
8699040
Updates from BigDargon, URLHaus, and KADhosts.
StevenBlack Apr 23, 2025
5450d44
Release 3.15.34
StevenBlack Apr 23, 2025
79841c6
Updates from BigDargon, URLHaus, someonewhocares.org, and KADhosts.
StevenBlack Apr 25, 2025
3bfb2b1
Release 3.15.35
StevenBlack Apr 25, 2025
beb85bf
Updates from URLHaus and KADhosts.
StevenBlack May 1, 2025
14fa629
Release 3.15.36
StevenBlack May 1, 2025
181b549
Update tests.
StevenBlack May 1, 2025
454f26b
Updates from BigDargon, URLHaus, someonewhocares.org, and KADhosts.
StevenBlack May 5, 2025
0fe61c4
Updates from URLHaus and KADhosts.
StevenBlack May 8, 2025
66fd6e4
Release 3.15.37
StevenBlack May 8, 2025
d64ec29
Issue #2883: add clientennota-webnl.ddns.info.
StevenBlack May 8, 2025
05a9df2
Updates from BigDargon, URLHaus, someonewhocares.org, KADHosts, and h…
StevenBlack May 15, 2025
9a5c90e
Release 3.15.38
StevenBlack May 15, 2025
3f7669d
Commit latest from yoyo.org, minus t.co, for now.
StevenBlack May 17, 2025
4135c1d
Updates from URLHaus and KADhosts.
StevenBlack May 18, 2025
403d8bf
Release 3.15.39
StevenBlack May 18, 2025
a51fb87
Cosmetic tweaks to the hosts file size history plot.
StevenBlack May 18, 2025
39a4c9c
Updates from BigDargon, URLHaus, and KADhosts.
StevenBlack May 21, 2025
dbdcb03
Release 3.15.40
StevenBlack May 21, 2025
879d298
Updates from sinfonietta, BigDargon, URLHaus, KADhosts, and hostsVN.
StevenBlack May 28, 2025
4f663aa
Release 3.15.41
StevenBlack May 28, 2025
527a179
Merge pull request #2848 from Pandapip1/patch-1
StevenBlack Jun 2, 2025
ec0641f
Updates from BigDargon, URLHaus, and KADhosts.
StevenBlack Jun 2, 2025
ce42e63
Release 3.15.42
StevenBlack Jun 2, 2025
2e91a6a
Merge pull request #2812 from toastal/nix-docs-flake-follows-input
StevenBlack Jun 3, 2025
6e6d20d
Updates from BigDargon, URLHaus, HADhosts, and hostsVN.
StevenBlack Jun 4, 2025
ea7bd50
Release 3.15.43
StevenBlack Jun 4, 2025
8371feb
Updates from BigDargon, URLHaus, someonewhocares.org, and KADhosts.
StevenBlack Jun 7, 2025
b5c9188
Release 3.15.44
StevenBlack Jun 7, 2025
2ca8daf
Updates from BigDargon, URLHaus, and KADhosts.
StevenBlack Jun 12, 2025
335cd7c
Release 3.15.45
StevenBlack Jun 12, 2025
6c742ee
Updates from sinfonietta, bigdargon, URLHaus, someonewhocares.org, KA…
StevenBlack Jun 15, 2025
2b0e127
Release 3.15.46
StevenBlack Jun 15, 2025
6cedd43
Updates from URLHaus and KADhosts.
StevenBlack Jun 18, 2025
fbea953
Release 3.15.47
StevenBlack Jun 18, 2025
83b4e71
Removing the emarsys.net domains.
StevenBlack Jun 19, 2025
b7e976d
Updates from URLHaus and KADhosts.
StevenBlack Jun 20, 2025
06a99e9
Release 3.15.48
StevenBlack Jun 20, 2025
19bd59d
Updates from BigDargon, URLHaus, and KADhosts.
StevenBlack Jun 23, 2025
bfbfc7d
Release 3.15.49
StevenBlack Jun 23, 2025
b3259ed
Add ad domains of various services
bunnypranav Jun 25, 2025
7bb65c0
Merge pull request #2910 from bunnypranav/patch-1
StevenBlack Jun 26, 2025
4a0b315
Updates from URLHaus, KADhosts, and hostsVN.
StevenBlack Jun 26, 2025
02b4c40
Release 3.15.50
StevenBlack Jun 26, 2025
3ba25af
Update the hosts file size history plot.
StevenBlack Jun 26, 2025
0ffc44b
Added updateHostsWindows.ps1 and information in the README pertaining…
Lateralus138 Jun 29, 2025
14a0ae0
Merge pull request #2913 from Lateralus138/master
StevenBlack Jun 30, 2025
27cf50e
Updates from URLHaus and KADhosts.
StevenBlack Jun 30, 2025
c33258e
Release 3.15.51
StevenBlack Jun 30, 2025
961e1bd
Issue #2914: add my-tracknl.com.
StevenBlack Jul 3, 2025
a3713a1
Updates from BigDargon, URLHaus, someonewhocares.org, and KADhosts.
StevenBlack Jul 3, 2025
eb961b4
Release 3.15.52
StevenBlack Jul 3, 2025
8f17aa5
CI: remove Python 3.8 and add 3.13
XhmikosR Jul 3, 2025
4010d76
Update Python packages
XhmikosR Jul 4, 2025
142c3b4
Update release-it to v19.0.3
XhmikosR Jul 4, 2025
8567dd2
Merge pull request #2916 from XhmikosR/patch-1
StevenBlack Jul 5, 2025
929f830
Merge pull request #2918 from XhmikosR/patch-2
StevenBlack Jul 5, 2025
42bfc78
Updates from URLHaus and KADhosts.
StevenBlack Jul 5, 2025
1005c2b
Release 3.15.53
StevenBlack Jul 5, 2025
b016d4c
Updates from URLHaus and KADhosts.
StevenBlack Jul 8, 2025
90e1c13
Release 3.15.54
StevenBlack Jul 8, 2025
2d5e933
Updates from bigdargon, URLHaus, and KADhosts.
StevenBlack Jul 11, 2025
d4d4469
Release 3.15.55
StevenBlack Jul 11, 2025
b9d4d50
I really don't like variable names that contain underscore characters…
StevenBlack Jul 13, 2025
026a9fa
Ibid.
StevenBlack Jul 13, 2025
8ae3577
Print the path to the current folder if outputsubfolder is an empty s…
StevenBlack Jul 13, 2025
777857f
Issue #2919: fix — look for a file named post.json in the list’s land…
StevenBlack Jul 13, 2025
bef2c6a
Updates from URLHaus and KADhosts.
StevenBlack Jul 13, 2025
175f5cb
Release 3.16.0
StevenBlack Jul 13, 2025
8e5a49f
Updates from URLHaus and KADhosts.
StevenBlack Jul 13, 2025
43c492f
Release 3.16.1
StevenBlack Jul 13, 2025
b67793d
Move the posts.json file to the KADhosts folder.
StevenBlack Jul 13, 2025
1fd8390
Display the fully qualified path to the updated file regardless.
StevenBlack Jul 13, 2025
b89d4aa
Regenerate hosts files to reflect the changed location of the post.js…
StevenBlack Jul 13, 2025
865d74f
Release 3.16.2
StevenBlack Jul 13, 2025
a8ccb59
Put post.json files into each alternate destination folder.
StevenBlack Jul 17, 2025
99c1834
Updates from BigDargon, URLHaus, and KADhosts.
StevenBlack Jul 17, 2025
9db4bfd
Release 3.16.3
StevenBlack Jul 17, 2025
125d549
Remove the post.json files from the -only folders.
StevenBlack Jul 18, 2025
064e3bf
update the post.json files.
StevenBlack Jul 18, 2025
2abb813
Updates from URLHaus and KADhosts.
StevenBlack Jul 18, 2025
85aeab6
Release 3.16.4
StevenBlack Jul 18, 2025
5e5d438
Updates from BigDargon, URLHaus, and KADhosts.
StevenBlack Jul 23, 2025
36d7958
Release 3.16.5
StevenBlack Jul 23, 2025
5e77c7c
Updates from BigDargon, URLHaus, and KADhosts.
StevenBlack Jul 26, 2025
08ebdd4
Release 3.16.6
StevenBlack Jul 26, 2025
6601b26
Updates from BigDargon, URLHaus, KADhosts, and hostsVN.
StevenBlack Jul 31, 2025
1af1545
Release 3.16.7
StevenBlack Jul 31, 2025
e8743be
Updates from URLHaus and KADhosts.
StevenBlack Aug 1, 2025
484bb92
Release 3.16.8
StevenBlack Aug 1, 2025
dd9bd42
stats.sh: process files in memory instead of on disk
miallo Aug 2, 2025
90ab32d
Merge pull request #2941 from miallo/compute-stats-in-memory
StevenBlack Aug 3, 2025
a0efa72
Add trk.na.patagonia.com.
StevenBlack Aug 3, 2025
1ca3c38
Updates from URLHaus and KADhosts.
StevenBlack Aug 3, 2025
b093dd1
Release 3.16.9
StevenBlack Aug 3, 2025
eb7c7c7
sourcestats: do not checkout files
miallo Aug 3, 2025
5c49f77
Merge pull request #2942 from miallo/sourcestats-in-memory
StevenBlack Aug 8, 2025
e6f6ddd
Updates from BigDargon, URLhaus, and KADhosts.
StevenBlack Aug 8, 2025
98071b0
Release 3.16.10
StevenBlack Aug 8, 2025
5398a10
Update inner-folder plots of hosts over time.
StevenBlack Aug 8, 2025
9b27ae2
added domains from playstream.media
cgbarros Aug 8, 2025
a11705b
Merge pull request #2947 from cgbarros/master
StevenBlack Aug 9, 2025
105e874
Issue #2946: add zopro.duckdns.org.
StevenBlack Aug 13, 2025
9039220
Updates from BigDargon, URLHaus, and KADhosts.
StevenBlack Aug 14, 2025
dd9b63e
Release 3.16.11
StevenBlack Aug 14, 2025
8bbc258
Issue #2948: fix — remove domain api.agoda.com.edgekey.net
StevenBlack Aug 14, 2025
9c49c97
Issue #2944: fix — adding analytics.arz.at.
StevenBlack Aug 14, 2025
dd6c243
Updates from URLHaus and KADhosts.
StevenBlack Aug 14, 2025
6c5e31e
Release 3.16.12
StevenBlack Aug 14, 2025
496b69f
Issue #2943: removing fc.yahoo.com.
StevenBlack Aug 17, 2025
99c3bb9
Updates from URLHaus and KADhosts.
StevenBlack Aug 19, 2025
bc5a23d
Release 3.16.13
StevenBlack Aug 19, 2025
18828ee
Updates from URLHaus and KADhosts.
StevenBlack Aug 24, 2025
64ee012
Release 3.16.14
StevenBlack Aug 24, 2025
e73113b
Updates from URLHaus and KADhosts.
StevenBlack Aug 30, 2025
7df1533
Release 3.16.15
StevenBlack Aug 30, 2025
d888b26
Bump actions/checkout from 4 to 5
dependabot[bot] Sep 1, 2025
a87c3a1
Updates from URLHaus and KADhosts.
StevenBlack Sep 5, 2025
b0781e7
Release 3.16.16
StevenBlack Sep 5, 2025
cbd0461
Updates from Sinfonietta, URLHaus, and KADhosts.
StevenBlack Sep 9, 2025
961747e
Release 3.16.17
StevenBlack Sep 9, 2025
30ce23a
Adding eventcra.com; phishing me is a very bad idea.
StevenBlack Sep 14, 2025
3137006
Updates from BigDargon, URLHaus, KADhosts, and hostsVN.
StevenBlack Sep 14, 2025
d6f14ea
Release 3.16.18
StevenBlack Sep 14, 2025
0802370
Adding safalindustries.com.
StevenBlack Sep 15, 2025
38bb6ce
Updates from URLHaus and KADhosts.
StevenBlack Sep 15, 2025
bcaeb79
Release 3.16.19
StevenBlack Sep 15, 2025
2497d54
Merge pull request #2954 from StevenBlack/dependabot/github_actions/a…
StevenBlack Sep 17, 2025
44da069
CI: pin actions
XhmikosR Sep 17, 2025
7583934
Merge pull request #2960 from XhmikosR/xmr/actions
StevenBlack Sep 17, 2025
4792d43
Adding phish; Phishing me is a really bad idea.
StevenBlack Sep 22, 2025
7896766
Updates from bigdargon, URLHaus, and KADhosts.
StevenBlack Sep 26, 2025
1dd1fc4
Release 3.16.20
StevenBlack Sep 26, 2025
b6fe732
Updates from URLHaus and KADhosts.
StevenBlack Sep 27, 2025
122b248
Release 3.16.21
StevenBlack Sep 27, 2025
7441a6d
Bump actions/dependency-review-action from 4.7.3 to 4.8.0
dependabot[bot] Oct 1, 2025
290e7ab
Bump docker/login-action from 3.5.0 to 3.6.0
dependabot[bot] Oct 1, 2025
93ab5c0
Add cookieyes.com domains.
StevenBlack Oct 2, 2025
3f29234
Merge pull request #2975 from StevenBlack/dependabot/github_actions/d…
StevenBlack Oct 2, 2025
2eae34d
Merge pull request #2974 from StevenBlack/dependabot/github_actions/a…
StevenBlack Oct 2, 2025
9f2cc8e
Updates from BigDargon, URLHaus, KADhosts, and hostsVN.
StevenBlack Oct 2, 2025
d2d175e
Release 3.16.22
StevenBlack Oct 2, 2025
2f1227c
Updates from URLHaus and KADhosts.
StevenBlack Oct 4, 2025
cb59fe4
Release 3.16.23
StevenBlack Oct 4, 2025
040284c
Updates from URLHaus and KADhosts.
StevenBlack Oct 9, 2025
680002b
Release 3.16.24
StevenBlack Oct 9, 2025
4be9eba
Dependabot: group action updates
XhmikosR Oct 9, 2025
0009a08
CI: add Python 3.14
XhmikosR Oct 9, 2025
e816a0e
Losslessly optimize PNG files with oxipng
XhmikosR Oct 9, 2025
407d320
Merge pull request #2980 from XhmikosR/patch-1
StevenBlack Oct 9, 2025
d5866d0
Bump the github-actions group with 2 updates
dependabot[bot] Oct 9, 2025
0615aaf
Merge pull request #2981 from XhmikosR/patch-2
StevenBlack Oct 9, 2025
1cb6135
Merge pull request #2983 from StevenBlack/dependabot/github_actions/g…
StevenBlack Oct 9, 2025
e7dea17
Issue #2985: add two Windows malware domains.
StevenBlack Oct 13, 2025
19abb97
Updates from URLHaus and KADhosts.
StevenBlack Oct 13, 2025
384aa2b
Release 3.16.25
StevenBlack Oct 13, 2025
706999a
Merge pull request #2982 from XhmikosR/xmr/img
StevenBlack Oct 13, 2025
95a5ee9
Updates from URLHaus and KADhosts.
StevenBlack Oct 17, 2025
5da10a6
Release 3.16.26
StevenBlack Oct 17, 2025
b84071c
Updates from BigDargon, URLHaus, KADhosts, and hostsVN.
StevenBlack Oct 26, 2025
2b274d0
Release 3.16.27
StevenBlack Oct 26, 2025
c314197
Bump the github-actions group with 2 updates
dependabot[bot] Nov 1, 2025
b439897
Issue #2967: remove domain sitegenesis.production.deckers.coremedia.c…
StevenBlack Nov 1, 2025
43a0f7b
Updates from URLHaus and KADhosts.
StevenBlack Nov 1, 2025
1fec798
Release 3.16.28
StevenBlack Nov 1, 2025
9e555e3
Issue #3005: add to readme: recommend cloning wth --depth 1.
StevenBlack Nov 3, 2025
fb8db8e
Updates from URLHaus and KADhosts.
StevenBlack Nov 3, 2025
14131be
Release 3.16.29
StevenBlack Nov 3, 2025
43d0fcc
Merge pull request #3003 from StevenBlack/dependabot/github_actions/g…
StevenBlack Nov 3, 2025
ab6186d
Updates from BigDargon, URLHaus, and KADhosts.
StevenBlack Nov 5, 2025
19859c0
Release 3.16.30
StevenBlack Nov 5, 2025
182dabf
Issue #3004: add two rumble ad domains.
StevenBlack Nov 7, 2025
428e84a
Updates from BigDargon, URLHaus, Tiuxio, and KADhosts.
StevenBlack Nov 7, 2025
99bdb28
Release 3.16.31
StevenBlack Nov 7, 2025
5e1932a
Issue #3010: remove domain oempprd.samsungcloudsolution.com.
StevenBlack Nov 11, 2025
c20ffe6
Updates from BigDargon, URLHaus, and KADhosts.
StevenBlack Nov 11, 2025
6a3fc8f
Release 3.16.32
StevenBlack Nov 11, 2025
aa02689
Phishing me or my fam is a really stupid idea.
StevenBlack Nov 12, 2025
4469282
Updates from URLHaus.
StevenBlack Nov 12, 2025
eb8b88d
Release 3.16.33
StevenBlack Nov 12, 2025
48a41c5
issue #3009: Add two xbext.com domains.
StevenBlack Nov 16, 2025
e73feff
Updates from URLHaus and KADhosts.
StevenBlack Nov 16, 2025
0757289
Release 3.16.34
StevenBlack Nov 16, 2025
e849fb7
Trying to phish me is a stupid idea.
StevenBlack Nov 18, 2025
86b479a
Updates from URLHaus and KADhosts.
StevenBlack Nov 18, 2025
c66c4aa
Release 3.16.35
StevenBlack Nov 18, 2025
3007a0c
Updates from bigdargon, URLHaus, KADhosts, and hostsVN.
StevenBlack Nov 21, 2025
21ce4c0
Release 3.16.36
StevenBlack Nov 22, 2025
e2b2979
Dockerfile: fix LegacyKeyValueFormat warnings
XhmikosR Nov 22, 2025
9257ce1
stats.sh: speed up stats extraction
XhmikosR Nov 22, 2025
f276b3b
Merge pull request #3013 from XhmikosR/patch-1
StevenBlack Nov 22, 2025
96906cc
PR #3014: testing the proposed new stats.sh implementation. Looks great.
StevenBlack Nov 23, 2025
6fbdb5a
Merge pull request #3014 from XhmikosR/patch-2
StevenBlack Nov 23, 2025
b124e71
Improve sourcestats.sh
XhmikosR Nov 22, 2025
dca6f8a
Attempting to phish me is a bad idea.
StevenBlack Nov 24, 2025
5300bf2
removing cochico.ca domains.
StevenBlack Nov 24, 2025
5969fd5
Updates from URLHaus and KADhosts.
StevenBlack Nov 27, 2025
e00b355
Testing PR #3018, and updating all the plots.
StevenBlack Nov 27, 2025
8ffc573
Merge pull request #3018 from XhmikosR/patch-3
StevenBlack Nov 27, 2025
f0c008d
Release 3.16.37
StevenBlack Nov 27, 2025
ecb4558
PR #3018: remove reference to a data folder that's no longer there.
StevenBlack Nov 27, 2025
24f3631
Issue #3021 add two domains.
StevenBlack Nov 29, 2025
2ee4352
Updates from URLHaus and KADhosts.
StevenBlack Nov 29, 2025
0b72246
Release 3.16.38
StevenBlack Nov 29, 2025
c50bcfd
Bump the github-actions group with 5 updates
dependabot[bot] Dec 1, 2025
2591849
Updates from URLHaus and KADhosts.
StevenBlack Dec 3, 2025
7f24594
Release 3.16.39
StevenBlack Dec 3, 2025
2d2b75a
Issue #3026: add domain colombia.ru.com.
StevenBlack Dec 4, 2025
4618a21
Issue #3204: add two core.windows.net domains.
StevenBlack Dec 4, 2025
dc2a318
Merge pull request #3022 from StevenBlack/dependabot/github_actions/g…
StevenBlack Dec 4, 2025
562ec54
Updates from URLHaus and KADhosts.
StevenBlack Dec 4, 2025
821e6fb
Release 3.16.40
StevenBlack Dec 4, 2025
7696c45
Issue #3025: adding 7 new domains.
StevenBlack Dec 11, 2025
3c3e6d8
Updates from BigDargon, URLHaus, KADhosts, and hostsVN.
StevenBlack Dec 11, 2025
88c487e
Release 3.16.41
StevenBlack Dec 11, 2025
d7adc72
Adding pixelfy.me — tried to phish me.
StevenBlack Dec 15, 2025
8430705
Updates from URLHaus and KADhosts.
StevenBlack Dec 16, 2025
24c51b8
Release 3.16.42
StevenBlack Dec 16, 2025
2e4a8da
Updates from Sinfonietta, BigDargon, URLHaus, and KADhosts.
StevenBlack Dec 19, 2025
cfd15ca
Release 3.16.43
StevenBlack Dec 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*
!updateHostsFile.py
!data
!alternates
!extensions
!readmeData.json
!requirements.txt
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.bat]
end_of_line = crlf

[*.md]
trim_trailing_whitespace = false

[*.py]
indent_size = 4
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Enforce Unix newlines for all files
* text=auto eol=lf
# Enforce Windows newlines for .bat files
*.bat text eol=crlf

*.py linguist-detectable=true
*.nb linguist-detectable=false
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: [StevenBlack, funilrys, XhmikosR]
21 changes: 21 additions & 0 deletions .github/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Configuration for welcome - https://github.com/behaviorbot/welcome

# Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome

# Comment to be posted to on first time issues
newIssueWelcomeComment: >
Hello! Thank you for opening your first issue in this repo. It’s people like you who make these host files better!

# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome

# Comment to be posted to on PRs from first time contributors in your repository
newPRWelcomeComment: >
Thank you for submitting this pull request! We’ll get back to you as soon as we can!

# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge

# Comment to be posted to on pull requests merged by a first time user
firstPRMergeComment: >
Congratulations on merging your first pull request here! 🎉🎉🎉 You are now in our [list of contributors](https://github.com/StevenBlack/hosts/graphs/contributors). Welcome!

# It is recommend to include as many gifs and emojis as possible!
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: monthly
labels:
- dependencies
groups:
github-actions:
patterns:
- "*"
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: weekly
labels:
- dependencies
- python
versioning-strategy: lockfile-only
Binary file added .github/logo-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 68 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: CI

on:
push:
branches:
- master
- "!dependabot/**"
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
test:
name: Python ${{ matrix.python }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
python:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- '3.14'
os:
- ubuntu-latest
include:
- os: macos-latest
python: '3.9'
- os: macos-latest
python: '3.14'
- os: windows-latest
python: '3.9'
- os: windows-latest
python: '3.14'

steps:
- name: Clone repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: ${{ matrix.python }}
cache: pip

- name: Print versions
run: |
python --version
pip --version

- name: Install Python dependencies
run: pip install -r requirements.txt

- name: Run lint
run: flake8

- name: Run makeHosts.py
run: python makeHosts.py

- name: Run tests
run: python testUpdateHostsFile.py
43 changes: 43 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "CodeQL"

on:
push:
branches:
- master
- "!dependabot/**"
pull_request:
branches:
- master
- "!dependabot/**"
schedule:
- cron: "40 15 * * 4"
workflow_dispatch:

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Clone repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@fdbfb4d2750291e159f0156def62b853c2798ca2 # v4.31.5
with:
languages: "python"
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@fdbfb4d2750291e159f0156def62b853c2798ca2 # v4.31.5

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@fdbfb4d2750291e159f0156def62b853c2798ca2 # v4.31.5
with:
category: "/language:python"
49 changes: 49 additions & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Create and publish a container image

on:
push:
branches:
- master
tags:
- "*"

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image:
name: Build and push container image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Clone repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
persist-credentials: false

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1

- name: Log in to the Container registry
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels)
id: meta
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push container image
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
17 changes: 17 additions & 0 deletions .github/workflows/depsreview.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 'Dependency Review'
on: [pull_request]

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
persist-credentials: false

- name: Dependency Review
uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4.8.2
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.idea
*.iml
myhosts
blacklist
whitelist
hosts-*
/web.config
/__pycache__
/node_modules/
/package-lock.json
/yarn.lock
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
13 changes: 13 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"src": {
"tagName": "v%s",
"commitArgs": "-S",
"tagArgs": "-S"
},
"github": {
"release": true
},
"npm": {
"publish": false
}
}
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM docker.io/python:3-alpine

ENV IN_CONTAINER=1

RUN apk add --no-cache git sudo

COPY . /hosts

RUN pip install --no-cache-dir --upgrade -r /hosts/requirements.txt

ENV PATH=$PATH:/hosts

WORKDIR /hosts
Binary file added aggregator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading