Compare commits

..
441 Commits
Author SHA1 Message Date
Steven Black cb0b365a5f Release 2.5.39 2020-01-06 22:37:36 -05:00
Steven Black 014164e80e Updates from sinfonietta, KADhosts, and hostsVN 2020-01-06 22:37:20 -05:00
Steven Black f0b543ebc6 Add domains from Issue #1117. 2020-01-06 22:26:25 -05:00
Steven Black 089e55c5cd Release 2.5.38 2020-01-04 21:43:30 -05:00
Steven Black 5c407067b1 Updates from yoyo.org, someonewhocares.org, KADhosts, hostsVN, and Badd-Boyz. 2020-01-04 21:43:12 -05:00
Steven Black dc6b16cb37 Happy New Year 2020-01-01 19:50:14 -05:00
Steven Black ae4e66b45e Release 2.5.37 2020-01-01 19:14:12 -05:00
Steven Black c966db058c Updates from sinfonietta, yoyo.org, someonewhocares.org, and KADHosts. 2020-01-01 19:13:53 -05:00
Steven Black e9eed28417 Release 2.5.36 2019-12-30 00:27:39 -05:00
Steven Black 42846e4fe9 Updates from Sinfonietta, yoyo.org, someonewhocares.org, KADhosts, and hostsVN. 2019-12-30 00:27:18 -05:00
Steven Black 9126d65d05 Add doublepimpads.com. 2019-12-25 23:21:34 -05:00
Steven Black c5159684dc Release 2.5.35 2019-12-23 20:23:55 -05:00
Steven Black 30d71ef9b1 Updates from yoyo.org, KADhosts, hostsVN, and Badd-Boyz. 2019-12-23 20:23:41 -05:00
Steven Black 92f2ec27c3 Release 2.5.34 2019-12-23 20:21:11 -05:00
Steven Black 7804fb2c68 Add marketingplatform.google.com. 2019-12-23 20:19:38 -05:00
Steven Black baca30169e Two new ad domains. 2019-12-23 13:29:28 -05:00
Steven Black 20d752f921 Release 2.5.33 2019-12-21 20:34:55 -05:00
Steven Black a134843ffe Updates from sinfonietta, yoyo.org, and Badd-Boyz. 2019-12-21 20:34:24 -05:00
Steven Black dd1170dec9 Remove duplicates from my ad-hoc file with yoyo.org. 2019-12-21 00:06:29 -05:00
Steven Black 011c020641 Remove duplicates from my ad-hoc file with someonewhocares.org. 2019-12-21 00:00:45 -05:00
Steven Black 6ddfffa055 Remove duplicates from my ad-hoc file with mvps.org. 2019-12-20 23:54:01 -05:00
Steven Black 3ba08aa3c8 Release 2.5.32 2019-12-20 23:42:50 -05:00
Steven Black 2859530366 Updates from sinfonietta, yoyo.org, someonewhocares.org, KADhosts, hostsVN, and Badd-Boyz. 2019-12-20 23:42:33 -05:00
Steven Black 839b561b70 Release 2.5.31 2019-12-15 00:07:47 -05:00
Steven Black a114531dc1 Updates from Sinfonietta, yoyo.org, mvps.org, KADhosts, and Badd-Boyz. 2019-12-15 00:07:29 -05:00
Steven Black da8e556071 Release 2.5.30 2019-12-11 13:41:11 -05:00
Steven Black f7f9178579 Updates from yoyo.org, KADhosts, hostsVN, and Badd-Boyz. 2019-12-11 13:40:17 -05:00
Steven Black 976fe60864 Issue #1097: fix — adding rtk.io domains. 2019-12-11 13:36:22 -05:00
Steven Black 3d8e5510dc Release 2.5.29 2019-12-10 15:21:35 -05:00
Steven Black 0d4c7b800a Issue #1080: fix — Removing CoinBlockerList. 2019-12-10 15:21:16 -05:00
Steven Black 1011b0166f Release 2.5.28 2019-12-02 14:32:57 -05:00
Steven Black ab87ad9dd7 Updates from yoyo.org, someonewhocares.org, KADhosts, hostsVN, and Badd-Boyz. 2019-12-02 14:32:40 -05:00
Steven Black fe003c81fa Merge pull request #1095 from FadeMind/patch-1
Resolving GH-1094
2019-12-02 14:27:41 -05:00
FadeMind 470f79847f KADhosts license change
from GPL3 to CC BY-SA 4.0
2019-12-02 18:14:27 +01:00
FadeMind 8544e91514 Resolving GH-1094
Refactoring `data/KADhosts/update.json`
https://github.com/StevenBlack/hosts/issues/1094
https://github.com/PolishFiltersTeam/KADhosts/issues/26
2019-12-02 18:07:11 +01:00
Steven Black abf39a5d28 Release 2.5.27 2019-11-27 00:01:34 -05:00
Steven Black f143df691f Updates from sinfonoietta, and yoyo.org. 2019-11-27 00:01:13 -05:00
Steven Black 1af37f633f Release 2.5.26 2019-11-26 02:35:08 -05:00
Steven Black b4c15c09a4 Updates from sinfonietta, yoyo.org, KADhosts, hostsVN, and Badd-Boyz. 2019-11-26 02:34:25 -05:00
Steven Black a19791fd4a Light copy editing of the readme template. 2019-11-25 13:16:31 -05:00
Steven Black d0654c9b00 Release 2.5.25 2019-11-20 14:26:01 -05:00
Steven Black 5fdd5c802a Updates from sinfonietta, yoyo.org, KADhosts, and Badd-Boyz. 2019-11-20 14:25:44 -05:00
Steven Black d7472887b2 Add smartlock.google.com. 2019-11-19 09:52:20 -05:00
Steven Black 0aa67e7a7a Release 2.5.24 2019-11-17 15:58:54 -05:00
Steven Black 518185c029 Updates from sinfionetta, yoyo.org, KADhosts, and Badd-Boyz. 2019-11-17 15:58:23 -05:00
Steven Black c9d95dbcc4 Merge pull request #1087 from bitstreamout/applovin
Stop bypassing IPv4 network hosts entry by applovin.com due IPv6 network
2019-11-17 13:58:40 -05:00
Dr. Werner Fink 3f29c27a9c Stop bypassing IPv4 network hosts entry by applovin.com due IPv6 network
This entry stop ads from applovin in the the FDDB Extender App
2019-11-17 16:46:43 +01:00
Steven Black 63687132bc myfreecams.com is porn, present in other sources we use. 2019-11-15 13:31:08 -05:00
Steven Black 2c886af8ff Release 2.5.23 2019-11-15 10:49:18 -05:00
Steven Black 90da818f5c Updates from yoyo.org, someonewhocares.org, KADhosts, hostsVN, and Badd-Boyz. 2019-11-15 10:48:59 -05:00
Steven Black 97c4b48778 Release 2.5.22 2019-11-03 12:35:39 -05:00
Steven Black d55678a632 Updates from Sinfonietta, yoyo.org, KADhosts, and Badd-Boyz. 2019-11-03 12:35:22 -05:00
Steven Black 3d5f78cefc Issue #1083: fix – Ubiquiti phone home; add trace.svc.ui.com. 2019-11-03 11:25:15 -05:00
Steven Black 669b4e50dd Merge pull request #1082 from PF4Public/patch-1
Gentoo information
2019-11-02 14:16:15 -04:00
PF4Public 48009cbe2b Update readme_template.md 2019-11-02 21:12:35 +03:00
PF4Public 18fb716945 Gentoo information 2019-11-02 03:07:20 +03:00
Steven Black c3a39dd44c Release 2.5.21 2019-10-31 23:21:34 -04:00
Steven Black 7594f1328b Updates from sinfonietta, clefspeare13, KADhosts, and Badd-Boyz. 2019-10-31 23:20:38 -04:00
Steven Black 979cf641e5 Release 2.5.20 2019-10-30 11:41:51 -04:00
Steven Black 7544059e4b Updates from sinfonietta, yoyo.org, hostsVN, and Badd-Boyz. 2019-10-30 11:41:31 -04:00
Steven Black 2b1485ed81 Merge pull request #1076 from spirillen/patch-1
bilsyndication.com
2019-10-28 20:09:25 -04:00
spirillen d5ecfca795 bilsyndication.com
This contribution Closes #1075
2019-10-29 00:21:48 +01:00
Steven Black 9f9b3dc0ef Release 2.5.19 2019-10-27 20:58:01 -04:00
Steven Black 78614d2cdf Updates from Sinfonietta, clefspeare13, and KADhosts. 2019-10-27 20:57:43 -04:00
Steven Black b9286181e4 Release 2.5.18 2019-10-27 14:53:44 -04:00
Steven Black 3685d87a00 Updates from sinfonietta, yoyo.org, mvps.org, KADhosts, hostsVN, CoinBlockerList, and Badd-Boyz. 2019-10-27 14:53:18 -04:00
Steven Black b01d5c0dda Release 2.5.17 2019-10-18 18:39:19 -04:00
Steven Black a9250fc253 Updates from sinfonietta, yoyo.org, KADhosts, and Badd-Boyz. 2019-10-18 18:38:46 -04:00
Steven Black 4091dc8a45 Merge pull request #1067 from ScriptTiger/patch-1
Added "chauksoa.net"
2019-10-15 11:27:27 -04:00
Steven Black 305eb73833 Release 2.5.16 2019-10-15 11:24:13 -04:00
Steven Black aba3723b9f Updates from CoinBlockerList, yoyo.org, and KADhosts. 2019-10-15 11:23:46 -04:00
Steven Black 7f84edeb0e Re-add CoinBlockerList. 2019-10-15 11:21:06 -04:00
ScriptTiger 2dd86cc412 Added "chauksoa.net"
It personally popped as "malware" on my system, but I researched it a bit and others have flagged it as "social engineering." Definitely a baddy either way.
2019-10-13 16:33:11 +08:00
Steven Black 3535dcf18f Update release-it to v10.4.5. 2019-10-12 12:42:50 -04:00
Steven Black 54e8e3ee51 Release 2.5.15 2019-10-12 12:41:27 -04:00
Steven Black 9a9d039c1f updates from yoyo.org, and KADhosts. 2019-10-12 12:41:08 -04:00
Steven Black 2d08a962cc Merge pull request #1063 from donmahallem/master
Add analytics domain for Jodel
2019-10-10 17:28:51 -04:00
Steven Black e29fce70dd Release 2.5.14 2019-10-10 00:32:21 -04:00
Steven Black 347d213bd5 Updates from yoyo.org, someonewhocares.org, KADhosts, hostsVN, and Badd-Boyz. 2019-10-10 00:31:51 -04:00
Steven Black 427cc538ea Remove CoinBlockerList
See [this issue](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues/53).
2019-10-10 00:29:58 -04:00
donmahallem 0a7e473d39 Add analytics for jodel 2019-10-09 13:39:25 +02:00
Steven Black cac8facf17 Merge pull request #1058 from dcousens/patch-1
change Badd-Boyz-Hosts LICENSE to MIT
2019-09-30 11:04:28 -04:00
Daniel Cousens 2f6bb25aca change Badd-Boyz-Hosts LICENSE to MIT 2019-09-30 16:14:07 +10:00
Steven Black 1511089882 Release 2.5.13 2019-09-29 23:06:51 -04:00
Steven Black 3157d222a3 Updates from yoyo.org, someonewhocares.org, KADhosts, hostsVN, Badd-Boyz, and add.Risk. 2019-09-29 23:06:27 -04:00
Steven Black d072586d5e Merge pull request #1054 from MugunthKumar/master
Update Readme to point Catalina users to the location of hosts file
2019-09-23 20:13:46 -04:00
Mugunth b607495d8e Update Readme to add new hosts file path in macOS Catalina 2019-09-24 10:08:55 +10:00
Steven Black 218c3d279f Release 2.5.12 2019-09-23 00:19:25 -04:00
Steven Black 78734c7aae Updates from yoyo.org, KADhosts, hostsVN, and Badd-Boyz. 2019-09-23 00:18:49 -04:00
Steven Black 1a503107cc Merge pull request #1053 from ScriptTiger/patch-1
Highly intrusive mobile malvertisements
2019-09-22 15:43:20 -04:00
ScriptTiger 3a8c178f58 Added www.myornamenti.com 2019-09-22 22:45:40 +08:00
ScriptTiger be3cf3b6bd Highly intrusive mobile malvertisements
Pop-ups, forced redirects/referrals, and other highly intrusive malvertisements found live on specifically mobile versions of some online streaming websites.
2019-09-22 18:30:34 +08:00
Steven Black dbd55ce99e Release 2.5.11 2019-09-19 11:58:02 -04:00
Steven Black ab943c3914 Updates from yoyo.org, mvps.org, KADhosts, and Badd-Boyz. 2019-09-19 11:57:23 -04:00
Steven Black 39ad8019bb Issue #1050: add domains related to castoola.com. 2019-09-18 11:25:32 -04:00
Steven Black cb5dc51fe1 Merge pull request #1046 from I0F/master
Added Viber app ad addresses
2019-09-10 15:34:50 -04:00
10F ad85c926f3 Added Viber app ad hosts
These 2 addresses are not included in the 'Unified hosts' file. There are 4 more which are already included.
2019-09-10 21:02:07 +02:00
Steven Black aa3e18a970 Release 2.5.10 2019-09-10 10:44:58 -04:00
Steven Black fcc2aaa3d2 Updates from CoinBlockerList. 2019-09-10 10:44:15 -04:00
Steven Black 9ed630938b Restoring CoinBlockerList data source. 2019-09-10 10:43:00 -04:00
Steven Black 9f3be47ab9 Release 2.5.9 2019-09-09 14:43:08 -04:00
Steven Black bfe983a30d Regenerated hosts files. 2019-09-09 14:42:52 -04:00
Steven Black 59e491a197 Dropping CoinBlockerList again until their Issue no 48 is fully resolved. 2019-09-09 14:41:22 -04:00
Steven Black edeb228caf Release 2.5.8 2019-09-09 13:25:01 -04:00
Steven Black b3574e1996 Updates from “CoinBlockerList and KADhosts.” 2019-09-09 13:24:43 -04:00
Steven Black d1ea913f57 Restoring CoinBlockerList. 2019-09-09 13:18:21 -04:00
Steven Black e778fe704d Release 2.5.7 2019-09-09 12:28:20 -04:00
Steven Black 312944426c Generate latest hosts file. 2019-09-09 12:28:05 -04:00
Steven Black 05a3e530dc Temporarily removing CoinBlockerList until https://gitlab.com/ZeroDot1/CoinBlockerLists/issues/48 is sorted. 2019-09-09 12:26:19 -04:00
Steven Black 0f9b2439d1 Adjust CoinBlockerList to last known good version. 2019-09-09 12:16:54 -04:00
Steven Black 2d1d2a3f3d Release 2.5.6 2019-09-06 00:24:56 -04:00
Steven Black 4e4e18fed7 Updates from Sinfonietta, yoyo.org, tiuxo, someonewhocares.org, KADhosts, hostsVN, CoinBlockerList, and Badd-Boyz. 2019-09-06 00:24:36 -04:00
Steven Black 2093fb7833 Merge pull request #1041 from FadeMind/master
updateHostsWindows.bat :: refactoring, fixed
2019-09-04 14:12:15 -04:00
FadeMind 5945a559cd updateHostsWindows.bat :: refactoring, fixed
- based on https://stackoverflow.com/a/10052222
- additional flags --auto --minimise (purged useless comments in final file = smaller size)  used
- tested on Windows 10 x64 - works well
2019-09-04 16:44:17 +02:00
Steven Black 0587cbe790 Merge pull request #1034 from paulcarroty/master
Block Firefox telemetry
2019-09-03 08:56:07 -04:00
Steven Black 045e7268a9 Release 2.5.5 2019-08-30 11:20:10 -04:00
Steven Black b915af65cd Updates from sinfonietta, yoyo.org, KADhosts, hostsVN, and Badd-Boyz. 2019-08-30 11:19:52 -04:00
Steven Black 1f4d220bae Add four domains, this closes Issue #1037. 2019-08-30 11:06:46 -04:00
Steven Black 4ee00eba8f Add two domains, closes Issue #1036. 2019-08-30 11:04:05 -04:00
Pavlo Rudyi d6168450ee Block Firefox telemetry 2019-08-28 06:19:38 +00:00
Steven Black f5f2616484 Release 2.5.4 2019-08-22 14:24:41 -04:00
Steven Black cc17e4b71e Updates from tiuxo, sinfonietta, yoyo.org, mvps.org, KADhosts, hostsVN, and Badd-Boyz. 2019-08-22 14:24:22 -04:00
Steven Black 03aa434c17 Merge pull request #1033 from Aldo-f/master
Block ads in Stremio app
2019-08-20 13:55:47 -04:00
Aldo-f 867f19c672 Block ads in Stremio app
https://github.com/StevenBlack/hosts/issues/1032#issue-481869111
2019-08-20 19:49:18 +02:00
Steven Black 449a0d7f61 Add a reference to https://github.com/feross/hostile to the 'Interesting Applications' section. 2019-08-14 15:49:07 -04:00
Steven Black f20a3ca11e Regenerate the readme files. 2019-08-14 09:46:32 -04:00
Steven Black 2b328ac425 Copy editing in our new files, and in the readme. 2019-08-14 09:45:18 -04:00
Steven Black 09fedc30fd Release 2.5.3 2019-08-14 09:38:41 -04:00
Steven Black 3543bdb89b Updates from yoyo.org, sinfonietta, and HostsVN. 2019-08-14 09:38:15 -04:00
Steven Black a1b08abe89 Add contributing guidelines, and a page explaining the repo's file and folder structure. 2019-08-14 09:17:54 -04:00
Steven Black 82063031b0 Add a code of conduct to the repo, referencing it from the readme. 2019-08-14 08:18:06 -04:00
Steven Black 8fc214edbf Release 2.5.2 2019-08-13 19:39:22 -04:00
Steven Black d7cc7e5716 Updates from yoyo.org, KADhosts, hostsVN, CoinBlockerList, and Badd-Boyz. 2019-08-13 19:38:57 -04:00
Steven Black 3c7b853a21 Merge pull request #1026 from tiiiecherle/master
Update readme_template.md
2019-08-12 09:06:52 -04:00
tiiiecherle 34e99f79f5 Update requirements.txt 2019-08-12 07:56:45 +02:00
tiiiecherle b8f3bfcf5c Update readme_template.md 2019-08-11 14:34:18 +02:00
Steven Black e1c3d2ccb1 Release 2.5.1 2019-08-10 14:25:21 -04:00
Steven Black 411be981bf Updates from sinfonietta, yoyo.org, KADhosts, hostsVN, and Badd-Boyz. 2019-08-10 14:24:50 -04:00
Steven Black e1ca7f3375 Adding a new web page popup source. 2019-08-09 18:33:56 -04:00
Steven Black 174a5ba732 Release 2.5.0 2019-08-06 13:23:00 -04:00
Steven Black 4163711605 Updates from hostsVN, yoyo.org, KADhosts, and Badd-Boyz. 2019-08-06 13:22:34 -04:00
Steven Black e08c625576 Merge pull request #1025 from bigdargon/support/hostsVN
Add source hostsVN
2019-08-06 13:19:33 -04:00
hostsVN e56bf74c53 Create update.json 2019-08-05 09:27:24 +07:00
Steven Black 332836927d Release 2.4.18 2019-07-31 10:42:11 -04:00
Steven Black e65dfcf63e Updates from sinfonietta, clefspeare13, yoyo.org, someonewhocares.org, KADhosts, and Badd-Boyz. 2019-07-31 10:41:44 -04:00
Steven Black 3d6b4b3b57 Release 2.4.17 2019-07-27 13:24:30 -04:00
Steven Black 238d46f2f6 Updates from clefspear13, yoyo.org, someonewhocares.org, and KADhosts. 2019-07-27 13:24:12 -04:00
Steven Black 5b0420f103 Release 2.4.16 2019-07-21 21:26:29 -04:00
Steven Black 8c2099b0ed Updates from fakenews, gambling, yoyo.org, someonewhocares.org, mvps.org, KADhosts, and Badd-Boyz. 2019-07-21 21:26:01 -04:00
Steven Black a02fae96cf Issue #1018: fix – remove rogue www.www. domains from my ad-hoc list. 2019-07-20 17:12:46 -04:00
Steven Black e54e1d624c Merge pull request #1014 from funilrys/issue-744
Introduction of the title in generated hosts files
2019-07-15 23:10:35 +02:00
funilrys 0843d83d09 It's stupid that it should be at the very top but yeah I fixed it... ¯\_(ツ)_/¯ 2019-07-13 21:06:30 +02:00
funilrys 9fbcff27e0 Fix typo for the ci tests 2019-07-13 20:16:55 +02:00
funilrys bd4df222c9 Introduction of a possible solution for the ci tests 2019-07-13 20:15:45 +02:00
funilrys f97458927c Introduction of the black badge.
More info at: https://github.com/python/black#show-your-style
2019-07-13 13:51:13 +02:00
funilrys b93b427a6e fix #744 #843 and disable E203 (flake8).
Indeed, before this patch, no `# Title: XYZ` was describing our generated
host file. This patch fixes that.

Indeed, we now do the following:

- If no extension is included we add:
    - `# Title: StevenBlack/hosts`
- If exactly one extension is included we add:
    - `# Title: StevenBlack/hosts with the extension_name extension`
- If more than one extension is included we add (in one line):
    - `# Title: StevenBlack/hosts with the extname1,
      extname2 and extname3 extensions`

Please also note that I disable E203 (whitespace before ':') for flake8
at line 773.

Since we use Black for code formatting let me redirect you to
the documentation of Black which explain what I did.

https://black.readthedocs.io/en/stable/the_black_code_style.html#slices :

> Since E203 is not PEP 8 compliant, you should tell
> Flake8 to ignore these warnings.
2019-07-13 13:41:36 +02:00
funilrys 05dad7e657 Introduction of Black: The uncompromising Python code formatter.
Please find more about it there:
* https://github.com/python/black
* https://black.readthedocs.io/en/stable/
2019-07-13 13:40:13 +02:00
Steven Black 5386cec268 Release 2.4.15 2019-07-04 21:26:31 -04:00
Steven Black 05fc18a46f Updates from sinfonietta, yoyo.org, someonewhocares.org, and KADhosts. 2019-07-04 21:26:02 -04:00
Steven Black 5f772618f7 Release 2.4.14 2019-06-28 13:14:24 -04:00
Steven Black 36a6bcdc3f Updates from clefspearfe13, fakenews, yoyo.org, someonewhocares.org, KADhosts, and Badd-Boyz. 2019-06-28 13:14:02 -04:00
Steven Black cd32e90bdf Release 2.4.13 2019-06-22 21:21:28 -04:00
Steven Black 4725aab78c Updates from sinfonietta, clefspeare13, yoyo.org, someonewhocares.org, KADhosts, and Badd-Boyz. 2019-06-22 21:21:13 -04:00
Steven Black 0a4d2661e1 Release 2.4.12 2019-06-19 13:37:35 -04:00
Steven Black a04c66f1b3 Updates from sinfonietta, KADhosts, and Badd-Boyz. 2019-06-19 13:36:51 -04:00
Steven Black 85038558ef Release 2.4.11 2019-06-17 14:21:16 -04:00
Steven Black c52725dcf9 Updates from yoyo.org, someonewhocares.org, mvps.org, KADhosts, and Badd-Boyz. 2019-06-17 14:20:57 -04:00
Steven Black 15fa2070ca Update the reame files to link to Christian Martínez' ViHoMa visual interface, written in Java. 2019-06-17 14:18:08 -04:00
Steven Black cb5cac38af Release 2.4.10 2019-06-11 12:16:03 -04:00
Steven Black da669df0a5 New data from sinfonietta, yoyo.org, KADhosts, CoinBlockerList, Badd-Boyz, and add.spam. 2019-06-11 12:15:41 -04:00
Steven Black b3b5808b10 Merge pull request #998 from ahallais/master
feat(domain): add domain adservice.google.com.vn
2019-06-11 11:09:45 -04:00
Arnaud Hallais bf8cdacca2 feat(domain): add domain adservice.google.com.vn 2019-06-11 21:13:42 +07:00
Steven Black b1664ca84e Release 2.4.9 2019-06-05 17:02:25 -04:00
Steven Black ae3b3e6ff8 Updates from yoyo.org, KADhosts, and Badd-Boyz. 2019-06-05 17:02:09 -04:00
Steven Black 0f457c7c02 Release 2.4.8 2019-05-29 11:53:57 -04:00
Steven Black 5c831c05d7 Updates from clefspeare13, yoyo.org, someonewhocares.org, KADhosts, and Badd-Boyz 2019-05-29 11:53:35 -04:00
Steven Black 77cbe1e366 Merge pull request #984 from mys721tx/leaky
Adding leaky prefix
2019-05-29 11:08:52 -04:00
Yishen Miao 36fab9ad8f Adding leaky prefix
Per #982, a list of domains that have at least one A answers from Google
Public DNS has been added to the list.

Domains that returns on `NXDOMAIN` on Google Public DNS are removed.
Domains that are duplicates of existing entries are also removed.
2019-05-29 00:54:31 -04:00
Steven Black cd3004fafe Release 2.4.7 2019-05-24 09:45:12 -04:00
Steven Black 820b456810 Updates from tiuxo, and yoyo.org. 2019-05-24 09:44:46 -04:00
Steven Black e3c53841f2 Release 2.4.6 2019-05-23 12:18:48 -04:00
Steven Black a851f76f03 Updates from tiuxo, sinfonietta, yoyo.org, someonewhocares.org, KADhosts, and Badd-Boyz. 2019-05-23 12:18:18 -04:00
Steven Black ef7f6d72b9 Release 2.4.5 2019-05-13 21:23:06 -04:00
Steven Black bd0d6fe534 Updates from fakenews, KADhosts, and Badd-Boyz. 2019-05-13 21:22:45 -04:00
Steven Black bb02c6e521 Release 2.4.4 2019-05-10 17:49:52 -04:00
Steven Black fcaca8551e Updates from tiuxo, sinfonietta, yoyo.org, someonewhocares.org, mvps.org, KADhosts, CoinBlockerList, and Badd-Boyz. 2019-05-10 17:49:32 -04:00
Steven Black 3cfbdad90e Add com-fasting.live. 2019-05-06 09:58:02 -04:00
Steven Black 4070126505 Release 2.4.3 2019-05-05 20:29:12 -04:00
Steven Black 40c186a683 New data from sinfonietta, tiuxo, and KADhosts. 2019-05-05 20:28:50 -04:00
Steven Black aed8c73822 Release 2.4.2 2019-05-04 22:44:20 -04:00
Steven Black 9cf32f6e57 Updates from tiuxo, yoyo.org, and Badd-Boyz. 2019-05-04 22:43:51 -04:00
Steven Black 5459f91833 Release 2.4.1 2019-05-02 10:55:11 -04:00
Steven Black 9d25326cf2 Updates from tiuxo, clefspeare13, yoyo.org, someonewhocares.org, KADhosts, CoinBlockerList, and Badd-Boyz. 2019-05-02 10:54:47 -04:00
Steven Black fffd9af405 Release 2.4.0 2019-04-25 16:48:39 -04:00
Steven Black c3118fcae2 Updates from fakenews, yoyo.org, someonewhocares.org, KADhosts, and Badd-Boyz. 2019-04-25 16:48:02 -04:00
Steven Black 192a4f7642 Merge pull request #962 from brianclemens/add_tiuxo_hosts
add a few hostlists
2019-04-25 10:45:02 -04:00
Brian Clemens 349980b6bd moved to own folder 2019-04-25 18:59:52 +09:00
Brian Clemens b41da035f3 add tiuxo hosts 2019-04-25 18:44:00 +09:00
Steven Black 41be41f1d0 Remove the .vscode folder, which has no business here. 2019-04-23 19:23:59 -04:00
Steven Black 6c8f725821 Release 2.3.13 2019-04-17 20:45:17 -04:00
Steven Black 16f2db0a19 Updates from sinfonietta, yoyo.org, someonewhocares.org, KADhosts, CoinBlockerList, and Badd-Boyz. 2019-04-17 20:44:13 -04:00
Steven Black a16298a3ff Merge pull request #952 from ddalex/master
Adding parentelement
2019-04-15 09:57:03 -04:00
Alex Damian c1cace3904 Adding parentelement
ParentElement.tk is a springboard that identifies the browser
and serves targeted malware. Managed to crash my iPad
2019-04-11 23:39:12 +01:00
Steven Black e61335f7e1 Release 2.3.12 2019-04-11 10:36:25 -04:00
Steven Black a4e65c93ec Updates from sinfonietta, yoyo.org, mvps.org, KADhosts, CoinBlockerList, and Badd-Boyz. 2019-04-11 10:36:07 -04:00
Steven Black 7f2152cde6 Release 2.3.11 2019-04-07 20:48:16 -04:00
Steven Black f4e81b3117 Updates from yoyo.org, KADhosts, and Badd-Boyz. 2019-04-07 20:47:56 -04:00
Steven Black 51d48d0e53 Release 2.3.10 2019-04-02 10:46:57 -04:00
Steven Black 1d3155a0b5 new data from yoyo.org, someonewhocares.org, KADhosts, and Badd-Boyz. 2019-04-02 10:46:35 -04:00
Steven Black fb14d572ef Adding ads30.adcolony.com, closes Issue #942. 2019-03-30 10:15:53 -04:00
Steven Black ad5ff07bf2 Release 2.3.9 2019-03-26 23:12:10 -04:00
Steven Black ff8739aad1 Updates from clefspeare13, yoyo.org, someonewhocares.org, someonewhocares.org, and KADhosts. 2019-03-26 23:11:36 -04:00
Steven Black ebecd49237 Release 2.3.8 2019-03-21 21:11:38 -04:00
Steven Black c3f0463d20 Updates from sinfonietta, clefspear13, yoyo.org, someonewhocares.org, KADhosts, Badd-Boyz, and add.Dead. 2019-03-21 21:11:03 -04:00
Steven Black d0c30e77a2 Merge pull request #933 from DanNixon/patch-1
Add misspelling of amazon.co.uk
2019-03-16 18:17:24 -04:00
Dan Nixon 159e14a156 Add misspelling of amazon.co.uk
Adds a potential misspelling of amazon.co.uk and some ad pages it redirects to.
2019-03-16 21:11:10 +00:00
Steven Black 46268431b4 Release 2.3.7 2019-03-15 17:59:01 -04:00
Steven Black b6d4ff5f25 Updates from sinfonietta, yoyo.org, someonewhocares.org, mvps.org, KADhosts, and Badd-Boyz. 2019-03-15 17:58:41 -04:00
Steven Black ca308932ce Release 2.3.6 2019-03-06 21:05:02 -05:00
Steven Black 34df0c48eb Updates from yoyo.org, someonewhocares.org, KADhosts, and BaddBoyz. 2019-03-06 21:04:42 -05:00
Steven Black b7d496e964 Release 2.3.5 2019-03-02 11:57:37 -05:00
Steven Black 64af8e1cfd Updates from yoyo.org, someonewhocares.org, and KADhosts. 2019-03-02 11:56:48 -05:00
Steven Black a79b8df37e Release 2.3.4 2019-02-24 23:44:12 -05:00
Steven Black e55afb8cb4 Updated from yoyo.org, someonewhocares.org, malwaredomainlist.com, and KADhosts. 2019-02-24 23:43:40 -05:00
Steven Black dcc5d6d1a7 Release 2.3.3 2019-02-18 13:55:27 -05:00
Steven Black cd4092a599 Updates from Clefspeare13, yoyo.org, mine, someonewhocares.org, KADhosts, CoinBlockerList, and add.Risk. 2019-02-18 13:55:04 -05:00
Steven Black a6d019d0cd Merge pull request #919 from ScriptTiger/master
IP Logger and URL Shortener Tracking Services
2019-02-12 23:56:12 -05:00
ScriptTiger 12f0710ea8 IP Logger and URL Shortener Tracking Services
Added domains associated with Grabify IP Logger (https://grabify.link/) and IP Logger URL Shortener (https://iplogger.org/)
2019-02-12 13:59:53 +08:00
Steven Black 70fbf2245c Release 2.3.2 2019-02-11 22:52:42 -05:00
Steven Black 7c02fb2e35 Updates from sinfonietta, clefspeare13, yoyo.org, someonewhocares.org, mvps.org, and KADhosts. 2019-02-11 22:52:23 -05:00
Steven Black c0dd835958 Release 2.3.1 2019-02-06 10:29:55 -05:00
Steven Black cc91583bc8 New data from yoyo.org, KADhosts, someonewhocares.org, and CoinBlockerList. 2019-02-06 10:29:32 -05:00
Steven Black 38b3de7a79 Release 2.3.0 2019-01-29 20:07:57 -05:00
Steven Black 97d3065543 Updates from KADhosts. 2019-01-29 20:06:00 -05:00
Steven Black 74c2bfbcbd Update release-it to version 10.0.7. 2019-01-29 20:03:25 -05:00
Steven Black 8a4d8b037d Merge pull request #905 from funilrys/issue-904
Fix issue when we meet something like `0.0.0.0 `.   Merging!  Closes #904.
2019-01-29 19:33:55 -05:00
funilrys 90420ae751 Fix issue when we meet something like 0.0.0.0
This patch fix StevenBlack/hosts#904
2019-01-30 01:08:59 +01:00
Steven Black 1da0da2882 Update release-it to v.10. 2019-01-26 10:54:17 -05:00
Steven Black 9175d957e0 Release 2.2.3 2019-01-26 10:51:06 -05:00
Steven Black b2caf0616f Updates from yoyo.org, someonewhocares.org, and KADhosts. 2019-01-26 10:50:40 -05:00
Steven Black c6fc7ddc8c Add four domains, closes #899 and #900. 2019-01-26 10:26:52 -05:00
Steven Black 45afdf0775 Release 2.2.2 2019-01-22 00:08:25 -05:00
Steven Black b60e9e03ce Updates from yoyo.org, and someonewhocares.org. 2019-01-22 00:08:04 -05:00
Steven Black 4d9b648691 Release 2.2.1 2019-01-13 23:05:31 -05:00
Steven Black 2daf2b0352 Updates from sinfonietta, and someonewhocares.org. 2019-01-13 23:04:44 -05:00
Steven Black 98e5b0a06e Happy new year. 2019-01-13 23:02:44 -05:00
Steven Black cc71463569 Merge pull request #887 from 0xflotus/patch-2
fixed existence in template
2019-01-13 22:57:05 -05:00
0xflotus b3fbc7c43e fixed existence in template 2019-01-14 00:46:06 +01:00
Steven Black dfe998b87f Issue #880: placing all the conviva domains together, for now. 2019-01-12 17:07:17 -05:00
Steven Black 9f374d10d0 Release 2.2.0 2019-01-10 10:55:42 -05:00
Steven Black 53148b6242 Update release-it to version 9.7.0. 2019-01-10 10:51:48 -05:00
Steven Black 3d192fb98c updates from someonewhocares.org. Dropping list by lightswitch05. 2019-01-10 10:46:44 -05:00
Steven Black 6e1c186f5e Merge pull request #882 from lightswitch05/remove-sentry.io
Removed my list from this project per #881
2019-01-10 10:39:32 -05:00
Daniel 6b06465bc8 Removed my list from this project per #881 2019-01-10 10:19:18 -05:00
Steven Black 3a84cf33f9 Merge pull request #877 from ghostduck/master
Specify encoding to UTF-8 when opening source file
2019-01-05 23:02:40 -05:00
Duck 5c69826a98 Change "utf8" to "UTF-8" in params for encoding in updateHostFile.py 2019-01-05 23:08:46 +08:00
Duck df29ed238f Specify encoding to UTF-8 when opening source file 2019-01-05 19:11:01 +08:00
Steven Black e9f696b935 Release 2.1.25 2019-01-04 20:43:08 -05:00
Steven Black 9febbba276 Updates from yoyo.org, someonewhocares.org, lightswitch05, and KADhosts. 2019-01-04 20:42:36 -05:00
Steven Black bcd66b2015 Remove cfvod.kaltura.com. This closes #802. 2018-12-31 15:11:40 -05:00
Steven Black 6671211fac Removing cdnapi.kaltura.com, closes Issue #870. 2018-12-31 14:23:38 -05:00
Steven Black 117034cada Release 2.1.24 2018-12-30 15:54:38 -05:00
Steven Black 420b104b35 Updating data from CoinblockerList, responding to Issue #869. 2018-12-30 15:54:20 -05:00
Steven Black 0d9c70300f Reverting the change introcuced in PR #868. This closes #869. 2018-12-30 15:51:49 -05:00
Steven Black a8c9fa0b34 Release 2.1.23 2018-12-29 18:57:09 -05:00
Steven Black f5a70c0f0c Updates from yoyo.org, someonewhocares.org, malwaredomainlist.com, lightswitch05, KADhosts, and CoinBlockerList. 2018-12-29 18:56:39 -05:00
Steven Black 5bd9e321d8 Merge pull request #868 from FadeMind/patch-2
CoinBlockerList: using main hosts file
2018-12-29 16:22:29 -05:00
FadeMind 9f571fd585 CoinBlockerList: using main hosts file
@StevenBlack  IMHO better is using main big hosts file for prevent cryptominers instead of basic browser hosts file (smaller). Works for me.
2018-12-29 21:52:34 +01:00
Steven Black 4f68efdeda Remove lepodownload.mediatek.com from my ad-hoc list. 2018-12-28 13:01:31 -05:00
Steven Black f604b1e7c4 Release 2.1.22 2018-12-23 21:13:22 -05:00
Steven Black cf12a5200c Updates from yoyo.org, someonewhocares.org, and lightswitch05. 2018-12-23 21:12:50 -05:00
Steven Black a87064b428 Merge pull request #864 from xetorixik/master
Telemetry - Office - November 2018 update
2018-12-23 21:07:47 -05:00
xetorixik 6392065518 Telemetry - Office - November update
Telemetry update from the Network requests in Office for Mac list.
2018-12-24 00:35:21 +01:00
Steven Black b6346cbf7a Update release-it to version 8.4.2. 2018-12-15 12:47:42 -05:00
Steven Black 0dd81a5cae Release 2.1.21 2018-12-15 12:46:38 -05:00
Steven Black b737ce3fd7 Updates from yoyo.org, and lightswitch05. 2018-12-15 12:46:15 -05:00
Steven Black 348f1a81fe Release 2.1.20 2018-12-11 11:33:22 -05:00
Steven Black bd93bc08e2 New updates from yoyo.org, someonewhocares.org, lightswitch05, KADhosts, and add.risk. 2018-12-11 11:33:07 -05:00
Steven Black 3f7bfc059b Add goooooooooogle.com, closes issue #851. 2018-12-09 17:15:45 -05:00
Steven Black 3a3d58b7ac Merge pull request #836 from spirillen/patch-1
Changes to the time.strftime to make it more accurate
2018-12-07 12:03:04 -05:00
spirillen ddf5a72906 Replaced (UTC) with %Z
I've changed as suggested in https://github.com/StevenBlack/hosts/pull/836#issuecomment-440452979 by @funilrys

The reason I choose NOT to convert this into ISO-8601 is, that we read date.time in different ways depending on with side on the pond we live. By using the "%d %B %Y %H:%M:%S (%Z)" Full date/time this issue is eliminated  and any confusion on how to read the date is no longer existent. The ISO-8601 is good for active pages, as the date ordering is to be manipulated by interface.

Alternative to this is we should add extra lines/info about the date.time ordering, do to this i found this as the easiest way to give this information
2018-12-07 14:31:52 +01:00
Steven Black 82e8febbe4 Removing secure.footprint.net. 2018-12-06 00:20:33 -05:00
Steven Black 55789a40bd Release 2.1.19 2018-12-04 08:59:40 -05:00
Steven Black f0a9692c17 Updates from yoyo.org, lightswitch05, and Badd-Boyz. 2018-12-04 08:59:19 -05:00
Steven Black 423cd3d152 Add popup site. 2018-12-01 13:12:08 -05:00
Steven Black 2c6b47fbd7 Upgrade the release-it package. 2018-11-29 23:19:20 -05:00
Steven Black 10bba14590 Release 2.1.18 2018-11-29 23:17:56 -05:00
Steven Black 1194e1cd1e Updates from sinfonietta, someonewhocares.org, lightswitch05, Badd-Boyz, and add.risk. 2018-11-29 23:17:36 -05:00
Steven Black 8f32865d24 Merge pull request #845 from matkoniecz/fix-gitignore
remove existing file from .gitignore
2018-11-27 08:59:54 -05:00
Mateusz Konieczny e26481d90c remove existing file from .gitignore
listing existing files in .gitignore has no effects
that are desirable

especially - modifications of tracked files listed in gitignore are not ignored

main effect is confusing people using code

fixes #660
2018-11-27 13:23:47 +01:00
Steven Black b1fad010a6 Release 2.1.17 2018-11-26 14:23:34 -05:00
Steven Black b59510383e Updates from sinfonietta, yoyo.org, someonewhocares.org, lightswitch05, Badd-Boyz, and add-risk. 2018-11-26 14:23:10 -05:00
Steven Black 9dca2bc2b7 Issue #844: partial fix – block misspelled Microsoft domains. 2018-11-26 14:10:27 -05:00
Steven Black 7c1d46b203 Release 2.1.16 2018-11-21 11:19:38 -05:00
Steven Black 8fed35b85c Updates from lightswitch05, and Badd-Boyz. 2018-11-21 11:19:12 -05:00
Steven Black 4e6e5eeded Merge pull request #840 from borisschapira/logout-host
Exclude massive logout sites
2018-11-21 11:13:25 -05:00
Boris SCHAPIRA 0935e6e7f3 Exclude massive logout sites 2018-11-21 16:39:49 +01:00
spirillen a2989eedc8 Changes to the time.strftime to make it more accurate
Since some host files might need to be updated more frequently it's more appropriate to show timezone and the exact time for last build, hince changed the order of month and date to %d %B
2018-11-20 23:19:19 +01:00
Steven Black e07dcb2431 Release 2.1.15 2018-11-20 11:47:42 -05:00
Steven Black 259a819cc1 Tweak package.json so release-it doesn't complain. 2018-11-20 11:47:26 -05:00
Steven Black c9a4a55fbb Remove pushargs key in release-it.json. 2018-11-20 11:39:36 -05:00
Steven Black 4b542d110c Release 2.1.15 2018-11-20 11:38:06 -05:00
Steven Black 8ad480cf8d Fix typo in .release-it.json. 2018-11-20 11:37:40 -05:00
Steven Black fb45bdd8aa Update release-it to version 8.0.0. 2018-11-20 11:35:35 -05:00
Steven Black f8bc74f89a Updates from yoyo.org, someonewhocares.org, malwaredomainlist.com, lightswitch05, KADhosts, and Badd-Boyz. 2018-11-20 11:27:05 -05:00
Steven Black 7f9281ce1a GPG sign release-it tags and pushes, too. See https://github.com/webpro/release-it#extra-arguments. 2018-11-17 14:52:55 -05:00
Steven Black 22e13de02b Release 2.1.14 2018-11-14 11:29:12 -05:00
Steven Black 46c5407bf1 Updates from sinfonietta, yoyo.org, someonewhocares.org, lightswitch05, KADHosts, CoinBlockerList, and Badd-Boyz. 2018-11-14 11:28:41 -05:00
Steven Black a60464a86d Add cradver.livejasmin.com. 2018-11-09 11:49:09 -05:00
Steven Black 0e91eae4b0 Add icloud.com-locations.in. This closes #817. 2018-11-06 15:40:38 -05:00
Steven Black db01feb59c Release 2.1.13 2018-11-02 14:14:57 -04:00
Steven Black e843392f27 updates from yoyo.org and lightswitch05. 2018-11-02 14:14:37 -04:00
Steven Black a02dfd85ef Release 2.1.12 2018-11-01 11:07:07 -04:00
Steven Black 9e46722317 Updates from yoyo.org, someonewhocares.org, lightswitch05, Badd-Boyz, add.risk, add-dead, and sinfonietta. 2018-11-01 11:05:37 -04:00
Steven Black a4036f856a Merge pull request #816 from anudeepND/master
New hotstar.com analytics
2018-11-01 10:27:48 -04:00
Steven Black 842195d6ec Merge pull request #821 from xstnztk/fixPythonVersion
Python version 3.5 sufficient
2018-11-01 10:26:30 -04:00
xstnztk fdfdefd176 Python version 3.5 sufficient
Python version 3.7 is actually not required for building one's own
hosts file. According to the CI configuration, any version >= 3.5
should work.

Tested with Python 3.6.6 on Ubuntu 18.04.
2018-11-01 13:06:21 +01:00
Anudeep 212c44fce0 Added hotstar.com analytics 2018-10-24 08:16:42 +05:30
Steven Black 101a5ee2ab Release 2.1.11 2018-10-23 09:36:40 -04:00
Steven Black 6559bbfea7 Updates from lightswitch05 and Badd-Boyz. 2018-10-23 09:36:20 -04:00
Steven Black 1671dda503 Release 2.1.10 2018-10-22 11:25:11 -04:00
Steven Black fd7e3e4cc7 updates from toto.org, someonewhocares.org, malwaredomainlist.com, lightswitch05, CoinBlockerList, Badd-Boyz, and add.2o7Net. 2018-10-22 11:24:49 -04:00
Steven Black 0cc023e709 Release 2.1.9 2018-10-14 22:33:30 -04:00
Steven Black 49f5a65c52 Updates from yoyo.org, someonewhocares.org, lightswitc05, and KADhosts. 2018-10-14 22:33:06 -04:00
Steven Black b3e159c16b Release 2.1.8 2018-10-09 22:02:39 -04:00
Steven Black 5bf352cdcb Updates from sinfonietta, someonewhocares.org, lightswitch05, Badd-Boyz, and add.Risk. 2018-10-09 22:02:14 -04:00
Steven Black 65b33c326f Merge pull request #796 from xetorixik/master
Telemetry - Windows 10 1803 - September update
2018-10-06 18:00:29 -04:00
xetorixik a9e25ffee4 Telemetry - Windows 10 1803 - September update
v10c.events.data.microsoft.com

New telemetry endpoint for Windows 10, version 1803, also known as Windows 10 April 2018 Update.
Since KB4458469 (September 2018 update) and higher.

As written: https://docs.microsoft.com/en-us/windows/deployment/update/windows-analytics-get-started
This one should be added immediately.
2018-10-06 02:33:09 +02:00
Steven Black ea78dd36c3 Release 2.1.7 2018-10-05 14:21:38 -04:00
Steven Black 5a544828c3 Updates from yoyo.org, someonewhocares.org, lightswitch05, KADhosts, Badd-Boyz, and add.Risk. 2018-10-05 14:21:10 -04:00
Steven Black b92fa130c5 Release 2.1.6 2018-10-02 09:36:11 -04:00
Steven Black f6d1272da0 updates from yoyo.org, someonewhocares.org, mvps.org, malwaredomainlist.org, lightswitch05.com, coinblockerlist.com, and Badd-Boyz. 2018-10-02 09:35:47 -04:00
Steven Black 38c342f7db Merge pull request #794 from JamesKingdom/patch-1
Add statful.com
2018-10-02 08:44:35 -04:00
James Kingdom 0a9a2a3b9d Add statful.com
(closes #637 )
2018-10-02 12:59:17 +01:00
Steven Black 904b878509 Merge pull request #793 from ScriptTiger/patch-1
Added some domains for BidGear
2018-10-01 09:58:57 -04:00
ScriptTiger 4a86a14cbb Added "media.complex.com" and "api.b2c.com" 2018-10-01 18:35:39 +08:00
ScriptTiger b2d3a88770 Added "track.adtrue.com" 2018-09-30 00:26:04 +08:00
ScriptTiger cce7500ac9 Added some domains for BidGear 2018-09-30 00:18:43 +08:00
Steven Black 1a6fd33e74 Release 2.1.5 2018-09-23 10:36:35 -04:00
Steven Black 498b7c1c9c Updates from sinfonietta, yoyo.org, someonewhocares.org, and lightswitch05. 2018-09-23 10:36:18 -04:00
Steven Black 7ee00ffb1f Release 2.1.4 2018-09-18 23:50:36 -04:00
Steven Black 1e9311b935 Updates from someonewhocares.org, lightswitch05, and Badd-Boyz. 2018-09-18 23:50:19 -04:00
Steven Black 26af6ba1db Adding myfrecams.com. 2018-09-18 14:54:49 -04:00
Steven Black ea7d542a14 Merge pull request #783 from 0xflotus/patch-2
fixed 'desirable'
2018-09-17 08:56:36 -04:00
0xflotus fc2b4b7e3a fixed 'desirable' 2018-09-17 13:56:44 +02:00
Steven Black 4e14e65647 Issue #774: fix – add adscan.yelabapp.com. 2018-09-16 12:03:51 -04:00
Steven Black c46bf451d1 Release 2.1.3 2018-09-16 11:56:40 -04:00
Steven Black 648df8f811 new data from yoyo.org, someonewhocares.org, and lightswitch05. 2018-09-16 11:56:14 -04:00
Steven Black 1553048103 Release 2.1.2 2018-09-13 19:05:51 -04:00
Steven Black 5f47f1ffe7 Updates from yoyo.org, someonewhocares.org, lightswitch05, KADhosts, CoinBlockerList, and Badd-Boyz. 2018-09-13 19:05:38 -04:00
StevenBlack 5774db32a8 Addition to #779 and #777: fix – update the reame template, documenting the flipped default for the -k flag. 2018-09-13 18:55:34 -04:00
Steven Black e909f8144e Merge pull request #779 from funilrys/issue-777
Fix of the extra line and the way we manage lines with comments at the end
2018-09-13 18:53:19 -04:00
funilrys c0d661f388 Review of the notion of keepdomaincomments
This patch fix StevenBlack/hosts#777

This patch:
  * Change the default state of keepdomaincomments.
    * Indeed, comments are now displayed by default.
    * But if you don't need comments, feel free to use the argument.
  * Delete the requirement input when calling the `-k` argument.
  * Update tests case regarding the new state of keepdomaincomments.
2018-09-14 00:15:56 +02:00
Steven Black 755fe082fa Merge pull request #778 from xetorixik/master
Analytics.ff.avast.com / CCleaner / Avast
2018-09-13 17:59:15 -04:00
xetorixik 1f62bc3778 Add analytics.ff.avast.com / CCleaner / Avast
Even though I opted for opt-out of analytics viewing data, usage is still being tracked.
As the "Help improve CCleaner by sending anonymous usage data" is automatically checked again at every restart.

This is confirmed by the firewall logs.
Therefore this one should be added immediately.

No host-block-list contains this analytics entry, hence this commit.
2018-09-13 23:50:00 +02:00
funilrys ec362d81c5 Deletion of the extra \n after each (and especially commented) line.
This patch partially fix StevenBlack/hosts#777 .
2018-09-13 09:17:45 +02:00
Steven Black 91b2240ff6 Release 2.1.1 2018-09-08 21:55:12 -04:00
Steven Black 13f1869d6e Configure release-it to sign its commits. 2018-09-08 21:54:58 -04:00
Steven Black 1a6c1fb55e Updates from yoyo.org, someonewhocares.org, lightswitch05, and Badd-Boyz. 2018-09-08 21:42:37 -04:00
StevenBlack ed6f65d970 Issue #733: fix – more robust if the .example files are missing. 2018-09-08 21:19:51 -04:00
Steven Black 429cc64f29 Merge pull request #772 from gfyoung/house-cleaning
Minor house-cleaning
2018-09-07 01:16:15 -04:00
gfyoung 92442955bc Minor house-cleaning
* No parentheses single-line string
* Remove builtins function, which was
really for Python 2.x compatibility
2018-09-06 21:12:48 -07:00
Steven Black 5ee118faf1 Release 2.1.0 2018-09-06 23:48:08 -04:00
Steven Black dda5b87192 Updates from lightswitch05. 2018-09-06 23:45:54 -04:00
Steven Black fc5e0640a7 Merge pull request #771 from gfyoung/python-support-docs
Update docs to say we support Python 3.5+
2018-09-06 23:42:35 -04:00
gfyoung e99c7bbf44 Update docs to say we support Python 3.5+
Python 3.5 and 3.6 are still alive and well supported.
2018-09-06 17:15:33 -07:00
Steven Black 275590fcbb Merge pull request #736 from gfyoung/copy-example-files
Use example files to allow proper git-ignoring
2018-09-06 16:07:29 -04:00
gfyoung d8df5f1dc4 Use example files to allow proper git-ignoring
The following files:

* myhosts
* blacklist
* whitelist

can be all be modified by the user for personal usage.
However, git is tracking these files since they exist
in the repository, which makes it difficult to do so
without accidentally pushing one's own customizations.

This commit converts those examples to ".example" files,
which serve as the defaults if one of the files listed
above does not exist.

Closes gh-144.
2018-09-06 12:20:37 -07:00
Steven Black fbbd071611 Release 2.0.0 2018-09-06 00:02:56 -04:00
Steven Black 3adadd9a9a Updates from sinfonietta, someonewhocares.org, MalwareDomainlist.com, lightswitch05, and Badd-Boyz. 2018-09-05 23:59:09 -04:00
Steven Black ad9c3c80b2 Add Python 3.7 requirement clarification to the readme_template. 2018-09-05 23:53:59 -04:00
funilrys 0d0ee1bcdc Deletion of mock as it is now built-in 2018-09-05 23:53:58 -04:00
funilrys 39e829b716 Introduction of python 3.7 into the CI tests
Signed-off-by: funilrys <contact@funilrys.com>
2018-09-05 23:53:58 -04:00
funilrys 0782145b8e Deletion of python2 related information 2018-09-05 23:53:58 -04:00
funilrys e2be45842b Deletion of unneeded comments 2018-09-05 23:53:58 -04:00
funilrys f54a27103c Exlicitly set the python interpreter to use 2018-09-05 23:53:58 -04:00
funilrys 9ef1e4a1fc Deletion of unneeded comment 2018-09-05 23:53:58 -04:00
StevenBlack 79e755b77d Remove a Python 3 reference since Python 3 is now explicitly rerquired. 2018-09-05 23:53:58 -04:00
StevenBlack 05e0e5baeb Update the reame_template for Python 3. 2018-09-05 23:53:57 -04:00
funilrys 7c2da6044e Deletion of unneeded comment 2018-09-05 23:53:57 -04:00
funilrys 782a178596 This patch fix https://github.com/StevenBlack/hosts/pull/730#discussion_r205657347 2018-09-05 23:53:57 -04:00
funilrys f5ef7e02d7 Fixing flake8 issues 2018-09-05 23:53:57 -04:00
funilrys e246960c43 Fixing flake8 issues 2018-09-05 23:53:57 -04:00
funilrys a49fc7af44 Deletion of sys as it is unuseed
Also:

  * Fixing flake8 issue
2018-09-05 23:53:57 -04:00
funilrys deed6786ef Fix syntax error produced by last commit 2018-09-05 23:53:57 -04:00
funilrys 62ccd5b084 Deletion of decode_line() as it is not required anymore in python 3
Also:
  * Deletion of any PY3 references
2018-09-05 23:53:57 -04:00
funilrys 58db5143ed Deletion of future dependencies
Also:
  * deletion of raw_input
2018-09-05 23:53:35 -04:00
funilrys d60754db68 Update of the version of beautifulsoup4 2018-09-05 23:53:34 -04:00
funilrys abeb28e6fa Deletion of mock as it is now built-inÃ. 2018-09-05 23:53:34 -04:00
funilrys 95529c9b1e Update of the version of lxml
This patch fix StevenBlack/hosts#751
2018-09-05 23:53:34 -04:00
funilrys edb4f57da4 Fix flake8 issue.
This patch is related to https://github.com/StevenBlack/hosts/issues/729
2018-09-05 23:53:11 -04:00
funilrys eb37488a16 Sorting and update of imports && deletion of Python2 related logic
This patch is related to https://github.com/StevenBlack/hosts/issues/729
2018-09-05 23:53:11 -04:00
funilrys bcb1434ecd Introduction of an exception saying that we do not support Python 2 anymore.
This patch is the begining of https://github.com/StevenBlack/hosts/issues/729
2018-09-05 23:52:15 -04:00
funilrys 11d8c064ac Deletion of unneeded comment 2018-09-05 23:51:29 -04:00
funilrys 52e25bf7b9 This patch fix https://github.com/StevenBlack/hosts/pull/730#discussion_r205657347 2018-09-05 23:51:29 -04:00
funilrys 4d6f1d9065 Fixing flake8 issues 2018-09-05 23:51:29 -04:00
funilrys 816bc35f99 Reformating of lint.sh as ${PYTHON_VERSION} should not have a 2.x version (cf: .travis.yml) 2018-09-05 23:51:29 -04:00
funilrys 6a28f41fdc Fixing flake8 issues 2018-09-05 23:51:29 -04:00
funilrys cce40a8cc4 Deletion of sys as it is unuseed
Also:

  * Fixing flake8 issue
2018-09-05 23:51:29 -04:00
funilrys 9cc719fd72 Fix syntax error produced by last commit 2018-09-05 23:51:29 -04:00
funilrys 4b92652576 Sorting of the dependencies 2018-09-05 23:51:28 -04:00
funilrys 4cd4b8167a Deletion of decode_line() as it is not required anymore in python 3
Also:
  * Deletion of any PY3 references
2018-09-05 23:51:28 -04:00
funilrys 1692f5b759 Sorting of the dependencies 2018-09-05 23:51:28 -04:00
funilrys 928bb5201c Deletion of future dependencies
Also:
  * deletion of raw_input
2018-09-05 23:51:28 -04:00
funilrys 8f9e80422b Update of the version of beautifulsoup4 2018-09-05 23:51:28 -04:00
funilrys ddf80f064b Deletion of mock as it is now built-inÃ. 2018-09-05 23:51:28 -04:00
funilrys 261555716e Update of the version of lxml
This patch fix StevenBlack/hosts#751
2018-09-05 23:51:28 -04:00
funilrys d93e67db63 Deletion of python 2 reference in the readme_template.md
This patch is related to https://github.com/StevenBlack/hosts/issues/729
2018-09-05 23:51:27 -04:00
funilrys 03bc1636b2 Deletion of the Python 2 requirements.txt
This patch is related to https://github.com/StevenBlack/hosts/issues/729
2018-09-05 23:51:27 -04:00
funilrys 8ebad236c6 Fix flake8 issue.
This patch is related to https://github.com/StevenBlack/hosts/issues/729
2018-09-05 23:51:27 -04:00
funilrys d526f3356f Deletion of Python 2.7 from the CI tests.
This patch is related to https://github.com/StevenBlack/hosts/issues/729
2018-09-05 23:51:27 -04:00
funilrys 05c2c6c825 Sorting and update of imports && deletion of Python2 related logic
This patch is related to https://github.com/StevenBlack/hosts/issues/729
2018-09-05 23:51:27 -04:00
funilrys 943d0d732d Introduction of an exception saying that we do not support Python 2 anymore.
This patch is the begining of https://github.com/StevenBlack/hosts/issues/729
2018-09-05 23:51:27 -04:00
Steven Black 1656df776a Release 1.4.49 2018-09-04 11:16:36 -04:00
Steven Black 38113e6a2a Updates from Sinfonietta, yoyo.org, someonewhocares.org, and Badd-Boyz. 2018-09-04 11:15:17 -04:00
Steven Black a7d0902868 Release 1.4.48 2018-08-29 22:55:10 -04:00
Steven Black 3fba2aad35 Updates from yoyo.org, someonewhocares.org, lightswitch05, KADhosts, CoinBlockerList, and Badd-Boyz. 2018-08-29 22:51:32 -04:00
Steven Black ec41eb1fa6 Release 1.4.47 2018-08-25 23:59:55 -04:00
Steven Black 521777278a Updates from lightswitch05 and CoinBlockerList. 2018-08-25 23:57:53 -04:00
Steven Black 2d160925f2 Release 1.4.46 2018-08-24 11:53:03 -04:00
Steven Black 7cebf12a27 Updates from yoyo.org, someonewhocares.org, lighswitch05, KADhosts, CoinBlockerList, and Badd-Boyz. 2018-08-24 11:52:32 -04:00
StevenBlack 02a4d1277c Issue #750: fix – Adjust the Ubuntu reset to . 2018-08-23 11:01:22 -04:00
Steven Black eb86def58a Release 1.4.45 2018-08-22 10:37:34 -04:00
Steven Black 5c4b50e643 Updates from someonewhocares.org, lightswitch05, KADhosts, and Badd-Boyz. 2018-08-22 10:37:13 -04:00
Steven Black b4c311de22 Release 1.4.44 2018-08-19 16:03:52 -04:00
Steven Black 96f0635ed0 Updates from sinfonietta, yoyo.org, someonewhocares.org, and lightswitch05. 2018-08-19 16:03:28 -04:00
StevenBlack efa9fbc9d0 Release 1.4.43 2018-08-13 20:36:46 -04:00
StevenBlack fb5493c22f Updates from yoyo.org, someonewhocares.org, lightswitch05, KADHosts, and CoinBlockerList. 2018-08-13 20:36:24 -04:00
StevenBlack 7a7becf136 Release 1.4.42 2018-08-08 23:21:21 -04:00
StevenBlack 724967eddb Updates from yoyo.org, somonewhocares.org, lightswitch05, KADhosts, and CoinBlockerList. 2018-08-08 23:20:47 -04:00
Steven Black 3360057708 Merge pull request #737 from gfyoung/skip-flake8-python2.x
Skip flake8 check on Python on 2.7
2018-08-08 23:08:14 -04:00
StevenBlack 9c91762543 Correct typo. This closes #738. 2018-08-08 10:21:50 -04:00
gfyoung a2a7d12448 Skip flake8 check on Python on 2.7
flake8 is broken with Python 2.7, but
we have all other builds linting, so
not an issue for us.
2018-08-07 00:14:56 -07:00
Steven Black 7a2ecfccff Merge pull request #743 from anudeepND/master
New phishing sites
2018-08-05 14:34:06 -04:00
Anudeep ecce205609 Added phishing sites 2018-08-05 22:53:37 +05:30
Steven Black 876fa2bc99 Merge pull request #738 from gfyoung/free-bsd-docs
Add docs for DNS cache for FreeBSD
2018-08-05 10:48:24 -04:00
gfyoung 8062b28490 Add docs for DNS cache for FreeBSD
Closes gh-157.
2018-08-03 10:43:37 -07:00
Steven Black 6553e70541 Release 1.4.41 2018-08-01 21:41:53 -04:00
Steven Black 2e885317c3 new data from someonewhocares.org, lightswitch05, and KADhosts. 2018-08-01 21:41:34 -04:00
StevenBlack a95434b646 Two new domains I have come across. 2018-08-01 16:43:40 -04:00
StevenBlack 59c2bd671e Normalize my hosts list to 0.0.0.0. 2018-08-01 16:42:14 -04:00
87 changed files with 296050 additions and 633905 deletions
-1
View File
@@ -4,7 +4,6 @@ myhosts
blacklist
whitelist
readmeData.json
hosts
hosts-*
/web.config
/__pycache__
+3 -1
View File
@@ -1,6 +1,8 @@
{
"src": {
"tagName": "v%s"
"tagName": "v%s",
"commitArgs": "-S",
"tagArgs": "-S"
},
"github": {
"release": true
+3 -1
View File
@@ -12,15 +12,17 @@ cache:
before_cache:
- rm -rf $HOME/miniconda3/pkgs/cache
- rm -rf $HOME/miniconda3/envs/hosts
- rm -rf $HOME/miniconda3/conda-meta/history
- touch $HOME/miniconda3/conda-meta/history
os:
- linux
- osx
env:
- PYTHON_VERSION="2.7"
- PYTHON_VERSION="3.5"
- PYTHON_VERSION="3.6"
- PYTHON_VERSION="3.7"
before_install:
- export PATH="$HOME/miniconda3/bin:$PATH"
File diff suppressed because it is too large Load Diff
@@ -1,57 +1,55 @@
----
**Take Note!** We are in the process of [dropping support for Python 2.7](https://github.com/StevenBlack/hosts/issues/729).
Soon, to self-generate hosts files, you'll need to use Python 3.
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
----
![readme](https://user-images.githubusercontent.com/36028424/40330477-9df2c2e0-5d7f-11e8-8ac8-511d719a5eae.png)
[![latest release](https://img.shields.io/github/release/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/releases)
[![license](https://img.shields.io/github/license/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/blob/master/license.txt)
[![repo size](https://img.shields.io/github/repo-size/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts)
[![contributors](https://img.shields.io/github/contributors/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/graphs/contributors)
[![Build Status](https://travis-ci.org/StevenBlack/hosts.svg?branch=master)](https://travis-ci.org/StevenBlack/hosts)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
[![commits since last release](https://img.shields.io/github/commits-since/StevenBlack/hosts/latest.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![last commit](https://img.shields.io/github/last-commit/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![commit activity](https://img.shields.io/github/commit-activity/y/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
# Unified hosts file with fakenews, gambling, porn, social extensions
This repository consolidates several reputable `hosts` files, and merges them
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
* Last updated: **July 30 2018**.
* 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 74,908 entries.
* Last updated: **January 07 2020**.
* Here's the [raw hosts file with fakenews, gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) containing 61,225 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
The **Non GitHub mirror** is the link to use for some hosts file managers like
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
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) | 61,386 | [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) | 62,055 | [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) | 63,004 | [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) | 71,464 | [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) | 62,544 | [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) | 63,673 | [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) | 72,133 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 63,213 | [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) | 73,082 | [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) | 64,162 | [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) | 72,621 | [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) | 73,751 | [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) | 64,831 | [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) | 73,290 | [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) | 74,239 | [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) | 74,908 | [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) | 39,773 | [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) | 40,715 | [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) | 42,075 | [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) | 55,506 | [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) | 42,249 | [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) | 43,017 | [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) | 56,448 | [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) | 43,191 | [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) | 57,808 | [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) | 44,551 | [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) | 57,981 | [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) | 58,750 | [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) | 45,493 | [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) | 58,923 | [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) | 60,283 | [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) | 61,225 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -67,58 +65,55 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
## Extensions
The unified hosts file is extensible. Extensions are used to block domains by category.
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 are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
Data for extensions is 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
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.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).
To run unit tests, in the top level directory, just run:
To run unit tests, in the top level directory, run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -126,10 +121,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -150,15 +141,14 @@ 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.
`--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`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--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.
@@ -193,7 +183,7 @@ 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 desire.
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.
@@ -234,11 +224,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -269,13 +259,12 @@ lines to your hosts file will do it:
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
## Why not use `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -283,15 +272,19 @@ We tried that. Using `0` doesn't work universally.
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**mac OS (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
## Updating hosts file on Windows
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
work is required due to compatibility issues in implementing some of the functionality
for Windows. It is preferable to run the batch file as follows:
On Linux and Mac OS X, 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:
```
updateHostsWindows.bat
@@ -346,7 +339,7 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
@@ -360,6 +353,21 @@ Open a Terminal and run with root privileges:
**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:
```
sudo sysrc nscd_enable="YES"
sudo service nscd start
```
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
```
hosts: cache files dns
```
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
### Mac OS X
@@ -371,9 +379,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
## Release management
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
This repository uses [Release-It!](https://webpro.github.io/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
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
@@ -382,7 +390,7 @@ The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
2. provide situation-appropriate extensions,
3. de-dupe the resultant combined list,
@@ -402,10 +410,16 @@ 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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily 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.
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate 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
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
* [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.
@@ -414,4 +428,12 @@ devices under a variety of operating systems.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it 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). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
## 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).
File diff suppressed because it is too large Load Diff
+91 -70
View File
@@ -1,57 +1,55 @@
----
**Take Note!** We are in the process of [dropping support for Python 2.7](https://github.com/StevenBlack/hosts/issues/729).
Soon, to self-generate hosts files, you'll need to use Python 3.
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
----
![readme](https://user-images.githubusercontent.com/36028424/40330477-9df2c2e0-5d7f-11e8-8ac8-511d719a5eae.png)
[![latest release](https://img.shields.io/github/release/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/releases)
[![license](https://img.shields.io/github/license/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/blob/master/license.txt)
[![repo size](https://img.shields.io/github/repo-size/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts)
[![contributors](https://img.shields.io/github/contributors/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/graphs/contributors)
[![Build Status](https://travis-ci.org/StevenBlack/hosts.svg?branch=master)](https://travis-ci.org/StevenBlack/hosts)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
[![commits since last release](https://img.shields.io/github/commits-since/StevenBlack/hosts/latest.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![last commit](https://img.shields.io/github/last-commit/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![commit activity](https://img.shields.io/github/commit-activity/y/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
# Unified hosts file with fakenews, gambling, porn extensions
This repository consolidates several reputable `hosts` files, and merges them
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
* Last updated: **July 30 2018**.
* Here's the [raw hosts file with fakenews, gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) containing 73,751 entries.
* Last updated: **January 07 2020**.
* Here's the [raw hosts file with fakenews, gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) containing 58,750 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
The **Non GitHub mirror** is the link to use for some hosts file managers like
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
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) | 61,386 | [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) | 62,055 | [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) | 63,004 | [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) | 71,464 | [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) | 62,544 | [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) | 63,673 | [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) | 72,133 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 63,213 | [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) | 73,082 | [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) | 64,162 | [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) | 72,621 | [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) | 73,751 | [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) | 64,831 | [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) | 73,290 | [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) | 74,239 | [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) | 74,908 | [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) | 39,773 | [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) | 40,715 | [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) | 42,075 | [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) | 55,506 | [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) | 42,249 | [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) | 43,017 | [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) | 56,448 | [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) | 43,191 | [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) | 57,808 | [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) | 44,551 | [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) | 57,981 | [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) | 58,750 | [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) | 45,493 | [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) | 58,923 | [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) | 60,283 | [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) | 61,225 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -67,57 +65,53 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
## Extensions
The unified hosts file is extensible. Extensions are used to block domains by category.
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 are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
Data for extensions is 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
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.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).
To run unit tests, in the top level directory, just run:
To run unit tests, in the top level directory, run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -125,10 +119,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -149,15 +139,14 @@ 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.
`--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`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--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.
@@ -192,7 +181,7 @@ 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 desire.
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.
@@ -233,11 +222,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -268,13 +257,12 @@ lines to your hosts file will do it:
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
## Why not use `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -282,15 +270,19 @@ We tried that. Using `0` doesn't work universally.
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**mac OS (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
## Updating hosts file on Windows
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
work is required due to compatibility issues in implementing some of the functionality
for Windows. It is preferable to run the batch file as follows:
On Linux and Mac OS X, 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:
```
updateHostsWindows.bat
@@ -345,7 +337,7 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
@@ -359,6 +351,21 @@ Open a Terminal and run with root privileges:
**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:
```
sudo sysrc nscd_enable="YES"
sudo service nscd start
```
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
```
hosts: cache files dns
```
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
### Mac OS X
@@ -370,9 +377,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
## Release management
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
This repository uses [Release-It!](https://webpro.github.io/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
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
@@ -381,7 +388,7 @@ The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
2. provide situation-appropriate extensions,
3. de-dupe the resultant combined list,
@@ -401,10 +408,16 @@ 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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily 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.
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate 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
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
* [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.
@@ -413,4 +426,12 @@ devices under a variety of operating systems.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it 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). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
## 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).
File diff suppressed because it is too large Load Diff
+91 -70
View File
@@ -1,57 +1,55 @@
----
**Take Note!** We are in the process of [dropping support for Python 2.7](https://github.com/StevenBlack/hosts/issues/729).
Soon, to self-generate hosts files, you'll need to use Python 3.
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
----
![readme](https://user-images.githubusercontent.com/36028424/40330477-9df2c2e0-5d7f-11e8-8ac8-511d719a5eae.png)
[![latest release](https://img.shields.io/github/release/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/releases)
[![license](https://img.shields.io/github/license/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/blob/master/license.txt)
[![repo size](https://img.shields.io/github/repo-size/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts)
[![contributors](https://img.shields.io/github/contributors/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/graphs/contributors)
[![Build Status](https://travis-ci.org/StevenBlack/hosts.svg?branch=master)](https://travis-ci.org/StevenBlack/hosts)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
[![commits since last release](https://img.shields.io/github/commits-since/StevenBlack/hosts/latest.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![last commit](https://img.shields.io/github/last-commit/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![commit activity](https://img.shields.io/github/commit-activity/y/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
# Unified hosts file with fakenews, gambling, social extensions
This repository consolidates several reputable `hosts` files, and merges them
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
* Last updated: **July 30 2018**.
* Here's the [raw hosts file with fakenews, gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) containing 64,831 entries.
* Last updated: **January 07 2020**.
* Here's the [raw hosts file with fakenews, gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) containing 45,493 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
The **Non GitHub mirror** is the link to use for some hosts file managers like
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
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) | 61,386 | [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) | 62,055 | [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) | 63,004 | [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) | 71,464 | [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) | 62,544 | [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) | 63,673 | [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) | 72,133 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 63,213 | [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) | 73,082 | [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) | 64,162 | [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) | 72,621 | [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) | 73,751 | [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) | 64,831 | [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) | 73,290 | [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) | 74,239 | [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) | 74,908 | [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) | 39,773 | [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) | 40,715 | [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) | 42,075 | [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) | 55,506 | [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) | 42,249 | [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) | 43,017 | [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) | 56,448 | [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) | 43,191 | [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) | 57,808 | [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) | 44,551 | [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) | 57,981 | [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) | 58,750 | [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) | 45,493 | [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) | 58,923 | [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) | 60,283 | [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) | 61,225 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -67,55 +65,51 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
## Extensions
The unified hosts file is extensible. Extensions are used to block domains by category.
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 are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
Data for extensions is 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
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.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).
To run unit tests, in the top level directory, just run:
To run unit tests, in the top level directory, run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -123,10 +117,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -147,15 +137,14 @@ 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.
`--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`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--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.
@@ -190,7 +179,7 @@ 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 desire.
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.
@@ -231,11 +220,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -266,13 +255,12 @@ lines to your hosts file will do it:
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
## Why not use `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -280,15 +268,19 @@ We tried that. Using `0` doesn't work universally.
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**mac OS (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
## Updating hosts file on Windows
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
work is required due to compatibility issues in implementing some of the functionality
for Windows. It is preferable to run the batch file as follows:
On Linux and Mac OS X, 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:
```
updateHostsWindows.bat
@@ -343,7 +335,7 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
@@ -357,6 +349,21 @@ Open a Terminal and run with root privileges:
**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:
```
sudo sysrc nscd_enable="YES"
sudo service nscd start
```
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
```
hosts: cache files dns
```
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
### Mac OS X
@@ -368,9 +375,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
## Release management
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
This repository uses [Release-It!](https://webpro.github.io/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
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
@@ -379,7 +386,7 @@ The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
2. provide situation-appropriate extensions,
3. de-dupe the resultant combined list,
@@ -399,10 +406,16 @@ 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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily 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.
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate 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
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
* [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.
@@ -411,4 +424,12 @@ devices under a variety of operating systems.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it 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). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
## 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).
File diff suppressed because it is too large Load Diff
+90 -70
View File
@@ -1,57 +1,55 @@
----
**Take Note!** We are in the process of [dropping support for Python 2.7](https://github.com/StevenBlack/hosts/issues/729).
Soon, to self-generate hosts files, you'll need to use Python 3.
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
----
![readme](https://user-images.githubusercontent.com/36028424/40330477-9df2c2e0-5d7f-11e8-8ac8-511d719a5eae.png)
[![latest release](https://img.shields.io/github/release/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/releases)
[![license](https://img.shields.io/github/license/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/blob/master/license.txt)
[![repo size](https://img.shields.io/github/repo-size/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts)
[![contributors](https://img.shields.io/github/contributors/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/graphs/contributors)
[![Build Status](https://travis-ci.org/StevenBlack/hosts.svg?branch=master)](https://travis-ci.org/StevenBlack/hosts)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
[![commits since last release](https://img.shields.io/github/commits-since/StevenBlack/hosts/latest.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![last commit](https://img.shields.io/github/last-commit/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![commit activity](https://img.shields.io/github/commit-activity/y/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
# Unified hosts file with fakenews, gambling extensions
This repository consolidates several reputable `hosts` files, and merges them
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
* Last updated: **July 30 2018**.
* Here's the [raw hosts file with fakenews, gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) containing 63,673 entries.
* Last updated: **January 07 2020**.
* Here's the [raw hosts file with fakenews, gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) containing 43,017 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
The **Non GitHub mirror** is the link to use for some hosts file managers like
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
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) | 61,386 | [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) | 62,055 | [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) | 63,004 | [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) | 71,464 | [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) | 62,544 | [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) | 63,673 | [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) | 72,133 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 63,213 | [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) | 73,082 | [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) | 64,162 | [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) | 72,621 | [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) | 73,751 | [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) | 64,831 | [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) | 73,290 | [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) | 74,239 | [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) | 74,908 | [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) | 39,773 | [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) | 40,715 | [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) | 42,075 | [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) | 55,506 | [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) | 42,249 | [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) | 43,017 | [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) | 56,448 | [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) | 43,191 | [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) | 57,808 | [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) | 44,551 | [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) | 57,981 | [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) | 58,750 | [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) | 45,493 | [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) | 58,923 | [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) | 60,283 | [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) | 61,225 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -67,54 +65,49 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
## Extensions
The unified hosts file is extensible. Extensions are used to block domains by category.
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 are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
Data for extensions is 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
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.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).
To run unit tests, in the top level directory, just run:
To run unit tests, in the top level directory, run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -122,10 +115,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -146,15 +135,14 @@ 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.
`--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`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--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.
@@ -189,7 +177,7 @@ 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 desire.
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.
@@ -230,11 +218,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -265,13 +253,12 @@ lines to your hosts file will do it:
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
## Why not use `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -279,15 +266,19 @@ We tried that. Using `0` doesn't work universally.
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**mac OS (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
## Updating hosts file on Windows
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
work is required due to compatibility issues in implementing some of the functionality
for Windows. It is preferable to run the batch file as follows:
On Linux and Mac OS X, 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:
```
updateHostsWindows.bat
@@ -342,7 +333,7 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
@@ -356,6 +347,21 @@ Open a Terminal and run with root privileges:
**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:
```
sudo sysrc nscd_enable="YES"
sudo service nscd start
```
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
```
hosts: cache files dns
```
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
### Mac OS X
@@ -367,9 +373,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
## Release management
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
This repository uses [Release-It!](https://webpro.github.io/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
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
@@ -378,7 +384,7 @@ The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
2. provide situation-appropriate extensions,
3. de-dupe the resultant combined list,
@@ -398,10 +404,16 @@ 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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily 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.
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate 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
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
* [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.
@@ -410,4 +422,12 @@ devices under a variety of operating systems.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it 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). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
## 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).
File diff suppressed because it is too large Load Diff
+92 -70
View File
@@ -1,57 +1,55 @@
----
**Take Note!** We are in the process of [dropping support for Python 2.7](https://github.com/StevenBlack/hosts/issues/729).
Soon, to self-generate hosts files, you'll need to use Python 3.
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
----
![readme](https://user-images.githubusercontent.com/36028424/40330477-9df2c2e0-5d7f-11e8-8ac8-511d719a5eae.png)
[![latest release](https://img.shields.io/github/release/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/releases)
[![license](https://img.shields.io/github/license/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/blob/master/license.txt)
[![repo size](https://img.shields.io/github/repo-size/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts)
[![contributors](https://img.shields.io/github/contributors/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/graphs/contributors)
[![Build Status](https://travis-ci.org/StevenBlack/hosts.svg?branch=master)](https://travis-ci.org/StevenBlack/hosts)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
[![commits since last release](https://img.shields.io/github/commits-since/StevenBlack/hosts/latest.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![last commit](https://img.shields.io/github/last-commit/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![commit activity](https://img.shields.io/github/commit-activity/y/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
# Unified hosts file with fakenews, porn, social extensions
This repository consolidates several reputable `hosts` files, and merges them
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
* Last updated: **July 30 2018**.
* Here's the [raw hosts file with fakenews, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) containing 73,290 entries.
* Last updated: **January 07 2020**.
* Here's the [raw hosts file with fakenews, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) containing 58,923 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
The **Non GitHub mirror** is the link to use for some hosts file managers like
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
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) | 61,386 | [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) | 62,055 | [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) | 63,004 | [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) | 71,464 | [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) | 62,544 | [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) | 63,673 | [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) | 72,133 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 63,213 | [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) | 73,082 | [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) | 64,162 | [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) | 72,621 | [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) | 73,751 | [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) | 64,831 | [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) | 73,290 | [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) | 74,239 | [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) | 74,908 | [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) | 39,773 | [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) | 40,715 | [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) | 42,075 | [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) | 55,506 | [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) | 42,249 | [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) | 43,017 | [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) | 56,448 | [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) | 43,191 | [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) | 57,808 | [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) | 44,551 | [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) | 57,981 | [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) | 58,750 | [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) | 45,493 | [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) | 58,923 | [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) | 60,283 | [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) | 61,225 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -67,57 +65,54 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
## Extensions
The unified hosts file is extensible. Extensions are used to block domains by category.
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 are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
Data for extensions is 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
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.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).
To run unit tests, in the top level directory, just run:
To run unit tests, in the top level directory, run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -125,10 +120,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -149,15 +140,14 @@ 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.
`--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`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--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.
@@ -192,7 +182,7 @@ 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 desire.
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.
@@ -233,11 +223,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -268,13 +258,12 @@ lines to your hosts file will do it:
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
## Why not use `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -282,15 +271,19 @@ We tried that. Using `0` doesn't work universally.
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**mac OS (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
## Updating hosts file on Windows
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
work is required due to compatibility issues in implementing some of the functionality
for Windows. It is preferable to run the batch file as follows:
On Linux and Mac OS X, 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:
```
updateHostsWindows.bat
@@ -345,7 +338,7 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
@@ -359,6 +352,21 @@ Open a Terminal and run with root privileges:
**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:
```
sudo sysrc nscd_enable="YES"
sudo service nscd start
```
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
```
hosts: cache files dns
```
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
### Mac OS X
@@ -370,9 +378,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
## Release management
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
This repository uses [Release-It!](https://webpro.github.io/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
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
@@ -381,7 +389,7 @@ The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
2. provide situation-appropriate extensions,
3. de-dupe the resultant combined list,
@@ -401,10 +409,16 @@ 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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily 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.
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate 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
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
* [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.
@@ -413,4 +427,12 @@ devices under a variety of operating systems.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it 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). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
## 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).
+20089 -38424
View File
File diff suppressed because it is too large Load Diff
+91 -70
View File
@@ -1,57 +1,55 @@
----
**Take Note!** We are in the process of [dropping support for Python 2.7](https://github.com/StevenBlack/hosts/issues/729).
Soon, to self-generate hosts files, you'll need to use Python 3.
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
----
![readme](https://user-images.githubusercontent.com/36028424/40330477-9df2c2e0-5d7f-11e8-8ac8-511d719a5eae.png)
[![latest release](https://img.shields.io/github/release/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/releases)
[![license](https://img.shields.io/github/license/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/blob/master/license.txt)
[![repo size](https://img.shields.io/github/repo-size/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts)
[![contributors](https://img.shields.io/github/contributors/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/graphs/contributors)
[![Build Status](https://travis-ci.org/StevenBlack/hosts.svg?branch=master)](https://travis-ci.org/StevenBlack/hosts)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
[![commits since last release](https://img.shields.io/github/commits-since/StevenBlack/hosts/latest.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![last commit](https://img.shields.io/github/last-commit/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![commit activity](https://img.shields.io/github/commit-activity/y/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
# Unified hosts file with fakenews, porn extensions
This repository consolidates several reputable `hosts` files, and merges them
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
* Last updated: **July 30 2018**.
* Here's the [raw hosts file with fakenews, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) containing 72,133 entries.
* Last updated: **January 07 2020**.
* Here's the [raw hosts file with fakenews, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) containing 56,448 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
The **Non GitHub mirror** is the link to use for some hosts file managers like
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
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) | 61,386 | [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) | 62,055 | [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) | 63,004 | [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) | 71,464 | [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) | 62,544 | [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) | 63,673 | [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) | 72,133 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 63,213 | [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) | 73,082 | [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) | 64,162 | [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) | 72,621 | [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) | 73,751 | [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) | 64,831 | [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) | 73,290 | [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) | 74,239 | [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) | 74,908 | [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) | 39,773 | [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) | 40,715 | [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) | 42,075 | [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) | 55,506 | [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) | 42,249 | [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) | 43,017 | [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) | 56,448 | [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) | 43,191 | [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) | 57,808 | [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) | 44,551 | [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) | 57,981 | [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) | 58,750 | [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) | 45,493 | [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) | 58,923 | [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) | 60,283 | [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) | 61,225 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -67,56 +65,52 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
## Extensions
The unified hosts file is extensible. Extensions are used to block domains by category.
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 are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
Data for extensions is 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
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.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).
To run unit tests, in the top level directory, just run:
To run unit tests, in the top level directory, run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -124,10 +118,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -148,15 +138,14 @@ 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.
`--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`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--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.
@@ -191,7 +180,7 @@ 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 desire.
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.
@@ -232,11 +221,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -267,13 +256,12 @@ lines to your hosts file will do it:
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
## Why not use `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -281,15 +269,19 @@ We tried that. Using `0` doesn't work universally.
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**mac OS (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
## Updating hosts file on Windows
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
work is required due to compatibility issues in implementing some of the functionality
for Windows. It is preferable to run the batch file as follows:
On Linux and Mac OS X, 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:
```
updateHostsWindows.bat
@@ -344,7 +336,7 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
@@ -358,6 +350,21 @@ Open a Terminal and run with root privileges:
**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:
```
sudo sysrc nscd_enable="YES"
sudo service nscd start
```
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
```
hosts: cache files dns
```
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
### Mac OS X
@@ -369,9 +376,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
## Release management
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
This repository uses [Release-It!](https://webpro.github.io/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
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
@@ -380,7 +387,7 @@ The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
2. provide situation-appropriate extensions,
3. de-dupe the resultant combined list,
@@ -400,10 +407,16 @@ 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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily 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.
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate 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
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
* [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.
@@ -412,4 +425,12 @@ devices under a variety of operating systems.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it 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). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
## 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).
+12938 -35599
View File
File diff suppressed because it is too large Load Diff
+91 -70
View File
@@ -1,57 +1,55 @@
----
**Take Note!** We are in the process of [dropping support for Python 2.7](https://github.com/StevenBlack/hosts/issues/729).
Soon, to self-generate hosts files, you'll need to use Python 3.
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
----
![readme](https://user-images.githubusercontent.com/36028424/40330477-9df2c2e0-5d7f-11e8-8ac8-511d719a5eae.png)
[![latest release](https://img.shields.io/github/release/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/releases)
[![license](https://img.shields.io/github/license/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/blob/master/license.txt)
[![repo size](https://img.shields.io/github/repo-size/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts)
[![contributors](https://img.shields.io/github/contributors/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/graphs/contributors)
[![Build Status](https://travis-ci.org/StevenBlack/hosts.svg?branch=master)](https://travis-ci.org/StevenBlack/hosts)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
[![commits since last release](https://img.shields.io/github/commits-since/StevenBlack/hosts/latest.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![last commit](https://img.shields.io/github/last-commit/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![commit activity](https://img.shields.io/github/commit-activity/y/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
# Unified hosts file with fakenews, social extensions
This repository consolidates several reputable `hosts` files, and merges them
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
* Last updated: **July 30 2018**.
* Here's the [raw hosts file with fakenews, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) containing 63,213 entries.
* Last updated: **January 07 2020**.
* Here's the [raw hosts file with fakenews, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) containing 43,191 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
The **Non GitHub mirror** is the link to use for some hosts file managers like
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
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) | 61,386 | [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) | 62,055 | [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) | 63,004 | [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) | 71,464 | [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) | 62,544 | [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) | 63,673 | [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) | 72,133 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 63,213 | [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) | 73,082 | [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) | 64,162 | [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) | 72,621 | [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) | 73,751 | [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) | 64,831 | [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) | 73,290 | [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) | 74,239 | [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) | 74,908 | [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) | 39,773 | [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) | 40,715 | [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) | 42,075 | [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) | 55,506 | [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) | 42,249 | [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) | 43,017 | [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) | 56,448 | [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) | 43,191 | [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) | 57,808 | [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) | 44,551 | [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) | 57,981 | [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) | 58,750 | [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) | 45,493 | [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) | 58,923 | [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) | 60,283 | [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) | 61,225 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -67,54 +65,50 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
## Extensions
The unified hosts file is extensible. Extensions are used to block domains by category.
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 are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
Data for extensions is 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
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.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).
To run unit tests, in the top level directory, just run:
To run unit tests, in the top level directory, run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -122,10 +116,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -146,15 +136,14 @@ 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.
`--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`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--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.
@@ -189,7 +178,7 @@ 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 desire.
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.
@@ -230,11 +219,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -265,13 +254,12 @@ lines to your hosts file will do it:
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
## Why not use `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -279,15 +267,19 @@ We tried that. Using `0` doesn't work universally.
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**mac OS (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
## Updating hosts file on Windows
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
work is required due to compatibility issues in implementing some of the functionality
for Windows. It is preferable to run the batch file as follows:
On Linux and Mac OS X, 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:
```
updateHostsWindows.bat
@@ -342,7 +334,7 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
@@ -356,6 +348,21 @@ Open a Terminal and run with root privileges:
**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:
```
sudo sysrc nscd_enable="YES"
sudo service nscd start
```
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
```
hosts: cache files dns
```
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
### Mac OS X
@@ -367,9 +374,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
## Release management
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
This repository uses [Release-It!](https://webpro.github.io/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
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
@@ -378,7 +385,7 @@ The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
2. provide situation-appropriate extensions,
3. de-dupe the resultant combined list,
@@ -398,10 +405,16 @@ 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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily 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.
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate 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
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
* [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.
@@ -410,4 +423,12 @@ devices under a variety of operating systems.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it 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). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
## 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).
+11307 -35270
View File
File diff suppressed because it is too large Load Diff
+90 -70
View File
@@ -1,57 +1,55 @@
----
**Take Note!** We are in the process of [dropping support for Python 2.7](https://github.com/StevenBlack/hosts/issues/729).
Soon, to self-generate hosts files, you'll need to use Python 3.
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
----
![readme](https://user-images.githubusercontent.com/36028424/40330477-9df2c2e0-5d7f-11e8-8ac8-511d719a5eae.png)
[![latest release](https://img.shields.io/github/release/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/releases)
[![license](https://img.shields.io/github/license/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/blob/master/license.txt)
[![repo size](https://img.shields.io/github/repo-size/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts)
[![contributors](https://img.shields.io/github/contributors/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/graphs/contributors)
[![Build Status](https://travis-ci.org/StevenBlack/hosts.svg?branch=master)](https://travis-ci.org/StevenBlack/hosts)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
[![commits since last release](https://img.shields.io/github/commits-since/StevenBlack/hosts/latest.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![last commit](https://img.shields.io/github/last-commit/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![commit activity](https://img.shields.io/github/commit-activity/y/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
# Unified hosts file with fakenews extensions
This repository consolidates several reputable `hosts` files, and merges them
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
* Last updated: **July 30 2018**.
* Here's the [raw hosts file with fakenews extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) containing 62,055 entries.
* Last updated: **January 07 2020**.
* Here's the [raw hosts file with fakenews extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) containing 40,715 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
The **Non GitHub mirror** is the link to use for some hosts file managers like
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
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) | 61,386 | [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) | 62,055 | [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) | 63,004 | [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) | 71,464 | [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) | 62,544 | [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) | 63,673 | [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) | 72,133 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 63,213 | [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) | 73,082 | [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) | 64,162 | [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) | 72,621 | [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) | 73,751 | [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) | 64,831 | [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) | 73,290 | [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) | 74,239 | [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) | 74,908 | [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) | 39,773 | [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) | 40,715 | [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) | 42,075 | [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) | 55,506 | [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) | 42,249 | [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) | 43,017 | [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) | 56,448 | [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) | 43,191 | [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) | 57,808 | [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) | 44,551 | [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) | 57,981 | [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) | 58,750 | [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) | 45,493 | [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) | 58,923 | [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) | 60,283 | [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) | 61,225 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -67,53 +65,48 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
## Extensions
The unified hosts file is extensible. Extensions are used to block domains by category.
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 are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
Data for extensions is 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
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.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).
To run unit tests, in the top level directory, just run:
To run unit tests, in the top level directory, run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -121,10 +114,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -145,15 +134,14 @@ 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.
`--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`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--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.
@@ -188,7 +176,7 @@ 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 desire.
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.
@@ -229,11 +217,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -264,13 +252,12 @@ lines to your hosts file will do it:
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
## Why not use `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -278,15 +265,19 @@ We tried that. Using `0` doesn't work universally.
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**mac OS (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
## Updating hosts file on Windows
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
work is required due to compatibility issues in implementing some of the functionality
for Windows. It is preferable to run the batch file as follows:
On Linux and Mac OS X, 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:
```
updateHostsWindows.bat
@@ -341,7 +332,7 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
@@ -355,6 +346,21 @@ Open a Terminal and run with root privileges:
**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:
```
sudo sysrc nscd_enable="YES"
sudo service nscd start
```
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
```
hosts: cache files dns
```
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
### Mac OS X
@@ -366,9 +372,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
## Release management
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
This repository uses [Release-It!](https://webpro.github.io/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
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
@@ -377,7 +383,7 @@ The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
2. provide situation-appropriate extensions,
3. de-dupe the resultant combined list,
@@ -397,10 +403,16 @@ 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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily 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.
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate 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
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
* [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.
@@ -409,4 +421,12 @@ devices under a variety of operating systems.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it 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). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
## 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).
File diff suppressed because it is too large Load Diff
+92 -70
View File
@@ -1,57 +1,55 @@
----
**Take Note!** We are in the process of [dropping support for Python 2.7](https://github.com/StevenBlack/hosts/issues/729).
Soon, to self-generate hosts files, you'll need to use Python 3.
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
----
![readme](https://user-images.githubusercontent.com/36028424/40330477-9df2c2e0-5d7f-11e8-8ac8-511d719a5eae.png)
[![latest release](https://img.shields.io/github/release/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/releases)
[![license](https://img.shields.io/github/license/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/blob/master/license.txt)
[![repo size](https://img.shields.io/github/repo-size/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts)
[![contributors](https://img.shields.io/github/contributors/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/graphs/contributors)
[![Build Status](https://travis-ci.org/StevenBlack/hosts.svg?branch=master)](https://travis-ci.org/StevenBlack/hosts)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
[![commits since last release](https://img.shields.io/github/commits-since/StevenBlack/hosts/latest.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![last commit](https://img.shields.io/github/last-commit/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![commit activity](https://img.shields.io/github/commit-activity/y/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
# Unified hosts file with gambling, porn, social extensions
This repository consolidates several reputable `hosts` files, and merges them
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
* Last updated: **July 30 2018**.
* Here's the [raw hosts file with gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) containing 74,239 entries.
* Last updated: **January 07 2020**.
* Here's the [raw hosts file with gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) containing 60,283 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
The **Non GitHub mirror** is the link to use for some hosts file managers like
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
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) | 61,386 | [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) | 62,055 | [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) | 63,004 | [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) | 71,464 | [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) | 62,544 | [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) | 63,673 | [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) | 72,133 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 63,213 | [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) | 73,082 | [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) | 64,162 | [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) | 72,621 | [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) | 73,751 | [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) | 64,831 | [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) | 73,290 | [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) | 74,239 | [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) | 74,908 | [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) | 39,773 | [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) | 40,715 | [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) | 42,075 | [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) | 55,506 | [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) | 42,249 | [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) | 43,017 | [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) | 56,448 | [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) | 43,191 | [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) | 57,808 | [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) | 44,551 | [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) | 57,981 | [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) | 58,750 | [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) | 45,493 | [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) | 58,923 | [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) | 60,283 | [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) | 61,225 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -67,57 +65,54 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
## Extensions
The unified hosts file is extensible. Extensions are used to block domains by category.
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 are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
Data for extensions is 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
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.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).
To run unit tests, in the top level directory, just run:
To run unit tests, in the top level directory, run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -125,10 +120,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -149,15 +140,14 @@ 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.
`--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`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--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.
@@ -192,7 +182,7 @@ 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 desire.
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.
@@ -233,11 +223,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -268,13 +258,12 @@ lines to your hosts file will do it:
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
## Why not use `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -282,15 +271,19 @@ We tried that. Using `0` doesn't work universally.
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**mac OS (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
## Updating hosts file on Windows
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
work is required due to compatibility issues in implementing some of the functionality
for Windows. It is preferable to run the batch file as follows:
On Linux and Mac OS X, 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:
```
updateHostsWindows.bat
@@ -345,7 +338,7 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
@@ -359,6 +352,21 @@ Open a Terminal and run with root privileges:
**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:
```
sudo sysrc nscd_enable="YES"
sudo service nscd start
```
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
```
hosts: cache files dns
```
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
### Mac OS X
@@ -370,9 +378,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
## Release management
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
This repository uses [Release-It!](https://webpro.github.io/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
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
@@ -381,7 +389,7 @@ The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
2. provide situation-appropriate extensions,
3. de-dupe the resultant combined list,
@@ -401,10 +409,16 @@ 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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily 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.
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate 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
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
* [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.
@@ -413,4 +427,12 @@ devices under a variety of operating systems.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it 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). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
## 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).
+20503 -38430
View File
File diff suppressed because it is too large Load Diff
+91 -70
View File
@@ -1,57 +1,55 @@
----
**Take Note!** We are in the process of [dropping support for Python 2.7](https://github.com/StevenBlack/hosts/issues/729).
Soon, to self-generate hosts files, you'll need to use Python 3.
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
----
![readme](https://user-images.githubusercontent.com/36028424/40330477-9df2c2e0-5d7f-11e8-8ac8-511d719a5eae.png)
[![latest release](https://img.shields.io/github/release/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/releases)
[![license](https://img.shields.io/github/license/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/blob/master/license.txt)
[![repo size](https://img.shields.io/github/repo-size/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts)
[![contributors](https://img.shields.io/github/contributors/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/graphs/contributors)
[![Build Status](https://travis-ci.org/StevenBlack/hosts.svg?branch=master)](https://travis-ci.org/StevenBlack/hosts)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
[![commits since last release](https://img.shields.io/github/commits-since/StevenBlack/hosts/latest.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![last commit](https://img.shields.io/github/last-commit/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![commit activity](https://img.shields.io/github/commit-activity/y/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
# Unified hosts file with gambling, porn extensions
This repository consolidates several reputable `hosts` files, and merges them
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
* Last updated: **July 30 2018**.
* Here's the [raw hosts file with gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) containing 73,082 entries.
* Last updated: **January 07 2020**.
* Here's the [raw hosts file with gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) containing 57,808 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
The **Non GitHub mirror** is the link to use for some hosts file managers like
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
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) | 61,386 | [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) | 62,055 | [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) | 63,004 | [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) | 71,464 | [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) | 62,544 | [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) | 63,673 | [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) | 72,133 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 63,213 | [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) | 73,082 | [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) | 64,162 | [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) | 72,621 | [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) | 73,751 | [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) | 64,831 | [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) | 73,290 | [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) | 74,239 | [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) | 74,908 | [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) | 39,773 | [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) | 40,715 | [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) | 42,075 | [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) | 55,506 | [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) | 42,249 | [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) | 43,017 | [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) | 56,448 | [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) | 43,191 | [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) | 57,808 | [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) | 44,551 | [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) | 57,981 | [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) | 58,750 | [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) | 45,493 | [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) | 58,923 | [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) | 60,283 | [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) | 61,225 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -67,56 +65,52 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
## Extensions
The unified hosts file is extensible. Extensions are used to block domains by category.
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 are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
Data for extensions is 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
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.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).
To run unit tests, in the top level directory, just run:
To run unit tests, in the top level directory, run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -124,10 +118,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -148,15 +138,14 @@ 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.
`--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`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--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.
@@ -191,7 +180,7 @@ 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 desire.
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.
@@ -232,11 +221,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -267,13 +256,12 @@ lines to your hosts file will do it:
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
## Why not use `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -281,15 +269,19 @@ We tried that. Using `0` doesn't work universally.
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**mac OS (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
## Updating hosts file on Windows
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
work is required due to compatibility issues in implementing some of the functionality
for Windows. It is preferable to run the batch file as follows:
On Linux and Mac OS X, 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:
```
updateHostsWindows.bat
@@ -344,7 +336,7 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
@@ -358,6 +350,21 @@ Open a Terminal and run with root privileges:
**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:
```
sudo sysrc nscd_enable="YES"
sudo service nscd start
```
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
```
hosts: cache files dns
```
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
### Mac OS X
@@ -369,9 +376,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
## Release management
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
This repository uses [Release-It!](https://webpro.github.io/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
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
@@ -380,7 +387,7 @@ The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
2. provide situation-appropriate extensions,
3. de-dupe the resultant combined list,
@@ -400,10 +407,16 @@ 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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily 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.
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate 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
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
* [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.
@@ -412,4 +425,12 @@ devices under a variety of operating systems.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it 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). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
## 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).
+13352 -35605
View File
File diff suppressed because it is too large Load Diff
+91 -70
View File
@@ -1,57 +1,55 @@
----
**Take Note!** We are in the process of [dropping support for Python 2.7](https://github.com/StevenBlack/hosts/issues/729).
Soon, to self-generate hosts files, you'll need to use Python 3.
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
----
![readme](https://user-images.githubusercontent.com/36028424/40330477-9df2c2e0-5d7f-11e8-8ac8-511d719a5eae.png)
[![latest release](https://img.shields.io/github/release/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/releases)
[![license](https://img.shields.io/github/license/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/blob/master/license.txt)
[![repo size](https://img.shields.io/github/repo-size/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts)
[![contributors](https://img.shields.io/github/contributors/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/graphs/contributors)
[![Build Status](https://travis-ci.org/StevenBlack/hosts.svg?branch=master)](https://travis-ci.org/StevenBlack/hosts)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
[![commits since last release](https://img.shields.io/github/commits-since/StevenBlack/hosts/latest.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![last commit](https://img.shields.io/github/last-commit/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![commit activity](https://img.shields.io/github/commit-activity/y/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
# Unified hosts file with gambling, social extensions
This repository consolidates several reputable `hosts` files, and merges them
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
* Last updated: **July 30 2018**.
* Here's the [raw hosts file with gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) containing 64,162 entries.
* Last updated: **January 07 2020**.
* Here's the [raw hosts file with gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) containing 44,551 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
The **Non GitHub mirror** is the link to use for some hosts file managers like
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
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) | 61,386 | [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) | 62,055 | [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) | 63,004 | [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) | 71,464 | [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) | 62,544 | [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) | 63,673 | [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) | 72,133 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 63,213 | [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) | 73,082 | [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) | 64,162 | [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) | 72,621 | [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) | 73,751 | [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) | 64,831 | [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) | 73,290 | [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) | 74,239 | [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) | 74,908 | [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) | 39,773 | [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) | 40,715 | [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) | 42,075 | [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) | 55,506 | [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) | 42,249 | [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) | 43,017 | [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) | 56,448 | [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) | 43,191 | [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) | 57,808 | [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) | 44,551 | [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) | 57,981 | [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) | 58,750 | [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) | 45,493 | [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) | 58,923 | [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) | 60,283 | [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) | 61,225 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -67,54 +65,50 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
## Extensions
The unified hosts file is extensible. Extensions are used to block domains by category.
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 are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
Data for extensions is 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
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.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).
To run unit tests, in the top level directory, just run:
To run unit tests, in the top level directory, run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -122,10 +116,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -146,15 +136,14 @@ 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.
`--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`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--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.
@@ -189,7 +178,7 @@ 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 desire.
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.
@@ -230,11 +219,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -265,13 +254,12 @@ lines to your hosts file will do it:
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
## Why not use `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -279,15 +267,19 @@ We tried that. Using `0` doesn't work universally.
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**mac OS (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
## Updating hosts file on Windows
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
work is required due to compatibility issues in implementing some of the functionality
for Windows. It is preferable to run the batch file as follows:
On Linux and Mac OS X, 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:
```
updateHostsWindows.bat
@@ -342,7 +334,7 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
@@ -356,6 +348,21 @@ Open a Terminal and run with root privileges:
**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:
```
sudo sysrc nscd_enable="YES"
sudo service nscd start
```
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
```
hosts: cache files dns
```
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
### Mac OS X
@@ -367,9 +374,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
## Release management
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
This repository uses [Release-It!](https://webpro.github.io/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
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
@@ -378,7 +385,7 @@ The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
2. provide situation-appropriate extensions,
3. de-dupe the resultant combined list,
@@ -398,10 +405,16 @@ 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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily 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.
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate 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
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
* [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.
@@ -410,4 +423,12 @@ devices under a variety of operating systems.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it 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). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
## 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).
+11722 -35277
View File
File diff suppressed because it is too large Load Diff
+90 -70
View File
@@ -1,57 +1,55 @@
----
**Take Note!** We are in the process of [dropping support for Python 2.7](https://github.com/StevenBlack/hosts/issues/729).
Soon, to self-generate hosts files, you'll need to use Python 3.
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
----
![readme](https://user-images.githubusercontent.com/36028424/40330477-9df2c2e0-5d7f-11e8-8ac8-511d719a5eae.png)
[![latest release](https://img.shields.io/github/release/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/releases)
[![license](https://img.shields.io/github/license/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/blob/master/license.txt)
[![repo size](https://img.shields.io/github/repo-size/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts)
[![contributors](https://img.shields.io/github/contributors/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/graphs/contributors)
[![Build Status](https://travis-ci.org/StevenBlack/hosts.svg?branch=master)](https://travis-ci.org/StevenBlack/hosts)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
[![commits since last release](https://img.shields.io/github/commits-since/StevenBlack/hosts/latest.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![last commit](https://img.shields.io/github/last-commit/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![commit activity](https://img.shields.io/github/commit-activity/y/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
# Unified hosts file with gambling extensions
This repository consolidates several reputable `hosts` files, and merges them
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
* Last updated: **July 30 2018**.
* Here's the [raw hosts file with gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) containing 63,004 entries.
* Last updated: **January 07 2020**.
* Here's the [raw hosts file with gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) containing 42,075 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
The **Non GitHub mirror** is the link to use for some hosts file managers like
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
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) | 61,386 | [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) | 62,055 | [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) | 63,004 | [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) | 71,464 | [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) | 62,544 | [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) | 63,673 | [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) | 72,133 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 63,213 | [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) | 73,082 | [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) | 64,162 | [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) | 72,621 | [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) | 73,751 | [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) | 64,831 | [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) | 73,290 | [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) | 74,239 | [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) | 74,908 | [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) | 39,773 | [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) | 40,715 | [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) | 42,075 | [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) | 55,506 | [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) | 42,249 | [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) | 43,017 | [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) | 56,448 | [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) | 43,191 | [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) | 57,808 | [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) | 44,551 | [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) | 57,981 | [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) | 58,750 | [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) | 45,493 | [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) | 58,923 | [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) | 60,283 | [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) | 61,225 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -67,53 +65,48 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
## Extensions
The unified hosts file is extensible. Extensions are used to block domains by category.
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 are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
Data for extensions is 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
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.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).
To run unit tests, in the top level directory, just run:
To run unit tests, in the top level directory, run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -121,10 +114,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -145,15 +134,14 @@ 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.
`--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`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--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.
@@ -188,7 +176,7 @@ 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 desire.
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.
@@ -229,11 +217,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -264,13 +252,12 @@ lines to your hosts file will do it:
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
## Why not use `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -278,15 +265,19 @@ We tried that. Using `0` doesn't work universally.
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**mac OS (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
## Updating hosts file on Windows
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
work is required due to compatibility issues in implementing some of the functionality
for Windows. It is preferable to run the batch file as follows:
On Linux and Mac OS X, 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:
```
updateHostsWindows.bat
@@ -341,7 +332,7 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
@@ -355,6 +346,21 @@ Open a Terminal and run with root privileges:
**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:
```
sudo sysrc nscd_enable="YES"
sudo service nscd start
```
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
```
hosts: cache files dns
```
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
### Mac OS X
@@ -366,9 +372,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
## Release management
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
This repository uses [Release-It!](https://webpro.github.io/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
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
@@ -377,7 +383,7 @@ The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
2. provide situation-appropriate extensions,
3. de-dupe the resultant combined list,
@@ -397,10 +403,16 @@ 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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily 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.
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate 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
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
* [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.
@@ -409,4 +421,12 @@ devices under a variety of operating systems.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it 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). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
## 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).
+21443 -38748
View File
File diff suppressed because it is too large Load Diff
+92 -70
View File
@@ -1,57 +1,55 @@
----
**Take Note!** We are in the process of [dropping support for Python 2.7](https://github.com/StevenBlack/hosts/issues/729).
Soon, to self-generate hosts files, you'll need to use Python 3.
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
----
![readme](https://user-images.githubusercontent.com/36028424/40330477-9df2c2e0-5d7f-11e8-8ac8-511d719a5eae.png)
[![latest release](https://img.shields.io/github/release/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/releases)
[![license](https://img.shields.io/github/license/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/blob/master/license.txt)
[![repo size](https://img.shields.io/github/repo-size/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts)
[![contributors](https://img.shields.io/github/contributors/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/graphs/contributors)
[![Build Status](https://travis-ci.org/StevenBlack/hosts.svg?branch=master)](https://travis-ci.org/StevenBlack/hosts)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
[![commits since last release](https://img.shields.io/github/commits-since/StevenBlack/hosts/latest.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![last commit](https://img.shields.io/github/last-commit/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![commit activity](https://img.shields.io/github/commit-activity/y/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
# Unified hosts file with porn, social extensions
This repository consolidates several reputable `hosts` files, and merges them
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
* Last updated: **July 30 2018**.
* Here's the [raw hosts file with porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) containing 72,621 entries.
* Last updated: **January 07 2020**.
* Here's the [raw hosts file with porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) containing 57,981 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
The **Non GitHub mirror** is the link to use for some hosts file managers like
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
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) | 61,386 | [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) | 62,055 | [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) | 63,004 | [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) | 71,464 | [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) | 62,544 | [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) | 63,673 | [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) | 72,133 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 63,213 | [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) | 73,082 | [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) | 64,162 | [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) | 72,621 | [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) | 73,751 | [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) | 64,831 | [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) | 73,290 | [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) | 74,239 | [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) | 74,908 | [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) | 39,773 | [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) | 40,715 | [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) | 42,075 | [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) | 55,506 | [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) | 42,249 | [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) | 43,017 | [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) | 56,448 | [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) | 43,191 | [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) | 57,808 | [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) | 44,551 | [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) | 57,981 | [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) | 58,750 | [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) | 45,493 | [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) | 58,923 | [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) | 60,283 | [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) | 61,225 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -67,56 +65,53 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
## Extensions
The unified hosts file is extensible. Extensions are used to block domains by category.
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 are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
Data for extensions is 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
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.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).
To run unit tests, in the top level directory, just run:
To run unit tests, in the top level directory, run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -124,10 +119,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -148,15 +139,14 @@ 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.
`--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`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--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.
@@ -191,7 +181,7 @@ 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 desire.
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.
@@ -232,11 +222,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -267,13 +257,12 @@ lines to your hosts file will do it:
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
## Why not use `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -281,15 +270,19 @@ We tried that. Using `0` doesn't work universally.
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**mac OS (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
## Updating hosts file on Windows
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
work is required due to compatibility issues in implementing some of the functionality
for Windows. It is preferable to run the batch file as follows:
On Linux and Mac OS X, 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:
```
updateHostsWindows.bat
@@ -344,7 +337,7 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
@@ -358,6 +351,21 @@ Open a Terminal and run with root privileges:
**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:
```
sudo sysrc nscd_enable="YES"
sudo service nscd start
```
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
```
hosts: cache files dns
```
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
### Mac OS X
@@ -369,9 +377,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
## Release management
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
This repository uses [Release-It!](https://webpro.github.io/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
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
@@ -380,7 +388,7 @@ The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
2. provide situation-appropriate extensions,
3. de-dupe the resultant combined list,
@@ -400,10 +408,16 @@ 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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily 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.
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate 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
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
* [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.
@@ -412,4 +426,12 @@ devices under a variety of operating systems.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it 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). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
## 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).
+19812 -38419
View File
File diff suppressed because it is too large Load Diff
+91 -70
View File
@@ -1,57 +1,55 @@
----
**Take Note!** We are in the process of [dropping support for Python 2.7](https://github.com/StevenBlack/hosts/issues/729).
Soon, to self-generate hosts files, you'll need to use Python 3.
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
----
![readme](https://user-images.githubusercontent.com/36028424/40330477-9df2c2e0-5d7f-11e8-8ac8-511d719a5eae.png)
[![latest release](https://img.shields.io/github/release/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/releases)
[![license](https://img.shields.io/github/license/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/blob/master/license.txt)
[![repo size](https://img.shields.io/github/repo-size/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts)
[![contributors](https://img.shields.io/github/contributors/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/graphs/contributors)
[![Build Status](https://travis-ci.org/StevenBlack/hosts.svg?branch=master)](https://travis-ci.org/StevenBlack/hosts)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
[![commits since last release](https://img.shields.io/github/commits-since/StevenBlack/hosts/latest.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![last commit](https://img.shields.io/github/last-commit/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![commit activity](https://img.shields.io/github/commit-activity/y/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
# Unified hosts file with porn extensions
This repository consolidates several reputable `hosts` files, and merges them
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
* Last updated: **July 30 2018**.
* Here's the [raw hosts file with porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) containing 71,464 entries.
* Last updated: **January 07 2020**.
* Here's the [raw hosts file with porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) containing 55,506 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
The **Non GitHub mirror** is the link to use for some hosts file managers like
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
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) | 61,386 | [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) | 62,055 | [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) | 63,004 | [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) | 71,464 | [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) | 62,544 | [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) | 63,673 | [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) | 72,133 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 63,213 | [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) | 73,082 | [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) | 64,162 | [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) | 72,621 | [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) | 73,751 | [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) | 64,831 | [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) | 73,290 | [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) | 74,239 | [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) | 74,908 | [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) | 39,773 | [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) | 40,715 | [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) | 42,075 | [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) | 55,506 | [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) | 42,249 | [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) | 43,017 | [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) | 56,448 | [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) | 43,191 | [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) | 57,808 | [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) | 44,551 | [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) | 57,981 | [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) | 58,750 | [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) | 45,493 | [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) | 58,923 | [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) | 60,283 | [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) | 61,225 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -67,55 +65,51 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
Sinfonietta's snuff-site blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
pornhosts -- a consolidated anti porn hosts file | This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network. |[link](https://github.com/Clefspeare13/pornhosts) | [raw](https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts) | occasional | MIT | [issues](https://github.com/Clefspeare13/pornhosts/issues)
Sinfonietta's porn blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Tiuxo hostlist - pornography | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/porn) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
## Extensions
The unified hosts file is extensible. Extensions are used to block domains by category.
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 are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
Data for extensions is 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
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.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).
To run unit tests, in the top level directory, just run:
To run unit tests, in the top level directory, run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -123,10 +117,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -147,15 +137,14 @@ 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.
`--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`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--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.
@@ -190,7 +179,7 @@ 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 desire.
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.
@@ -231,11 +220,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -266,13 +255,12 @@ lines to your hosts file will do it:
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
## Why not use `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -280,15 +268,19 @@ We tried that. Using `0` doesn't work universally.
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**mac OS (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
## Updating hosts file on Windows
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
work is required due to compatibility issues in implementing some of the functionality
for Windows. It is preferable to run the batch file as follows:
On Linux and Mac OS X, 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:
```
updateHostsWindows.bat
@@ -343,7 +335,7 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
@@ -357,6 +349,21 @@ Open a Terminal and run with root privileges:
**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:
```
sudo sysrc nscd_enable="YES"
sudo service nscd start
```
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
```
hosts: cache files dns
```
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
### Mac OS X
@@ -368,9 +375,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
## Release management
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
This repository uses [Release-It!](https://webpro.github.io/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
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
@@ -379,7 +386,7 @@ The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
2. provide situation-appropriate extensions,
3. de-dupe the resultant combined list,
@@ -399,10 +406,16 @@ 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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily 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.
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate 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
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
* [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.
@@ -411,4 +424,12 @@ devices under a variety of operating systems.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it 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). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
## 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).
+12661 -35594
View File
File diff suppressed because it is too large Load Diff
+91 -70
View File
@@ -1,57 +1,55 @@
----
**Take Note!** We are in the process of [dropping support for Python 2.7](https://github.com/StevenBlack/hosts/issues/729).
Soon, to self-generate hosts files, you'll need to use Python 3.
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
----
![readme](https://user-images.githubusercontent.com/36028424/40330477-9df2c2e0-5d7f-11e8-8ac8-511d719a5eae.png)
[![latest release](https://img.shields.io/github/release/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/releases)
[![license](https://img.shields.io/github/license/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/blob/master/license.txt)
[![repo size](https://img.shields.io/github/repo-size/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts)
[![contributors](https://img.shields.io/github/contributors/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/graphs/contributors)
[![Build Status](https://travis-ci.org/StevenBlack/hosts.svg?branch=master)](https://travis-ci.org/StevenBlack/hosts)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
[![commits since last release](https://img.shields.io/github/commits-since/StevenBlack/hosts/latest.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![last commit](https://img.shields.io/github/last-commit/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![commit activity](https://img.shields.io/github/commit-activity/y/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
# Unified hosts file with social extensions
This repository consolidates several reputable `hosts` files, and merges them
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
* Last updated: **July 30 2018**.
* Here's the [raw hosts file with social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) containing 62,544 entries.
* Last updated: **January 07 2020**.
* Here's the [raw hosts file with social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) containing 42,249 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
The **Non GitHub mirror** is the link to use for some hosts file managers like
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
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) | 61,386 | [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) | 62,055 | [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) | 63,004 | [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) | 71,464 | [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) | 62,544 | [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) | 63,673 | [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) | 72,133 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 63,213 | [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) | 73,082 | [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) | 64,162 | [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) | 72,621 | [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) | 73,751 | [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) | 64,831 | [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) | 73,290 | [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) | 74,239 | [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) | 74,908 | [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) | 39,773 | [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) | 40,715 | [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) | 42,075 | [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) | 55,506 | [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) | 42,249 | [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) | 43,017 | [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) | 56,448 | [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) | 43,191 | [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) | 57,808 | [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) | 44,551 | [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) | 57,981 | [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) | 58,750 | [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) | 45,493 | [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) | 58,923 | [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) | 60,283 | [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) | 61,225 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -67,53 +65,49 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
Sinfonietta's social media blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
Tiuxo hostlist - social | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/social) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
## Extensions
The unified hosts file is extensible. Extensions are used to block domains by category.
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 are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
Data for extensions is 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
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.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).
To run unit tests, in the top level directory, just run:
To run unit tests, in the top level directory, run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -121,10 +115,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -145,15 +135,14 @@ 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.
`--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`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--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.
@@ -188,7 +177,7 @@ 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 desire.
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.
@@ -229,11 +218,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -264,13 +253,12 @@ lines to your hosts file will do it:
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
## Why not use `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -278,15 +266,19 @@ We tried that. Using `0` doesn't work universally.
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**mac OS (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
## Updating hosts file on Windows
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
work is required due to compatibility issues in implementing some of the functionality
for Windows. It is preferable to run the batch file as follows:
On Linux and Mac OS X, 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:
```
updateHostsWindows.bat
@@ -341,7 +333,7 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
@@ -355,6 +347,21 @@ Open a Terminal and run with root privileges:
**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:
```
sudo sysrc nscd_enable="YES"
sudo service nscd start
```
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
```
hosts: cache files dns
```
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
### Mac OS X
@@ -366,9 +373,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
## Release management
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
This repository uses [Release-It!](https://webpro.github.io/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
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
@@ -377,7 +384,7 @@ The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
2. provide situation-appropriate extensions,
3. de-dupe the resultant combined list,
@@ -397,10 +404,16 @@ 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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily 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.
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate 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
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
* [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.
@@ -409,4 +422,12 @@ devices under a variety of operating systems.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it 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). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
## 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).
View File
+1 -1
View File
@@ -5,4 +5,4 @@ conda create -n hosts python=$PYTHON_VERSION || exit 1
source activate hosts
echo "Installing packages..."
conda install mock flake8 beautifulsoup4 lxml
conda install flake8 beautifulsoup4 lxml
+76
View File
@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment
include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at hosts@sbc.io. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
+41
View File
@@ -0,0 +1,41 @@
# Codebase Structure
These are the folders and some key files used to generate and store various unified hosts files.
## Data folders
There are two facets of the hosts files generated by
[/updateHostsFile.py](https://github.com/StevenBlack/hosts/blob/master/updateHostsFile.py):
### Basic hosts
Basic hosts are domains that purvey advertising, malware, tracking, coin
mining and other abominable behavior. These hosts are included in all our products.
The [/data](https://github.com/StevenBlack/hosts/tree/master/data) folder holds the
metadata and latest hosts for all our basic hosts sources. The hosts are updated
automatically by`/updateHostsFile.py` which iterates all the subfolders within `./data`.
### Optional hosts extensions
Hosts extensions include domains that push potentially addictive content like `porn`, `fake news`,
`gambling`, and `social` media.
The [/extensions](https://github.com/StevenBlack/hosts/tree/master/extensions) folder holds
metadata and latest hosts for all our basic hosts sources. The hosts are updated
automatically by`/updateHostsFile.py` which iterates all the subfolders within `./extensions`.
## Product folders
### Basic hosts
The [basic hosts file](https://github.com/StevenBlack/hosts/blob/master/hosts), containing
just adware, malware, etc, is stored in the root folder of this repository.
The [/hosts/alternates](https://github.com/StevenBlack/hosts/tree/master/alternates) this folder
contains the products of `updateHostsFile.py`, one subfolder for each permutation of
`fakenews`, `gambling`, `porn`, and `social` media hosts, all of which include the base extensions
containing hosts that block adware, malware, tracking, etc.
## Other notable files
+ [./readme_template.md](https://github.com/StevenBlack/hosts/blob/master/readme_template.md):
This file is used to generate the all the various readme files in this repository. Therefore,
if you wish to change the readme, you need to change only this file.
+39
View File
@@ -0,0 +1,39 @@
# Contributing Guide
Contributing to Hosts is easy. This document shows you how to get started
## General
- The [Codebase Structure](https://github.com/StevenBlack/hosts/blob/master/codebase_structure.md) has
detailed information about how the various folders and files in this project are structured.
## Submitting changes
- Fork the repo
- <https://github.com/StevenBlack/hosts/fork>
- Check out a new branch based and name it to what you intend to do:
- Example:
````
$ git checkout -b BRANCH_NAME
````
If you get an error, you may need to fetch first, by using
````
$ git remote update && git fetch
````
- Use one branch per fix / feature
- Commit your changes
- Please provide a git message that explains what you've done
- Please make sure your commits follow the [conventions](https://gist.github.com/robertpainsi/b632364184e70900af4ab688decf6f53#file-commit-message-guidelines-md)
- Commit to the forked repository
- Example:
````
$ git commit -am 'Add some fooBar'
````
- Push to the branch
- Example:
````
$ git push origin BRANCH_NAME
````
- Make a pull request
- Make sure you send the PR to the <code>BRANCH_NAM</code> branch
If you follow these instructions, your Pull Request will land safely!
+30 -19058
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -5,5 +5,5 @@
"frequency": "weekly",
"issues": "https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues",
"url": "https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts",
"license": "'non-commercial with attribution'"
"license": "MIT"
}
File diff suppressed because it is too large Load Diff
-9
View File
@@ -1,9 +0,0 @@
{
"name": "CoinBlocker",
"description": "Simple lists that can help prevent cryptomining in the browser or other applications",
"homeurl": "https://gitlab.com/ZeroDot1/CoinBlockerLists",
"frequency": "frequently",
"issues": "https://gitlab.com/ZeroDot1/CoinBlockerLists/issues",
"url": "https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser",
"license": "GPLv3"
}
+4520 -1090
View File
File diff suppressed because it is too large Load Diff
+4 -4
View File
@@ -1,9 +1,9 @@
{
"name": "KADhosts",
"description": "Fraud/adware/scam websites.",
"homeurl": "https://github.com/azet12/KADhosts",
"homeurl": "https://kadantiscam.netlify.com",
"frequency": "frequently",
"issues": "https://github.com/azet12/KADhosts/issues",
"url": "https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt",
"license": "GPLv3"
"issues": "https://github.com/PolishFiltersTeam/KADhosts/issues",
"url": "https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt",
"license": "CC BY-SA 4.0"
}
+738 -454
View File
File diff suppressed because it is too large Load Diff
+175
View File
@@ -2,6 +2,7 @@
0.0.0.0 102.122.2o7.net
0.0.0.0 10xhellometro.112.2o7.net
0.0.0.0 1105governmentinformationgroup.122.2o7.net
0.0.0.0 112.2o7.net
0.0.0.0 192.168.112.2o7.net
0.0.0.0 192.168.122.2o7.net
0.0.0.0 1und1internetag.d3.sc.omtrdc.net
@@ -9,13 +10,19 @@
0.0.0.0 3gupload.112.2o7.net
0.0.0.0 aarp.122.2o7.net
0.0.0.0 abcotv.hb.omtrdc.net
0.0.0.0 acanales.sc.omtrdc.net
0.0.0.0 acckalaharinet.112.2o7.net
0.0.0.0 aclu.tt.omtrdc.net
0.0.0.0 acpmagazines.112.2o7.net
0.0.0.0 actontv.122.2o7.net
0.0.0.0 adbrite.122.2o7.net
0.0.0.0 adobe.tt.omtrdc.net
0.0.0.0 adobecorp.sc.omtrdc.net
0.0.0.0 adp.112.2o7.net
0.0.0.0 advertisementnl.112.2o7.net
0.0.0.0 advertisingcom.122.2o7.net
0.0.0.0 aehistory.112.2o7.net
0.0.0.0 aetnaaetnaprod2018.112.2o7.net
0.0.0.0 aetv.112.2o7.net
0.0.0.0 affargenus.112.2o7.net
0.0.0.0 affilcrtopcolle.112.2o7.net
@@ -25,11 +32,19 @@
0.0.0.0 agmsnag.112.2o7.net
0.0.0.0 agwebshots.112.2o7.net
0.0.0.0 agyahooag.112.2o7.net
0.0.0.0 ajinomoto.d1.sc.omtrdc.net
0.0.0.0 albanytimesunion.122.2o7.net
0.0.0.0 alchemyworldwide.tt.omtrdc.net
0.0.0.0 allbritton.122.2o7.net
0.0.0.0 amadeus.d2.sc.omtrdc.net
0.0.0.0 amazoncustomerservice.d2.sc.omtrdc.net
0.0.0.0 amazonmerchants.122.2o7.net
0.0.0.0 amazonservices.122.2o7.net
0.0.0.0 amazonshopbop.122.2o7.net
0.0.0.0 amazonwebservices.d2.sc.omtrdc.net
0.0.0.0 amazonwebservicesinc.tt.omtrdc.net
0.0.0.0 amazonwebstore.122.2o7.net
0.0.0.0 amcglobal.sc.omtrdc.net
0.0.0.0 amdvtest.112.2o7.net
0.0.0.0 americaneagleoutfitt.tt.omtrdc.net
0.0.0.0 ameritradeamerivest.112.2o7.net
@@ -87,11 +102,15 @@
0.0.0.0 aolwpnscom.122.2o7.net
0.0.0.0 aolwpnswhatsnew.112.2o7.net
0.0.0.0 aolyedda.122.2o7.net
0.0.0.0 aoncomprod.122.2o7.net
0.0.0.0 apdigitalorg.112.2o7.net
0.0.0.0 apdigitalorgovn.112.2o7.net
0.0.0.0 apnonline.112.2o7.net
0.0.0.0 aporg.112.2o7.net
0.0.0.0 ariba.112.2o7.net
0.0.0.0 arthurmiddletoncapit.tt.omtrdc.net
0.0.0.0 asadventure.tt.omtrdc.net
0.0.0.0 asco.d2.sc.omtrdc.net
0.0.0.0 associatedcontent.112.2o7.net
0.0.0.0 atlanticmedia.122.2o7.net
0.0.0.0 atlassian.122.2o7.net
@@ -109,9 +128,13 @@
0.0.0.0 autoanythingcom.112.2o7.net
0.0.0.0 autobytel.112.2o7.net
0.0.0.0 autobytelcorppopup.112.2o7.net
0.0.0.0 autocarcomprod.112.2o7.net
0.0.0.0 autodesk.tt.omtrdc.net
0.0.0.0 autoscout24.112.2o7.net
0.0.0.0 autoweb.112.2o7.net
0.0.0.0 avgtechnologies.112.2o7.net
0.0.0.0 aviraoperations.d3.sc.omtrdc.net
0.0.0.0 aviva.112.2o7.net
0.0.0.0 avon.112.2o7.net
0.0.0.0 awarenesstech.122.2o7.net
0.0.0.0 babycentercom.112.2o7.net
@@ -119,6 +142,9 @@
0.0.0.0 bankwest.112.2o7.net
0.0.0.0 bbc.112.2o7.net
0.0.0.0 bbg.d1.sc.omtrdc.net
0.0.0.0 bbg.sc.omtrdc.net
0.0.0.0 bbvacolombia.sc.omtrdc.net
0.0.0.0 bcbsks.com.102.112.2o7.net
0.0.0.0 bellglobemediapublishing.122.2o7.net
0.0.0.0 belointeractive.122.2o7.net
0.0.0.0 bertelwissenprod.122.2o7.net
@@ -131,22 +157,32 @@
0.0.0.0 bhgremodel.112.2o7.net
0.0.0.0 bhgscrap.112.2o7.net
0.0.0.0 bigpond.122.2o7.net
0.0.0.0 bitdrive.112.2o7.net
0.0.0.0 bizjournals.112.2o7.net
0.0.0.0 blethenmaine.112.2o7.net
0.0.0.0 bmwmoter.122.2o7.net
0.0.0.0 bnk30livejs.112.2o7.net
0.0.0.0 bnkholic.112.2o7.net
0.0.0.0 bnkicomv2.112.2o7.net
0.0.0.0 bnkr8dev.112.2o7.net
0.0.0.0 bonintnewsktarcom.112.2o7.net
0.0.0.0 bonneville.112.2o7.net
0.0.0.0 bonniercorp.122.2o7.net
0.0.0.0 boostmobile.112.2o7.net
0.0.0.0 borders.112.2o7.net
0.0.0.0 boscovs.com.ssl.sc.omtrdc.net
0.0.0.0 bostoncommonpress.112.2o7.net
0.0.0.0 bostonscientificcorporation.112.2o7.net
0.0.0.0 brangista.122.2o7.net
0.0.0.0 brightcove.112.2o7.net
0.0.0.0 brighthouse.122.2o7.net
0.0.0.0 britishskybroadcasti.tt.omtrdc.net
0.0.0.0 bruceclay.112.2o7.net
0.0.0.0 btbusiness.d1.sc.omtrdc.net
0.0.0.0 btbusiness.tt.omtrdc.net
0.0.0.0 btcom.112.2o7.net
0.0.0.0 btigspresalessandt.112.2o7.net
0.0.0.0 budgetcarhire.112.2o7.net
0.0.0.0 builderonlinecom.112.2o7.net
0.0.0.0 businessweekpoc.112.2o7.net
0.0.0.0 buycom.122.2o7.net
@@ -171,6 +207,7 @@
0.0.0.0 capella.122.2o7.net
0.0.0.0 carbonite.tt.omtrdc.net
0.0.0.0 care2.112.2o7.net
0.0.0.0 carfax.112.2o7.net
0.0.0.0 carlsonradisson.112.2o7.net
0.0.0.0 cartoonnetwork.122.2o7.net
0.0.0.0 cba.122.2o7.net
@@ -186,10 +223,15 @@
0.0.0.0 cbspgatour.112.2o7.net
0.0.0.0 cbsspln.112.2o7.net
0.0.0.0 cbstelevisiondistribution.112.2o7.net
0.0.0.0 cbtnuggets.tt.omtrdc.net
0.0.0.0 ccrgaviscom.112.2o7.net
0.0.0.0 cdc.112.2o7.net
0.0.0.0 cdn.tt.omtrdc.net
0.0.0.0 cengagecsinfosec.112.2o7.net
0.0.0.0 centricabritishgas.d3.sc.omtrdc.net
0.0.0.0 cfr.112.2o7.net
0.0.0.0 chacha.112.2o7.net
0.0.0.0 channel4.com.ssl.sc.omtrdc.net
0.0.0.0 chchoice.112.2o7.net
0.0.0.0 chghowardjohnson.112.2o7.net
0.0.0.0 chgsupereight.112.2o7.net
@@ -201,7 +243,11 @@
0.0.0.0 ciaocom.122.2o7.net
0.0.0.0 ciaoshopcouk.122.2o7.net
0.0.0.0 ciaoshopit.122.2o7.net
0.0.0.0 cisco.112.2o7.net
0.0.0.0 cisco.sc.omtrdc.net
0.0.0.0 ciscolearningnetwork.tt.omtrdc.net
0.0.0.0 ciscowebex.112.2o7.net
0.0.0.0 citimobile.d2.sc.omtrdc.net
0.0.0.0 classicvacations.112.2o7.net
0.0.0.0 classmatescom.112.2o7.net
0.0.0.0 clubmed.112.2o7.net
@@ -209,6 +255,7 @@
0.0.0.0 cmp.112.2o7.net
0.0.0.0 cmpdotnetjunkiescom.112.2o7.net
0.0.0.0 cmpglobalvista.112.2o7.net
0.0.0.0 cmpmedica.112.2o7.net
0.0.0.0 cmtvia.112.2o7.net
0.0.0.0 cnetasiapacific.122.2o7.net
0.0.0.0 cnetaustralia.122.2o7.net
@@ -259,6 +306,7 @@
0.0.0.0 cpusall.112.2o7.net
0.0.0.0 crain.d1.sc.omtrdc.net
0.0.0.0 createthegroup.122.2o7.net
0.0.0.0 creditagricole.tt.omtrdc.net
0.0.0.0 creditcardscom.112.2o7.net
0.0.0.0 cri.d1.sc.omtrdc.net
0.0.0.0 cruisecritic.112.2o7.net
@@ -267,9 +315,12 @@
0.0.0.0 ctvmaincom.112.2o7.net
0.0.0.0 ctvsmokinggun.112.2o7.net
0.0.0.0 ctvtsgtv.112.2o7.net
0.0.0.0 cunda.d3.sc.omtrdc.net
0.0.0.0 cwnetworkmparticle.112.2o7.net
0.0.0.0 cwportal.112.2o7.net
0.0.0.0 cxociocom.112.2o7.net
0.0.0.0 cxocomdev.112.2o7.net
0.0.0.0 cyberagent.122.2o7.net
0.0.0.0 cyberdefender.122.2o7.net
0.0.0.0 dailyheraldpaddockpublication.112.2o7.net
0.0.0.0 daimlerag.122.2o7.net
@@ -284,10 +335,14 @@
0.0.0.0 denverpost.112.2o7.net
0.0.0.0 deseretdigitalmedia.tt.omtrdc.net
0.0.0.0 deseretnews.112.2o7.net
0.0.0.0 developjapan.122.2o7.net
0.0.0.0 dexdexprod.112.2o7.net
0.0.0.0 dgag.112.2o7.net
0.0.0.0 dillards.112.2o7.net
0.0.0.0 directtv.tt.omtrdc.net
0.0.0.0 dis.d1.sc.omtrdc.net
0.0.0.0 discovercard.112.2o7.net
0.0.0.0 disneyinternational.hb.omtrdc.net
0.0.0.0 divx.112.2o7.net
0.0.0.0 dixonscouk.112.2o7.net
0.0.0.0 dmcontactmanagement.122.2o7.net
@@ -299,6 +354,8 @@
0.0.0.0 dotsterdotsteraug08.112.2o7.net
0.0.0.0 dreamhome.112.2o7.net
0.0.0.0 duluthtrading.tt.omtrdc.net
0.0.0.0 dummy.112.2o7.net
0.0.0.0 dunandbradstreet.122.2o7.net
0.0.0.0 eaeacom.112.2o7.net
0.0.0.0 eagamesuk.112.2o7.net
0.0.0.0 eaglemiles.112.2o7.net
@@ -314,8 +371,12 @@
0.0.0.0 ehadvicedev.112.2o7.net
0.0.0.0 eharmony.112.2o7.net
0.0.0.0 eharmony.tt.omtrdc.net
0.0.0.0 ehealthinsurance.tt.omtrdc.net
0.0.0.0 eleconomista.d1.sc.omtrdc.net
0.0.0.0 electronicarts.112.2o7.net
0.0.0.0 elkjop.112.2o7.net
0.0.0.0 eloqua.122.2o7.net
0.0.0.0 eluniversalmx.sc.omtrdc.net
0.0.0.0 emc.122.2o7.net
0.0.0.0 enterprisemediagroup.112.2o7.net
0.0.0.0 entrepreneur.122.2o7.net
@@ -325,6 +386,7 @@
0.0.0.0 eremedia.112.2o7.net
0.0.0.0 eset.122.2o7.net
0.0.0.0 espndotcom.tt.omtrdc.net
0.0.0.0 eucpviveusaprod.112.2o7.net
0.0.0.0 eurostar.122.2o7.net
0.0.0.0 eventbrite.122.2o7.net
0.0.0.0 evepdaggiesports.112.2o7.net
@@ -360,6 +422,7 @@
0.0.0.0 fbfredericksburgcom.112.2o7.net
0.0.0.0 figlobal.112.2o7.net
0.0.0.0 fim.122.2o7.net
0.0.0.0 flipkart.d1.sc.omtrdc.net
0.0.0.0 flyingmag.com.122.2o7.net
0.0.0.0 ford.112.2o7.net
0.0.0.0 foxamw.112.2o7.net
@@ -378,8 +441,11 @@
0.0.0.0 geosign.112.2o7.net
0.0.0.0 gifastcompanycom.112.2o7.net
0.0.0.0 giftscom.122.2o7.net
0.0.0.0 gigamon.sc.omtrdc.net
0.0.0.0 gigamon.tt.omtrdc.net
0.0.0.0 gjfastcompanycom.112.2o7.net
0.0.0.0 gjincscobleizer.112.2o7.net
0.0.0.0 gmglobalt3sites.112.2o7.net
0.0.0.0 gmgmacfs.112.2o7.net
0.0.0.0 gmgmacmortgage.112.2o7.net
0.0.0.0 gmgmcom.112.2o7.net
@@ -414,7 +480,9 @@
0.0.0.0 guthyrenker.tt.omtrdc.net
0.0.0.0 hallmarkibmcom.112.2o7.net
0.0.0.0 harconsumer.112.2o7.net
0.0.0.0 harlandclarke.d1.sc.omtrdc.net
0.0.0.0 harpo.122.2o7.net
0.0.0.0 harrahs.112.2o7.net
0.0.0.0 harrahscom.112.2o7.net
0.0.0.0 haymarketbusinesspublications.122.2o7.net
0.0.0.0 hchrmain.112.2o7.net
@@ -429,6 +497,7 @@
0.0.0.0 hickoryfarms.112.2o7.net
0.0.0.0 highbeam.122.2o7.net
0.0.0.0 himedia.112.2o7.net
0.0.0.0 his.112.2o7.net
0.0.0.0 hisnakiamotors.122.2o7.net
0.0.0.0 hm.d1.sc.omtrdc.net
0.0.0.0 hollywood.122.2o7.net
@@ -441,6 +510,7 @@
0.0.0.0 hswmedia.122.2o7.net
0.0.0.0 hulu.112.2o7.net
0.0.0.0 huludev.112.2o7.net
0.0.0.0 hyperlinktech.122.2o7.net
0.0.0.0 ibibo.112.2o7.net
0.0.0.0 ice.112.2o7.net
0.0.0.0 iconhealthfitness.tt.omtrdc.net
@@ -451,11 +521,13 @@
0.0.0.0 imeem.112.2o7.net
0.0.0.0 imiliving.122.2o7.net
0.0.0.0 incisivemedia.112.2o7.net
0.0.0.0 independentdigital.d3.sc.omtrdc.net
0.0.0.0 indigio.122.2o7.net
0.0.0.0 infoworldmediagroup.112.2o7.net
0.0.0.0 infrastrategy.122.2o7.net
0.0.0.0 infratotalduicom.122.2o7.net
0.0.0.0 insiderpagescom.122.2o7.net
0.0.0.0 insightenterprises.tt.omtrdc.net
0.0.0.0 instadia.112.2o7.net
0.0.0.0 intelcorpchan.112.2o7.net
0.0.0.0 intelcorperror.112.2o7.net
@@ -465,18 +537,28 @@
0.0.0.0 internetretailer.d2.sc.omtrdc.net
0.0.0.0 intouchsolutions.112.2o7.net
0.0.0.0 intuitinc.122.2o7.net
0.0.0.0 iodatadevice.d2.sc.omtrdc.net
0.0.0.0 ipcmarieclaireprod.122.2o7.net
0.0.0.0 ipcmedia.122.2o7.net
0.0.0.0 ipcnowprod.122.2o7.net
0.0.0.0 ipcuncut.122.2o7.net
0.0.0.0 ipcwebuserprod.122.2o7.net
0.0.0.0 ipcyachtingworldprod.122.2o7.net
0.0.0.0 iqdigitalmediamarketinggmbh.sc.omtrdc.net
0.0.0.0 isaca.sc.omtrdc.net
0.0.0.0 isaca.tt.omtrdc.net
0.0.0.0 itmedia.122.2o7.net
0.0.0.0 itv.112.2o7.net
0.0.0.0 iusacomlive.112.2o7.net
0.0.0.0 ivillageglobal.112.2o7.net
0.0.0.0 jaccs.122.2o7.net
0.0.0.0 jackpot.112.2o7.net
0.0.0.0 jade853gmbh.tt.omtrdc.net
0.0.0.0 jamecoelectronics.sc.omtrdc.net
0.0.0.0 jcb.sc.omtrdc.net
0.0.0.0 jcb.tt.omtrdc.net
0.0.0.0 jcom.122.2o7.net
0.0.0.0 jcrewcom.112.2o7.net
0.0.0.0 jcwhitney.112.2o7.net
0.0.0.0 jennycraig.112.2o7.net
0.0.0.0 jetbluecom2.112.2o7.net
@@ -493,6 +575,8 @@
0.0.0.0 journalregistercompany.122.2o7.net
0.0.0.0 jrcdelcotimescom.122.2o7.net
0.0.0.0 jrcom.112.2o7.net
0.0.0.0 jtt.sc.omtrdc.net
0.0.0.0 jtt.tt.omtrdc.net
0.0.0.0 kaboose.112.2o7.net
0.0.0.0 kaspersky.d3.sc.omtrdc.net
0.0.0.0 kbbmain.112.2o7.net
@@ -500,8 +584,12 @@
0.0.0.0 kerplat.112.2o7.net
0.0.0.0 keybank.112.2o7.net
0.0.0.0 kiplinger.112.2o7.net
0.0.0.0 konicaminoltahd.122.2o7.net
0.0.0.0 kopticom.122.2o7.net
0.0.0.0 lab88inc.112.2o7.net
0.0.0.0 lakeshore.d1.sc.omtrdc.net
0.0.0.0 landolakescomprod.112.2o7.net
0.0.0.0 landsend.112.2o7.net
0.0.0.0 laptopmag.122.2o7.net
0.0.0.0 lastminengb.112.2o7.net
0.0.0.0 laxnws.112.2o7.net
@@ -514,13 +602,19 @@
0.0.0.0 leaitworldprod.112.2o7.net
0.0.0.0 leeenterprises.112.2o7.net
0.0.0.0 legalzoom.tt.omtrdc.net
0.0.0.0 lenovoappssystemupdateprod.112.2o7.net
0.0.0.0 lenovosimpletapdev.112.2o7.net
0.0.0.0 leveragemarketing.112.2o7.net
0.0.0.0 lgelectronics.122.2o7.net
0.0.0.0 libertyglobalpaneu.tt.omtrdc.net
0.0.0.0 lintv.122.2o7.net
0.0.0.0 livedealcom.112.2o7.net
0.0.0.0 livenation.122.2o7.net
0.0.0.0 logitechlogitechglobal.112.2o7.net
0.0.0.0 lowes.tt.omtrdc.net
0.0.0.0 lucent.122.2o7.net
0.0.0.0 mailtribunecom.112.2o7.net
0.0.0.0 makemytrip.tt.omtrdc.net
0.0.0.0 mapscom2.112.2o7.net
0.0.0.0 marchofdimes.d2.sc.omtrdc.net
0.0.0.0 marinermarketing.112.2o7.net
@@ -531,7 +625,11 @@
0.0.0.0 mashable.d2.sc.omtrdc.net
0.0.0.0 mattressusa.122.2o7.net
0.0.0.0 maxim.122.2o7.net
0.0.0.0 mcafee12.tt.omtrdc.net
0.0.0.0 mcclatchy.112.2o7.net
0.0.0.0 mcdonaldscorporation.sc.omtrdc.net
0.0.0.0 mcdonaldscorporation.tt.omtrdc.net
0.0.0.0 mckinseyknowledge.122.2o7.net
0.0.0.0 mdjacksonville.112.2o7.net
0.0.0.0 mdpparents.112.2o7.net
0.0.0.0 mdstaugustine.112.2o7.net
@@ -544,6 +642,7 @@
0.0.0.0 medhelpinternational.112.2o7.net
0.0.0.0 mediabistro.112.2o7.net
0.0.0.0 mediabistrocom.112.2o7.net
0.0.0.0 mediacorp.112.2o7.net
0.0.0.0 medialogic.122.2o7.net
0.0.0.0 mediamatters.112.2o7.net
0.0.0.0 meetupdev.122.2o7.net
@@ -586,6 +685,7 @@
0.0.0.0 midsen.112.2o7.net
0.0.0.0 milbglobal.112.2o7.net
0.0.0.0 mitsubishi.112.2o7.net
0.0.0.0 mitsubishielectric.112.2o7.net
0.0.0.0 mkcthehomemarketplace.112.2o7.net
0.0.0.0 mkt10.122.2o7.net
0.0.0.0 mlarmani.122.2o7.net
@@ -643,11 +743,14 @@
0.0.0.0 msntrademarketing.112.2o7.net
0.0.0.0 msnwinonecare.112.2o7.net
0.0.0.0 mssbcprod.112.2o7.net
0.0.0.0 msstonojstechnet.112.2o7.net
0.0.0.0 mswindowswolglobal.112.2o7.net
0.0.0.0 mswlspcmktdev.112.2o7.net
0.0.0.0 mswmwpapolloprod.122.2o7.net
0.0.0.0 mtvn.112.2o7.net
0.0.0.0 multiply.112.2o7.net
0.0.0.0 multiview.122.2o7.net
0.0.0.0 mun.122.2o7.net
0.0.0.0 mxmacromedia.112.2o7.net
0.0.0.0 myfamilycominc.tt.omtrdc.net
0.0.0.0 nandomedia.112.2o7.net
@@ -667,12 +770,18 @@
0.0.0.0 natgeovideo.112.2o7.net
0.0.0.0 nationalbankofnewzea.tt.omtrdc.net
0.0.0.0 nationalgeographic.112.2o7.net
0.0.0.0 nationwide.sc.omtrdc.net
0.0.0.0 nautilus.d2.sc.omtrdc.net
0.0.0.0 nautilus.tt.omtrdc.net
0.0.0.0 nbagametimeprod.112.2o7.net
0.0.0.0 nbcume.sc.omtrdc.net
0.0.0.0 nbcuniversal.122.2o7.net
0.0.0.0 neber.112.2o7.net
0.0.0.0 nebnr.112.2o7.net
0.0.0.0 neccorp.112.2o7.net
0.0.0.0 neccorp.tt.omtrdc.net
0.0.0.0 neref.112.2o7.net
0.0.0.0 netappinc.tt.omtrdc.net
0.0.0.0 netgear.122.2o7.net
0.0.0.0 networksolutions.112.2o7.net
0.0.0.0 newcom.122.2o7.net
@@ -688,12 +797,16 @@
0.0.0.0 newyorkmagazine.112.2o7.net
0.0.0.0 nhl.112.2o7.net
0.0.0.0 nielsen.112.2o7.net
0.0.0.0 nihonkogakuin.122.2o7.net
0.0.0.0 nikefootball.112.2o7.net
0.0.0.0 nikefootballglobal.112.2o7.net
0.0.0.0 nikegoddess.112.2o7.net
0.0.0.0 nikehome.112.2o7.net
0.0.0.0 nikerunning.112.2o7.net
0.0.0.0 nikerunningglobal.112.2o7.net
0.0.0.0 nikkei.112.2o7.net
0.0.0.0 nikkei.d1.sc.omtrdc.net
0.0.0.0 nikonjp.112.2o7.net
0.0.0.0 njmvc.112.2o7.net
0.0.0.0 nmanchorage.112.2o7.net
0.0.0.0 nmbakersfieldca.112.2o7.net
@@ -728,6 +841,7 @@
0.0.0.0 novellcom.112.2o7.net
0.0.0.0 nsdldlese.112.2o7.net
0.0.0.0 nttcommunications.122.2o7.net
0.0.0.0 nyandcompany.com.ssl.sc.omtrdc.net
0.0.0.0 nydailynews.d1.sc.omtrdc.net
0.0.0.0 nysun.com.112.2o7.net
0.0.0.0 nytbglobe.112.2o7.net
@@ -757,7 +871,9 @@
0.0.0.0 onetoone.112.2o7.net
0.0.0.0 onlinegurupopularsitecom.112.2o7.net
0.0.0.0 oodpreprod.122.2o7.net
0.0.0.0 opinionlabcc.122.2o7.net
0.0.0.0 optimost.112.2o7.net
0.0.0.0 oracle.112.2o7.net
0.0.0.0 oraclecom.112.2o7.net
0.0.0.0 oracleglobal.112.2o7.net
0.0.0.0 oreck.tt.omtrdc.net
@@ -769,11 +885,14 @@
0.0.0.0 overstockcom.112.2o7.net
0.0.0.0 overturecom.112.2o7.net
0.0.0.0 overturecomvista.112.2o7.net
0.0.0.0 ozon.122.2o7.net
0.0.0.0 paloaltonetworks.d1.sc.omtrdc.net
0.0.0.0 pandasoftware.112.2o7.net
0.0.0.0 parade.122.2o7.net
0.0.0.0 parship.122.2o7.net
0.0.0.0 partygaming.122.2o7.net
0.0.0.0 partygamingglobal.122.2o7.net
0.0.0.0 patagonia.122.2o7.net
0.0.0.0 patrickhillery.112.2o7.net
0.0.0.0 paypal.112.2o7.net
0.0.0.0 pcconnectioncom.112.2o7.net
@@ -791,6 +910,7 @@
0.0.0.0 petfooddirect.d1.sc.omtrdc.net
0.0.0.0 pfizer.122.2o7.net
0.0.0.0 philips.112.2o7.net
0.0.0.0 philipslighting.d3.sc.omtrdc.net
0.0.0.0 phillyburbscom.112.2o7.net
0.0.0.0 phillycom.112.2o7.net
0.0.0.0 phillymedia.112.2o7.net
@@ -800,26 +920,34 @@
0.0.0.0 plsoyfoods.112.2o7.net
0.0.0.0 poacprod.122.2o7.net
0.0.0.0 poconorecordcom.112.2o7.net
0.0.0.0 poloralphlaurenlotusstg.112.2o7.net
0.0.0.0 popcapgames.122.2o7.net
0.0.0.0 popsci.com.122.2o7.net
0.0.0.0 postmedia.sc.omtrdc.net
0.0.0.0 powellsbooks.122.2o7.net
0.0.0.0 poweronemedia.122.2o7.net
0.0.0.0 preferredhotelgroup.d2.sc.omtrdc.net
0.0.0.0 premierfarnell.tt.omtrdc.net
0.0.0.0 premiumtv.122.2o7.net
0.0.0.0 primediabusiness.122.2o7.net
0.0.0.0 primemensfitness.112.2o7.net
0.0.0.0 primestarmagazine.112.2o7.net
0.0.0.0 primetimesolutions.tt.omtrdc.net
0.0.0.0 prisacom.112.2o7.net
0.0.0.0 prisacom.sc.omtrdc.net
0.0.0.0 prnewswire.122.2o7.net
0.0.0.0 productpartnersllc.tt.omtrdc.net
0.0.0.0 pulkauaiworld.112.2o7.net
0.0.0.0 pultheworldlink.112.2o7.net
0.0.0.0 questdsgsupport.112.2o7.net
0.0.0.0 questiacom.112.2o7.net
0.0.0.0 questsoftware.112.2o7.net
0.0.0.0 questsoftware.sc.omtrdc.net
0.0.0.0 qwestfull.112.2o7.net
0.0.0.0 rainbowmedia.122.2o7.net
0.0.0.0 rakuten.112.2o7.net
0.0.0.0 randmcnally.112.2o7.net
0.0.0.0 ranker.sc.omtrdc.net
0.0.0.0 rcci.122.2o7.net
0.0.0.0 rcntelecom.112.2o7.net
0.0.0.0 readersdigest.tt.omtrdc.net
@@ -828,6 +956,8 @@
0.0.0.0 recordeaglecom.112.2o7.net
0.0.0.0 recordnetcom.112.2o7.net
0.0.0.0 recordonlinecom.112.2o7.net
0.0.0.0 recruit.112.2o7.net
0.0.0.0 redhat.sc.omtrdc.net
0.0.0.0 registercom.122.2o7.net
0.0.0.0 registercom.tt.omtrdc.net
0.0.0.0 remodelingonlinecom.112.2o7.net
@@ -836,7 +966,9 @@
0.0.0.0 restoredchurchofgod.112.2o7.net
0.0.0.0 reunion.tt.omtrdc.net
0.0.0.0 reunioncom.112.2o7.net
0.0.0.0 riafinancial.d2.sc.omtrdc.net
0.0.0.0 ringcentral.112.2o7.net
0.0.0.0 ringcentral.tt.omtrdc.net
0.0.0.0 ringierag.112.2o7.net
0.0.0.0 riptownmedia.122.2o7.net
0.0.0.0 riverdeep.112.2o7.net
@@ -866,6 +998,7 @@
0.0.0.0 saxotechtylerpaper.122.2o7.net
0.0.0.0 saxotelegraph.122.2o7.net
0.0.0.0 saxotoledo.122.2o7.net
0.0.0.0 saxounionleader.112.2o7.net
0.0.0.0 saxowatertowndailytimes.122.2o7.net
0.0.0.0 saxowenworld.122.2o7.net
0.0.0.0 saxowesterncommunications.122.2o7.net
@@ -888,9 +1021,11 @@
0.0.0.0 searsholdings.tt.omtrdc.net
0.0.0.0 searskmartcom.112.2o7.net
0.0.0.0 seb.d1.sc.omtrdc.net
0.0.0.0 senshukai.122.2o7.net
0.0.0.0 sento.122.2o7.net
0.0.0.0 sevenoneintermedia.112.2o7.net
0.0.0.0 shawnewspapers.112.2o7.net
0.0.0.0 shell.tt.omtrdc.net
0.0.0.0 shopping.112.2o7.net
0.0.0.0 siemens.d1.sc.omtrdc.net
0.0.0.0 sixapart.112.2o7.net
@@ -898,8 +1033,10 @@
0.0.0.0 skyauction.122.2o7.net
0.0.0.0 skype.tt.omtrdc.net
0.0.0.0 slbbbcom.112.2o7.net
0.0.0.0 slickdeals.sc.omtrdc.net
0.0.0.0 sltravelcom.112.2o7.net
0.0.0.0 smartmoney.112.2o7.net
0.0.0.0 smbc.sc.omtrdc.net
0.0.0.0 smibs.112.2o7.net
0.0.0.0 smokingeverywhere.122.2o7.net
0.0.0.0 smokinggun.122.2o7.net
@@ -908,12 +1045,18 @@
0.0.0.0 snagajob.122.2o7.net
0.0.0.0 snapfish.112.2o7.net
0.0.0.0 sofmap.112.2o7.net
0.0.0.0 softbank.tt.omtrdc.net
0.0.0.0 softbankbb.122.2o7.net
0.0.0.0 softbankbb.d2.sc.omtrdc.net
0.0.0.0 softbanktechnology.112.2o7.net
0.0.0.0 softlayer.d1.sc.omtrdc.net
0.0.0.0 softonic.112.2o7.net
0.0.0.0 sonychina.112.2o7.net
0.0.0.0 sonycorporate.112.2o7.net
0.0.0.0 sonyelectronicssupportus.112.2o7.net
0.0.0.0 sonygs.112.2o7.net
0.0.0.0 sonymediasoftware.112.2o7.net
0.0.0.0 sonypanasia.112.2o7.net
0.0.0.0 sonyscei.112.2o7.net
0.0.0.0 southcoasttodaycom.112.2o7.net
0.0.0.0 spamfighter.112.2o7.net
@@ -923,6 +1066,7 @@
0.0.0.0 sprintglobal.112.2o7.net
0.0.0.0 stampscom.112.2o7.net
0.0.0.0 starz.122.2o7.net
0.0.0.0 stepstone.112.2o7.net
0.0.0.0 stpetersburgtimes.122.2o7.net
0.0.0.0 stubhub.122.2o7.net
0.0.0.0 stylincom.112.2o7.net
@@ -930,14 +1074,17 @@
0.0.0.0 summitbusinessmedia.112.2o7.net
0.0.0.0 sunglobal.112.2o7.net
0.0.0.0 superpages.122.2o7.net
0.0.0.0 superpagesdexknowsprod.122.2o7.net
0.0.0.0 surfline.112.2o7.net
0.0.0.0 survey.122.2o7.net
0.0.0.0 suzukimotor.112.2o7.net
0.0.0.0 svd.112.2o7.net
0.0.0.0 swsoft.122.2o7.net
0.0.0.0 sylvane.122.2o7.net
0.0.0.0 symantec.tt.omtrdc.net
0.0.0.0 sympmsnglobalen.112.2o7.net
0.0.0.0 sympmsnmusic.112.2o7.net
0.0.0.0 synacor.112.2o7.net
0.0.0.0 tacobell.d1.sc.omtrdc.net
0.0.0.0 tangomedia.112.2o7.net
0.0.0.0 tbstv.112.2o7.net
@@ -947,14 +1094,20 @@
0.0.0.0 techreview.112.2o7.net
0.0.0.0 tehomercacom.112.2o7.net
0.0.0.0 tel3adv.112.2o7.net
0.0.0.0 telateladivulgaprod.112.2o7.net
0.0.0.0 tele2nl.112.2o7.net
0.0.0.0 telefloracom.112.2o7.net
0.0.0.0 telefonicauk.d3.sc.omtrdc.net
0.0.0.0 telefonicauklimited.tt.omtrdc.net
0.0.0.0 telegraphmediagroup.d3.sc.omtrdc.net
0.0.0.0 telegraphmediagroupl.tt.omtrdc.net
0.0.0.0 telenor.112.2o7.net
0.0.0.0 tescostores.122.2o7.net
0.0.0.0 tgn.122.2o7.net
0.0.0.0 thayhiltonlongisland.112.2o7.net
0.0.0.0 thayhoteldelcoronado.112.2o7.net
0.0.0.0 thayvenetian.112.2o7.net
0.0.0.0 thechannelcompany.d1.sc.omtrdc.net
0.0.0.0 thedailystarcom.112.2o7.net
0.0.0.0 thegroup.112.2o7.net
0.0.0.0 thelibraryofcongress.122.2o7.net
@@ -987,11 +1140,15 @@
0.0.0.0 torstardigital.122.2o7.net
0.0.0.0 toyotamotorcorporation.122.2o7.net
0.0.0.0 toysrus.tt.omtrdc.net
0.0.0.0 tpciletsgo.112.2o7.net
0.0.0.0 trailblazers.122.2o7.net
0.0.0.0 trailerservicescom.112.2o7.net
0.0.0.0 trane-ir-corp-ingersollrand.112.2o7.net
0.0.0.0 trane.112.2o7.net
0.0.0.0 tranest-schlage-link.112.2o7.net
0.0.0.0 travidia.112.2o7.net
0.0.0.0 trendmicro.tt.omtrdc.net
0.0.0.0 trendmicrojp.d2.sc.omtrdc.net
0.0.0.0 tribuneinteractive.122.2o7.net
0.0.0.0 trinitymirror.112.2o7.net
0.0.0.0 truevalue.d2.sc.omtrdc.net
@@ -1004,7 +1161,10 @@
0.0.0.0 uoljunocom2.112.2o7.net
0.0.0.0 uolnetzeronet2.112.2o7.net
0.0.0.0 uolphotosite.112.2o7.net
0.0.0.0 upc.d2.sc.omtrdc.net
0.0.0.0 upi.112.2o7.net
0.0.0.0 ups.tt.omtrdc.net
0.0.0.0 usaa.tt.omtrdc.net
0.0.0.0 usatoday1.112.2o7.net
0.0.0.0 usbank.tt.omtrdc.net
0.0.0.0 usdm.122.2o7.net
@@ -1014,6 +1174,10 @@
0.0.0.0 vcommerce.112.2o7.net
0.0.0.0 vectrabank.112.2o7.net
0.0.0.0 verisignwildcard.112.2o7.net
0.0.0.0 veritasim.d1.sc.omtrdc.net
0.0.0.0 veritastechnologiesl.tt.omtrdc.net
0.0.0.0 verizontelecom.tt.omtrdc.net
0.0.0.0 verizonwireless.112.2o7.net
0.0.0.0 verizonwireless.tt.omtrdc.net
0.0.0.0 vermontteddybear.112.2o7.net
0.0.0.0 viaaddictingclips.112.2o7.net
@@ -1041,6 +1205,7 @@
0.0.0.0 viarnd.112.2o7.net
0.0.0.0 viasatsatelliteservices.112.2o7.net
0.0.0.0 viashockwave.112.2o7.net
0.0.0.0 viashockwavekeyhole.112.2o7.net
0.0.0.0 viaspike.112.2o7.net
0.0.0.0 viaukplayer.112.2o7.net
0.0.0.0 viavh1com.112.2o7.net
@@ -1048,14 +1213,21 @@
0.0.0.0 viavh1video.112.2o7.net
0.0.0.0 viay2m.112.2o7.net
0.0.0.0 victoriaadvocate.112.2o7.net
0.0.0.0 videorvrcip.112.2o7.net
0.0.0.0 videotroncom.112.2o7.net
0.0.0.0 vintacom.112.2o7.net
0.0.0.0 vintadream.112.2o7.net
0.0.0.0 virginmedia.112.2o7.net
0.0.0.0 virginmobile.122.2o7.net
0.0.0.0 virginmobileusa.tt.omtrdc.net
0.0.0.0 vision.d1.sc.omtrdc.net
0.0.0.0 vitacost.122.2o7.net
0.0.0.0 vocento.d3.sc.omtrdc.net
0.0.0.0 vodafonegroup.122.2o7.net
0.0.0.0 vodafoneindia.tt.omtrdc.net
0.0.0.0 vodafonenz.122.2o7.net
0.0.0.0 vodafoneuk.tt.omtrdc.net
0.0.0.0 vogelservices.122.2o7.net
0.0.0.0 volkswagen.122.2o7.net
0.0.0.0 vpmc.122.2o7.net
0.0.0.0 walgrns.112.2o7.net
@@ -1077,6 +1249,7 @@
0.0.0.0 westwickfarrow.122.2o7.net
0.0.0.0 whitecastle.122.2o7.net
0.0.0.0 wileypublishing.112.2o7.net
0.0.0.0 williamhill.tt.omtrdc.net
0.0.0.0 winecom.112.2o7.net
0.0.0.0 wineenthusiastcom.112.2o7.net
0.0.0.0 winmpmain.112.2o7.net
@@ -1090,6 +1263,8 @@
0.0.0.0 wwatchcomusa.112.2o7.net
0.0.0.0 wweconsumer.112.2o7.net
0.0.0.0 wwecorp2.112.2o7.net
0.0.0.0 www.ikea.122.2o7.net
0.0.0.0 www.nissan.d3.sc.omtrdc.net
0.0.0.0 xhealth.112.2o7.net
0.0.0.0 xhealthmobiltools.112.2o7.net
0.0.0.0 yamaha.122.2o7.net
-5
View File
@@ -1,4 +1,3 @@
0.0.0.0 analytic-google.com
0.0.0.0 avast-downloads.com
0.0.0.0 blacksnake.com
0.0.0.0 europcareer.com
@@ -9,12 +8,9 @@
0.0.0.0 jmp2click.com
0.0.0.0 microsoft-update.name
0.0.0.0 paypai.org
0.0.0.0 sunonsunday.co.uk
0.0.0.0 sunonsunday.com
0.0.0.0 thesunonsunday.co.uk
0.0.0.0 thesunonsunday.com
0.0.0.0 toolbar.wibiya.com
0.0.0.0 www.analytic-google.com
0.0.0.0 www.avast-downloads.com
0.0.0.0 www.europcareer.com
0.0.0.0 www.get-avast.com
@@ -22,4 +18,3 @@
0.0.0.0 www.iphonegames3g.com
0.0.0.0 www.jmp2click.com
0.0.0.0 www.microsoft-update.name
0.0.0.0 wwwfacebook.com
+293 -659
View File
File diff suppressed because it is too large Load Diff
-1
View File
@@ -37,7 +37,6 @@
0.0.0.0 thedatingconference.com
0.0.0.0 tinaborg.com
0.0.0.0 unionleisurewear.com
0.0.0.0 va.tawk.to
0.0.0.0 vntanktransport.com
0.0.0.0 vydoxtrial.com
0.0.0.0 www.7minuteworkout.com
+1414
View File
File diff suppressed because it is too large Load Diff
+9
View File
@@ -0,0 +1,9 @@
{
"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"
}
File diff suppressed because it is too large Load Diff
-9
View File
@@ -1,9 +0,0 @@
{
"name": "lightswitch05",
"description": "Block ad and tracking domains.",
"homeurl": "https://github.com/lightswitch05/hosts",
"frequency": "occasionally",
"issues": "https://github.com/lightswitch05/hosts/issues",
"url": "https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt",
"license": "Apache-2.0"
}
+1 -27
View File
@@ -1,6 +1,6 @@
# MalwareDomainList.com Hosts List #
# http://www.malwaredomainlist.com/hostslist/hosts.txt #
# Last updated: Thu, 07 Jun 18 06:58:43 +0000 #
# Last updated: Thu, 21 Feb 19 17:45:13 +0000 #
127.0.0.1 localhost
@@ -68,7 +68,6 @@
127.0.0.1 associatesexports.com
127.0.0.1 atlcourier.com
127.0.0.1 atyss.barginginfrance.net
127.0.0.1 avokka.com
127.0.0.1 avppet.com
127.0.0.1 axisbuild.com
127.0.0.1 azoos.csheaven.com
@@ -147,7 +146,6 @@
127.0.0.1 d1.kuai8.com
127.0.0.1 d1054130-28095.cp.blacknight.com
127.0.0.1 d1171912.cp.blacknight.com
127.0.0.1 d32k27yvyi4kmv.cloudfront.net
127.0.0.1 d4.cumshots.ws
127.0.0.1 dancecourt.com
127.0.0.1 daralasnan.com
@@ -226,7 +224,6 @@
127.0.0.1 ex.technor.com
127.0.0.1 exclaim.goldenteamacademy.cl
127.0.0.1 executivecoaching.co.il
127.0.0.1 exsexytop.tk
127.0.0.1 extreembilisim.com
127.0.0.1 f.gj555.net
127.0.0.1 faiyazahmed.com
@@ -242,7 +239,6 @@
127.0.0.1 files.dsnetwb.com
127.0.0.1 finnhair.co.uk
127.0.0.1 firehouse651.com
127.0.0.1 fkhfgfg.tk
127.0.0.1 flashsavant.com
127.0.0.1 fo5.a1-downloader.org
127.0.0.1 fondazioneciampi.org
@@ -274,7 +270,6 @@
127.0.0.1 gyboo.cruisingsmallship.com
127.0.0.1 gylra.cruisingsmallship.com
127.0.0.1 h1666015.stratoserver.net
127.0.0.1 hana-naveh.com
127.0.0.1 hanulsms.com
127.0.0.1 hardcorepornparty.com
127.0.0.1 harshwhispers.com
@@ -373,7 +368,6 @@
127.0.0.1 lifescience.sysu.edu.cn
127.0.0.1 likes.gisnetwork.net
127.0.0.1 linkforme.tk
127.0.0.1 live-dir.tk
127.0.0.1 livre.wasastation.fi
127.0.0.1 loft2126.dedicatedpanel.com
127.0.0.1 losas.cabanaslanina.com.ar
@@ -404,7 +398,6 @@
127.0.0.1 marx-brothers.mhwang.com
127.0.0.1 mathenea.com
127.0.0.1 maxisoft.co.uk
127.0.0.1 mbrdot.tk
127.0.0.1 mediatrade.h19.ru
127.0.0.1 mepra.blautechnology.cl
127.0.0.1 merrymilkfoods.com
@@ -466,7 +459,6 @@
127.0.0.1 nowina.info
127.0.0.1 ns1.the-sinner.net
127.0.0.1 ns1.updatesdns.org
127.0.0.1 ns2ns1.tk
127.0.0.1 nt-associates.com
127.0.0.1 nudebeachgalleries.net
127.0.0.1 nugly.barginginfrance.net
@@ -590,17 +582,11 @@
127.0.0.1 sanya.vipc2f.com
127.0.0.1 sarahdaniella.com
127.0.0.1 sasson-cpa.co.il
127.0.0.1 sayherbal.com
127.0.0.1 sbnc.hak.su
127.0.0.1 scaner-do.tk
127.0.0.1 scaner-figy.tk
127.0.0.1 scaner-file.tk
127.0.0.1 scaner-or.tk
127.0.0.1 scaner-sbite.tk
127.0.0.1 scaner-sboom.tk
127.0.0.1 scaner-sdee.tk
127.0.0.1 scaner-tfeed.tk
127.0.0.1 scaner-tgame.tk
127.0.0.1 scanty.colormark.cl
127.0.0.1 scdsfdfgdr12.tk
127.0.0.1 scream.garudamp3.com
@@ -618,7 +604,6 @@
127.0.0.1 sgs.us.com
127.0.0.1 shoal.grahanusareadymix.com
127.0.0.1 shovi.frost-electric-supply.com
127.0.0.1 signready.com
127.0.0.1 silurian.cn
127.0.0.1 simpi.tourstogo.us
127.0.0.1 site-checksite.tk
@@ -733,7 +718,6 @@
127.0.0.1 spekband.com
127.0.0.1 sportsulsan.co.kr
127.0.0.1 spread.diadanoivabh.com.br
127.0.0.1 spykit.110mb.com
127.0.0.1 srslogisticts.com
127.0.0.1 ssl-6582datamanager.de
127.0.0.1 static.retirementcommunitiesfyi.com
@@ -747,7 +731,6 @@
127.0.0.1 sunny99.cholerik.cz
127.0.0.1 svetyivanrilski.com
127.0.0.1 svision-online.de
127.0.0.1 sysconcalibration.com
127.0.0.1 systemscheckusa.com
127.0.0.1 szinhaz.hu
127.0.0.1 tabex.sopharma.bg
@@ -765,7 +748,6 @@
127.0.0.1 teprom.it
127.0.0.1 terem.eltransbt.ro
127.0.0.1 testtralala.xorg.pl
127.0.0.1 textsex.tk
127.0.0.1 textspeier.de
127.0.0.1 thcextractor.com
127.0.0.1 thcvaporizer.com
@@ -902,8 +884,6 @@
127.0.0.1 wallpapers91.com
127.0.0.1 warco.pl
127.0.0.1 wc0x83ghk.homepage.t-online.de
127.0.0.1 web-domain.tk
127.0.0.1 web-fill.tk
127.0.0.1 web-olymp.ru
127.0.0.1 web-sensations.com
127.0.0.1 webcashmaker.com
@@ -912,7 +892,6 @@
127.0.0.1 weboxmedia.by
127.0.0.1 websalesusa.com
127.0.0.1 websitebuildersinfo.in
127.0.0.1 welington.info
127.0.0.1 wetjane.x10.mx
127.0.0.1 wetyt.tourstogo.us
127.0.0.1 wfoto.front.ru
@@ -983,7 +962,6 @@
127.0.0.1 www.fasadobygg.com
127.0.0.1 www.feiyang163.com
127.0.0.1 www.fiduciariobajio.com.mx
127.0.0.1 www.fiocchidiriso.com
127.0.0.1 www.flowtec.com.br
127.0.0.1 www.fotoidea.com
127.0.0.1 www.freemao.com
@@ -1013,7 +991,6 @@
127.0.0.1 www.litra.com.mk
127.0.0.1 www.lostartofbeingadame.com
127.0.0.1 www.lowes-pianos-and-organs.com
127.0.0.1 www.luce.polimi.it
127.0.0.1 www.lyzgs.com
127.0.0.1 www.m-barati.de
127.0.0.1 www.makohela.tk
@@ -1057,7 +1034,6 @@
127.0.0.1 www.rokus-tgy.hu
127.0.0.1 www.roltek.com.tr
127.0.0.1 www.rooversadvocatuur.nl
127.0.0.1 www.rst-velbert.de
127.0.0.1 www.saemark.is
127.0.0.1 www.salentoeasy.it
127.0.0.1 www.sankyo.gr.jp
@@ -1111,8 +1087,6 @@
127.0.0.1 www.zatzy.com
127.0.0.1 www.zctei.com
127.0.0.1 www.zyxyfy.com
127.0.0.1 www12.0zz0.com
127.0.0.1 www8.0zz0.com
127.0.0.1 xamateurpornlic.www1.biz
127.0.0.1 xicaxique.com.br
127.0.0.1 xindalawyer.com
+104 -1609
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+2199
View File
File diff suppressed because it is too large Load Diff
+9
View File
@@ -0,0 +1,9 @@
{
"name": "Tiuxo hostlist - ads",
"description": "Categorized hosts files for DNS based content blocking",
"homeurl": "https://github.com/tiuxo/hosts",
"frequency": "occasional",
"issues": "https://github.com/tiuxo/hosts/issues",
"url": "https://raw.githubusercontent.com/tiuxo/hosts/master/ads",
"license": "CC BY 4.0"
}
+881 -258
View File
File diff suppressed because it is too large Load Diff
+278 -3
View File
@@ -3,16 +3,23 @@
0.0.0.0 21stcenturywire.com
0.0.0.0 365usanews.com
0.0.0.0 4threvolutionarywar.wordpress.com
0.0.0.0 5galert.com
0.0.0.0 70news.wordpress.com
0.0.0.0 aanirfan.blogspot.com
0.0.0.0 abcnews.com.co
0.0.0.0 abolishsocialism.com
0.0.0.0 abortions.news
0.0.0.0 absurd.news
0.0.0.0 addictinginfo.org
0.0.0.0 addiction.news
0.0.0.0 adobochronicles.com
0.0.0.0 africannewsupdates.com
0.0.0.0 ahtribune.com
0.0.0.0 alertchild.com
0.0.0.0 aljazeera-channel.com
0.0.0.0 allnewspipeline.com
0.0.0.0 altleft.news
0.0.0.0 aluminum.news
0.0.0.0 alynews.com
0.0.0.0 americanfreepress.net
0.0.0.0 americanlookout.com
@@ -26,37 +33,66 @@
0.0.0.0 anonhq.com
0.0.0.0 anonymousnews.ru
0.0.0.0 anotherdayintheempire.com
0.0.0.0 anticancer.news
0.0.0.0 areyouasleep.com
0.0.0.0 asamericanasapplepie.org
0.0.0.0 asheepnomore.net
0.0.0.0 asia-pacificresearch.com
0.0.0.0 aspartame.news
0.0.0.0 assassinationscience.com
0.0.0.0 associatedmediacoverage.com
0.0.0.0 atrazine.news
0.0.0.0 autismtruthnews.com
0.0.0.0 awakening.news
0.0.0.0 awarenessact.com
0.0.0.0 awazetribune.com
0.0.0.0 awdnews.com
0.0.0.0 badcriminals.com
0.0.0.0 baddoctors.news
0.0.0.0 baltimoregazette.com
0.0.0.0 barackobama.news
0.0.0.0 bb4sp.com
0.0.0.0 bees.news
0.0.0.0 beforeitsnews.com
0.0.0.0 bentspud.com
0.0.0.0 bigamericannews.com
0.0.0.0 biggovernment.news
0.0.0.0 biglawnewsline.com
0.0.0.0 bigleaguepolitics.com
0.0.0.0 bignuggetnews.com
0.0.0.0 bigpharmanews.com
0.0.0.0 bigpzone.com
0.0.0.0 bigtech.news
0.0.0.0 billnye.news
0.0.0.0 biotech.news
0.0.0.0 bipartisanreport.com
0.0.0.0 bitcoincrash.news
0.0.0.0 bizstandardnews.com
0.0.0.0 blackgenocide.org
0.0.0.0 blacklistednews.com
0.0.0.0 blog.halle-leaks.de
0.0.0.0 bluenationreview.com
0.0.0.0 brain.news
0.0.0.0 brainfunction.news
0.0.0.0 breakthrough.news
0.0.0.0 bugout.news
0.0.0.0 butthatsnoneofmybusiness.com
0.0.0.0 cacao.news
0.0.0.0 caintv.com
0.0.0.0 campusinsanity.com
0.0.0.0 canadafreepress.com
0.0.0.0 cancermyths.com
0.0.0.0 cancerscams.com
0.0.0.0 cancersolutions.news
0.0.0.0 cancertumors.news
0.0.0.0 cap-news.com
0.0.0.0 carbondioxide.news
0.0.0.0 cartelpress.com
0.0.0.0 cartelreport.com
0.0.0.0 cbds.news
0.0.0.0 cdc.news
0.0.0.0 celebrityreputation.com
0.0.0.0 censorship.news
0.0.0.0 channel-7-news.com
0.0.0.0 channel16news.com
0.0.0.0 channel17news.com
@@ -69,16 +105,32 @@
0.0.0.0 channel34news.com
0.0.0.0 channel45news.com
0.0.0.0 channel5000.com
0.0.0.0 chaos.news
0.0.0.0 chemicals.news
0.0.0.0 chemistry.news
0.0.0.0 chemo.news
0.0.0.0 chemotherapy.news
0.0.0.0 chemtrailsnews.com
0.0.0.0 chemtrailsplanet.net
0.0.0.0 chocolate.news
0.0.0.0 christianfightback.com
0.0.0.0 christiantimesnewspaper.com
0.0.0.0 christwire.org
0.0.0.0 chronicle.su
0.0.0.0 civictribune.com
0.0.0.0 civilwar.news
0.0.0.0 clancyreport.com
0.0.0.0 clashdaily.com
0.0.0.0 cleanfoodwatch.com
0.0.0.0 cleanwater.news
0.0.0.0 climate.news
0.0.0.0 climatealarmism.news
0.0.0.0 climatesciencenews.com
0.0.0.0 cnn.com.de
0.0.0.0 collapse.news
0.0.0.0 collapsifornia.com
0.0.0.0 collectivelyconscious.net
0.0.0.0 computing.news
0.0.0.0 consciouslifenews.com
0.0.0.0 conservative101.com
0.0.0.0 conservativebyte.com
@@ -89,8 +141,12 @@
0.0.0.0 conservativerefocus.com
0.0.0.0 conservativestate.com
0.0.0.0 conservativetribune.com
0.0.0.0 conspiracy.news
0.0.0.0 conspiracydailyupdate.com
0.0.0.0 conspiracyplanet.com
0.0.0.0 cortezwatch.com
0.0.0.0 cosmetics.news
0.0.0.0 cosmic.news
0.0.0.0 countdowntozerotime.com
0.0.0.0 countercurrentnews.com
0.0.0.0 counterpsyops.com
@@ -99,6 +155,9 @@
0.0.0.0 crazynewsreports.com
0.0.0.0 creambmp.com
0.0.0.0 cronicadeportiva.com
0.0.0.0 cures.news
0.0.0.0 cyberwar.news
0.0.0.0 cyborg.news
0.0.0.0 dailybuzzlive.com
0.0.0.0 dailycaller.com
0.0.0.0 dailycurrant.com
@@ -108,16 +167,33 @@
0.0.0.0 dailyoccupation.com
0.0.0.0 dailypostfeed.com
0.0.0.0 dandygoat.com
0.0.0.0 dangerousmedicine.com
0.0.0.0 davidduke.com
0.0.0.0 davidgorski.news
0.0.0.0 dcleaks.com
0.0.0.0 dcposts.com
0.0.0.0 dcwhispers.com
0.0.0.0 deepinsidetherabbithole.com
0.0.0.0 deepstate.news
0.0.0.0 dementia.news
0.0.0.0 democide.news
0.0.0.0 democraticreview.com
0.0.0.0 demonic.news
0.0.0.0 demonictimes.com
0.0.0.0 dennismichaellynch.com
0.0.0.0 denverguardian.com
0.0.0.0 departed.co
0.0.0.0 departedmedia.info
0.0.0.0 depopulation.news
0.0.0.0 depressionsymptoms.news
0.0.0.0 diabetescure.news
0.0.0.0 diabetessciencenews.com
0.0.0.0 dicamba.news
0.0.0.0 digestion.news
0.0.0.0 disaster.news
0.0.0.0 discoveries.news
0.0.0.0 divinitynow.org
0.0.0.0 dnc.news
0.0.0.0 donaldtrumpnews.co
0.0.0.0 downtrend.com
0.0.0.0 drudgereport.com.co
@@ -126,70 +202,140 @@
0.0.0.0 eaglerising.com
0.0.0.0 educate-yourself.org
0.0.0.0 educateinspirechange.org
0.0.0.0 electricity.news
0.0.0.0 embols.com
0.0.0.0 emergencyfood.news
0.0.0.0 emf.news
0.0.0.0 emp.news
0.0.0.0 empireherald.com
0.0.0.0 empirenews.com
0.0.0.0 empirenews.net
0.0.0.0 endingthefed.com
0.0.0.0 endoftheamericandream.com
0.0.0.0 environ.news
0.0.0.0 epa.news
0.0.0.0 ericholder.news
0.0.0.0 essentialoils.news
0.0.0.0 eugenics.news
0.0.0.0 euthanasia.news
0.0.0.0 eutopia.buzz
0.0.0.0 everydaybreakingnews.com
0.0.0.0 evil.news
0.0.0.0 evilnewsom.com
0.0.0.0 extinction.news
0.0.0.0 eyehealth.news
0.0.0.0 fakebook.news
0.0.0.0 faked.news
0.0.0.0 fakescience.news
0.0.0.0 falseflag.news
0.0.0.0 familysecuritymatters.org
0.0.0.0 famousviralstories.com
0.0.0.0 fanzinger.com
0.0.0.0 fasting.news
0.0.0.0 fbicorruption.news
0.0.0.0 fda.news
0.0.0.0 federalistpress.com
0.0.0.0 fedsalert.com
0.0.0.0 fellowshipoftheminds.com
0.0.0.0 fightobesity.news
0.0.0.0 firebrandleft.com
0.0.0.0 fluoride.news
0.0.0.0 flyingcars.news
0.0.0.0 fmobserver.com
0.0.0.0 focusnews.us
0.0.0.0 folksvideo.com
0.0.0.0 foodcollapse.com
0.0.0.0 foodevolution.news
0.0.0.0 foodfreedom.news
0.0.0.0 foodismedicine.com
0.0.0.0 foodscience.news
0.0.0.0 foodstorage.news
0.0.0.0 foodsupply.news
0.0.0.0 forbiddenknowledgetv.net
0.0.0.0 fprnradio.com
0.0.0.0 fracking.news
0.0.0.0 freebeacon.com
0.0.0.0 freedom-articles.toolsforfreedom.com
0.0.0.0 freedom.news
0.0.0.0 freedomdaily.com
0.0.0.0 freedomoutpost.com
0.0.0.0 fresh.news
0.0.0.0 fromthetrenchesworldreport.com
0.0.0.0 fruits.news
0.0.0.0 fuhrerious88blog.wordpress.com
0.0.0.0 fukushima.news
0.0.0.0 fukushimawatch.com
0.0.0.0 fusionlacedillusions.com
0.0.0.0 futuresciencenews.com
0.0.0.0 galacticconnection.com
0.0.0.0 gangstergovernment.com
0.0.0.0 gatesofvienna.net
0.0.0.0 gender.news
0.0.0.0 genocide.news
0.0.0.0 geoengineering.news
0.0.0.0 glitch.news
0.0.0.0 globalresearch.ca
0.0.0.0 glossynews.com
0.0.0.0 glyphocide.news
0.0.0.0 glyphosate.news
0.0.0.0 gmo.news
0.0.0.0 godtoday.com
0.0.0.0 gomerblog.com
0.0.0.0 gopthedailydose.com
0.0.0.0 gotnews.com
0.0.0.0 govtslaves.com
0.0.0.0 govtslaves.info
0.0.0.0 greatertexan.com
0.0.0.0 greenlivingnews.com
0.0.0.0 grocery.news
0.0.0.0 guccifer2.wordpress.com
0.0.0.0 gulagbound.com
0.0.0.0 hahaloud.com
0.0.0.0 healthcoverage.news
0.0.0.0 healthfreedom.news
0.0.0.0 healthimpactnews.com
0.0.0.0 healthrangerapproved.com
0.0.0.0 healthrangerscience.com
0.0.0.0 healthscience.news
0.0.0.0 heart.news
0.0.0.0 heartdisease.news
0.0.0.0 heathenwomen.com
0.0.0.0 heaviermetal.net
0.0.0.0 heavymetals.news
0.0.0.0 hempscience.news
0.0.0.0 henrymakow.com
0.0.0.0 hoax.news
0.0.0.0 hollywoodhater.com
0.0.0.0 holylandnutrition.com
0.0.0.0 homeschooling.news
0.0.0.0 howardschultz.news
0.0.0.0 humansarefree.com
0.0.0.0 hydrogenwater.news
0.0.0.0 ihavethetruth.com
0.0.0.0 illuminati-news.com
0.0.0.0 immediatesafety.org
0.0.0.0 immunization.news
0.0.0.0 imzansi.co.za
0.0.0.0 indiaarising.com
0.0.0.0 info.kopp-verlag.de
0.0.0.0 infowars.com
0.0.0.0 ingredients.news
0.0.0.0 intellihub.com
0.0.0.0 inthenow.media
0.0.0.0 intrendtoday.com
0.0.0.0 invasionusa.news
0.0.0.0 inventions.news
0.0.0.0 investmentwatchblog.com
0.0.0.0 irishufology.net
0.0.0.0 ironictimes.com
0.0.0.0 islamicanews.com
0.0.0.0 itaglive.com
0.0.0.0 jamescomey.news
0.0.0.0 jamesfetzer.blogspot.com
0.0.0.0 jameslico.com
0.0.0.0 janmorganmedia.com
0.0.0.0 jeffbezoswatch.com
0.0.0.0 joebiden.news
0.0.0.0 joeforamerica.com
0.0.0.0 jokerviral.com
0.0.0.0 jonesreport.com
@@ -206,8 +352,11 @@
0.0.0.0 kypo6.com
0.0.0.0 landdestroyer.blogspot.com
0.0.0.0 larouchepub.com
0.0.0.0 leftcult.com
0.0.0.0 leftcult.com
0.0.0.0 liberaldarkness.com
0.0.0.0 liberalsociety.com
0.0.0.0 liberty.news
0.0.0.0 libertyblitzkrieg.com
0.0.0.0 libertymovementradio.com
0.0.0.0 libertynews.com
@@ -219,6 +368,7 @@
0.0.0.0 literallyunbelievable.org
0.0.0.0 livemonitor.co.za
0.0.0.0 livingresistance.com
0.0.0.0 longevitysciencenews.com
0.0.0.0 lucidawakenings.net
0.0.0.0 madashellnews.com
0.0.0.0 madworldnews.com
@@ -227,33 +377,66 @@
0.0.0.0 mbynews.com
0.0.0.0 mckenziepost.com
0.0.0.0 mediamass.net
0.0.0.0 medicalextremism.com
0.0.0.0 medicaltech.news
0.0.0.0 medicaltyranny.com
0.0.0.0 medicalviolence.com
0.0.0.0 medicine.news
0.0.0.0 memoryholeblog.com
0.0.0.0 metals.news
0.0.0.0 microplastics.news
0.0.0.0 mike.news
0.0.0.0 mikeadams.news
0.0.0.0 mind.news
0.0.0.0 mindbodyscience.news
0.0.0.0 mindcontrol.news
0.0.0.0 mindenszo.hu
0.0.0.0 monsanto.news
0.0.0.0 monsantomafia.com
0.0.0.0 moralmatters.org
0.0.0.0 mpidailymagazine.com
0.0.0.0 mrnewswatch.com
0.0.0.0 msg.news
0.0.0.0 msnbc.website
0.0.0.0 myfoodepic.com
0.0.0.0 myzonetoday.com
0.0.0.0 nahadaily.com
0.0.0.0 nanotechnology.news
0.0.0.0 nationalreport.net
0.0.0.0 nationalsecurity.news
0.0.0.0 nationonenews.com
0.0.0.0 naturalcures.news
0.0.0.0 naturalhealth.news
0.0.0.0 naturalmedicine.news
0.0.0.0 naturalnewscharity.com
0.0.0.0 naturalnewsnutrients.com
0.0.0.0 naturalnewsobserver.com
0.0.0.0 naturalnewsrecipes.com
0.0.0.0 naturalnewsreference.com
0.0.0.0 naturalnewstips.com
0.0.0.0 naturalpedia.com
0.0.0.0 naturopathy.news
0.0.0.0 nbcnews.io
0.0.0.0 netlivemedia.com
0.0.0.0 nevo.news
0.0.0.0 newcenturytimes.com
0.0.0.0 newenergyreport.com
0.0.0.0 newobserveronline.com
0.0.0.0 news4ktla.com
0.0.0.0 newsbiscuit.com
0.0.0.0 newsbreakers.org
0.0.0.0 newsbuzzdaily.com
0.0.0.0 newsexaminer.net
0.0.0.0 newsguardwatch.com
0.0.0.0 newshubs.info
0.0.0.0 newslo.com
0.0.0.0 newsmutiny.com
0.0.0.0 newsnow.co.za
0.0.0.0 newsnow17.com
0.0.0.0 newsparody.com
0.0.0.0 newspunch.com
0.0.0.0 newstarget.com
0.0.0.0 newstarget.com
0.0.0.0 newsthump.com
0.0.0.0 newswatch28.com
0.0.0.0 newswatch33.com
0.0.0.0 newswire-24.com
@@ -263,22 +446,41 @@
0.0.0.0 nodisinfo.com
0.0.0.0 notallowedto.com
0.0.0.0 now8news.com
0.0.0.0 npr.news
0.0.0.0 nsnbc.me
0.0.0.0 nuclear.news
0.0.0.0 nuclearweapons.news
0.0.0.0 nutrients.news
0.0.0.0 occupydemocrats.com
0.0.0.0 off-guardian.org
0.0.0.0 oftwominds.com
0.0.0.0 oilgeopolitics.net
0.0.0.0 oncology.news
0.0.0.0 onlineconservativepress.com
0.0.0.0 opednews.com
0.0.0.0 openborders.news
0.0.0.0 opioids.news
0.0.0.0 oreillypost.com
0.0.0.0 organharvesting.news
0.0.0.0 organicfarming.news
0.0.0.0 organics.news
0.0.0.0 orientalreview.org
0.0.0.0 ourshiftingperspective.com
0.0.0.0 outbreak.news
0.0.0.0 pamelageller.com
0.0.0.0 pandemic.news
0.0.0.0 patriotnewsagency.com
0.0.0.0 patriotrising.com
0.0.0.0 patriotupdate.com
0.0.0.0 pensions.news
0.0.0.0 persecutes.com
0.0.0.0 pesticides.news
0.0.0.0 petfoodwarning.com
0.0.0.0 pethealthdaily.com
0.0.0.0 physics.news
0.0.0.0 plague.info
0.0.0.0 platosguns.com
0.0.0.0 policestate.news
0.0.0.0 politicalblindspot.com
0.0.0.0 politicalcult.com
0.0.0.0 politicalears.com
@@ -287,54 +489,105 @@
0.0.0.0 politicalvelcraft.org
0.0.0.0 politicops.com
0.0.0.0 politistick.com
0.0.0.0 pollution.news
0.0.0.0 populationcollapse.com
0.0.0.0 populationcontrol.news
0.0.0.0 power.news
0.0.0.0 powergrid.news
0.0.0.0 preparedness.news
0.0.0.0 president45donaldtrump.com
0.0.0.0 pressfortruth.ca
0.0.0.0 presstv.com
0.0.0.0 preventcancer.news
0.0.0.0 privacywatch.news
0.0.0.0 prntly.com
0.0.0.0 progress.news
0.0.0.0 projectveritas.com
0.0.0.0 propaganda.news
0.0.0.0 prophecy.news
0.0.0.0 qpolitical.com
0.0.0.0 quackery.news
0.0.0.0 qualitysharing.com
0.0.0.0 racerelations.news
0.0.0.0 radiation.news
0.0.0.0 rbth.com
0.0.0.0 readconservatives.news
0.0.0.0 readynutrition.com
0.0.0.0 reagancoalition.com
0.0.0.0 realnewsrightnow.com
0.0.0.0 realsciencenews.com
0.0.0.0 redstatewatcher.com
0.0.0.0 regated.com
0.0.0.0 rense.com
0.0.0.0 reporter.bz
0.0.0.0 research.news
0.0.0.0 revolt.news
0.0.0.0 richardpan.news
0.0.0.0 rickwells.us
0.0.0.0 rightalerts.com
0.0.0.0 rightwingnews.com
0.0.0.0 rilenews.com
0.0.0.0 rinf.com
0.0.0.0 risk.news
0.0.0.0 robertmueller.news
0.0.0.0 robotics.news
0.0.0.0 robots.news
0.0.0.0 ronpaulinstitute.org
0.0.0.0 rumormillnews.com
0.0.0.0 ruptly.tv
0.0.0.0 russia-insider.com
0.0.0.0 samuel-warde.com
0.0.0.0 sana.sy
0.0.0.0 satanictech.com
0.0.0.0 satanism.news
0.0.0.0 science.news
0.0.0.0 scienceclowns.com
0.0.0.0 sciencedeception.com
0.0.0.0 sciencetyranny.com
0.0.0.0 scientific.news
0.0.0.0 scrapetv.com
0.0.0.0 scrappleface.com
0.0.0.0 secondamendment.news
0.0.0.0 sentinelblog.com
0.0.0.0 sgtreport.com
0.0.0.0 sheepkillers.com
0.0.0.0 sheeple.news
0.0.0.0 shoebat.com
0.0.0.0 shtf.news
0.0.0.0 silentmajoritypatriots.com
0.0.0.0 sitsshow.blogspot.com
0.0.0.0 skeptiko.com
0.0.0.0 slender.news
0.0.0.0 smartmeters.news
0.0.0.0 smhwtfnews.com
0.0.0.0 snopes.news
0.0.0.0 solarpanels.news
0.0.0.0 somicom.com
0.0.0.0 southfront.org
0.0.0.0 space.news
0.0.0.0 spacetourism.news
0.0.0.0 splc.news
0.0.0.0 sputniknews.com
0.0.0.0 starbuckswatch.news
0.0.0.0 stateofthenation2012.com
0.0.0.0 statins.news
0.0.0.0 stgeorgegazette.com
0.0.0.0 stneotscitizen.com
0.0.0.0 stopsmoking.news
0.0.0.0 stormcloudsgathering.com
0.0.0.0 straightstoned.com
0.0.0.0 stupid.news
0.0.0.0 stuppid.com
0.0.0.0 subjectpolitics.com
0.0.0.0 superbugs.news
0.0.0.0 superfoods.news
0.0.0.0 supplementsreport.com
0.0.0.0 supremepatriot.com
0.0.0.0 survivalgear.news
0.0.0.0 sweeteners.news
0.0.0.0 tapwater.news
0.0.0.0 techgiants.news
0.0.0.0 technocrats.news
0.0.0.0 the-newspapers.com
0.0.0.0 theamericanindependent.wordpress.com
0.0.0.0 theamericanrevenant.com
@@ -349,7 +602,6 @@
0.0.0.0 thefreepatriot.org
0.0.0.0 thefreethoughtproject.com
0.0.0.0 thefrt.com
0.0.0.0 thehardtimes.net
0.0.0.0 theineptowl.com
0.0.0.0 thelapine.ca
0.0.0.0 thelastgreatstand.com
@@ -394,26 +646,35 @@
0.0.0.0 tmzworldstar.com
0.0.0.0 tmzworldstarnews.com
0.0.0.0 tomatobubble.com
0.0.0.0 top10grocerysecrets.com
0.0.0.0 topekasnews.com
0.0.0.0 toprightnews.com
0.0.0.0 totalworldnews.com
0.0.0.0 tradcatknight.blogspot.com
0.0.0.0 trafficking.news
0.0.0.0 transhumanism.news
0.0.0.0 treason.news
0.0.0.0 truepundit.com
0.0.0.0 trueworldhistory.info
0.0.0.0 trump.news
0.0.0.0 truth.news
0.0.0.0 truthbroadcastnetwork.com
0.0.0.0 truthfeed.com
0.0.0.0 truthfrequencyradio.com
0.0.0.0 truthkings.com
0.0.0.0 truthpoliticsnews.com
0.0.0.0 turmeric.news
0.0.0.0 tv.infowars.com
0.0.0.0 twitchy.com
0.0.0.0 uconservative.com
0.0.0.0 ufoholic.com
0.0.0.0 ufos.news
0.0.0.0 ultimateflashnews.com
0.0.0.0 unclesamsmisguidedchildren.com
0.0.0.0 unconfirmedsources.com
0.0.0.0 undergroundnewsreport.com
0.0.0.0 undergroundworldnews.com
0.0.0.0 unexplained.news
0.0.0.0 unitedmediapublishing.com
0.0.0.0 us.blastingnews.com
0.0.0.0 usaaroundtheworldnews.com
@@ -431,7 +692,11 @@
0.0.0.0 usslibertyveterans.org
0.0.0.0 usuncut.com
0.0.0.0 usviral.info
0.0.0.0 vaccineholocaust.org
0.0.0.0 vaccines.news
0.0.0.0 vaccinewars.com
0.0.0.0 vaclib.org
0.0.0.0 veteranstoday.news
0.0.0.0 vigilantcitizen.com
0.0.0.0 viralactions.com
0.0.0.0 viralcocaine.com
@@ -441,22 +706,30 @@
0.0.0.0 viralpropaganda.com
0.0.0.0 viralspeech.com
0.0.0.0 viralstuppid.com
0.0.0.0 vitamind.news
0.0.0.0 wakeupthesheep.com
0.0.0.0 wakingupwisconsin.com
0.0.0.0 waterfilters.news
0.0.0.0 waterfordwhispersnews.com
0.0.0.0 waterwars.news
0.0.0.0 wearechange.org
0.0.0.0 weeklyworldnews.com
0.0.0.0 weirdsciencenews.com
0.0.0.0 weshapelife.org
0.0.0.0 whatdoesitmean.com
0.0.0.0 whitehouse.news
0.0.0.0 whitepower.com
0.0.0.0 wikispooks.com
0.0.0.0 winningdemocrats.com
0.0.0.0 witscience.org
0.0.0.0 wleb21.com
0.0.0.0 wm21news.com
0.0.0.0 womensfitnessfocus.com
0.0.0.0 womenshealth.news
0.0.0.0 worldnewsdailyreport.com
0.0.0.0 worldpoliticus.com
0.0.0.0 worldtruth.tv
0.0.0.0 wwiii.news
0.0.0.0 www.4thmedia.org
0.0.0.0 www.abeldanger.net
0.0.0.0 www.abovetopsecret.com
@@ -579,7 +852,6 @@
0.0.0.0 www.prisonplanet.com
0.0.0.0 www.proudcons.com
0.0.0.0 www.rapefugees.net
0.0.0.0 www.rawstory.com
0.0.0.0 www.react365.com
0.0.0.0 www.realfarmacy.com
0.0.0.0 www.redflagnews.com
@@ -665,5 +937,8 @@
0.0.0.0 www.zeppfeed.com
0.0.0.0 www.zerohedge.com
0.0.0.0 www.zootfeed.com
0.0.0.0 yogurt.news
0.0.0.0 yournationnews.com
0.0.0.0 yournewswire.com
0.0.0.0 youtubecensorship.com
0.0.0.0 zombie.news
+679 -2
View File
@@ -1,7 +1,8 @@
# Gambling hosts
# Title: Gambling hosts
# https://www.reddit.com/r/GlobalOffensiveGamble/comments/3d5fmr/list_of_csgo_gambling_websites/
# http://www.top100bookmakers.com/completelist.php
# Updated July 17, 2016
# https://raw.githubusercontent.com/lassekongo83/Frellwits-filter-lists/master/anti-casino-and-betting-hosts-file.txt
# Updated January 6, 2020
127.0.0.1 crownbet.com.au
127.0.0.1 crownbet.com
@@ -118,6 +119,8 @@
127.0.0.1 artemisbet10.com
127.0.0.1 asianbeta.com
127.0.0.1 www.asianbeta.com
127.0.0.1 atg.se
127.0.0.1 www.atg.se
127.0.0.1 axbet.com
127.0.0.1 www.axbet.com
127.0.0.1 bananajackpot.com
@@ -684,6 +687,8 @@
127.0.0.1 daisybingo.com
127.0.0.1 www.daisybingo.com
127.0.0.1 dakotacasino.com
127.0.0.1 dantoto.dk
127.0.0.1 www.dantoto.dk
127.0.0.1 dashbet.com
127.0.0.1 www.dashbet.com
127.0.0.1 desertnightscasino.co.uk
@@ -720,6 +725,8 @@
127.0.0.1 www.eccobet.com
127.0.0.1 ed3688.com
127.0.0.1 www.ed3688.com
127.0.0.1 eestiloto.ee
127.0.0.1 eestiloto.ee
127.0.0.1 efbet.com
127.0.0.1 www.efbet.com
127.0.0.1 egamingbets.com
@@ -772,6 +779,8 @@
127.0.0.1 www.favbet.com
127.0.0.1 favourit.com
127.0.0.1 www.favourit.com
127.0.0.1 fdj.fr
127.0.0.1 www.fdj.fr
127.0.0.1 flemingtonsportsbet.com.au
127.0.0.1 www.flemingtonsportsbet.com.au
127.0.0.1 fonbet.com
@@ -1129,6 +1138,8 @@
127.0.0.1 www.nitrogensports.eu
127.0.0.1 nordicbet.com
127.0.0.1 www.nordicbet.com
127.0.0.1 norsk-tipping.no
127.0.0.1 www.norsk-tipping.no
127.0.0.1 novibet.com
127.0.0.1 www.novibet.com
127.0.0.1 noxwin.com
@@ -1235,6 +1246,8 @@
127.0.0.1 www.redmilebets.com
127.0.0.1 redstarsports.eu
127.0.0.1 www.redstarsports.eu
127.0.0.1 rikstoto.no
127.0.0.1 www.rikstoto.no
127.0.0.1 rivalo.com
127.0.0.1 www.rivalo.com
127.0.0.1 roadbet.com
@@ -1276,6 +1289,8 @@
127.0.0.1 www.setantabet.com
127.0.0.1 sirbobet.com
127.0.0.1 www.sirbobet.com
127.0.0.1 sisal.it
127.0.0.1 www.sisal.it
127.0.0.1 sjbet.at
127.0.0.1 www.sjbet.at
127.0.0.1 skedina.com
@@ -1391,6 +1406,8 @@
127.0.0.1 www.supersportsbook.com
127.0.0.1 superusacasino.com
127.0.0.1 www.superusacasino.com
127.0.0.1 svenskaspel.se
127.0.0.1 www.svenskaspel.se
127.0.0.1 tab.co.nz
127.0.0.1 www.tab.co.nz
127.0.0.1 tab.com.au
@@ -1471,6 +1488,8 @@
127.0.0.1 www.vandersports.com
127.0.0.1 vbet.com
127.0.0.1 www.vbet.com
127.0.0.1 veikkaus.fi
127.0.0.1 www.veikkaus.fi
127.0.0.1 vernons.com
127.0.0.1 www.vernons.com
127.0.0.1 vestabet365.com
@@ -1651,3 +1670,661 @@
127.0.0.1 casino.vernons.com
127.0.0.1 bingo.vernons.com
127.0.0.1 www.bethard.com
127.0.0.1 21bet.com
127.0.0.1 21casino.com
127.0.0.1 21prive.com
127.0.0.1 22bet.com
127.0.0.1 22betpartners.com
127.0.0.1 24bettle.com
127.0.0.1 666casino.com
127.0.0.1 777.com
127.0.0.1 7godscasino.com
127.0.0.1 7jackpots.com
127.0.0.1 888.com
127.0.0.1 agentspinner.com
127.0.0.1 ahacasino.com
127.0.0.1 ahtigames.com
127.0.0.1 alfcasino.com
127.0.0.1 barbadoscasino.com
127.0.0.1 b-bets.com
127.0.0.1 bertil.com
127.0.0.1 bestcasino.com
127.0.0.1 betfinal.com
127.0.0.1 bethard.com
127.0.0.1 betive.com
127.0.0.1 betser.com
127.0.0.1 betspawn.com
127.0.0.1 betzest.com
127.0.0.1 bgo.com
127.0.0.1 bingo.com
127.0.0.1 bobcasino.com
127.0.0.1 bobregister.com
127.0.0.1 buckandbutler.com
127.0.0.1 campeonbet.com
127.0.0.1 campobet.com
127.0.0.1 cashiopeia.com
127.0.0.1 cashmio.com
127.0.0.1 casilando.com
127.0.0.1 casimba.com
127.0.0.1 casiniabet.com
127.0.0.1 casinoandfriends.com
127.0.0.1 casinocalzone.com
127.0.0.1 casinocruise.com
127.0.0.1 casinoeuro.com
127.0.0.1 casinoheroes.com
127.0.0.1 casinojefe.com
127.0.0.1 casinoland.com
127.0.0.1 casinolasvegas.com
127.0.0.1 casinolasvegas.no
127.0.0.1 casinopop.com
127.0.0.1 casino-pp.net
127.0.0.1 casinoroom.com
127.0.0.1 casinostugan.com
127.0.0.1 casinotown.se
127.0.0.1 casinsi.com
127.0.0.1 casumo.com
127.0.0.1 chancehill.com
127.0.0.1 chanz.com
127.0.0.1 cheekywin.com
127.0.0.1 cherrycasino.com
127.0.0.1 codeta.com
127.0.0.1 coolbet.com
127.0.0.1 cozino.com
127.0.0.1 dealerscasino.com
127.0.0.1 diamond7casino.com
127.0.0.1 dreamjackpot.com
127.0.0.1 dreamvegas.com
127.0.0.1 dreamz.com
127.0.0.1 duelz.com
127.0.0.1 dunder.com
127.0.0.1 esportsbetting.com
127.0.0.1 euroslots.com
127.0.0.1 fansbet.com
127.0.0.1 fikacasino.com
127.0.0.1 flumecasino.com
127.0.0.1 folkeautomaten.com
127.0.0.1 frankcasino.com
127.0.0.1 frankfred.com
127.0.0.1 freakyvegas.com
127.0.0.1 fruitycasa.com
127.0.0.1 fsport.net
127.0.0.1 funcasino.com
127.0.0.1 gate777.com
127.0.0.1 genesiscasino.com
127.0.0.1 getlucky.com
127.0.0.1 glimmercasino.com
127.0.0.1 goliathcasino.com
127.0.0.1 hajper.com
127.0.0.1 hellocasino.com
127.0.0.1 heyspin.com
127.0.0.1 highroller.com
127.0.0.1 hopa.com
127.0.0.1 igame.com
127.0.0.1 igame.se
127.0.0.1 ikibu.com
127.0.0.1 instacasino.com
127.0.0.1 intercasino.com
127.0.0.1 jackpotcity.com
127.0.0.1 johnslots.com
127.0.0.1 justcasino.com
127.0.0.1 kaboo.com
127.0.0.1 kaiserslots.com
127.0.0.1 karamba.com
127.0.0.1 karjalakasino.com
127.0.0.1 karlcasino.com
127.0.0.1 lapalingo.com
127.0.0.1 legolas.bet
127.0.0.1 leovegas.com
127.0.0.1 letsbet.com
127.0.0.1 livelounge.com
127.0.0.1 lsbet690.com
127.0.0.1 luckland.com
127.0.0.1 luckycasino.com
127.0.0.1 luckydino.com
127.0.0.1 luckyland.co.uk
127.0.0.1 luckylouis.com
127.0.0.1 luckymeslots.com
127.0.0.1 luckyniki.com
127.0.0.1 luckywinslots.com
127.0.0.1 magicred.com
127.0.0.1 malinasports.com
127.0.0.1 mamamiabingo.com
127.0.0.1 mansionbet.com
127.0.0.1 mariacasino.com
127.0.0.1 metalcasino.com
127.0.0.1 miamidicecasino.com
127.0.0.1 miamidice.com
127.0.0.1 mobil6000.com
127.0.0.1 mobilautomaten.com
127.0.0.1 mobilebet.com
127.0.0.1 mobocasino.com
127.0.0.1 montecarlocasino.com
127.0.0.1 mr.bet
127.0.0.1 mrgreen.com
127.0.0.1 mrmega.com
127.0.0.1 mrmobi.com
127.0.0.1 mrplay.com
127.0.0.1 mrslot.com
127.0.0.1 mrwin.com
127.0.0.1 mychance.com
127.0.0.1 n1casino.com
127.0.0.1 nextcasino.com
127.0.0.1 nightrush.com
127.0.0.1 ninjacasino.com
127.0.0.1 noaccountcasino.com
127.0.0.1 norgesautomaten.com
127.0.0.1 norgesspill.com
127.0.0.1 norskeautomater.com
127.0.0.1 norskespilleautomater.com
127.0.0.1 nyspins.com
127.0.0.1 olaspill.com
127.0.0.1 olybet.eu
127.0.0.1 omniacasino.com
127.0.0.1 ovocasino.com
127.0.0.1 pinnacle.com
127.0.0.1 piratespin.com
127.0.0.1 playclub.com
127.0.0.1 playfrank.com
127.0.0.1 playgrandcasino.com
127.0.0.1 playojo.com
127.0.0.1 pocketvegas.co.uk
127.0.0.1 potsofluck.com
127.0.0.1 primeslots.com
127.0.0.1 promotions.epic.partners
127.0.0.1 queenvegas.com
127.0.0.1 redkings.com
127.0.0.1 redspins.com
127.0.0.1 ridika.com
127.0.0.1 rizk.com
127.0.0.1 rolla.com
127.0.0.1 royalpanda.com
127.0.0.1 royalslots.com
127.0.0.1 royrichie.com
127.0.0.1 rush777.com
127.0.0.1 scandibet.com
127.0.0.1 scasino.com
127.0.0.1 sirjackpot.com
127.0.0.1 slotplanet.com
127.0.0.1 slotsheaven.com
127.0.0.1 slotsino.co.uk
127.0.0.1 slotsmagic.com
127.0.0.1 slotsons.com
127.0.0.1 slotv.com
127.0.0.1 sloty.com
127.0.0.1 snabbare.com
127.0.0.1 speedybet.com
127.0.0.1 spela.com
127.0.0.1 spinit.com
127.0.0.1 spinland.com
127.0.0.1 spinprincess.com
127.0.0.1 spinrider.com
127.0.0.1 spinson.com
127.0.0.1 spinstation.com
127.0.0.1 spinzilla.com
127.0.0.1 storspelare.com
127.0.0.1 storspiller.com
127.0.0.1 surf.casino
127.0.0.1 sveacasino.se
127.0.0.1 svedalacasino.com
127.0.0.1 swedencasino.com
127.0.0.1 swedencasino.se
127.0.0.1 sverigeautomaten.com
127.0.0.1 sverigecasino.com
127.0.0.1 sverigekronan.com
127.0.0.1 thrills.com
127.0.0.1 toto2.com
127.0.0.1 ttr.casino
127.0.0.1 vegashero.com
127.0.0.1 verajohn.com
127.0.0.1 videoslots.com
127.0.0.1 vikingslots.com
127.0.0.1 viks.com
127.0.0.1 wildjackpots.com
127.0.0.1 vinnarum.com
127.0.0.1 wixstars.com
127.0.0.1 voodoodreams.com
127.0.0.1 wunderino.com
127.0.0.1 yakocasino.com
127.0.0.1 yeticasino.com
127.0.0.1 yobetit.com
127.0.0.1 zodiacu.com
127.0.0.1 www.21bet.com
127.0.0.1 www.21casino.com
127.0.0.1 www.21prive.com
127.0.0.1 www.22bet.com
127.0.0.1 www.22betpartners.com
127.0.0.1 www.24bettle.com
127.0.0.1 www.666casino.com
127.0.0.1 www.777.com
127.0.0.1 www.7godscasino.com
127.0.0.1 www.7jackpots.com
127.0.0.1 www.888.com
127.0.0.1 www.agentspinner.com
127.0.0.1 www.ahacasino.com
127.0.0.1 www.ahtigames.com
127.0.0.1 www.alfcasino.com
127.0.0.1 www.barbadoscasino.com
127.0.0.1 www.b-bets.com
127.0.0.1 www.bertil.com
127.0.0.1 www.bestcasino.com
127.0.0.1 www.betfinal.com
127.0.0.1 www.betive.com
127.0.0.1 www.betser.com
127.0.0.1 www.betspawn.com
127.0.0.1 www.betzest.com
127.0.0.1 www.bgo.com
127.0.0.1 www.bingo.com
127.0.0.1 www.bobcasino.com
127.0.0.1 www.bobregister.com
127.0.0.1 www.buckandbutler.com
127.0.0.1 www.campeonbet.com
127.0.0.1 www.campobet.com
127.0.0.1 www.cashiopeia.com
127.0.0.1 www.cashmio.com
127.0.0.1 www.casilando.com
127.0.0.1 www.casimba.com
127.0.0.1 www.casiniabet.com
127.0.0.1 www.casinoandfriends.com
127.0.0.1 www.casinocalzone.com
127.0.0.1 www.casinocruise.com
127.0.0.1 www.casinoeuro.com
127.0.0.1 www.casinoheroes.com
127.0.0.1 www.casinojefe.com
127.0.0.1 www.casinoland.com
127.0.0.1 www.casinolasvegas.com
127.0.0.1 www.casinolasvegas.no
127.0.0.1 www.casinopop.com
127.0.0.1 www.casino-pp.net
127.0.0.1 www.casinoroom.com
127.0.0.1 www.casinostugan.com
127.0.0.1 www.casinotown.se
127.0.0.1 www.casinsi.com
127.0.0.1 www.casumo.com
127.0.0.1 www.chancehill.com
127.0.0.1 www.chanz.com
127.0.0.1 www.cheekywin.com
127.0.0.1 www.cherrycasino.com
127.0.0.1 www.codeta.com
127.0.0.1 www.coolbet.com
127.0.0.1 www.cozino.com
127.0.0.1 www.dealerscasino.com
127.0.0.1 www.diamond7casino.com
127.0.0.1 www.dreamjackpot.com
127.0.0.1 www.dreamvegas.com
127.0.0.1 www.dreamz.com
127.0.0.1 www.duelz.com
127.0.0.1 www.dunder.com
127.0.0.1 www.esportsbetting.com
127.0.0.1 www.euroslots.com
127.0.0.1 www.fansbet.com
127.0.0.1 www.fikacasino.com
127.0.0.1 www.flumecasino.com
127.0.0.1 www.folkeautomaten.com
127.0.0.1 www.frankcasino.com
127.0.0.1 www.frankfred.com
127.0.0.1 www.freakyvegas.com
127.0.0.1 www.fruitycasa.com
127.0.0.1 www.fsport.net
127.0.0.1 www.funcasino.com
127.0.0.1 www.gate777.com
127.0.0.1 www.genesiscasino.com
127.0.0.1 www.getlucky.com
127.0.0.1 www.glimmercasino.com
127.0.0.1 www.goliathcasino.com
127.0.0.1 www.hajper.com
127.0.0.1 www.hellocasino.com
127.0.0.1 www.heyspin.com
127.0.0.1 www.highroller.com
127.0.0.1 www.hopa.com
127.0.0.1 www.igame.com
127.0.0.1 www.igame.se
127.0.0.1 www.ikibu.com
127.0.0.1 www.instacasino.com
127.0.0.1 www.intercasino.com
127.0.0.1 www.jackpotcity.com
127.0.0.1 www.johnslots.com
127.0.0.1 www.justcasino.com
127.0.0.1 www.kaboo.com
127.0.0.1 www.kaiserslots.com
127.0.0.1 www.karjalakasino.com
127.0.0.1 www.karlcasino.com
127.0.0.1 www.lapalingo.com
127.0.0.1 www.legolas.bet
127.0.0.1 www.leovegas.com
127.0.0.1 www.letsbet.com
127.0.0.1 www.livelounge.com
127.0.0.1 www.lsbet690.com
127.0.0.1 www.luckland.com
127.0.0.1 www.luckycasino.com
127.0.0.1 www.luckydino.com
127.0.0.1 www.luckyland.co.uk
127.0.0.1 www.luckylouis.com
127.0.0.1 www.luckymeslots.com
127.0.0.1 www.luckyniki.com
127.0.0.1 www.luckywinslots.com
127.0.0.1 www.magicred.com
127.0.0.1 www.malinasports.com
127.0.0.1 www.mamamiabingo.com
127.0.0.1 www.mansionbet.com
127.0.0.1 www.mariacasino.com
127.0.0.1 www.metalcasino.com
127.0.0.1 www.miamidicecasino.com
127.0.0.1 www.miamidice.com
127.0.0.1 www.mobil6000.com
127.0.0.1 www.mobilautomaten.com
127.0.0.1 www.mobilebet.com
127.0.0.1 www.mobocasino.com
127.0.0.1 www.montecarlocasino.com
127.0.0.1 www.mr.bet
127.0.0.1 www.mrmega.com
127.0.0.1 www.mrmobi.com
127.0.0.1 www.mrplay.com
127.0.0.1 www.mrslot.com
127.0.0.1 www.mrwin.com
127.0.0.1 www.mychance.com
127.0.0.1 www.n1casino.com
127.0.0.1 www.nextcasino.com
127.0.0.1 www.nightrush.com
127.0.0.1 www.ninjacasino.com
127.0.0.1 www.noaccountcasino.com
127.0.0.1 www.norgesautomaten.com
127.0.0.1 www.norgesspill.com
127.0.0.1 www.norskeautomater.com
127.0.0.1 www.norskespilleautomater.com
127.0.0.1 www.nyspins.com
127.0.0.1 www.olaspill.com
127.0.0.1 www.olybet.eu
127.0.0.1 www.omniacasino.com
127.0.0.1 www.ovocasino.com
127.0.0.1 www.piratespin.com
127.0.0.1 www.playclub.com
127.0.0.1 www.playfrank.com
127.0.0.1 www.playgrandcasino.com
127.0.0.1 www.playojo.com
127.0.0.1 www.pocketvegas.co.uk
127.0.0.1 www.potsofluck.com
127.0.0.1 www.primeslots.com
127.0.0.1 www.promotions.epic.partners
127.0.0.1 www.queenvegas.com
127.0.0.1 www.redkings.com
127.0.0.1 www.redspins.com
127.0.0.1 www.ridika.com
127.0.0.1 www.rizk.com
127.0.0.1 www.rolla.com
127.0.0.1 www.royalslots.com
127.0.0.1 www.royrichie.com
127.0.0.1 www.rush777.com
127.0.0.1 www.scandibet.com
127.0.0.1 www.scasino.com
127.0.0.1 www.sirjackpot.com
127.0.0.1 www.slotplanet.com
127.0.0.1 www.slotsheaven.com
127.0.0.1 www.slotsino.co.uk
127.0.0.1 www.slotsmagic.com
127.0.0.1 www.slotsons.com
127.0.0.1 www.slotv.com
127.0.0.1 www.sloty.com
127.0.0.1 www.snabbare.com
127.0.0.1 www.speedybet.com
127.0.0.1 www.spela.com
127.0.0.1 www.spinit.com
127.0.0.1 www.spinland.com
127.0.0.1 www.spinprincess.com
127.0.0.1 www.spinrider.com
127.0.0.1 www.spinson.com
127.0.0.1 www.spinstation.com
127.0.0.1 www.spinzilla.com
127.0.0.1 www.storspelare.com
127.0.0.1 www.storspiller.com
127.0.0.1 www.surf.casino
127.0.0.1 www.sveacasino.se
127.0.0.1 www.svedalacasino.com
127.0.0.1 www.swedencasino.com
127.0.0.1 www.swedencasino.se
127.0.0.1 www.sverigeautomaten.com
127.0.0.1 www.sverigecasino.com
127.0.0.1 www.sverigekronan.com
127.0.0.1 www.thrills.com
127.0.0.1 www.toto2.com
127.0.0.1 www.ttr.casino
127.0.0.1 www.vegashero.com
127.0.0.1 www.verajohn.com
127.0.0.1 www.videoslots.com
127.0.0.1 www.vikingslots.com
127.0.0.1 www.viks.com
127.0.0.1 www.wildjackpots.com
127.0.0.1 www.vinnarum.com
127.0.0.1 www.wixstars.com
127.0.0.1 www.voodoodreams.com
127.0.0.1 www.wunderino.com
127.0.0.1 www.yakocasino.com
127.0.0.1 www.yeticasino.com
127.0.0.1 www.yobetit.com
127.0.0.1 www.zodiacu.com
127.0.0.1 nationale-loterij.be
127.0.0.1 e-lotto.be
127.0.0.1 loterie-nationale.be
127.0.0.1 loterie.lu
127.0.0.1 e-loterie.ma
127.0.0.1 loterie.ma
127.0.0.1 eurobet.bg
127.0.0.1 nostrabet.com
127.0.0.1 efirbet.com
127.0.0.1 7777.bg
127.0.0.1 toto.bg
127.0.0.1 lutrija.hr
127.0.0.1 sazka.cz
127.0.0.1 klasselotteriet.dk
127.0.0.1 lotto.de
127.0.0.1 lotto24.de
127.0.0.1 lotto.gmx.net
127.0.0.1 lotto.web.de
127.0.0.1 dielottozahlende.net
127.0.0.1 tipp24.com
127.0.0.1 westlotto.de
127.0.0.1 lottoland.com
127.0.0.1 lotto-thueringen.de
127.0.0.1 thelotter.com
127.0.0.1 lottohelden.de
127.0.0.1 lotto-sh.de
127.0.0.1 faber.de
127.0.0.1 lotto-berlin.de
127.0.0.1 gambling.com
127.0.0.1 opap.gr
127.0.0.1 lotto.is
127.0.0.1 szerencsejatek.hu
127.0.0.1 multilotto.com
127.0.0.1 szuperlotto.com
127.0.0.1 lottery.ie
127.0.0.1 national-lottery.co.uk
127.0.0.1 latloto.lv
127.0.0.1 loto.mk
127.0.0.1 lutrija.co.me
127.0.0.1 postcodeloterij.nl
127.0.0.1 nederlandseloterij.nl
127.0.0.1 statsloterij.nederlandseloterij.nl
127.0.0.1 lotto.pl
127.0.0.1 multipasko.pl
127.0.0.1 megalotto.pl
127.0.0.1 lotto-centrum.com
127.0.0.1 jogossantacasa.pt
127.0.0.1 loto.ro
127.0.0.1 stoloto.ru
127.0.0.1 lutrija.rs
127.0.0.1 tipos.sk
127.0.0.1 etipos.sk
127.0.0.1 loterija.si
127.0.0.1 eloterija.si
127.0.0.1 e-stave.com
127.0.0.1 loteriasyapuestas.es
127.0.0.1 juegos.loteriasyapuestas.es
127.0.0.1 msl.ua
127.0.0.1 healthlottery.co.uk
127.0.0.1 lotto.cn
127.0.0.1 bet.hkjc.com
127.0.0.1 pais.co.il
127.0.0.1 takarakuji-official.jp
127.0.0.1 lldj.com
127.0.0.1 macau-slot.com
127.0.0.1 galacasino.com
127.0.0.1 cashsweep.com.my
127.0.0.1 magnum4d.my
127.0.0.1 damacai.com.my
127.0.0.1 sportstoto.com.my
127.0.0.1 online.singaporepools.com
127.0.0.1 lotterien.at
127.0.0.1 nlotto.co.kr
127.0.0.1 nlb.lk
127.0.0.1 dlb.lk
127.0.0.1 taiwanlottery.com.tw
127.0.0.1 lotto.mthai.com
127.0.0.1 mpi.gov.tr
127.0.0.1 lotoquebec.com
127.0.0.1 loteries.lotoquebec.com
127.0.0.1 espacejeux.com
127.0.0.1 portail.lotoquebec.com
127.0.0.1 olg.ca
127.0.0.1 home.olg.ca
127.0.0.1 lottery.olg.ca
127.0.0.1 proline.ca
127.0.0.1 olgslotsandcasinos.ca
127.0.0.1 playolg.ca
127.0.0.1 cgaming.olg.ca
127.0.0.1 lottomax.ca
127.0.0.1 lotenal.gob.mx
127.0.0.1 loteria.com.ec
127.0.0.1 nationallottery.co.za
127.0.0.1 mylotto.co.nz
127.0.0.1 www.nationale-loterij.be
127.0.0.1 www.e-lotto.be
127.0.0.1 www.loterie-nationale.be
127.0.0.1 www.loterie.lu
127.0.0.1 www.e-loterie.ma
127.0.0.1 www.loterie.ma
127.0.0.1 www.eurobet.bg
127.0.0.1 www.nostrabet.com
127.0.0.1 www.efirbet.com
127.0.0.1 www.7777.bg
127.0.0.1 www.toto.bg
127.0.0.1 www.lutrija.hr
127.0.0.1 www.sazka.cz
127.0.0.1 www.klasselotteriet.dk
127.0.0.1 www.lotto.de
127.0.0.1 www.lotto24.de
127.0.0.1 www.lotto.gmx.net
127.0.0.1 www.lotto.web.de
127.0.0.1 www.dielottozahlende.net
127.0.0.1 www.tipp24.com
127.0.0.1 www.westlotto.de
127.0.0.1 www.lottoland.com
127.0.0.1 www.lotto-thueringen.de
127.0.0.1 www.thelotter.com
127.0.0.1 www.lottohelden.de
127.0.0.1 www.lotto-sh.de
127.0.0.1 www.faber.de
127.0.0.1 www.lotto-berlin.de
127.0.0.1 www.gambling.com
127.0.0.1 www.opap.gr
127.0.0.1 www.lotto.is
127.0.0.1 www.szerencsejatek.hu
127.0.0.1 www.multilotto.com
127.0.0.1 www.szuperlotto.com
127.0.0.1 www.lottery.ie
127.0.0.1 www.national-lottery.co.uk
127.0.0.1 www.latloto.lv
127.0.0.1 www.loto.mk
127.0.0.1 www.lutrija.co.me
127.0.0.1 www.postcodeloterij.nl
127.0.0.1 www.nederlandseloterij.nl
127.0.0.1 www.statsloterij.nederlandseloterij.nl
127.0.0.1 www.lotto.pl
127.0.0.1 www.multipasko.pl
127.0.0.1 www.megalotto.pl
127.0.0.1 www.lotto-centrum.com
127.0.0.1 www.jogossantacasa.pt
127.0.0.1 www.loto.ro
127.0.0.1 www.stoloto.ru
127.0.0.1 www.lutrija.rs
127.0.0.1 www.tipos.sk
127.0.0.1 www.etipos.sk
127.0.0.1 www.loterija.si
127.0.0.1 www.eloterija.si
127.0.0.1 www.e-stave.com
127.0.0.1 www.loteriasyapuestas.es
127.0.0.1 www.juegos.loteriasyapuestas.es
127.0.0.1 www.msl.ua
127.0.0.1 www.healthlottery.co.uk
127.0.0.1 www.lotto.cn
127.0.0.1 www.bet.hkjc.com
127.0.0.1 www.pais.co.il
127.0.0.1 www.takarakuji-official.jp
127.0.0.1 www.lldj.com
127.0.0.1 www.macau-slot.com
127.0.0.1 www.galacasino.com
127.0.0.1 www.cashsweep.com.my
127.0.0.1 www.magnum4d.my
127.0.0.1 www.damacai.com.my
127.0.0.1 www.sportstoto.com.my
127.0.0.1 www.online.singaporepools.com
127.0.0.1 www.lotterien.at
127.0.0.1 www.nlotto.co.kr
127.0.0.1 www.nlb.lk
127.0.0.1 www.dlb.lk
127.0.0.1 www.taiwanlottery.com.tw
127.0.0.1 www.lotto.mthai.com
127.0.0.1 www.mpi.gov.tr
127.0.0.1 www.lotoquebec.com
127.0.0.1 www.loteries.lotoquebec.com
127.0.0.1 www.espacejeux.com
127.0.0.1 www.portail.lotoquebec.com
127.0.0.1 www.olg.ca
127.0.0.1 www.home.olg.ca
127.0.0.1 www.lottery.olg.ca
127.0.0.1 www.proline.ca
127.0.0.1 www.olgslotsandcasinos.ca
127.0.0.1 www.playolg.ca
127.0.0.1 www.cgaming.olg.ca
127.0.0.1 www.lottomax.ca
127.0.0.1 www.lotenal.gob.mx
127.0.0.1 www.loteria.com.ec
127.0.0.1 www.nationallottery.co.za
127.0.0.1 www.mylotto.co.nz
127.0.0.1 onetpedia.net
127.0.0.1 galaksipokerqq.com
127.0.0.1 pokergolden.biz
127.0.0.1 ionwin88.net
127.0.0.1 cafecasino.lv
127.0.0.1 mrjackpotspins.com
127.0.0.1 cashstormslots.com
127.0.0.1 pikakasino.com
127.0.0.1 kalevalakasino.com
127.0.0.1 simppeli.com
127.0.0.1 wildz.com
127.0.0.1 kassu.com
127.0.0.1 campaign.rizk.com
127.0.0.1 fi.casiplay.com
127.0.0.1 in.casinoeuro.com
127.0.0.1 pelaa.com
127.0.0.1 fastbet.com
127.0.0.1 casinogods.com
127.0.0.1 kirsikka.com
127.0.0.1 slottyvegas.com
127.0.0.1 fortunelegends.com
127.0.0.1 promotions.betsafe.com
127.0.0.1 casinowinner.com
127.0.0.1 turbico.com
127.0.0.1 suomikasino.com
127.0.0.1 templenile.com
127.0.0.1 stakes.com
127.0.0.1 jackpotvillage.com
127.0.0.1 prontocasino.com
127.0.0.1 nopeampi.com
127.0.0.1 fi.888casino.com
127.0.0.1 karhukasino.com
127.0.0.1 start.duelz.com
127.0.0.1 promotion.eurolotto.com
127.0.0.1 hypercasino.com
127.0.0.1 wishmaker.com
127.0.0.1 kasinot.fi
File diff suppressed because it is too large Load Diff
+19
View File
@@ -0,0 +1,19 @@
# Title: Snuff hosts
127.0.0.1 bitcheese.net
127.0.0.1 bestgore.com
127.0.0.1 horriblevideos.com
127.0.0.1 documentingreality.com
127.0.0.1 deathaddict.com
127.0.0.1 deathandreality.com
127.0.0.1 gorebrasil.com
127.0.0.1 goregrish.com
127.0.0.1 leakreality.com
127.0.0.1 theync.com
127.0.0.1 miscopy.com
127.0.0.1 mixtape.moe
127.0.0.1 sickjunk.com
127.0.0.1 elblogdelnarco.com
127.0.0.1 kaotic.com
127.0.0.1 ogrish.tv
127.0.0.1 thepinsta.com
File diff suppressed because it is too large Load Diff
+296
View File
@@ -0,0 +1,296 @@
0.0.0.0 002.pinknotora.net
0.0.0.0 ac-pink.net
0.0.0.0 azzporn.com
0.0.0.0 babarooba.x.fc2.com
0.0.0.0 bbscamp.net
0.0.0.0 boyporn.pro
0.0.0.0 candybbwporn.com
0.0.0.0 ceporn.net
0.0.0.0 columbia-xxx.com
0.0.0.0 cream-pie-porn.tumblr.com
0.0.0.0 cymposium.com
0.0.0.0 deathbyporno2.chatango.com
0.0.0.0 deeps.net
0.0.0.0 dennou2.x.fc2.com
0.0.0.0 duga.jp
0.0.0.0 en.dmm.co.jp
0.0.0.0 eroerozip.com
0.0.0.0 esboss.com
0.0.0.0 explorejapan.pw
0.0.0.0 expo2.ranks1.apserver.net
0.0.0.0 fob.jp
0.0.0.0 freefullporno.info
0.0.0.0 freepornvs.com
0.0.0.0 fxporn.net
0.0.0.0 gaypinoyporn.chatango.com
0.0.0.0 gayporno.fm
0.0.0.0 gfporntube.com
0.0.0.0 hairytubeporno.com
0.0.0.0 hakusuiriki.tv
0.0.0.0 hentaipornpics.net
0.0.0.0 hitozumagazo.com
0.0.0.0 hiyoko0.x.fc2.com
0.0.0.0 home.uchu.co.jp
0.0.0.0 hornymatureporn.com
0.0.0.0 i-bbs.sijex.net
0.0.0.0 i-like-my-blondes-dirty.tumblr.com
0.0.0.0 idolzone.blog137.fc2.com
0.0.0.0 inaka.x.fc2.com
0.0.0.0 jams.kir.jp
0.0.0.0 jitsuroku.kir.jp
0.0.0.0 jkdaisuki.ad55.net
0.0.0.0 kyobibbs.ranks1.apserver.net
0.0.0.0 live.fc2.com
0.0.0.0 lolip.org
0.0.0.0 magopro2.ero-spo.com
0.0.0.0 marrion-av.com
0.0.0.0 megaporn.blogspot.es
0.0.0.0 mother-av.com
0.0.0.0 motherpornvideos.com
0.0.0.0 mutekiya.net
0.0.0.0 mvideoporno.xxx
0.0.0.0 nadeshiko.tv
0.0.0.0 niccori.jp
0.0.0.0 o-r-g-a-s-m-o-s.tumblr.com
0.0.0.0 pics.dmm.com
0.0.0.0 pornbimbo.com
0.0.0.0 porndude.com
0.0.0.0 pornhubpremium.com
0.0.0.0 pornjapanese.pro
0.0.0.0 pornocuanimale.online
0.0.0.0 pornoeggs.com
0.0.0.0 porntopic.com
0.0.0.0 pornve.com
0.0.0.0 pornvideoq.com
0.0.0.0 sexyisamazing.tumblr.com
0.0.0.0 shiroutotv.com
0.0.0.0 siroutoinfo.net
0.0.0.0 sirporno.xxx
0.0.0.0 skyhighpremium.com
0.0.0.0 sougouwiki.com
0.0.0.0 spc.undo.jp
0.0.0.0 sportseye.muvc.net
0.0.0.0 ssl.ktfactory.co.jp
0.0.0.0 star-porn.ml
0.0.0.0 suppinpin.com
0.0.0.0 surebbs.ranks1.apserver.net
0.0.0.0 switch1.jp
0.0.0.0 teatroporno.com
0.0.0.0 teppan-av.com
0.0.0.0 top.togeko.net
0.0.0.0 toujyuku.ranks1.apserver.net
0.0.0.0 venus-av.com
0.0.0.0 veporns.com
0.0.0.0 voyeurporntube.me
0.0.0.0 vqporn.com
0.0.0.0 www.100kabijin.com
0.0.0.0 www.3dvdiso.com
0.0.0.0 www.academic-co.jp
0.0.0.0 www.air-boob.com
0.0.0.0 www.akiba-online.com
0.0.0.0 www.akiba-web.com
0.0.0.0 www.aknr.com
0.0.0.0 www.alex-jg.co.jp
0.0.0.0 www.alicejapan.co.jp
0.0.0.0 www.amorz.com
0.0.0.0 www.animalijo.com
0.0.0.0 www.anna-and-hanako.jp
0.0.0.0 www.aquawave.co.jp
0.0.0.0 www.arashi-supergirl.com
0.0.0.0 www.arena-corp.com
0.0.0.0 www.aroma-p.com
0.0.0.0 www.art-sm.com
0.0.0.0 www.athenaeizou.co.jp
0.0.0.0 www.athenaeizou.com
0.0.0.0 www.attackers.net
0.0.0.0 www.attone.co.jp
0.0.0.0 www.audazweb.com
0.0.0.0 www.aurora-pro.com
0.0.0.0 www.av-a-box.com
0.0.0.0 www.av-apa.com
0.0.0.0 www.av-e-body.com
0.0.0.0 www.av-hibino.com
0.0.0.0 www.av-karma.com
0.0.0.0 www.av-opera.jp
0.0.0.0 www.avs-video.com
0.0.0.0 www.baby-baby-baby.cc
0.0.0.0 www.baltan-av.com
0.0.0.0 www.beauty-av.com
0.0.0.0 www.befreebe.com
0.0.0.0 www.bi-av.com
0.0.0.0 www.bibian-av.com
0.0.0.0 www.bigmorkal.com
0.0.0.0 www.bijinhyakka.jp
0.0.0.0 www.boots-yakata.com
0.0.0.0 www.bravo-bravo.net
0.0.0.0 www.btc.com
0.0.0.0 www.bullitt.jp
0.0.0.0 www.bz-zone.com
0.0.0.0 www.centervillage.co.jp
0.0.0.0 www.cheersuki.net
0.0.0.0 www.cherries.jp
0.0.0.0 www.choi-waru.com
0.0.0.0 www.cinemagic.co.jp
0.0.0.0 www.cocoa-soft.net
0.0.0.0 www.collector-web.com
0.0.0.0 www.comusume.net
0.0.0.0 www.crosscross.jp
0.0.0.0 www.crystal-eizou.jp
0.0.0.0 www.dasdas.jp
0.0.0.0 www.digital-ark.com
0.0.0.0 www.dmm.co.jp
0.0.0.0 www.dogma.co.jp
0.0.0.0 www.dse-web.com
0.0.0.0 www.dt01.co.jp
0.0.0.0 www.e-corona.com
0.0.0.0 www.elog-ch.net
0.0.0.0 www.emmanuelle-av.com
0.0.0.0 www.eroita.net
0.0.0.0 www.eroshearts.com
0.0.0.0 www.fa-pro.com
0.0.0.0 www.fantadream.com
0.0.0.0 www.fantasista-av.com
0.0.0.0 www.feitish.com
0.0.0.0 www.fitch-av.com
0.0.0.0 www.fullsail-av.com
0.0.0.0 www.fv-candy.co.jp
0.0.0.0 www.garcon-web.com
0.0.0.0 www.garcon1.com
0.0.0.0 www.gas-web.com
0.0.0.0 www.ge-kko.jp
0.0.0.0 www.glayz.co.jp
0.0.0.0 www.gloryquest.co.jp
0.0.0.0 www.gme-inc.net
0.0.0.0 www.hajimekikaku.com
0.0.0.0 www.hamajim.com
0.0.0.0 www.hatsudori.com
0.0.0.0 www.hmp.jp
0.0.0.0 www.hmvision.com
0.0.0.0 www.hot-et.com
0.0.0.0 www.hpsart.net
0.0.0.0 www.hrc-av.co.jp
0.0.0.0 www.hunter-pp.jp
0.0.0.0 www.i-dol.tv
0.0.0.0 www.ibworks.jp
0.0.0.0 www.ideapocket.com
0.0.0.0 www.ienergy1.com
0.0.0.0 www.ifrit-fv.net
0.0.0.0 www.indies-av.co.jp
0.0.0.0 www.j-model.co.jp
0.0.0.0 www.jade-net-home.com
0.0.0.0 www.jah.ne.jp
0.0.0.0 www.jewel-2001.com
0.0.0.0 www.jns-grp.net
0.0.0.0 www.kasakura.co.jp
0.0.0.0 www.kawaiikawaii.jp
0.0.0.0 www.kichu.jp
0.0.0.0 www.kirakira-av.com
0.0.0.0 www.km-produce.com
0.0.0.0 www.knights-visual.com
0.0.0.0 www.kobayashi-web.com
0.0.0.0 www.koyacho.com
0.0.0.0 www.ks-p.com
0.0.0.0 www.kuki.jp
0.0.0.0 www.kyosui.net
0.0.0.0 www.lady2.net
0.0.0.0 www.little-mango.com
0.0.0.0 www.love2bbs.com
0.0.0.0 www.lustrous2ft.com
0.0.0.0 www.madonna-av.com
0.0.0.0 www.maria-av.com
0.0.0.0 www.marx.co.jp
0.0.0.0 www.max-a.co.jp
0.0.0.0 www.maxing.jp
0.0.0.0 www.mediabank.co.jp
0.0.0.0 www.mgstage.com
0.0.0.0 www.milky-cat.com
0.0.0.0 www.milky.tv
0.0.0.0 www.milkyprin.com
0.0.0.0 www.milu-av.com
0.0.0.0 www.minimum-av.com
0.0.0.0 www.mobs.jp
0.0.0.0 www.moodyz.com
0.0.0.0 www.mousouzoku-av.com
0.0.0.0 www.mozakin.com
0.0.0.0 www.museum-next.jp
0.0.0.0 www.mutekimuteki.com
0.0.0.0 www.mvg.jp
0.0.0.0 www.nagae-style.com
0.0.0.0 www.nakedfilm.jp
0.0.0.0 www.nanpa-japan.jp
0.0.0.0 www.naturalhigh.co.jp
0.0.0.0 www.next11.co.jp
0.0.0.0 www.night24.com
0.0.0.0 www.non-non.info
0.0.0.0 www.nuruai.com
0.0.0.0 www.onair-e-net.com
0.0.0.0 www.oppai-av.com
0.0.0.0 www.otona-times.com
0.0.0.0 www.p-fw.co.jp
0.0.0.0 www.p-jade.com
0.0.0.0 www.palplanning.com
0.0.0.0 www.pierrot-net.jp
0.0.0.0 www.pinknotora.net
0.0.0.0 www.plum-web.com
0.0.0.0 www.pornograph.jp
0.0.0.0 www.premium-beauty.com
0.0.0.0 www.prestige-av.com
0.0.0.0 www.r-e-d.jp
0.0.0.0 www.radix-net.com
0.0.0.0 www.ran-maru.com
0.0.0.0 www.realworks.tv
0.0.0.0 www.rocket-inc.net
0.0.0.0 www.rookie-av.jp
0.0.0.0 www.royalart.co.jp
0.0.0.0 www.ruby-av.com
0.0.0.0 www.s-cute.com
0.0.0.0 www.s1s1s1.com
0.0.0.0 www.sadistic-v.com
0.0.0.0 www.saiminou.com
0.0.0.0 www.sakurakikaku.net
0.0.0.0 www.sexia.tv
0.0.0.0 www.shanimuni.net
0.0.0.0 www.shinoda-av.com
0.0.0.0 www.shitagi.org
0.0.0.0 www.shuttle-japan.com
0.0.0.0 www.side-b.tv
0.0.0.0 www.sod.co.jp
0.0.0.0 www.sodc.co.jp
0.0.0.0 www.sosoru-web.com
0.0.0.0 www.sq4610.com
0.0.0.0 www.starparadise.jp
0.0.0.0 www.styleart.jp
0.0.0.0 www.sugarworks.co.jp
0.0.0.0 www.sukebegazou.com
0.0.0.0 www.syukou-club.com
0.0.0.0 www.takara-tv.jp
0.0.0.0 www.takeone-nagoya.com
0.0.0.0 www.tameikegoro.jp
0.0.0.0 www.tenka1.com
0.0.0.0 www.tigermeisters.com
0.0.0.0 www.tma.co.jp
0.0.0.0 www.to-satsu.com
0.0.0.0 www.tokyomotion.net
0.0.0.0 www.top1-net.com
0.0.0.0 www.town-net.jp/post
0.0.0.0 www.tumanude.com
0.0.0.0 www.uandk-idea.co.jp
0.0.0.0 www.uicupid.net
0.0.0.0 www.v-av.com
0.0.0.0 www.vandr.co.jp
0.0.0.0 www.videomanial.co.jp
0.0.0.0 www.vr-products.co.jp
0.0.0.0 www.waap.co.jp
0.0.0.0 www.wanz-factory.com
0.0.0.0 www.woman-otona.com
0.0.0.0 www.yamiboard.com
0.0.0.0 www.yellow-movie.com
0.0.0.0 www.yellowbox.co.jp
0.0.0.0 www.yellowduck.jp
0.0.0.0 www.zetton-av.com
0.0.0.0 www.zeus-web.net
0.0.0.0 www2.giga-jp.com
0.0.0.0 xvideosporno.org
0.0.0.0 xxxpornasian.com
0.0.0.0 yamidas.yamiboard.com
0.0.0.0 yespornplease.com
+9
View File
@@ -0,0 +1,9 @@
{
"name": "Tiuxo hostlist - pornography",
"description": "Categorized hosts files for DNS based content blocking",
"homeurl": "https://github.com/tiuxo/hosts",
"frequency": "occasional",
"issues": "https://github.com/tiuxo/hosts/issues",
"url": "https://raw.githubusercontent.com/tiuxo/hosts/master/porn",
"license": "CC BY 4.0"
}
+1 -11
View File
@@ -12,7 +12,7 @@ Currently, this repo includes data sources for four extensions:
Here are some sample calls, which vary which extensions are included.
**Using Python 3**:
**Using the `updateHostsFile.py` script**:
Create a hosts file that includes domain blocking for porn, social media, and gambling.
@@ -22,13 +22,3 @@ or, in short form:
python3 updateHostsFile.py -a -e porn social gambling
**Using Python 2.7**:
python updateHostsFile.py -auto --extensions porn social gambling
or, in short form:
python updateHostsFile.py -a -e porn social gambling
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+4
View File
@@ -0,0 +1,4 @@
0.0.0.0 mbga.jp
0.0.0.0 mixi.jp
0.0.0.0 mixch.tv
0.0.0.0 lobi.co
+9
View File
@@ -0,0 +1,9 @@
{
"name": "Tiuxo hostlist - social",
"description": "Categorized hosts files for DNS based content blocking",
"homeurl": "https://github.com/tiuxo/hosts",
"frequency": "occasional",
"issues": "https://github.com/tiuxo/hosts/issues",
"url": "https://raw.githubusercontent.com/tiuxo/hosts/master/social",
"license": "CC BY 4.0"
}
+11031 -35266
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright © 2018 Steven Black
Copyright © 2020 Steven Black
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the “Software”), to deal in
+79 -49
View File
@@ -7,9 +7,9 @@
from __future__ import print_function
import sys
import argparse
import subprocess
import sys
def print_failure(msg):
@@ -54,59 +54,89 @@ def update_readme_file():
def main():
parser = argparse.ArgumentParser(description="Creates custom hosts "
"file from hosts stored in "
"data subfolders.")
parser = argparse.ArgumentParser(
description="Creates custom hosts "
"file from hosts stored in "
"data subfolders."
)
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_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_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")
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"
)
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",
"-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",
"-o",
"alternates/fakenews-gambling-porn-social",
"-e",
"fakenews",
"gambling",
"porn",
"social",
)
update_hosts_file("-a", "-n")
View File
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "hosts",
"version": "1.4.40",
"version": "2.5.39",
"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": "",
"scripts": {
@@ -34,6 +34,6 @@
},
"homepage": "https://github.com/StevenBlack/hosts#readme",
"devDependencies": {
"release-it": "^4.2.0"
"release-it": "^12.4.3"
}
}
+90 -70
View File
@@ -1,57 +1,55 @@
----
**Take Note!** We are in the process of [dropping support for Python 2.7](https://github.com/StevenBlack/hosts/issues/729).
Soon, to self-generate hosts files, you'll need to use Python 3.
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
----
![readme](https://user-images.githubusercontent.com/36028424/40330477-9df2c2e0-5d7f-11e8-8ac8-511d719a5eae.png)
[![latest release](https://img.shields.io/github/release/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/releases)
[![license](https://img.shields.io/github/license/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/blob/master/license.txt)
[![repo size](https://img.shields.io/github/repo-size/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts)
[![contributors](https://img.shields.io/github/contributors/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/graphs/contributors)
[![Build Status](https://travis-ci.org/StevenBlack/hosts.svg?branch=master)](https://travis-ci.org/StevenBlack/hosts)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
[![commits since last release](https://img.shields.io/github/commits-since/StevenBlack/hosts/latest.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![last commit](https://img.shields.io/github/last-commit/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![commit activity](https://img.shields.io/github/commit-activity/y/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
# Unified hosts file with base extensions
This repository consolidates several reputable `hosts` files, and merges them
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
* Last updated: **July 30 2018**.
* Here's the [raw hosts file with base extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) containing 61,386 entries.
* Last updated: **January 07 2020**.
* Here's the [raw hosts file with base extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) containing 39,773 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
The **Non GitHub mirror** is the link to use for some hosts file managers like
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
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) | 61,386 | [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) | 62,055 | [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) | 63,004 | [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) | 71,464 | [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) | 62,544 | [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) | 63,673 | [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) | 72,133 | [link](http://sbc.io/hosts/alternates/fakenews-porn/hosts)
Unified hosts **+ fakenews + social** | [Readme](https://github.com/StevenBlack/hosts/blob/master/alternates/fakenews-social/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) | 63,213 | [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) | 73,082 | [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) | 64,162 | [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) | 72,621 | [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) | 73,751 | [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) | 64,831 | [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) | 73,290 | [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) | 74,239 | [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) | 74,908 | [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) | 39,773 | [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) | 40,715 | [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) | 42,075 | [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) | 55,506 | [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) | 42,249 | [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) | 43,017 | [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) | 56,448 | [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) | 43,191 | [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) | 57,808 | [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) | 44,551 | [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) | 57,981 | [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) | 58,750 | [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) | 45,493 | [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) | 58,923 | [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) | 60,283 | [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) | 61,225 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -67,52 +65,47 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
Malware Domain List | Malware Domain List is a non-commercial community project. |[link](https://www.malwaredomainlist.com/) | [raw](https://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](https://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
hostsVN | Hosts block ads of Vietnamese |[link](https://github.com/bigdargon/hostsVN) | [raw](https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN) | occasionally | MIT | [issues](https://github.com/bigdargon/hostsVN/issues)
add.Spam | Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Dan Pollock – [someonewhocares](https://someonewhocares.org) | How to make the internet not suck (as much). |[link](https://someonewhocares.org/hosts/) | [raw](https://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
MVPS hosts file | The purpose of this site is to provide the user with a high quality custom HOSTS file. |[link](http://winhelp2002.mvps.org/) | [raw](http://winhelp2002.mvps.org/hosts.txt) | monthly | CC BY-NC-SA 4.0 | [issues](mailto:winhelp2002@gmail.com)
yoyo.org | Blocking with ad server and tracking server hostnames. |[link](https://pgl.yoyo.org/adservers/) | [raw](https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0) | frequently | | [issues](mailto:pgl@yoyo.org)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | 'non-commercial with attribution' | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
Mitchell Krog's - Badd Boyz Hosts | Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers |[link](https://github.com/mitchellkrogza/Badd-Boyz-Hosts) | [raw](https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts) | weekly | MIT | [issues](https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues)
UncheckyAds | Windows installers ads sources sites based on https://unchecky.com/ content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts) | occasionally | | [issues](https://github.com/FadeMind/hosts.extras/issues)
add.2o7Net | 2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://github.com/azet12/KADhosts) | [raw](https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt) | frequently | GPLv3 | [issues](https://github.com/azet12/KADhosts/issues)
KADhosts | Fraud/adware/scam websites. |[link](https://kadantiscam.netlify.com) | [raw](https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt) | frequently | CC BY-SA 4.0 | [issues](https://github.com/PolishFiltersTeam/KADhosts/issues)
AdAway | AdAway is an open source ad blocker for Android using the hosts file. |[link](https://adaway.org/) | [raw](https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt) | occasionally | CC BY 3.0 | [issues](https://github.com/AdAway/AdAway/issues)
add.Risk | Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content. |[link](https://github.com/FadeMind/hosts.extras) | [raw](https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts) | occasionally | GPLv3+ | [issues](https://github.com/FadeMind/hosts.extras/issues)
Tiuxo hostlist - ads | Categorized hosts files for DNS based content blocking |[link](https://github.com/tiuxo/hosts) | [raw](https://raw.githubusercontent.com/tiuxo/hosts/master/ads) | occasional | CC BY 4.0 | [issues](https://github.com/tiuxo/hosts/issues)
## Extensions
The unified hosts file is extensible. Extensions are used to block domains by category.
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 are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
Data for extensions is 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
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.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).
To run unit tests, in the top level directory, just run:
To run unit tests, in the top level directory, run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -120,10 +113,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -144,15 +133,14 @@ 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.
`--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`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--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.
@@ -187,7 +175,7 @@ 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 desire.
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.
@@ -228,11 +216,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -263,13 +251,12 @@ lines to your hosts file will do it:
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
## Why not use `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -277,15 +264,19 @@ We tried that. Using `0` doesn't work universally.
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**mac OS (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
## Updating hosts file on Windows
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
work is required due to compatibility issues in implementing some of the functionality
for Windows. It is preferable to run the batch file as follows:
On Linux and Mac OS X, 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:
```
updateHostsWindows.bat
@@ -340,7 +331,7 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
@@ -354,6 +345,21 @@ Open a Terminal and run with root privileges:
**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:
```
sudo sysrc nscd_enable="YES"
sudo service nscd start
```
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
```
hosts: cache files dns
```
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
### Mac OS X
@@ -365,9 +371,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
## Release management
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
This repository uses [Release-It!](https://webpro.github.io/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
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
@@ -376,7 +382,7 @@ The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
2. provide situation-appropriate extensions,
3. de-dupe the resultant combined list,
@@ -396,10 +402,16 @@ 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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily 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.
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate 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
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
* [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.
@@ -408,4 +420,12 @@ devices under a variety of operating systems.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it 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). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
## 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).
+1 -1
View File
File diff suppressed because one or more lines are too long
+68 -48
View File
@@ -1,23 +1,19 @@
----
**Take Note!** We are in the process of [dropping support for Python 2.7](https://github.com/StevenBlack/hosts/issues/729).
Soon, to self-generate hosts files, you'll need to use Python 3.
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
----
![readme](https://user-images.githubusercontent.com/36028424/40330477-9df2c2e0-5d7f-11e8-8ac8-511d719a5eae.png)
[![latest release](https://img.shields.io/github/release/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/releases)
[![license](https://img.shields.io/github/license/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/blob/master/license.txt)
[![repo size](https://img.shields.io/github/repo-size/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts)
[![contributors](https://img.shields.io/github/contributors/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/graphs/contributors)
[![Build Status](https://travis-ci.org/StevenBlack/hosts.svg?branch=master)](https://travis-ci.org/StevenBlack/hosts)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
[![commits since last release](https://img.shields.io/github/commits-since/StevenBlack/hosts/latest.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![last commit](https://img.shields.io/github/last-commit/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![commit activity](https://img.shields.io/github/commit-activity/y/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
# Unified hosts file @EXTENSIONS_HEADER@
This repository consolidates several reputable `hosts` files, and merges them
@@ -30,6 +26,8 @@ into a unified hosts file with duplicates removed. A variety of tailored hosts
### List of all hosts file variants
This repository offers [15 different host file variants](https://github.com/StevenBlack/hosts/tree/master/alternates), in addition to the base variant.
The **Non GitHub mirror** is the link to use for some hosts file managers like
[Hostsman for Windows](http://www.abelhadigital.com/hostsman) that don't work
with Github download links.
@@ -52,36 +50,31 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
## Extensions
The unified hosts file is extensible. Extensions are used to block domains by category.
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 are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
Data for extensions is 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
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.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).
To run unit tests, in the top level directory, just run:
To run unit tests, in the top level directory, run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -89,10 +82,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -113,15 +102,14 @@ 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.
`--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`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--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.
@@ -156,7 +144,7 @@ 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 desire.
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.
@@ -197,11 +185,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us. So this creates more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -232,13 +220,12 @@ lines to your hosts file will do it:
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown, or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
## Why not use `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -246,15 +233,19 @@ We tried that. Using `0` doesn't work universally.
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**mac OS (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
## Updating hosts file on Windows
On Linux and Mac OS X, you can simply run the Python script, but on Windows, more
work is required due to compatibility issues in implementing some of the functionality
for Windows. It is preferable to run the batch file as follows:
On Linux and Mac OS X, 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:
```
updateHostsWindows.bat
@@ -309,7 +300,7 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
@@ -323,6 +314,21 @@ Open a Terminal and run with root privileges:
**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:
```
sudo sysrc nscd_enable="YES"
sudo service nscd start
```
Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
```
hosts: cache files dns
```
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
### Mac OS X
@@ -334,9 +340,9 @@ sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
## Release management
This repository uses [Release-It!](https://webpro.github.io/release-it/), an excellent CLI release
This repository uses [Release-It!](https://webpro.github.io/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
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
@@ -345,7 +351,7 @@ The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
2. provide situation-appropriate extensions,
3. de-dupe the resultant combined list,
@@ -365,10 +371,16 @@ 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 AutUpdate package is purpose-built for this unified hosts project as well as in active development by community members. It's sophisticated enough to allow any novice the ability to install and uninstall the blacklist of their choosing to their local hosts file and keep it automatically up to date, while also being minimal enough to be able to be easily 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.
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts AutUpdate 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
* [Hostile](https://github.com/feross/hostile) is a nifty command line utility to easily add or remove domains from your hosts file. If our hosts files are too aggressive for you, you can use `hostile` to remove domains, or you can use `hostile` in a bash script to automate a post process each time you download fresh versions of hosts.
* [macOS Scripting for Configuration, Backup and Restore](https://github.com/tiiiecherle/osx_install_config) helps customizing, re-installing and using macOS. It also provides a [script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/hosts_file_generator.sh) to install and update the hosts file using this project on macOS. In combination with a [launchd](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/launchd_and_script/com.hostsfile.install_update.plist) it updates the hosts file every x days (default is 4). To install both download the github repo and run the [install script](https://github.com/tiiiecherle/osx_install_config/blob/master/09_launchd/9b_run_on_boot/root/1_hosts_file/install_hosts_file_generator_and_launchdservice.sh) from the directory one level up.
* [Pi-hole](https://pi-hole.net/) is a network-wide DHCP server and ad blocker that runs on [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). Pi-hole uses this repository as one of its sources. This is a very interesting project to setup yourself, or you can [buy one pre-loaded](https://uk.pi-supply.com/products/pi-hole-kit-network-wide-ad-blocker).
* [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.
@@ -377,4 +389,12 @@ devices under a variety of operating systems.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it 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). Script is short and easily edited, also has a short document attached with notes on dnsmasq setup.
## 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).
+2 -3
View File
@@ -1,3 +1,2 @@
lxml==4.1.1
beautifulsoup4==4.6.0
mock==2.0.0
lxml>=4.2.4
beautifulsoup4>=4.6.1
-3
View File
@@ -1,3 +0,0 @@
mock==2.0.0
lxml==4.1.1
beautifulsoup4==4.6.0
+401 -366
View File
File diff suppressed because it is too large Load Diff
+399 -216
View File
File diff suppressed because it is too large Load Diff
+44 -13
View File
@@ -1,3 +1,4 @@
::
:: This script will first create a backup of the original or current hosts
:: file and save it in a file titled "hosts.skel"
::
@@ -5,26 +6,56 @@
:: will be copied to the proper path. Next, the DNS cache will be refreshed.
::
:: THIS BAT FILE MUST BE LAUNCHED WITH ADMINISTRATOR PRIVILEGES
:: Admin privileges script based on https://stackoverflow.com/a/10052222
::
::
@ECHO OFF
TITLE Update Hosts
:: Check if we are administrator. If not, exit immediately.
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" (
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"
) ELSE (
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if %ERRORLEVEL% NEQ 0 (
ECHO This script must be run with administrator privileges!
ECHO Please launch command prompt as administrator. Exiting...
EXIT /B 1
)
if not exist "%WINDIR%\System32\drivers\etc\hosts.skel" (
COPY %WINDIR%\System32\drivers\etc\hosts %WINDIR%\System32\drivers\etc\hosts.skel
)
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )
:: Update hosts file
python updateHostsFile.py -a
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
set params= %*
echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params:"=""%", "", "runas", 1 >> "%temp%\getadmin.vbs"
:: Move new hosts file in-place
COPY hosts %WINDIR%\System32\drivers\etc\
"%temp%\getadmin.vbs"
del "%temp%\getadmin.vbs"
exit /B
:: Flush the DNS cache
ipconfig /flushdns
:gotAdmin
pushd "%CD%"
CD /D "%~dp0"
:BackupHosts
:: Backup default hosts file
if not exist "%WINDIR%\System32\drivers\etc\hosts.skel" (
COPY %WINDIR%\System32\drivers\etc\hosts %WINDIR%\System32\drivers\etc\hosts.skel
)
:UpdateHosts
:: Update hosts file
python updateHostsFile.py --auto --minimise
:: Move new hosts file in-place
COPY hosts %WINDIR%\System32\drivers\etc\
:: Flush the DNS cache
ipconfig /flushdns
:: Summary note
pause
+40 -86
View File
@@ -5,37 +5,31 @@
#
# This Python script will update the readme files in this repo.
from string import Template
import os
import sys
import time
import json
import os
import time
from string import Template
# Project Settings
BASEDIR_PATH = os.path.dirname(os.path.realpath(__file__))
README_TEMPLATE = os.path.join(BASEDIR_PATH, 'readme_template.md')
README_FILENAME = 'readme.md'
README_TEMPLATE = os.path.join(BASEDIR_PATH, "readme_template.md")
README_FILENAME = "readme.md"
README_DATA_FILENAME = "readmeData.json"
# Detecting Python 3 for version-dependent implementations
PY3 = sys.version_info >= (3, 0)
def main():
s = Template('${description} | [Readme](https://github.com/StevenBlack/'
'hosts/blob/master/${location}readme.md) | '
'[link](https://raw.githubusercontent.com/StevenBlack/'
'hosts/master/${location}hosts) | '
'${fmtentries} | '
'[link](http://sbc.io/hosts/${location}hosts)')
with open(README_DATA_FILENAME, 'r') as f:
s = Template(
"${description} | [Readme](https://github.com/StevenBlack/"
"hosts/blob/master/${location}readme.md) | "
"[link](https://raw.githubusercontent.com/StevenBlack/"
"hosts/master/${location}hosts) | "
"${fmtentries} | "
"[link](http://sbc.io/hosts/${location}hosts)"
)
with open(README_DATA_FILENAME, "r") as f:
data = json.load(f)
if PY3:
keys = list(data.keys())
else:
keys = data.keys()
keys = list(data.keys())
# Sort by the number of en-dashes in the key
# and then by the key string itself.
@@ -45,10 +39,11 @@ def main():
for key in keys:
data[key]["fmtentries"] = "{:,}".format(data[key]["entries"])
if key == "base":
data[key]["description"] = 'Unified hosts = **(adware + malware)**'
data[key]["description"] = "Unified hosts = **(adware + malware)**"
else:
data[key]["description"] = ('Unified hosts **+ ' +
key.replace("-", " + ") + '**')
data[key]["description"] = (
"Unified hosts **+ " + key.replace("-", " + ") + "**"
)
toc_rows += s.substitute(data[key]) + "\n"
@@ -60,10 +55,13 @@ def main():
"issues": "",
"url": "",
"license": "",
"issues": ""}
"issues": "",
}
t = Template('${name} | ${description} |[link](${homeurl})'
' | [raw](${url}) | ${frequency} | ${license} | [issues](${issues}) ')
t = Template(
"${name} | ${description} |[link](${homeurl})"
" | [raw](${url}) | ${frequency} | ${license} | [issues](${issues}) "
)
for key in keys:
extensions = key.replace("-", ", ")
@@ -79,66 +77,22 @@ def main():
this_row.update(source)
source_rows += t.substitute(this_row) + "\n"
with open(os.path.join(data[key]["location"],
README_FILENAME), "wt") as out:
with open(os.path.join(data[key]["location"], README_FILENAME), "wt") as out:
for line in open(README_TEMPLATE):
line = line.replace('@GEN_DATE@', time.strftime("%B %d %Y",
time.gmtime()))
line = line.replace('@EXTENSIONS@',
decode_line(extensions_str))
line = line.replace('@EXTENSIONS_HEADER@',
decode_line(extensions_header))
line = line.replace('@NUM_ENTRIES@',
"{:,}".format(data[key]["entries"]))
line = line.replace('@SUBFOLDER@',
decode_line(os.path.join(
data[key]["location"], '')))
line = line.replace('@TOCROWS@',
decode_line(toc_rows))
line = line.replace('@SOURCEROWS@',
decode_line(source_rows))
out.write(decode_line(line))
def decode_line(line):
"""
Python 2 compatible method for decoding unicode lines.
Parameters
----------
line : str
The unicode string to decode.
Returns
-------
decoded_str : str
Decoded unicode string.
"""
# Python 3.x has no unicode issues.
if PY3:
return line
# The biggest Python 2.x compatibility issue is the decoding of the
# en-dash. It either takes the form of u"\u2013" or "\xe2\x80\x93."
#
# This attempts to convert "\xe2\x80\x93" to u"\u2013" if necessary.
# If the character is already in the form of u"\u2013," this will
# raise an UnicodeEncodeError.
#
# In general, this line of code will allow us to convert unicode,
# UTF-8 encoded characters into pure unicode.
try:
line = line.decode("UTF-8")
except UnicodeEncodeError:
pass
# Replace u"\u2013" with the en-dash, so we now can decode.
#
# We can add additional "replace" lines in case there are other unicode
# literals that Python 2.x cannot handle.
line = line.replace(u"\u2013", "-")
return str(line.decode("UTF-8"))
line = line.replace(
"@GEN_DATE@", time.strftime("%B %d %Y", time.gmtime())
)
line = line.replace("@EXTENSIONS@", extensions_str)
line = line.replace("@EXTENSIONS_HEADER@", extensions_header)
line = line.replace(
"@NUM_ENTRIES@", "{:,}".format(data[key]["entries"])
)
line = line.replace(
"@SUBFOLDER@", os.path.join(data[key]["location"], "")
)
line = line.replace("@TOCROWS@", toc_rows)
line = line.replace("@SOURCEROWS@", source_rows)
out.write(line)
if __name__ == "__main__":
View File