Compare commits

..
1351 Commits
Author SHA1 Message Date
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
StevenBlack d0af61d0ef Release 1.4.40 2018-07-30 19:12:40 -04:00
StevenBlack f9d450d15b Updates from yoyo.org, someonewhocares.org, lightswitch05, and CoinBlockerList. 2018-07-30 19:10:05 -04:00
StevenBlack 158b9b5e81 Release 1.4.39 2018-07-26 15:08:42 -04:00
StevenBlack 1a1c2c9f7d Small tweak to the readme_template.md file. 2018-07-26 15:08:04 -04:00
StevenBlack b1e7107f03 Updates from yoyo.org, someonewhocares.org, and lightswitch05. 2018-07-26 15:06:21 -04:00
StevenBlack 78eed5ae2c Issue #729: fix - add a notice to the readme_template.md that we are soon dropping support for Python 2. 2018-07-26 15:04:29 -04:00
Steven Black 38432519c7 Merge pull request #726 from lightswitch05/feature/switch-to-https
Update malwaredomainlist and someonewhocares to use https.
2018-07-23 17:15:44 -04:00
Steven Black 5ada5a7725 Merge pull request #723 from anudeepND/master
New telemetry domains
2018-07-23 17:14:35 -04:00
Anudeep 78a7e0e92b Added talk99.cn domains
https://github.com/StevenBlack/hosts/issues/725
2018-07-23 21:18:53 +05:30
Daniel e4e0dd21f0 Update malwaredomainlist and someonewhocares to use https. 2018-07-23 09:57:12 -04:00
StevenBlack 699127b037 Release 1.4.38 2018-07-23 09:23:10 -04:00
StevenBlack a18189faf0 Updates from yoyo.org, someonewhocares.org, lightswitch05, KADhosts, CoinBlockerList, and Badd-Boyz. 2018-07-23 09:22:41 -04:00
Anudeep 4071af2e18 Removed analytics.twitter.com - already blocked 2018-07-20 20:10:40 +05:30
Anudeep b237a86ccf New telemetry domains 2018-07-20 20:05:55 +05:30
StevenBlack bb9a732aa1 Release 1.4.37 2018-07-16 20:53:49 -04:00
StevenBlack e75e4d483a Updates from yoyo.org, UncheckyAds, someonewhocares.org, lightswitch05, KADhosts, CoinBlockerList, and add.Spam, add.Risk, and add.Dead. 2018-07-16 20:53:29 -04:00
StevenBlack 74f7e979e5 Release 1.4.36 2018-07-11 23:56:48 -04:00
StevenBlack 92e25984e7 Updates from someonewhocares.org, mvps.org, lightswitch05, CoinBlockerList, and Badd-Boyz. 2018-07-11 23:56:28 -04:00
StevenBlack c164e687f6 Release 1.4.35 2018-07-09 20:53:23 -04:00
StevenBlack 8a1a4ad77f Updates from Sinfonietta, someonewhocares.org, and lightswitch05. 2018-07-09 20:53:02 -04:00
StevenBlack b8a9821a6e Release 1.4.34 2018-07-06 16:45:15 -04:00
StevenBlack 3f6b6ce2c6 Updates from yoyo.org, someonewhocares.org, lightswitch05, and CoinBlockerList. 2018-07-06 16:45:03 -04:00
Steven Black 66250c252d Release 1.4.33 2018-07-04 00:22:52 -04:00
Steven Black 849887a4df Updates from sinfonietta, and lightswitch05. 2018-07-04 00:22:31 -04:00
Steven Black 25832ebd85 Issue #701: fix - block the userstyles chrome extension. 2018-07-04 00:18:42 -04:00
Steven Black 39d68845b2 Merge pull request #702 from anudeepND/master
TVPage domains
2018-07-03 13:12:52 -04:00
Anudeep 9af70297dd Added tvpage domains 2018-07-03 20:06:48 +05:30
StevenBlack 2e59d4c900 Release 1.4.32 2018-06-30 10:09:23 -04:00
StevenBlack 1026878f04 New data from clefspeare13, yoyo.org, and lightswitch05. 2018-06-30 10:09:06 -04:00
StevenBlack f13f51831f www.bet365.com – scum site associated with FIFA 2018 streaming. 2018-06-30 10:07:05 -04:00
StevenBlack 4a46ca54fe Another scum site associated with FIFA 2018 streaming. 2018-06-30 10:05:59 -04:00
StevenBlack cf84dde588 More FIFA 2018 scum. 2018-06-28 15:30:58 -04:00
StevenBlack e5ff7316c4 Release 1.4.31 2018-06-28 14:36:24 -04:00
StevenBlack 6aec9a021e New data from sinfonietta, someonewhocares.org, lightswitch05, and CoinBlockerList. 2018-06-28 14:36:13 -04:00
StevenBlack eace7978b1 Release 1.4.30 2018-06-28 14:33:28 -04:00
StevenBlack a43b4dcdf0 FIFA 2018 scum. 2018-06-28 14:33:06 -04:00
Steven Black 7b9ee75cc3 Merge pull request #694 from EduardoBautista/patch-1
Mention that Hulu.com will be excluded if running --auto
2018-06-28 09:53:22 -04:00
Eduardo Bautista 28c8ebca1c Mention that Hulu.com will be excluded if running --auto 2018-06-28 02:09:46 -05:00
Steven Black c999983bee Merge pull request #680 from xetorixik/master
Update cws.conviva.com tracking method
2018-06-25 22:00:00 -04:00
xetorixik dc75f6deb9 Update commit
Update commit as discussed here https://github.com/StevenBlack/hosts/pull/680#issuecomment-399800313 and advised there: https://github.com/StevenBlack/hosts/pull/680#pullrequestreview-131409108
2018-06-26 03:46:18 +02:00
Steven Black e09b6c14b1 Release 1.4.29 2018-06-24 20:31:52 -04:00
Steven Black f7e978ec9e updates from yoyo.org, lightswitch05, and CoinBlockerList. 2018-06-24 20:31:36 -04:00
Steven Black 48c9f2ba3f Merge pull request #677 from anudeepND/master
Xiaomi tracking and suspicious domains
2018-06-24 20:14:27 -04:00
Steven Black 9452bda0c9 Merge pull request #682 from someonefamous/patch-2
Fix typos in readme template
2018-06-23 23:41:27 -04:00
someonefamous f96833b33b Fix typos in readme template
Fixes a couple of typos in readme (template), and updates 2 places that refer to the hosts file as a 'folder'.
2018-06-24 13:28:36 +10:00
xetorixik 637c2d9d98 Update cws.conviva.com tracking method
As shown at https://github.com/StevenBlack/hosts/pull/587 cws.conviva.com is already present.
The problem is that the conviva.com tracking method has changed so the blacklist should be changed.

Previously, cws.conviva.com tracked non-generic by cws.conviva.com.
This has changed to unique, specific via be43a77aab46b0546578grgrtgr3d4ba6506d488.cws.conviva.com (example).

Various programs like Ad-blockers have the possibility to use wildcards.
In order to keep it so generally working, it seems wise to block the entire domain.

I tested it with Horizon (local TV service provider), and even though I opted for opt-out of analitics viewing data, it is still being tracked.
Therefore this one should be added immediately.
2018-06-23 20:52:31 +02:00
Anudeep 429f0a324c Added flash.sec.intl.miui.com 2018-06-23 12:08:31 +05:30
Anudeep 7890e431bc Xiaomi tracking and suspicious domains 2018-06-23 12:00:32 +05:30
StevenBlack ada6d19216 Release 1.4.28 2018-06-20 10:23:23 -04:00
StevenBlack fbf299692a New data from someonewhocares.org, and lightswitch05. 2018-06-20 10:23:10 -04:00
StevenBlack 26d74f7537 Remove domains with invalid underscores in their names. This fixes #674. 2018-06-19 19:07:02 -04:00
StevenBlack 5e9ca3c8fd Release 1.4.27 2018-06-18 21:12:19 -04:00
StevenBlack 8645172583 New data from someonewhocares.org, and lightswitch05. 2018-06-18 21:11:53 -04:00
Steven Black 70a195a776 Merge pull request #671 from mebigfatguy/master
update readme to include instructions for clearing dns cache on Mint
2018-06-18 21:02:43 -04:00
Steven Black 2246df0c0b Merge pull request #672 from Edern76/patch-1
Added RedShell analytics domains to blocked hosts.
2018-06-18 16:35:25 -04:00
Dave Brosius e004045111 update readme to include instructions for clearing dns cache on Linux Mint 2018-06-18 14:53:12 -04:00
Gawein LE GOFF e8592cc019 Added RedShell analytics domains to blocked hosts. 2018-06-18 20:36:08 +02:00
StevenBlack cc797e202e Release 1.4.26 2018-06-17 23:42:41 -04:00
StevenBlack 5b6be38e65 Updates from Lightswitch05, and CoinBlockerList. 2018-06-17 23:42:20 -04:00
StevenBlack 8f11e312ba Nullifying commit 1d1c36cd of Issue #669. 2018-06-17 23:33:45 -04:00
Steven Black 0dc4df1f43 Merge pull request #669 from dnmTX/master
sub domains from: adsafeprotected.com|zeroredirect.com|amazon.com
2018-06-17 20:47:08 -04:00
dnmTX bf2b400122 Update hosts 2018-06-17 17:52:38 -05:00
dnmTX 1d1c36cd00 sub domains from: adsafeprotected.com | zeroredirect.com | amazon.com[in test] 2018-06-17 17:32:09 -05:00
Steven Black 016b40d4b5 Merge pull request #667 from dnmTX/master
exoclick.com
2018-06-17 00:04:06 -04:00
dnmTX 764e793661 ero-advertising.com -> missed one 2018-06-16 22:13:15 -05:00
dnmTX 9f902a3c2c Merge pull request #1 from dnmTX/dnmTX-#664
exoclick.com/extra
2018-06-16 16:53:36 -05:00
dnmTX fd417433a8 exoclick.com/extra
additional exoclick.com sub domains by @dnmTX (my first PR yo)
2018-06-16 16:52:18 -05:00
Steven Black 62b04203bb Release 1.4.25 2018-06-16 12:04:25 -04:00
Steven Black 3bce8ed7c9 Update from yoyo.org. 2018-06-16 12:04:10 -04:00
Steven Black 0596e830cf New domains provided by @dnmTX; this closes Issue #663. 2018-06-16 11:55:13 -04:00
StevenBlack cef806b626 Regenerate readme files. 2018-06-14 23:56:08 -04:00
StevenBlack 1ea3817b9a Add Pi-hole under 'Interesting Applications'. 2018-06-14 23:54:41 -04:00
StevenBlack ba01881b1a Regenerate the readme files. 2018-06-14 23:43:43 -04:00
StevenBlack 0998b9aeb4 Make the logo by @Tobaloidee a link to his profile page. 2018-06-14 23:42:40 -04:00
StevenBlack 8818d1a7ac Minor tweaks to the readme template. 2018-06-14 23:40:43 -04:00
StevenBlack 2dcdb268b5 Release 1.4.24 2018-06-14 23:37:22 -04:00
StevenBlack dfe127cd0f New release after removing connect.facebook.net from the default list. 2018-06-14 23:37:11 -04:00
StevenBlack 26d027d3ed Issue #656: fix – remove connect.facebook.net from the default list. 2018-06-14 23:33:55 -04:00
StevenBlack e494aa1666 Release 1.4.23 2018-06-14 19:09:45 -04:00
StevenBlack d3bb0edb1d New update from lightswitch05 to resolve issue with Fortnite. Also fix oversight that lightswitch05 raw host file itself was not previously included in the repo. 2018-06-14 19:09:29 -04:00
StevenBlack 05e4b61a26 Release 1.4.22 2018-06-14 14:19:33 -04:00
StevenBlack 3cc5aba515 New data from yoyo.org, someonewhocares.org, and CoinBlockerList. 2018-06-14 14:19:01 -04:00
StevenBlack 52bcae8059 Two new ad servers. 2018-06-14 14:16:01 -04:00
StevenBlack ec87b11274 Unblock, reluctantly, g.alicdn.com. This closes #658. 2018-06-14 08:29:25 -04:00
Steven Black 33326817df Release 1.4.21 2018-06-10 14:45:04 -04:00
Steven Black d8fd3a142c New data from CoinBlockerList. 2018-06-10 14:44:51 -04:00
Steven Black fa43b98147 Merge pull request #652 from anudeepND/master
Domains related to notorious banking trojan called Emotet
2018-06-09 22:17:41 -04:00
Anudeep 14ed7d51e5 Added new domains 2018-06-09 20:40:19 +05:30
Steven Black 27873fc85b Merge pull request #651 from funilrys/issue.644
Introduction of `Start xx` and `End xxx`
2018-06-09 06:47:06 -04:00
funilrys 6de96c5537 Introduction of Start xx and End xxx
This patch fix #644
2018-06-09 11:35:48 +02:00
StevenBlack e39887e34f Release 1.4.20 2018-06-08 20:55:23 -04:00
StevenBlack 077fa888e1 New updates from sinfoniette, yoyo.org, someonewhocares.org, and CoinBlockerList. 2018-06-08 20:55:11 -04:00
Steven Black 42e952be48 Merge pull request #648 from anudeepND/master
UC apps telemetry
2018-06-07 10:07:52 -04:00
Anudeep 2201c88702 Added new domains 2018-06-07 18:54:21 +05:30
StevenBlack 1b5463e974 Release 1.4.19 2018-06-05 21:19:34 -04:00
StevenBlack ac2d625581 New updates from someonewhocares.org, and CoinBlockerLists. 2018-06-05 21:19:14 -04:00
StevenBlack 9493415e2d CoinBlockerList has moved to Gitlab. This closes Issue #646. 2018-06-05 21:16:15 -04:00
Steven Black b3fc4c3c65 Remove vestigial folder. 2018-06-03 22:10:11 -04:00
StevenBlack 69924807cb Make the badges link to sensible destinations. 2018-06-02 17:32:17 -04:00
StevenBlack 29e66a9b68 Refresh the readme files. 2018-06-02 17:20:51 -04:00
StevenBlack d3fe8168fc Rearrange the badges into two rows. 2018-06-02 17:19:58 -04:00
StevenBlack fede90002a Release 1.4.18 2018-06-02 17:13:40 -04:00
StevenBlack 92f1446c22 Updates from sinfonietta, yoyo.org, and CoinBlockerList. 2018-06-02 17:13:18 -04:00
StevenBlack 284d90f7ce Badges are cool. 2018-06-02 17:11:30 -04:00
StevenBlack 798d7473ec Release 1.4.17 2018-05-30 09:59:11 -04:00
StevenBlack df17be0fe7 Updates from sinfonietta, yoyo.org, someonewhocares.org, and CoinBlockerList 2018-05-30 09:58:52 -04:00
Steven Black 485a73df23 Merge pull request #633 from lightswitch05/feature/lightswitch5-block-list
Include lightswitch05 hosts files list, adding 989 more domains.
2018-05-25 10:18:51 -04:00
Daniel White f8a737e5d6 Include lightswitch05 block list, adding 989 more domains. 2018-05-25 09:49:37 -04:00
Steven Black 7fc0c6b6b9 Merge pull request #632 from anudeepND/master
Android devices ship with pre-installed malware
2018-05-24 13:30:15 -04:00
Anudeep 9b1c91fdca Additional domains
Added pull-3045.kxcdn.com and abd.cosiloon.com
2018-05-24 19:07:36 +05:30
Anudeep 7c17cfdd6a Added new domains 2018-05-24 18:59:21 +05:30
Steven Black cf1b80ea0a Merge pull request #627 from gfyoung/centos-docs
Doc / Check for Centos restart
2018-05-23 10:10:05 -04:00
Steven Black 3cc43ce1ee Merge pull request #628 from ScriptTiger/patch-1
Corrected format of Rollbar domains
2018-05-23 10:08:54 -04:00
ScriptTiger 5cf4b15403 Corrected format of Rollbar domains
The black hole address was absent, causing the script to not read them.
2018-05-23 22:00:21 +08:00
gfyoung e66c2cb37e Doc / Check for Centos restart
Closes gh-622.
2018-05-22 21:53:56 -04:00
StevenBlack 2277d90944 Release 1.4.16 2018-05-22 15:03:48 -04:00
StevenBlack db89457f33 Updates from someonewhocares.org, and CoinBlockerList. 2018-05-22 15:03:28 -04:00
Steven Black 3bf5c1ee10 Merge pull request #626 from Tobaloidee/master
Updated the Readme.md and Uploaded the SVG & PNG files of the new LOGO
2018-05-22 11:29:51 -04:00
tobaloidee 3337e58575 delete new logo blank 2018-05-22 05:26:31 +08:00
tobaloidee 5d76a24c8e uploaded the new logo files
contains SVG & PNG files of the new logo
2018-05-22 05:25:44 +08:00
tobaloidee ea49c7396b Create new logo 2018-05-22 05:24:32 +08:00
tobaloidee 5bd39b2249 Updated with the new Logo 2018-05-22 05:23:52 +08:00
Steven Black 58b88cf090 Release 1.4.15 2018-05-19 21:38:36 -04:00
Steven Black e2611a5c8f Updates from sinfonietta, yoyo.org, someonewhocares.org, and Badd-Boyz. 2018-05-19 21:38:22 -04:00
Steven Black ddf16765a7 Merge pull request #623 from ScriptTiger/patch-1
Rollbar Error Tracking and Crash Reporting
2018-05-19 10:06:31 -04:00
ScriptTiger 5550a01187 Rollbar Error Tracking and Crash Reporting 2018-05-19 11:18:50 +08:00
Steven Black 7893ce8021 Merge pull request #620 from anudeepND/master
Kuik adware domains
2018-05-18 10:42:16 -04:00
Anudeep f9b72fd3c0 Added new domains 2018-05-18 11:52:40 +05:30
StevenBlack 5046fcd669 Release 1.4.14 2018-05-17 15:36:56 -04:00
StevenBlack 285365043c New data from someonewhocares.org, CoinBlockerList, and Badd-Boyz. 2018-05-17 15:36:41 -04:00
Steven Black 51e9797791 Merge pull request #614 from anudeepND/master
New ads and tracking domains
2018-05-17 15:26:03 -04:00
StevenBlack 15ec6d709d Issue #613: formatting – fix quotes so source doesn't mess with encoding. 2018-05-16 09:21:34 -04:00
Anudeep da0768877d Added new ads and tracking domains 2018-05-15 10:43:58 +05:30
StevenBlack 5270a43158 Release 1.4.13 2018-05-13 23:53:03 -04:00
StevenBlack bf54e0c276 Updates from malwaredomainlist.com and Badd-Boyz. 2018-05-13 23:52:53 -04:00
StevenBlack 10e61eaed9 Documentation: clarify the role of extensions, and how they work. 2018-05-13 23:46:22 -04:00
StevenBlack 9a890f0ec5 Add betpromo247.com. 2018-05-13 23:17:05 -04:00
Steven Black ba40722c3b Merge pull request #610 from xetorixik/master
Adservice.google.nl
2018-05-12 12:45:46 -04:00
xetorixik 23872cc343 Adservice.google.nl
Several country based ad sites are already blocked like adservice.google.com, adservice.google.com.au.
Found  a new one: adservice.google.nl
2018-05-12 17:49:44 +02:00
Steven Black 58eca74514 Release 1.4.12 2018-05-12 10:23:00 -04:00
Steven Black d86ddaaa2d Updates from Sinfonietta, yoyo.org, someonewhocares.org, and CoinBlockerList. 2018-05-12 10:22:44 -04:00
StevenBlack 1736bed646 Release 1.4.11 2018-05-08 15:23:23 -04:00
StevenBlack ddf386757b Updates from yoyo.org, someonewhocares.org, CoinBlockerList, and Badd-Boyz. 2018-05-08 15:23:01 -04:00
StevenBlack bd870230f1 Release 1.4.10 2018-05-05 22:28:30 -04:00
StevenBlack aa60fb8642 Updates from sinfonietta, and yoyo.org. 2018-05-05 22:28:13 -04:00
StevenBlack 4715b0e388 Comment a plaintext line, see [this comment](https://github.com/StevenBlack/hosts/commit/2b54683feb3d0409b7ac7f205c46696afa73dfe3#r28856144). 2018-05-04 10:48:29 -04:00
Steven Black ab0473c8ae Merge pull request #599 from xetorixik/master
Telemetry - Office 2016
2018-05-04 00:03:59 -04:00
xetorixik 2b54683feb Telemetry - Office 2016
Telemetry endpoints for Office 2016.
As written: https://support.office.com/en-us/article/network-requests-in-office-2016-for-mac-afdae969-4046-44b9-9adb-f1bab216414b
This one should be added immediately.

Tested with Office 365 on Mac and Windows.
2018-05-03 21:48:21 +02:00
Steven Black 41aa1ed914 Release 1.4.9 2018-05-02 21:13:34 -04:00
Steven Black bc07cfbd1f Updates from yoyo.org, someonewhocares.org, and Badd-Boyz. 2018-05-02 21:13:23 -04:00
Steven Black a05416e0bb Merge pull request #598 from xetorixik/master
Telemetry - Windows 10 version 1803
2018-05-02 21:07:47 -04:00
xetorixik 81847b54b9 Telemetry - Windows 10, version 1803
New telemetry endpoint for Windows 10, version 1803, also known as Windows 10 April 2018 Update.
https://docs.microsoft.com/en-us/windows/deployment/update/windows-analytics-get-started
2018-05-02 06:07:33 +02:00
Steven Black 919d27acf2 Release 1.4.8 2018-04-30 19:48:53 -04:00
Steven Black fc3d0f4057 Updates from Sinfonietta, yoyo.org, someonewhocares.org, and CoinBlockerList. 2018-04-30 19:48:32 -04:00
Steven Black f39bf5be42 Merge pull request #594 from anudeepND/master
New analytics sites
2018-04-29 10:20:21 -04:00
Anudeep bbe349083b Added new domains 2018-04-29 08:55:01 +05:30
Steven Black 266c8960e6 Release 1.4.7 2018-04-25 23:35:44 -04:00
Steven Black de06787f88 Updates from sinfonietta, CoinBlockerList, and Badd-Boyz. 2018-04-25 23:35:30 -04:00
StevenBlack 60504c50f1 Release 1.4.6 2018-04-24 11:37:51 -04:00
StevenBlack 1d8c05a7d3 Updates from someonewhocares.org. 2018-04-24 11:37:34 -04:00
StevenBlack e9401ae405 Add msmetrics.ws.sonos.com. 2018-04-24 11:35:59 -04:00
StevenBlack 8596b47922 Add camsoda.com. 2018-04-24 10:10:22 -04:00
Steven Black 7bd1c7d0a4 Merge pull request #588 from anudeepND/master
Block ads on Voot streaming app
2018-04-23 10:28:54 -04:00
Steven Black 7bf8472a21 Merge pull request #587 from xetorixik/master
Add cws.conviva.com
2018-04-23 10:27:55 -04:00
Steven Black e741b66879 Merge pull request #475 from paxperscientiam/patch-3
Phishy
2018-04-23 10:21:23 -04:00
Anudeep 99d493d7ce Block ads on Voot streaming app 2018-04-23 12:02:07 +05:30
xetorixik d06da2920e Add cws.conviva.com
Add cws.conviva.com Analytics Architecture.
A Unique Measurement and Analytics Architecture for the Next Generation of TV

Tested. Won't affects videos.
2018-04-22 23:47:30 +02:00
StevenBlack b7e0f2c3a5 Release 1.4.5 2018-04-22 15:29:13 -04:00
StevenBlack 335baaf59f New update, removed two brightcove domains. 2018-04-22 15:28:59 -04:00
StevenBlack ba4d54f1b7 Remove two brightcove.com domains. This closes Issue #585. 2018-04-22 15:24:04 -04:00
StevenBlack 24da1f0901 Release 1.4.4 2018-04-21 12:11:51 -04:00
StevenBlack 5483d5ae9c Updates from yoyo.org, someonewhocares.org, and CoinBlockerList. 2018-04-21 12:11:22 -04:00
Steven Black 725d4560eb Merge pull request #581 from xetorixik/master
Windows 10 'Connected User Experience' Telemetry
2018-04-21 11:02:05 -04:00
xetorixik 932d8408e5 Update
Almost forgot 0.0.0.0.
Fixed.
2018-04-21 14:34:52 +02:00
Steven Black 1a94bea1dd Merge pull request #580 from anudeepND/master
New ad and telemetry sites
2018-04-20 22:53:53 -04:00
xetorixik 071284bdd5 Windows 10 'Connected User Experience' Telemetry
As written over here https://docs.microsoft.com/en-us/windows/configuration/configure-windows-diagnostic-data-in-your-organization and there https://docs.microsoft.com/en-us/windows/deployment/update/windows-analytics-get-started

Windows uses various domains for telemetry.
2018-04-21 03:27:21 +02:00
Anudeep 1e52f6dd0d Added new domains 2018-04-20 23:02:06 +05:30
Steven Black 6303ace670 Release 1.4.3 2018-04-19 14:43:13 -04:00
Steven Black ee54527421 Updates from Sinfonietta, clefspeare13, yoyo.org, someonewhocares.org, and Badd-Boyz. 2018-04-19 14:42:52 -04:00
Steven Black 025e1ed35c Merge pull request #577 from xetorixik/master
Analytics.publitas.com – closes #576.
2018-04-19 14:39:37 -04:00
xetorixik 2625171823 Analytics.publitas.com
Adding analytics.publitas.com as it is used as data Analytics.
Discussion > https://github.com/StevenBlack/hosts/issues/576
2018-04-19 19:58:45 +02:00
StevenBlack 62fb100d48 Release 1.4.2 2018-04-17 10:53:36 -04:00
StevenBlack 3ff9b5c452 Hosts updates from clefspeare13, sinfonietta, and yoyo.org. 2018-04-17 10:53:19 -04:00
StevenBlack 108555584f Release 1.4.1 2018-04-16 22:24:52 -04:00
StevenBlack 280e938a55 new data from yoyo.org, someonewhocares.org, mvps.org, CoinBlockerList, and Badd-Boyz. 2018-04-16 22:24:33 -04:00
StevenBlack c8ff0bfa8e Release 1.4.0 2018-04-16 22:21:46 -04:00
Steven Black 652e823938 Merge pull request #556 from FadeMind/patch-1
updateHostsFile.py: add new ipv6 variants
2018-04-16 22:17:12 -04:00
Steven Black 01d70f2abb Merge pull request #571 from anudeepND/master
Removed sentry.io
2018-04-16 22:13:47 -04:00
Anudeep 8986a9ad40 Removed sentry.io
https://github.com/StevenBlack/hosts/issues/568
2018-04-17 07:15:32 +05:30
StevenBlack c45cb1ae53 Issue #567: fix – add videoplayer.vice.technology. 2018-04-16 16:20:21 -04:00
StevenBlack 8c568bc05a Release 1.3.20 2018-04-12 16:59:49 -04:00
StevenBlack 565309e8c0 New data from StevenBlack, someonewhocares.org, and CoinBlockerList. 2018-04-12 16:59:39 -04:00
StevenBlack 70179819df New pop-under sites. 2018-04-12 16:56:44 -04:00
StevenBlack c767bedba3 Release 1.3.19 2018-04-08 23:50:35 -04:00
StevenBlack c65d0ef692 New data from someonehwocares.org, yoyo.org, and Badd-Boyz. 2018-04-08 23:49:42 -04:00
StevenBlack 757c1e52bf Issue #562: fix - remove rogue character in the hosts file. 2018-04-08 19:20:20 -04:00
Steven Black fc5f5557ee Merge pull request #561 from anudeepND/master
New telemetry sites
2018-04-07 17:50:13 -04:00
Anudeep eb0c76b8dd Added new domains 2018-04-08 00:04:46 +05:30
StevenBlack c07398b1e3 More yahoo finance domains. 2018-04-06 15:24:56 -04:00
StevenBlack dec690a35e Release 1.3.18 2018-04-06 15:02:48 -04:00
StevenBlack b31b83540c Updates from yoyo.org and Badd-Boyz. 2018-04-06 15:02:37 -04:00
StevenBlack f97f602826 Domains stinking up yahoo finance. 2018-04-06 15:00:39 -04:00
StevenBlack af887ab479 Release 1.3.17 2018-04-05 15:00:31 -04:00
StevenBlack 10cd3d05c5 New data from CoinBlockerList. 2018-04-05 15:00:08 -04:00
StevenBlack 2bf164cda7 Issue #552: fix – dropping the StreamingAds repo. This closes #552. 2018-04-05 14:58:02 -04:00
StevenBlack 5a715ba572 Release 1.3.16 2018-04-04 11:27:21 -04:00
StevenBlack e6fa849bb0 New data from yoyo.org, StevenBlack, someonewhocares.org, malwaredomainlist.com, and Badd-Boyz. 2018-04-04 11:27:11 -04:00
StevenBlack e2237a5950 Issue #558: fix - remove edge.api.brightcove.com. 2018-04-04 11:25:14 -04:00
Steven Black 7849fd6600 Merge pull request #557 from anudeepND/master
Blocked ads on Hotstar streaming apps
2018-04-03 09:05:37 -04:00
Anudeep 37ee6d1a0a Added hotstar ad domains 2018-04-03 12:26:33 +05:30
StevenBlack 251a52abbe Release 1.3.15 2018-04-02 21:18:04 -04:00
StevenBlack ac9c8c9aa0 New data from someonewhocares.org and CoinBlockerList. 2018-04-02 21:17:48 -04:00
StevenBlack 9c36f3cda7 Dropping Tyzbit repo. This closes Issue #555. 2018-04-02 21:16:31 -04:00
FadeMind d7e29d9289 updateHostsFile.py: add new ipv6 variants
Based on someonewhocares.org hosts schema
2018-04-02 19:07:56 +02:00
StevenBlack 3a69edfe6a Release 1.3.14 2018-04-02 12:42:23 -04:00
StevenBlack d86022e091 New data from several sources – StreamingAds, someonewhocares.org, CoinBlockerlist, Badd-Boyz, and others. 2018-04-02 12:41:07 -04:00
StevenBlack 464b3abe67 Adding asap.sharethrough.com 2018-04-02 12:21:27 -04:00
StevenBlack 4193015544 Release 1.3.13 2018-03-30 10:43:48 -04:00
StevenBlack 50322ca0d8 New data from yoyo.org, StreamingAds, and malwaredomainlist.com. 2018-03-30 10:43:38 -04:00
StevenBlack 0602177e28 Release 1.3.12 2018-03-29 15:40:14 -04:00
StevenBlack deaddff979 Updates from fakenews, yoyo.org, someonewhocares.org, and malwaredomainlist.com. 2018-03-29 15:39:58 -04:00
StevenBlack 59a924626e Release 1.3.11 2018-03-28 23:05:00 -04:00
StevenBlack 9fe6f6f9bd New data from yoyo.org, someonewhocares.org, CoinBlockerList, and add.Risk. 2018-03-28 23:04:28 -04:00
StevenBlack bfcb52f8f8 Add the StreamingAds repo to our data sources. 2018-03-28 23:02:27 -04:00
StevenBlack 01f4fb8eba Release 1.3.10 2018-03-26 20:02:40 -04:00
StevenBlack 181a062b78 New data from yoyo.org, someonewhocares.org, and CoinBlockerList. 2018-03-26 20:02:17 -04:00
StevenBlack 5e80691abe Release 1.3.9 2018-03-24 10:53:06 -04:00
StevenBlack 753ffb17f9 New data from yoyo.org. 2018-03-24 10:52:25 -04:00
StevenBlack bf17d63023 Dropping the bjornstar source until we can sort fringe issues. 2018-03-24 10:45:17 -04:00
StevenBlack 6a64f1e8f4 Release 1.3.8 2018-03-23 15:50:17 -04:00
StevenBlack 3928137f94 New data from tyzbit and yoyo.org. 2018-03-23 15:49:27 -04:00
StevenBlack ef2117e284 Release 1.3.7 2018-03-23 11:34:10 -04:00
StevenBlack ba10e05a8e New data from yoyo.org and tyzbit. 2018-03-23 11:33:14 -04:00
StevenBlack aca5d14bea New data from bjornstar. 2018-03-23 11:31:32 -04:00
Steven Black fee3bc905c Merge pull request #545 from tyzbit/tyzbit-gist-source
Re-Source and Update Tyzbit Hosts list
2018-03-23 11:30:05 -04:00
Steven Black 6675018ba2 Merge pull request #546 from FadeMind/master
bjornstar hosts init merge.  This closes #543
2018-03-23 11:19:55 -04:00
fademind 80d14b5fd5 bjornstar hosts init merge 2018-03-23 16:15:56 +01:00
tyzbit d04492f032 re-source and update tyzbit hosts 2018-03-23 10:49:15 -04:00
tyzbit f9368580f1 Merge pull request #2 from StevenBlack/master
Sync from master
2018-03-23 10:46:26 -04:00
StevenBlack b0d518ab0b Release 1.3.6 2018-03-22 20:39:58 -04:00
StevenBlack 6ae2923c7e new data from yoyo.org, CoinBlockerList, and Badd-Boyz. 2018-03-22 20:38:52 -04:00
StevenBlack cd19ae4915 Release 1.3.5 2018-03-20 18:00:52 -04:00
StevenBlack fa1dc03636 New data from CoinBlockerList. 2018-03-20 18:00:09 -04:00
StevenBlack 774c9fefd1 Issue #234: adding taboola ad domains. 2018-03-20 17:58:06 -04:00
StevenBlack e62a580867 Release 1.3.4 2018-03-19 23:50:56 -04:00
StevenBlack 8a2a6f8ce5 New data from yoyo.org, someonewhocares.org, and CoinBlockerList. 2018-03-19 23:50:09 -04:00
StevenBlack a5142db731 Our Flake8 linter's max-line-length constraint is now 120, so taking advantage of that. 2018-03-19 23:48:22 -04:00
StevenBlack 494c14f6e6 Add link to Releases on Github in our generated hosts. Closes #524 2018-03-19 23:47:25 -04:00
Steven Black 5b99de074a Invoke flake8 linter via command-line switches. 2018-03-17 23:41:50 -04:00
Steven Black 0a42c21c13 Fix lint issue. 2018-03-17 23:41:24 -04:00
Steven Black 2eb73c3606 Add .flake8 config file, with a more relaxed line length. 2018-03-17 23:34:10 -04:00
Steven Black 7c79fa7f2f Fixes for linting errors. 2018-03-17 23:33:44 -04:00
Steven Black ba58ddb4b2 Updated readme files. 2018-03-17 23:17:33 -04:00
Steven Black 9d55b3297a Changes to update.json files to take up less horizontal space in readme tables. 2018-03-17 23:16:37 -04:00
Steven Black 8a5aed4648 Release 1.3.3 2018-03-17 23:07:09 -04:00
Steven Black c580c8f559 New data from yoyo.org. 2018-03-17 23:06:02 -04:00
Steven Black f83a5311ab Include source data issues links to help folks to report problems. 2018-03-17 23:04:57 -04:00
StevenBlack e26e84a516 Release 1.3.2 2018-03-15 18:41:18 -04:00
StevenBlack 942d71a5ca Regenerated hosts and the readme files. 2018-03-15 18:41:07 -04:00
StevenBlack 3af44dca1c Revert to prior version. 2018-03-15 18:28:41 -04:00
StevenBlack c491a3dd7c Release 1.3.1 2018-03-15 12:07:07 -04:00
StevenBlack f423e5c4a2 New data from tyzbit, sinfonietta, yoyo.org, and someonewhocares.org. 2018-03-15 12:06:14 -04:00
StevenBlack 95db00bb50 New URL for hosts from @tyzbit. 2018-03-15 12:04:00 -04:00
StevenBlack b942ac9451 Ad server contributed by a correspondent near Cork, Ireland. 2018-03-14 10:59:29 -04:00
Steven Black 3985a61b37 Release 1.3.0 2018-03-14 00:18:26 -04:00
Steven Black f5d1d3b4eb Update .gitignore. 2018-03-14 00:16:28 -04:00
Steven Black 18238555f6 Fresh re-generation of hosts and readme files. 2018-03-14 00:15:51 -04:00
Steven Black 03c247bfab Test to accompany accepting IP followed by host IP address. 2018-03-14 00:10:07 -04:00
Steven Black 2526b76bea Accept IP followed by host IP address. 2018-03-14 00:09:38 -04:00
Steven Black 9f63be150b New data from yoyo.org, and CoinBlockerList. 2018-03-13 23:05:40 -04:00
Steven Black 74c9ba37cf Release 1.2.7 2018-03-12 23:58:13 -04:00
Steven Black baa870c39b New data from yoyo.org, someonewhocares.org, and CoinBlockerList. 2018-03-12 23:57:31 -04:00
StevenBlack 30042213ec Release 1.2.6 2018-03-10 11:54:33 -05:00
StevenBlack a7be24caa2 New data from someonewhocares.org. 2018-03-10 11:52:41 -05:00
StevenBlack ff0afd7ede Whoops, typo. 2018-03-10 11:51:35 -05:00
StevenBlack 32bca63239 Add spiegel-de.spiegel.de. 2018-03-10 11:50:57 -05:00
StevenBlack 6c505bb386 Release 1.2.5 2018-03-09 20:07:08 -05:00
StevenBlack 3546186bd8 New data from someonewhocares.org, yoyo.org, and CoinBlockerList. 2018-03-09 20:06:14 -05:00
Steven Black db7b75df56 Merge pull request #535 from ankitpati/superfluous-condition-fix
Remove Superfluous Check for Zero-Length List
2018-03-09 16:19:37 -05:00
Ankit Pati 4b5dc8d920 Remove Superfluous Check for Zero-Length List
Checking for zero-length is not necessary here as iterating over a
zero-length list is perfectly valid, and produces exactly zero
iterations, matching the intended behaviour without an extra check.
2018-03-10 00:38:31 +05:30
Steven Black 9515e0ccca Release 1.2.4 2018-03-08 06:33:14 -05:00
Steven Black 86d0bedff9 New data from someonewhocares.org, malwaredomainlist.com, and Badd-Boyz. 2018-03-08 06:31:53 -05:00
StevenBlack 951e2b485f Updated all 16 readme pages with the new release management section. 2018-03-07 00:16:38 -05:00
StevenBlack 29ab4d9878 New section titled "Release management", documenting the presence and use of [Release-It!](https://webpro.github.io/release-it/) in the repo. 2018-03-07 00:12:20 -05:00
StevenBlack c06a49c257 Add .release-it.json file to the repo. 2018-03-06 23:59:17 -05:00
StevenBlack 9174744878 Release 1.2.3 2018-03-06 23:54:47 -05:00
StevenBlack 34441315bc New data from yoyo.org, someonewhocares.org, and CoinBlockerList. 2018-03-06 23:51:45 -05:00
Steven Black e8b027c356 Merge pull request #490 from ScriptTiger/patch-1
Added commented wildcards for spam domains to support third-party, downstream uses
2018-03-05 10:24:41 -05:00
StevenBlack 0bb89e4763 New data from yoyo.org, mvps.org, and CoinBlockerList. 2018-03-04 20:54:49 -05:00
Steven Black 26b9f045ad Merge pull request #529 from erlepereira/master
add link to gist for dnsmasq format conversion - readme_template.md
2018-03-04 20:50:41 -05:00
Erle Pereira f3da866634 add link to gist for dnsmasq format conversion, in the readme_template.md 2018-03-05 11:57:21 +11:00
StevenBlack 83ef43c36f New data from yoyo.org. 2018-03-04 14:04:13 -05:00
funilrys 0166642e00 Merge remote-tracking branch 'upstream/master' into encoding-review 2018-03-04 11:19:36 +01:00
funilrys 318389b08f Introduction of more tests cases
Please note that this patch introduce more tests cases
in order to avoid future issue when calling `domains_to_idna()`
2018-03-04 11:18:50 +01:00
funilrys 8405f87edb Review of domain_to_idna() to support more tests cases
Please note this patch comes after an issue reported by @FadeMind
which I could reproduce in 1/3 computer.
2018-03-04 11:17:38 +01:00
Steven Black 2f90ec066f Merge pull request #525 from MitchWeaver/master
add OpenBSD support
2018-03-03 17:05:50 -05:00
Mitch Weaver 1ff8f4b13d add OpenBSD support 2018-03-03 22:55:18 +01:00
StevenBlack cf130d092c New data from yoyo.org, and CoinBlockerList. 2018-03-03 15:16:10 -05:00
Steven Black 2bd48fb7ba Merge pull request #519 from FadeMind/cross-sudo
cross-compatible sudo FIXED CI
2018-03-03 15:13:16 -05:00
Steven Black aa6b09561b Merge pull request #520 from funilrys/notDavid-protocol
Possible fix of the encoding and/or downlaod issue(s)
2018-03-03 15:11:38 -05:00
funilrys 1e64d1287a Review of readme_template.md
Please note that this patch mothe the unit tests paragraph after dependencies installation.
2018-03-03 21:09:45 +01:00
funilrys 93748698d5 Update of readme_template.md
Please note that this patch explitly set which `pip` version to use according
to the user Python version.
2018-03-03 20:34:10 +01:00
FadeMind ee411d82c9 updateHostsFile.py: DEL whitespace after '['
https://travis-ci.org/StevenBlack/hosts/jobs/346915934#L606-L609
2018-03-03 15:30:49 +01:00
funilrys 50fde09ed7 Fix grammar.
This patch fix: https://github.com/StevenBlack/hosts/pull/520/files/d98b31fb921ff35fb1a421243fa4876504cf676e#r171971716

Thanks to @gfyoung
2018-03-02 22:56:32 +01:00
funilrys 6e62383b28 Review of Notes indentation
This patch fix : https://github.com/StevenBlack/hosts/pull/520#discussion_r171971481
+ It also fix (forgoten coma) : https://github.com/StevenBlack/hosts/pull/520#discussion_r171971574
2018-03-02 22:53:15 +01:00
funilrys bebf7744ca Review of the domain_to_idna() notes.
This patch fix : https://github.com/StevenBlack/hosts/pull/520#discussion_r171971574
2018-03-02 22:51:10 +01:00
funilrys d06bea8fb8 Introduction of dependencies installation instructions 2018-03-02 22:49:15 +01:00
funilrys d98b31fb92 Removing of condescending line.
This patch fix : https://github.com/StevenBlack/hosts/pull/520/files/4798710029b1cfc23130a0588c3a2c7e59171f86#r171969863
2018-03-02 22:43:24 +01:00
funilrys 4798710029 Introduction of domain_to_idna() tests. 2018-03-02 22:23:21 +01:00
funilrys 780e47ffe5 Review of domain_to_idna()
This patch review the way we get the comment at the end of a line.
I also did an application of DRY (Do not Repeat Yourself)
and/or KISS (Keep It Simple, Stupid) by refactoring the 2 `else`
statements into one line.
2018-03-02 22:07:11 +01:00
funilrys 8f00cb4d76 Deletion of a trailing '#'.
Please note that I have added that '#' by mistake.
2018-03-02 21:43:52 +01:00
funilrys 1141823bc8 Fix tests issues.
This patch introduce the installation of dependencies needed my the main commit.

This patch fixes:
 * https://travis-ci.org/funilrys/hosts/jobs/347504195#L592
 * https://travis-ci.org/funilrys/hosts/jobs/347504195#L598
2018-02-28 23:29:18 +01:00
funilrys 3403b10e50 Fix tests issues.
This patch fixes:
 * https://travis-ci.org/funilrys/hosts/jobs/347500695#L400
 * https://travis-ci.org/funilrys/hosts/jobs/347500695#L401
2018-02-28 23:24:58 +01:00
funilrys f5c8ac58b2 Fix tests issue.
This patch fix https://travis-ci.org/funilrys/hosts/jobs/347500695#L399
2018-02-28 23:23:30 +01:00
funilrys 079d5ddd7f Fix tests issue
This patch fix https://travis-ci.org/funilrys/hosts/jobs/347500695#L397

Please also note that I introduced that patch because
we do not directly use lxml but it is required by
BeautifulSup() to parse the HTML.
2018-02-28 23:22:32 +01:00
funilrys 1fea720034 Fix tests issue
This patch fix https://travis-ci.org/funilrys/hosts/jobs/347500695#L398
2018-02-28 23:20:01 +01:00
funilrys d3ef85df17 Review typo + fix test issue.
This patch fix https://travis-ci.org/funilrys/hosts/jobs/347497718#L749
2018-02-28 23:15:01 +01:00
funilrys 079ad6b674 Fix test issue.
This patch fix https://travis-ci.org/funilrys/hosts/jobs/347497718#L748
2018-02-28 23:13:13 +01:00
funilrys ff58bbd1f2 Introduction of requirements.txt
Please note that those file can be used to install
dependencies with 'pip install -r requirements.txt'
2018-02-28 23:08:45 +01:00
funilrys c82f691952 Review of get_file_by_url()
Please note that this patch also introduce
which is in charge of converting a domain in a line into
IDNA and/or UTF-8 format.

Also note the introduction of BeautifulSoup() which helps
us to decode data from the downloaded URL.

Fixes (issue(s)/protocol(s) I was able to reproduce):
 * https://github.com/StevenBlack/hosts/issues/514#issuecomment-368932152

Possible fix of (issue(s)/protocol(s) I wasn't able to reproduce):
 * https://github.com/StevenBlack/hosts/issues/514#issue-300048106
 * https://github.com/StevenBlack/hosts/issues/494#issue-296166492
 * https://github.com/StevenBlack/hosts/issues/420#issue-267453114
 * https://github.com/StevenBlack/hosts/issues/372#issue-246927047
 * https://github.com/StevenBlack/hosts/issues/382#issuecomment-322010562
2018-02-28 23:06:58 +01:00
StevenBlack 37da299efb New data from yoyo.org, and CoinBlockerList. 2018-02-28 14:28:41 -05:00
FadeMind 33ba41bbea updateHostsFile.py: cross-compatible sudo 2018-02-27 19:26:40 +01:00
FadeMind ce5e3d113e Merge pull request #1 from StevenBlack/master
merge
2018-02-27 19:18:56 +01:00
Steven Black 2877752294 Merge pull request #516 from ScriptTiger/patch-1
Removed Cryptominer Domains
2018-02-27 12:07:29 -05:00
StevenBlack e2ee547063 New data from someonewhocares.org. 2018-02-26 13:38:01 -05:00
StevenBlack fd9d1d0836 New domains submitted. 2018-02-26 13:36:22 -05:00
Steven Black 3d6cec8170 Merge pull request #517 from paxperscientiam/patch-4
phish
2018-02-26 00:06:28 -05:00
Chris 3c0bba41e1 updated per scriptiger
Thanks @ScriptTiger
2018-02-25 23:54:59 -05:00
Chris 821f08b52d phish
Both of these ".win" sites serve up rotten phish (adobe flash).
2018-02-25 23:50:42 -05:00
ScriptTiger 7d9d2a02ef Removed Cryptominer Domains 2018-02-26 11:34:04 +08:00
StevenBlack 38fddd4862 Reinstate help.evernote.com. Closes #511. 2018-02-25 13:47:44 -05:00
Steven Black ca4fcbab0e Merge pull request #512 from FadeMind/patch-1
readme_template.md: Chrome required manually cleanup DNS Cache
2018-02-25 13:31:01 -05:00
FadeMind 77d4c68ab0 readme_template.md: tenses fixes 2018-02-25 19:22:21 +01:00
StevenBlack 90c5640341 Issue #511: fix - remove help.evermote.com on a trial basis, hope they've come to their senses. 2018-02-25 13:04:30 -05:00
StevenBlack 182d18ba20 Issue #510: fix - new updates from CoinBlockerList. Also new domains from yoyo.org. 2018-02-25 12:49:53 -05:00
FadeMind b2945e022e readme_template.md: Chrome required manually cleanup DNS Cache
See: https://superuser.com/questions/723703
2018-02-25 10:31:56 +01:00
Steven Black fab9fbc690 Issue #509: fix - pull the correct file from ZeroDot1/CoinBlockerLists. 2018-02-24 23:46:22 -05:00
StevenBlack 1341e7af52 New data from yoyo.org, someonewhocares.org, and KadHosts. 2018-02-24 18:04:46 -05:00
StevenBlack 40a06c2415 Adding CoinBlockerList. Thanks ZeroDot1, via @FadeMind.
Adding a good coin blocking list to the repo.
2018-02-24 18:00:21 -05:00
StevenBlack cbf4b0be15 New data from yoyo.org, and someonewhocares.org. 2018-02-20 10:04:52 -05:00
StevenBlack 2d3b88ecfd Issue #506: fix - dropping Spotify-Ad-free. cc @CHEF-KOCH. 2018-02-20 10:03:08 -05:00
Steven Black 007254e10f Merge pull request #503 from ankitpati/minimise-hosts-file
Add Option to Minimise hosts File
2018-02-16 22:07:47 -05:00
Ankit Pati dae2172f3b update docs after adding minimise switch 2018-02-17 07:36:10 +05:30
Ankit Pati 9a8b507f6e update defaults dictionary for minimise switch 2018-02-17 07:22:45 +05:30
Steven Black 2aa50e88be Merge pull request #502 from ankitpati/fix-hardcoded-offset-in-compression
Remove Hardcoded Offset in Compression
2018-02-16 15:29:54 -05:00
Ankit Pati 01db326459 Add Option to Minimise hosts File
This option (--minimise, -m) differs from compress (--compress, -c) in
that it keeps each host on a different line, while still removing
unnecessary newlines and comments.

This is necessary because many implementations of URL blockers that rely
on hosts files do not conform to the standard which allows multiple
hosts on a single line.
2018-02-17 00:22:25 +05:30
Ankit Pati db29acda65 FIX: Remove Hardcoded Offset in Compression
An offset of 7 was hardcoded in the function compress_file, presumably
to skip over the default target IP address of 0.0.0.0 in a hosts file.
However, this causes problems when the default is overridden using the
--ip or -i flag, causing visibly garbled output in the generated hosts
file.

Fix is to calculate the length of target IP at runtime.
2018-02-16 23:45:10 +05:30
StevenBlack 04cbba965c Update for recent edits at source. 2018-02-15 09:51:33 -05:00
Steven Black c8e6620181 New data from clefspeare13 2018-02-14 19:23:01 -05:00
StevenBlack adc8004272 new data from someonewhocares.org, Badd-Boyz, add.Spam, and add.Risk. Closes #498. 2018-02-13 13:03:40 -05:00
Steven Black 447d9ede6e Merge pull request #492 from FadeMind/master
Spotify-Ad-free init
2018-02-12 13:26:09 -05:00
Steven Black c53b817774 new data from someonewhocares.org. 2018-02-11 12:42:00 -05:00
Steven Black a9fb35dcc2 Adding some domains that bug me today. 2018-02-11 12:39:52 -05:00
fademind 6dd1a88e2e Spotify-Ad-free init 2018-02-10 11:15:41 +01:00
Steven Black 38869f636a New data from yoyo.org, and new host records from commit 5b5e854. 2018-02-09 13:53:48 -05:00
Steven Black 98b1b2b804 Merge pull request #491 from FadeMind/patch-1
updateHostsFile.py: add ipv6 additionals
2018-02-09 13:51:42 -05:00
FadeMind 5b5e854c7f updateHostsFile.py: add ipv6 additionals
@StevenBlack.
DEFAULT hosts file in Linux

127.0.0.1       localhost
127.0.1.1       mydevicename
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
2018-02-09 19:18:54 +01:00
StevenBlack 3af3a4d74c New data from yoyo.org, someonewhocares.org, and many new domains from Badd-Boys. 2018-02-08 20:22:38 -05:00
ScriptTiger d0876dbb49 Added commented wildcards for spam domains
Added commented wildcards for spam domains so that they may be more easily scripted for automated integration into other platforms by finding and replacing lines that start with "#.*".
2018-02-07 23:42:46 +08:00
Steven Black 0d5fd167a8 Merge pull request #488 from ScriptTiger/patch-1
Added and loaded a new spam domain section
2018-02-03 15:28:35 -05:00
ScriptTiger 4f43e9b82b Added and loaded a new spam domain section
Added and loaded a new spam domain section
2018-02-04 03:24:27 +08:00
Steven Black ddf46eed1f New data from sinfonietta, yoyo.org, someonewhocares.org, and Badd-Boyz. 2018-02-02 13:39:52 -05:00
StevenBlack 08096d50b0 New data from yoyo.org, someonewhocares.org, mvps.org, and Badd-Boyz. 2018-01-31 17:28:44 -05:00
StevenBlack 88a8c81cbe Two new domains in the coin ad and tracking space. 2018-01-31 17:24:46 -05:00
Steven Black 4cd16b74f5 Added malvertizing domains. 2018-01-26 08:56:47 +01:00
Steven Black f6d116771a Merge pull request #477 from anudeepND/master
Added malvertising domains
2018-01-26 08:55:26 +01:00
Steven Black a8bdf40467 New data from yoyo.org and someonewhocares.org. 2018-01-26 07:42:59 +01:00
Anudeep 120ec59855 Added malvertising domains 2018-01-24 00:46:12 +05:30
Steven Black bf7111e8e3 New domains added to my hosts collection. 2018-01-23 16:02:47 +01:00
Steven Black 7383755d9f Merge pull request #473 from paxperscientiam/patch-2
more snooper bs
2018-01-23 15:58:20 +01:00
Steven Black 541923a42f Merge pull request #472 from ScriptTiger/patch-1
Added some mobile app ad servers and malware
2018-01-23 15:53:57 +01:00
Steven Black de84680257 New data from yoyo.org. 2018-01-22 11:02:56 +01:00
Steven Black 90dca6d909 Addition to the readme: “How can I contribute hosts records?”. 2018-01-22 07:55:44 +01:00
Steven Black 0bc1f4a10a New data from clefapeare, yoyo.org, someonewhocares.org, Badd-Boyz, and add.risk. 2018-01-21 17:42:33 +01:00
ScriptTiger e8b855dfeb More ad servers
Added some mobile ad servers I picked up from mobile devices.
2018-01-21 19:26:08 +08:00
Chris 2b3a27dbc7 Phishy
Presently, `http://play.ceromobi.club/raffle/en/vs2-opt/index.html` will present you with a phony facebook game. Actually, I just one $1000.

It then directs you to another domain: `consumerproductsusa.com`. After submitting an email address, it then took me to `amarktflow.com`.

In response, I got this charming response (LOL): `https://www.dropbox.com/s/u0jy0xtm1cdjsfd/Screenshot%202018-01-20%2012.38.54.png?dl=0`

It's gets scammier after that.

What do you know about those other two domains?
2018-01-20 12:41:45 -05:00
Chris 1cde3603ef more snooper bs
OK, `www.benelli.angiemktg.com` leads to the same mystersnooper site I PR'd earlier. That being the case, I see no reason not to block the domain `angiemktg.com`.
2018-01-18 11:31:44 -05:00
ScriptTiger 467b767783 Added "tracking.lenzmx.com"
Caught it getting called by various mobile apps and contains malware.
2018-01-17 22:55:38 +08:00
StevenBlack 48eaa35a6e New data from sinfonietta, yoyo.org, and someonewhocares.org. 2018-01-14 23:09:30 -05:00
Steven Black 2db4dbe763 Merge pull request #468 from paxperscientiam/patch-1
Possible scam sites
2018-01-14 23:06:35 -05:00
Chris 47f6666260 Possible scam sites
Been seeing links to sites with the domain `largeloot.com`. Right now, `http://spark.largeloot.com` appears to redirect to `https://www.mysterysnooper.com/`

This may be a mystery shopper scam, but I'm not entirely sure. If it helps, I came across `http://spark.largeloot.com` on craigslist's gigs section.
2018-01-14 14:38:29 -05:00
StevenBlack 10d1a5bf51 New data from yoyo.org, someonewhocares.org, Badd-Boyz, add.Risk, and add.Dead. 2018-01-13 12:35:05 -05:00
Steven Black 2831556a76 Merge pull request #464 from gfyoung/minor-fixes
Update LICENSE and CI
2018-01-10 13:58:37 -05:00
gfyoung e3224e5415 Update LICENSE and CI
1) It's 2018
2) conda update --all no longer applies to conda itself.
   conda update conda needs to be explicitly called.
2018-01-10 09:52:59 -08:00
StevenBlack 8cc41be913 New data from yoyo.org, Uncheckyads, and SpotifyAds. 2018-01-10 09:56:18 -05:00
StevenBlack cf5d6306d2 New data from clefspeare, sinfonietta, yoyo.org, someonewhocares, and Bad-Boyz. 2018-01-06 13:40:50 -05:00
Steven Black 4876b3347e Merge pull request #461 from anudeepND/master
Added domains related to alphonso.tv
2018-01-04 15:55:36 -05:00
Anudeep 40caeacc09 Added domains related to alphonso.tv 2018-01-03 23:14:21 +05:30
Steven Black 9d634c3724 Merge pull request #459 from stefanopini/master
Added an option to compress the created hosts file.
2018-01-02 16:43:42 -05:00
Stefano d4dadf6ca3 Fixed the number of domains in each line.
Fixed the number of domains in each line and added the support to
inline comments (they will be ignored as the comment lines).
Code refactoring.
2018-01-02 22:35:27 +01:00
Stefano 510109d6d4 Updated the documentation with the new compress option.
Removed a redundant skipstatichosts option.
2018-01-02 10:51:26 +01:00
StevenBlack d82809d514 New data from sinfonietta 2018-01-01 20:00:35 -05:00
Stefano ff9e05ffec Added an option to compress the created hosts file.
In particular, the compression option removes non-necessary lines (empty lines and comments) and puts multiple domains in each line.
This option should solve the issue #411 regarding the DNS client service of Windows.
2017-12-30 20:55:12 +01:00
StevenBlack c0b15548cf New data from yoyo.org, and someonewhocares.org. 2017-12-30 11:51:47 -05:00
Stefano ce8d3abf7e Added an option to compress the created host file.
In particular, the compression option removes non-necessary lines (empty lines and comments) and puts multiple domains in each line.
This option should solve the issue #411 regarding the DNS client service of Windows.
2017-12-30 17:12:04 +01:00
Steven Black 083f79ef39 New data from yoyo.org, and someonewhocares.org. 2017-12-27 09:30:03 -05:00
Steven Black 80a5df3038 New data from someonewhocares.org, and Badd-Boyz. 2017-12-21 18:00:05 -05:00
Steven Black bb5d174866 Fix linter complaint. 2017-12-18 23:57:02 -05:00
Steven Black 2a41aef6dc New build, without EtherAddressLookup. 2017-12-18 05:47:00 +00:00
Steven Black 3c742e07c0 Issue #457: fix — remove EtherAddressLookup. 2017-12-18 05:42:44 +00:00
Steven Black 328e79e78e Fix typo in the EtherAddressLookup description key’s value. 2017-12-17 22:27:17 -05:00
Steven Black 51ad56ab3c New data from yoyo.org, and someonewhocares.org. 2017-12-17 22:24:18 -05:00
Steven Black 45f42a05bb Adding EtherAddressLookup to our sources of hosts data. 2017-12-17 22:20:01 -05:00
Steven Black 04a9a712b3 Issue #180: fix - support JSON array transformation for hosts sources. 2017-12-17 22:06:05 -05:00
Steven Black 1bc1188083 New data from yoyo.org. 2017-12-11 10:46:40 -05:00
Steven Black bb64cb1562 Merge pull request #454 from paxperscientiam/master
mackeeper bs
2017-12-11 04:42:43 -05:00
Chris 2c46b2ef75 mackeeper bs 2017-12-11 01:40:13 -05:00
Steven Black 1403fc3bf4 New data from yoyo.org, someonewhocares.org, mvps.org, malwaredomainlist.com, and Badd-Boyz. 2017-12-07 19:40:13 -05:00
Steven Black 395a877d51 Merge pull request #449 from anudeepND/master
New ads and tracking domains
2017-12-01 14:02:22 -05:00
Anudeep d62fcd542a Tracking on Xiaomi MiUi OS [updated] 2017-12-01 20:29:23 +05:30
Anudeep 9ea8c58578 Blocked ads and tracking on TerrariumTV app 2017-12-01 20:27:56 +05:30
Steven Black cf843dc5ad Merge pull request #447 from alexbel/master
Add matchmyip.com tracking site
2017-12-01 00:38:01 -05:00
Alexander Belyaev dfd3847482 Add matchmyip.com tracking site 2017-11-30 15:00:05 -08:00
Steven Black 4defb347e3 New data from fakenews, yoyo.org, someonewhocares.org, and Badd-Boyz. 2017-11-30 12:54:11 -05:00
Steven Black c4b200b9dd New data from yoyo.org, someonewhocares.org, and Badd Boyz. 2017-11-25 19:28:36 -05:00
Steven Black 85db14dc0e Merge pull request #443 from Voker57/master
Remove kiwifarms.net from StevenBlack list
2017-11-25 19:17:46 -05:00
Iaroslav Gridin a2fd8d928c Remove kiwifarms.net from StevenBlack list
kiwifarms.net does not contain on-by-default cryptocurrency miner anymore
2017-11-24 15:15:17 +02:00
Steven Black 85582e358c Merge pull request #442 from FadeMind/patch-1
dobreprogramy scam/fraud variants
2017-11-21 10:30:20 -05:00
FadeMind 87caf25341 dobre-programy.xyz scam/fraud 2017-11-21 16:17:22 +01:00
FadeMind 57f977af66 dobreprogramy.pro scam/fraud 2017-11-21 16:10:55 +01:00
Steven Black c3176e414f Merge pull request #441 from anudeepND/master
New ads and tracking domains
2017-11-19 01:29:08 -05:00
Anudeep 271a1b1d5a added new domains 2017-11-19 08:32:04 +05:30
Anudeep 46f305de77 Added analytics site 2017-11-17 18:27:12 +05:30
Anudeep 64e943b8d0 Possible tracking site by Xiaomi
These domains started to appear after recent update to MIUI OS
2017-11-17 11:00:36 +05:30
Steven Black 57451df298 New data from yoyo.org, someonewhocares.org, and Badd-Boyz. 2017-11-16 20:58:38 -05:00
Steven Black f35b14ad1b Merge pull request #438 from anudeepND/master
Added new ads and tracking sites
2017-11-12 21:51:37 -05:00
Anudeep 7ce81a475b Added new ads and tracking sites 2017-11-12 22:28:57 +05:30
Steven Black 07a514b10a New data from yoyo.org, and someonewhocares.org. 2017-11-09 21:46:44 -05:00
Steven Black b42c9ea692 New data from Clefspeare and others. 2017-11-04 05:41:07 +00:00
Steven Black 99dad68e23 Merge pull request #432 from ScriptTiger/patch-1
Added "zarget.com" and "bjorksta.men"
2017-11-04 01:36:13 -04:00
ScriptTiger 62ae4cd595 Added "zarget.com" and "bjorksta.men"
Added "zarget.com" as per issue 430:
https://github.com/StevenBlack/hosts/issues/430

Added "bjorksta.men" as JS Miner
Moved "rocks.io" to JS Miner section
2017-11-03 18:04:10 +08:00
Steven Black 07250ed354 New data from someonewhocares.org. 2017-11-01 10:31:48 -04:00
Steven Black b303b68d46 Malwaredomainlist.com not responding over https, http working fine. 2017-11-01 10:30:07 -04:00
Steven Black e21670c3c9 Merge pull request #431 from anudeepND/master
Blocked ads and tracking on Xiaomi's MiUi OS.
2017-11-01 10:24:46 -04:00
Anudeep 0428aafde8 added ads and tracking domains 2017-11-01 18:51:25 +05:30
Anudeep 3a1d3a4f29 added ads and tracking domains 2017-11-01 18:47:07 +05:30
Steven Black 4afded62e2 Merge pull request #429 from anudeepND/master
JS based cryptocurrency mining sites
2017-10-29 13:27:03 -04:00
Anudeep 4add3745ff added JS based cryptocurrency mining sites (2) 2017-10-29 20:25:12 +05:30
Anudeep 25e81e552c added JS based cryptocurrency mining sites 2017-10-29 17:19:41 +05:30
Steven Black 3604e28545 New data from yoyo.org, someonewhocares.org, malwaredomainlist.com, and KADhosts. 2017-10-28 13:24:22 -04:00
Steven Black 4b6e2bd775 Remove history.md which is vestigial. 2017-10-27 00:22:47 -04:00
Steven Black 86a5424ac4 New data from yoyo.org, and someonewhocares.org. 2017-10-25 21:19:40 -04:00
Steven Black f7bcb232bc Add license info to my host data. 2017-10-25 21:17:36 -04:00
Steven Black ca7f0fa870 Merge pull request #426 from brarcher/update-licenses
Correct licenses for FadeMind host files
2017-10-25 16:38:24 -04:00
Steven Black 2d7ee2b5b6 Merge pull request #427 from brarcher/pornhosts-license
Add license for Clefspeare13/pornhosts
2017-10-25 16:37:43 -04:00
Steven Black ca98b12910 Merge pull request #428 from brarcher/unchecky-license
Remove license for UncheckyAds
2017-10-25 16:37:17 -04:00
Branden Archer 3728c11c52 Remove license for UncheckyAds
The FadeMind lists the MIT license, however that project only hosts
the UncheckyAds host list and did not create it. Instead, that list
is based on content from unchecky.com.

I was unable to determine the license of that content, and am removing
the license to prevent someone from accidentally violating the
actual license by using the content.
2017-10-25 15:22:09 -04:00
Branden Archer f99af05b76 Add license for Clefspeare13/pornhosts
This project adopted the MIT license:

https://github.com/Clefspeare13/pornhosts/issues/13
2017-10-25 15:15:57 -04:00
Branden Archer 170688c352 Correct licenses for FadeMind host files
The FadeMind project lists a MIT license, however it did not create
several host files it provides. Instead, the copying.txt file
in the source:

http://hostsfile.org/Downloads/BadHosts.unx.zip

lists LGPL as the license. Without specifying the version, it
implies the latest. This is denoted by GPLv3+.
2017-10-25 15:11:02 -04:00
Steven Black baece5e61b Merge pull request #425 from anudeepND/master
Added JS based crypto currency mining sites
2017-10-25 14:20:13 -04:00
Anudeep f2fb4916a3 Added JS based crypto currency mining sites 2017-10-25 22:39:24 +05:30
Steven Black 226c12b4e8 Merge pull request #424 from ScriptTiger/patch-1
Added "urldelivery.com" and "rocks.io"
2017-10-25 09:14:51 -04:00
ScriptTiger 473ef8dce7 Added "urldelivery.com" and "rocks.io" 2017-10-25 17:45:08 +08:00
Steven Black 36189266d7 New data from yoyo.org, someonewhocares.org, Badd-Boyz, add.Spam, and add.Risk. 2017-10-25 00:12:08 -04:00
Steven Black ad30b81f6d Merge pull request #423 from brarcher/patch-1
Add some licenses for sources to readme
2017-10-25 00:09:15 -04:00
Branden Archer 9098c3b558 Add missing quote 2017-10-25 00:06:10 -04:00
Branden Archer dad43783a0 Add known licenses data to json metadata 2017-10-24 23:17:19 -04:00
Branden Archer 3b0ab4f1c9 Add licenses to social/readme 2017-10-24 22:04:56 -04:00
Branden Archer 65ddce7215 Add licenses to porn/readme 2017-10-24 22:04:55 -04:00
Branden Archer 0340225896 Add licenses to gambling/readme 2017-10-24 22:04:46 -04:00
Branden Archer 3edcbb9be4 Add licenses to fakenews/readme 2017-10-24 22:02:52 -04:00
Branden Archer d4702c8a31 Add some licenses for sources to readme
This adds a column to the Sources table for licenses.
Licenses which could be determined from each source
are populated, along with a link to the license if the license
is not mentioned in the host file itself.

Related to the following issue:
https://github.com/StevenBlack/hosts/issues/350
2017-10-24 14:14:17 -04:00
Steven Black a9e6c4cb52 Merge pull request #422 from anudeepND/master
added analytics sites
2017-10-24 08:19:00 -04:00
Anudeep 7cd9d209b8 Added analytics sites 2017-10-24 16:54:52 +05:30
anudeepnd 8b5c8262bc added analytics sites 2017-10-23 14:04:36 +05:30
Steven Black 2ef4e4123d New data from someonewhocares.org, malwaredomainlist.com, and Badd-Boyz. 2017-10-19 00:10:24 -04:00
Steven Black 34f1b5ffcd New data from yoyo.org, someonewhocares.org, and Badd-Boyz. 2017-10-15 19:42:00 -04:00
Steven Black 3d027fd436 Configuration for the welcome bot. 2017-10-11 23:41:56 -04:00
Steven Black e1c4fcd05f New data from yoyo.org, someonewhocares.org, and Badd-Boyz. 2017-10-11 23:00:47 -04:00
Steven Black 67c0746697 Merge pull request #417 from nikeee/patch-2
Add open.oneplus.net
2017-10-10 19:00:20 -04:00
Niklas Mollenhauer cb6a7b5768 Add open.oneplus.net
See: https://www.chrisdcmoore.co.uk/post/oneplus-analytics/
2017-10-10 19:51:46 +02:00
Steven Black 76dee94b62 New data from yoyo.org, someonewhocares.org, and Badd-Boyz. 2017-10-05 21:24:37 -04:00
Steven Black 50cc2cb801 New data from yoyo.org, someonewhocares.org, malwaredomainlist.com, and Badd Boyz. 2017-09-29 09:17:53 -04:00
Steven Black 4711ae3dde Merge pull request #407 from war59312/patch-1
readme_template.md - Secure Link
2017-09-21 23:31:10 -04:00
Will f0a3bc7f7f readme_template.md - Secure Link
Made a link secure (https).
2017-09-21 20:08:54 -04:00
Steven Black 89eba6df47 New data from Bad-Boyz, KADhosts, someonewhocares.org, Steven Black, and yoyo.org. 2017-09-21 03:21:15 +00:00
Steven Black fe5c6fb4c9 Merge pull request #406 from paxperscientiam/master
Pishing site mimics Apple aesthetic and prompts for Adobe flash dowload
2017-09-20 23:10:19 -04:00
Chris ddecddb608 phishing: https://www.dropbox.com/s/27zr4yv7yztf6lu/Screenshot%202017-09-19%2000.01.50.png?dl=0 2017-09-19 01:02:01 -04:00
Steven Black 3d431e17fd New data from Clefspeare13, yoyo.org, someonewhocares.org, mvps.org, and Badd-Boyz. 2017-09-18 22:25:01 -04:00
Steven Black 1c8d939b81 Add sinfonietta-snuff to the porn extension. 2017-09-18 22:22:28 -04:00
Steven Black 54705ed19c New data from yoyo.org, someonewhocares.org, and Badd-Boyz. 2017-09-13 20:08:12 -04:00
Steven Black 5f2c5a1bf7 New data from Sinfonietta, someonewhocares.org, KADhosts, and Badd-Boyz. 2017-09-07 13:25:35 -04:00
Steven Black 123032c186 New data from yoyo.org, someonewhocares.org, and Badd-Boyz. 2017-09-05 09:59:00 -04:00
Steven Black cea3eab475 new data from sinfionietta, yoyo.org, someonewhocares.org, KADhosts, and Badd-Boyz. 2017-08-31 08:48:46 -04:00
Steven Black 0d6e148c37 Merge pull request #399 from ScriptTiger/patch-1
Updated the link for the DualServer blacklists
2017-08-28 23:18:32 -04:00
Steven Black 601fac1777 New data from yoyo.org, someonewhocares.org, and Badd-Boyz. 2017-08-28 12:18:08 -04:00
ScriptTiger e592d46daa Updated the link for the DualServer blacklists
I reorganized all of my "downloads" to be on my GitHub pages rather than messing with the git history for each individual repo to keep everything manageable.
2017-08-24 17:25:40 +08:00
Steven Black 178cb1fefd Merge pull request #396 from Tobias-B-Besemer/patch-1
three -> four extensions
2017-08-23 08:00:27 -04:00
Tobias B. Besemer 5b4962ed95 Update readme.md 2017-08-23 09:10:53 +02:00
Tobias B. Besemer 38a65b7aa2 Update readme.md 2017-08-23 08:28:14 +02:00
Tobias B. Besemer 58e0791b10 three -> four 2017-08-22 22:36:46 +02:00
Steven Black b5886d1711 Merge pull request #393 from ScriptTiger/patch-1
Added "performanceadexchange.com" to "data/StevenBlack/hosts"
2017-08-21 20:18:30 -04:00
Steven Black e45d6d5966 Merge pull request #394 from gfyoung/readme-foxes
Minor spelling fixes to README template
2017-08-21 20:16:41 -04:00
Steven Black 0e43c64cce Merge pull request #395 from ScriptTiger/patch-2
Updated readme_template.md with "fakenews"
2017-08-21 20:14:23 -04:00
ScriptTiger f498b8c481 Updated readme_template.md with "fakenews"
Updated the "Extensions" section of the readme_template.md with the "fakenews" extension.
2017-08-22 07:51:02 +08:00
Steven Black accddb94bf New data from yoyo.org, someonewhocares.org, KADhosts, and Badd-Boyz. 2017-08-21 17:02:05 -04:00
gfyoung 9e72dfc455 Minor spelling fixes to README template 2017-08-21 10:32:37 -07:00
ScriptTiger a5907300bb Added "www.vdtrack.com" to "data/StevenBlack/hosts"
Follow-up to the last one.

127.0.0.1 www.vdtrack.com
2017-08-21 17:53:21 +08:00
ScriptTiger 1f58bed0ec Added "vdtrack.com" to "data/StevenBlack/hosts"
Found this one with some pop-ups, as well.

127.0.0.1 vdtrack.com
2017-08-21 17:49:55 +08:00
ScriptTiger a3aa9542a7 Added "performanceadexchange.com" to "data/StevenBlack/hosts"
Just discovered this one today while dealing with some pop-ups.

127.0.0.1 performanceadexchange.com
127.0.0.1 www.performanceadexchange.com
2017-08-21 17:06:39 +08:00
Steven Black ee181e1036 Merge pull request #384 from gfyoung/settings-refactor
Refactor out source data updating
2017-08-20 15:18:24 -04:00
gfyoung 262ad95791 Fix flake8 errors in updateReadme.py
xref commit 8fb2df
2017-08-20 11:58:16 -07:00
gfyoung 24ab22e139 Refactor out source data updating 2017-08-20 11:52:28 -07:00
Steven Black 1ee48fb718 Update the docs, remove the shallow clone proscription. 2017-08-20 12:18:57 -04:00
Steven Black db70e34166 Update the docs, remove the shallow clone proscription. 2017-08-20 12:18:05 -04:00
Steven Black 8b08fd73b5 New data from Badd-Boyz, someonewhocares.org, and yoyo.org. 2017-08-20 12:08:48 -04:00
Steven Black 8fb2dfa6de Fix typo. 2017-08-20 12:08:28 -04:00
Steven Black 3edb53c7d9 Remove references to .zip files in the tests. 2017-08-20 12:00:38 -04:00
Steven Black 68dcf5c125 Remove references to .zip files in the generator programs. 2017-08-20 12:00:19 -04:00
Steven Black 59c595ebcb Remove references to .zip files in docs. 2017-08-20 11:59:30 -04:00
Steven Black 2460908edf Remove all .zip files from the repo. 2017-08-20 11:47:46 -04:00
Steven Black 12ba2be538 New data from Badd-Boyz. 2017-08-18 11:14:37 -04:00
Steven Black e183d76381 New data from yoyo.org, someonewhocares.org, and Badd-Boyz. 2017-08-18 09:26:18 -04:00
Steven Black c43ddacee4 Merge pull request #387 from ScriptTiger/master
Corrected typo
2017-08-16 12:08:30 -04:00
ScriptTiger 684a125287 Corrected typo
Changed "acitive" to "active".
2017-08-16 15:13:30 +08:00
Steven Black 88245e2403 Merge pull request #386 from ScriptTiger/master
Updated README with ScriptTiger Projects
2017-08-15 21:50:36 -04:00
ScriptTiger 6047247711 Updated README with ScriptTiger Projects
Updated the README template with information on the related ScriptTiger projects.

https://github.com/StevenBlack/hosts/issues/272
2017-08-16 09:18:41 +08:00
Steven Black d4f3adcfe2 New Data from Badd-Boyz. 2017-08-15 11:26:37 -04:00
Steven Black 32495c334d New data from yoyo.org, someonewhocares.org, KADhosts, Badd-Boyz, and add.Risk. 2017-08-15 10:56:56 -04:00
Steven Black 7ad3417ad4 It's 2017. 2017-08-15 01:31:04 -04:00
Steven Black d1cccf7ace Merge pull request #379 from gfyoung/settings-refactor
Refactor out global settings usage in update logic
2017-08-12 13:34:59 -04:00
Steven Black ef8d36c8a9 New data from yoyo.org, and Badd-Boyz. 2017-08-12 11:15:47 -04:00
gfyoung f83a56d317 Refactor out global settings usage in update logic 2017-08-09 08:13:22 -07:00
Steven Black 18e89f121e New data from yoyo.org, someonewhocares.org, mvps.org, and KADhosts. 2017-08-08 11:36:11 -04:00
Steven Black b7c65a10dc Merge pull request #366 from gfyoung/settings-refactor
Refactor out global settings usage in exclusions
2017-08-07 12:26:54 -04:00
gfyoung 942069db81 Refactor out global settings usage in exclusions 2017-08-07 08:43:47 -07:00
Steven Black c00c233aab Merge pull request #373 from gfyoung/python-3.5-add
Add Python 3.5 testing to Travis
2017-08-05 21:59:08 -04:00
gfyoung 50dd78f74d Add Python 3.5 testing to Travis 2017-08-02 20:57:11 -07:00
Steven Black 5fe0dedf31 New data from sinfonietta, someonewhocares.org, and KADhosts. 2017-07-31 21:00:25 -04:00
Steven Black 66ad24ca60 New data from yoyo.org, someonewhocares.org, and Badd-Boyz. 2017-07-28 20:33:13 -04:00
Steven Black 7486a074f6 Merge pull request #369 from ScriptTiger/master
Added "androidads23.adcolony.com" to data\StevenBlack\hosts
2017-07-28 11:32:08 -04:00
ScriptTiger abd38b8d59 Added "androidads23.adcolony.com" to data\StevenBlack\hosts
Picked up "androidads23.adcolony.com" being called from Smule. Another AdColony node, "ads20.adcolony.com", is already added to one of the other lists. Apparently there are actually several of them, but I have only personally caught this one.
2017-07-28 23:25:50 +08:00
Steven Black 9498881bcc New data from eight different sources. 2017-07-26 01:21:48 -04:00
Steven Black 3cab5a2f88 Update readme_template – phrasing. 2017-07-26 01:18:44 -04:00
Steven Black a2b1b57c3b New data from Badd-Boyz. 2017-07-18 12:51:34 -04:00
Steven Black f3b2afa8c5 New data from add.risks. 2017-07-17 21:48:40 -04:00
Steven Black f7f8f5d482 New data from Synfonettia, yoyo.org, someonewhocares.org, KADhosts, and Badd-Boyz. 2017-07-17 14:06:38 -04:00
Steven Black 331417b07d Merge pull request #356 from gfyoung/settings-refactor
Refactor out global settings usage in user prompt
2017-07-13 14:27:21 -04:00
gfyoung 4b96f3f34a Refactor out global settings usage in user prompt 2017-07-13 08:20:03 -07:00
Steven Black a819131927 New data from yoyo.org, and Badd-Boyz. 2017-07-12 09:48:14 -04:00
Steven Black 02c0ba92fc New data from Badd-Boyz, and Sinfonettia. 2017-07-11 12:53:48 -04:00
Steven Black bf56886abf New data from yoyo.org, and Badd-Boyz. 2017-07-11 10:17:11 -04:00
Steven Black 0cbf5b618e Merge pull request #357 from gfyoung/test-script-rename
Rename Travis CI scripts
2017-07-11 10:07:24 -04:00
gfyoung 97963aea4f Rename Travis CI scripts 2017-07-10 20:27:48 -07:00
Steven Black 178f16374c New data from clefspeare13, Sinfionietta, yoyo.org, someonewhocares.org, KADhosts, and Badd-Boyz. 2017-07-10 21:14:39 -04:00
Steven Black 7ab30dec1e Merge pull request #355 from gfyoung/drop-nose-depend
Drop nose dependency on Travis
2017-07-10 17:38:53 -04:00
gfyoung 65eb217353 Drop nose dependency on Travis
Nose is not a well-supported library anymore.
Let's just use Python's builtin unittest library.
2017-07-09 20:26:12 -07:00
Steven Black d945d7bcc0 Merge pull request #341 from indrajitr/hostmatch-fix
Honor whitelist exclusion only for domain or subdomain match
2017-07-09 13:13:57 -04:00
Steven Black 20c0441069 Merge pull request #353 from indrajitr/normalized-host-test
Add more tests for normalized host filter

Thank you again, Indrajit @indrajitr !
2017-07-09 13:08:40 -04:00
Steven Black fb74f4ea38 Merge pull request #354 from meinhimmel/master
Fix the number of unique entries.

Thank you @meinhimmel !

Merging.
2017-07-09 13:06:54 -04:00
Dylan Armstrong 02a28cd05b Fix the number of unique entries. 2017-07-08 20:20:03 -05:00
Indrajit Raychaudhuri e8aeadb6b3 Add more tests for normalized host filter 2017-07-08 19:52:30 -05:00
Steven Black e213544f84 New data from yoyo.org, someonewhocares.org, malwaredomainlist.com, and KADhosts. 2017-07-04 13:27:40 -04:00
Steven Black 8759525e04 Merge pull request #348 from gfyoung/settings-refactor
Reduce dependency on global settings variable
2017-07-03 22:54:45 -04:00
gfyoung 415b89a022 Reduce dependency on global settings variable
Global variables make code less modular
and therefore more difficult to test.
2017-07-03 18:42:15 -07:00
Steven Black 0b5e8db26d Merge pull request #347 from gfyoung/osx-travis-add
Add OSX to Travis matrix
2017-06-29 10:49:36 -04:00
gfyoung d1ecc7bdd6 Add OSX to Travis matrix 2017-06-28 21:18:50 -07:00
Steven Black fdc9b6a92d Merge pull request #345 from gfyoung/update-unit-tests
Add unittests for updateHostsFile.py
2017-06-28 23:37:07 -04:00
gfyoung dce24af399 Add unittests for updateHostsFile.py 2017-06-28 20:13:01 -07:00
Steven Black bc0d5e3e38 New data from SpotifyAds, someonewhocares.org, KADhosts, and Badd-Boyz. 2017-06-28 18:18:07 -04:00
Steven Black 9c34dc9c19 New data from yoyo.org, mvps.org, and Badd-Boyz. Laicure remoed. 2017-06-24 07:52:41 -04:00
Steven Black 74a162d1cf Merge pull request #343 from Laicure/master
Withdrawing my list
2017-06-24 07:48:19 -04:00
Laicurè Leviarè c75ecc7db4 Delete update.json 2017-06-24 07:04:22 +08:00
Laicurè Leviarè 539c3ad29e Delete hosts 2017-06-24 07:04:11 +08:00
Steven Black 1d96ed88be New data from Laicure and Badd-Boyz 2017-06-22 11:46:39 -04:00
Indrajit Raychaudhuri fd046bc460 Honor whitelist exclusion only for domain or subdomain match
* Whitelisting `s.youtube.com` should not whitelist `ads.youtube.com`; but
  can whitelist `a.s.youtube.com`
* Whitelisting `twitter.com` should not whitelist `ttwitter.com` or
  `twitter.com.au`; but can whitelist `a.twitter.com`
2017-06-22 01:43:56 -05:00
Steven Black a892529a1b New data from yoyo.org, someonewhocares.org, Laicure, KADhosts, and Badd-Boyz. 2017-06-21 11:03:29 -04:00
Steven Black 2ad1144594 Merge pull request #338 from indrajitr/hostmatch-fix
Tighten regex rule to discard IP address as hostname
2017-06-21 10:33:59 -04:00
Indrajit Raychaudhuri 7e1b06ecf9 Tighten regex rule to discard IP address as hostname 2017-06-20 02:06:31 -05:00
Steven Black 297c699103 New data from FakeNews, yoyo.org, someonewhocares.org, laicure, and Badd-Boyz. 2017-06-11 11:45:31 -04:00
Steven Black 3d21c6343c New data from Sinfonetia, someonewhocares.org, KADhosts, and Badd-Boyz. 2017-06-05 23:58:25 -04:00
Steven Black 82c0aadca0 New data from sinfonetia, clefspeare13, yoyo.org, someonewhocares.org, malwaredomainlist.com, laicure, KADhosts, and Badd-Boyz. 2017-06-02 10:30:29 -04:00
Steven Black 365de116c8 New data from Badd-Boyz 2017-05-30 10:32:00 -04:00
Steven Black 71f452c0c5 New data from FakeNews, and Badd-Boyz. 2017-05-29 23:02:32 -04:00
Steven Black 96ac61c119 Merge pull request #325 from gfyoung/terminal-color-support
Check if terminal supports color
2017-05-29 23:00:35 -04:00
Steven Black a984263379 Merge pull request #324 from gfyoung/dns-cache-linux-refactor
Refactor DNS cache flushing for Linux
2017-05-29 22:59:58 -04:00
gfyoung 2d6a8676a4 Check if terminal supports color
Closes gh-151.
2017-05-28 12:40:32 -04:00
gfyoung 3b581ce782 Refactor DNS cache flushing for Linux 2017-05-28 12:40:25 -04:00
Steven Black b7569a0abd New data from yoyo.org, someonewhocares.org, Laicure, KADhosts, and Badd-Boyz. 2017-05-28 10:43:49 -04:00
Steven Black 13af5aa97d Merge pull request #308 from gfyoung/python-script-doc
Document all functions in Python scripts
2017-05-24 08:50:11 -04:00
gfyoung 51a0ec21bd Document all functions in Python scripts 2017-05-23 21:58:22 -04:00
Steven Black 674c903ada New data from yoyo.org, someonewhocares.org, Laicure, and Badd-Boyz 2017-05-23 10:11:04 -04:00
Steven Black 67dea02b9c Merge pull request #317 from gfyoung/make-hosts-python
Create makeHosts file in Python
2017-05-23 10:08:00 -04:00
Steven Black 526a457a38 Merge pull request #322 from gfyoung/kde-neon-dns-cache
Check /usr/lib and /lib for systemd
2017-05-23 10:03:22 -04:00
Steven Black b064f9c092 Merge pull request #323 from gfyoung/unicode-str-join
Concatenate str only in os.path.join
2017-05-23 00:16:03 -04:00
gfyoung 2aecbf9707 Concatenate str only in os.path.join
Closes gh-316.
2017-05-22 23:31:35 -04:00
gfyoung 8806131c74 Check /usr/lib and /lib for systemd
Closes gh-321.
2017-05-22 21:19:31 -04:00
gfyoung 90afb0c623 Create makeHosts file in Python
Closes gh-316.
2017-05-21 22:30:36 -04:00
Steven Black 30cbb9a1ec Merge pull request #319 from gfyoung/path-join-robust
Wrap os.path.join to handle LOCALE issues (take 2)
2017-05-21 22:26:02 -04:00
gfyoung 8f3e71e327 Wrap os.path.join to handle LOCALE issues
Closes gh-81.
Closes gh-318.
2017-05-21 21:51:13 -04:00
Steven Black a593138734 New data by Clefspeare, yoyo.org, someewhocares.org, Laicure, KADhosts, and Badd-Boyz. 2017-05-21 21:39:18 -04:00
Steven Black d343798ed1 Ref: Issue #312 undo commit 2ff5dc2
cc @gfyoung

Commit 2ff5dc2 is generating errors on macOS.

See Issue #318.
2017-05-21 21:34:54 -04:00
Steven Black 6708d74034 Latest freshest host files. 2017-05-21 10:48:17 -04:00
Steven Black 2fae89db0e Merge pull request #312 from gfyoung/path-join-robust
Wrap os.path.join to handle LOCALE issues
2017-05-21 10:42:20 -04:00
gfyoung c8e8ddee6c Wrap os.path.join to handle LOCALE issues
Closes gh-81.
2017-05-19 16:27:12 -04:00
Steven Black f87290eff8 Merge pull request #310 from gfyoung/ubuntu-mint-dns-cache
Add DNS cache flushing calls for Linux
2017-05-19 07:30:54 -04:00
Steven Black 4b8be02a64 Merge pull request #309 from gfyoung/get-file-by-url-robust
Don't crash if data source unreachable
2017-05-19 07:28:03 -04:00
gfyoung b3838ef2d2 Add DNS cache flushing calls for Linux
1) Add command for Linux Mint
2) Add additional command for NCSD cache

Closes gh-128.
2017-05-18 11:30:23 -04:00
gfyoung 8cb610a757 Don't crash if data source unreachable
Closes gh-26.
2017-05-18 00:17:11 -04:00
Steven Black c0196ce5dc Merge pull request #304 from gfyoung/update-readme-doc-clarify
Reorganize cross-platform instructions for repo usage
2017-05-17 23:12:59 -04:00
gfyoung 931f69ff22 Reorganize cross-platform instructions for repo usage 2017-05-17 23:04:30 -04:00
Steven Black 11791fc09c Merge pull request #303 from gfyoung/update-readme-doc
Lift restriction on Python 3.x for makeHosts*
2017-05-17 22:58:13 -04:00
gfyoung 96c7287584 Lift restriction on Python 3.x for makeHosts* 2017-05-17 02:35:46 -04:00
Steven Black 06611e48a0 New data from fakenews, mvps.org, and malwaredomainlist.com. 2017-05-16 22:02:58 -04:00
Steven Black fc57dc72a7 Merge pull request #306 from gfyoung/update-hosts-windows
Lift Python 3.5.x restriction on updateHostsWindows.bat
2017-05-16 14:32:17 -04:00
gfyoung eed24ab456 Lift Python 3.5.x restriction on updateHostsWindows.bat 2017-05-16 13:47:54 -04:00
Steven Black b1bfce7a1c Issue #298 and #302: rebuild the readme files to include the travis build status. 2017-05-15 20:52:25 -04:00
Steven Black a8848911ad Merge pull request #302 from gfyoung/travis-svg-readme
Add Travis SVG to README
2017-05-15 20:49:13 -04:00
gfyoung fe963d599a Add Travis SVG to README 2017-05-15 20:45:39 -04:00
Steven Black 61c4b096d6 New data from Laicure and Badd-Boyz. 2017-05-15 20:44:09 -04:00
Steven Black 816bb34bcd Merge pull request #301 from gfyoung/travis-flake8-testing
Add Travis for style checking
2017-05-15 20:35:09 -04:00
gfyoung 7aad916f71 Add Travis for style checking
Closes gh-298.
2017-05-15 20:30:01 -04:00
Steven Black 213490e73f Merge pull request #300 from gfyoung/flake8-fixes
Patch all style errors in updateReadme.py
2017-05-15 17:11:28 -04:00
gfyoung dfe66197f5 Patch all style errors in updateReadme.py 2017-05-15 15:13:39 -04:00
Steven Black c4463bc5bb Merge pull request #299 from gfyoung/flake8-fixes
Patch all style errors in updateHostsFile.py
2017-05-15 15:09:08 -04:00
gfyoung 26cac85ca3 Patch all style errors in updateHostsFile.py 2017-05-15 15:00:16 -04:00
Steven Black 799510b46d Merge pull request #297 from gfyoung/camel-underscore-consistency
Standardize underscore names in updateHostsFile.py
2017-05-15 14:50:06 -04:00
gfyoung 21dd1d9d56 Standardize underscore names in updateHostsFile.py 2017-05-15 13:32:39 -04:00
Steven Black d2bd759a76 Merge pull request #296 from gfyoung/python-three-compat
Condense Python 2-3 compatibility code
2017-05-15 10:13:44 -04:00
gfyoung 0015363385 Condense Python 2-3 compatibility code 2017-05-14 22:30:36 -04:00
Steven Black 0347097610 Merge pull request #294 from gfyoung/custom-exclusions-condense
Condense exclusion customization logic
2017-05-14 22:14:48 -04:00
gfyoung 190592577d Condense exclusion customization logic 2017-05-14 22:10:19 -04:00
Steven Black 05e94500ab Merge pull request #291 from gfyoung/flush-dns-cache-windows
Clean up updateHostsFile.py
2017-05-14 22:10:16 -04:00
gfyoung ceb3765d24 Flush DNS cache on Windows 2017-05-14 22:07:43 -04:00
Steven Black 4f26529c5a Merge pull request #295 from gfyoung/print-statement-spacing
Remove unnecessary space between print and parenthesis
2017-05-14 22:06:28 -04:00
gfyoung 118a8e78a5 Remove unnecessary space between print and parenthesis 2017-05-14 14:54:24 -04:00
Steven Black 83af37862c Merge pull request #292 from gfyoung/remove-unused-imports
Remove unnecessary imports in updateHostsFile.py
2017-05-14 11:03:22 -04:00
Steven Black 03dfcb4c3d Merge pull request #293 from gfyoung/query-yes-no-return
Have query_yes_no return boolean
2017-05-14 10:41:56 -04:00
gfyoung 5830bb8db0 Have query_yes_no return boolean
Bugs have been found where we assumed
that query_yes_no returned True/False.
Not only is it easier to check booleans
instead of strings, but it also looks
a lot cleaner in the code.
2017-05-14 00:15:58 -04:00
gfyoung de2e45e8b2 Remove unnecessary imports in updateHostsFile.py 2017-05-13 23:43:00 -04:00
Steven Black aee73f7662 New data from yoyo.org, someonewhocares.org, Laicure, and Badd-Boyz. 2017-05-13 19:51:23 -04:00
Steven Black f4b5dbb13f Merge pull request #290 from giulio92/minor-readme-fixes
Minor readme fixes
2017-05-13 19:41:44 -04:00
Giulio Lombardo 67cb80bed3 Apply readme.md changes to readme_template.md 2017-05-13 16:58:26 +02:00
Giulio a18a6ba277 Fix wrong code formatting 2017-05-12 20:32:36 +02:00
Giulio Lombardo e0e9b51866 Fix double ` character 2017-05-12 20:25:06 +02:00
Steven Black f311e32923 New data from Sinfionetta, someonewhocares.org, and Badd-Boyz. 2017-05-10 21:55:02 -04:00
Steven Black 72a23203f6 Merge pull request #286 from gfyoung/flush-dns-cache-bug
Patch promptForFlushDnsCache Bug
2017-05-08 23:04:26 -04:00
Steven Black 9e86c3d086 Merge pull request #285 from gfyoung/gitignore-add
Add .idea and .iml to .gitignore
2017-05-08 23:02:55 -04:00
Steven Black 88ca35a27d New data from Clefspeare13 and laicure. 2017-05-08 22:33:02 -04:00
gfyoung 5799113f2c Add .idea and .iml to .gitignore 2017-05-08 01:13:56 -04:00
gfyoung bdce1217bb Patch response checking in promptForFlushDnsCache
Previously, it was checking if query_yes_no returned
False, which does not happen, as the function only
returns "yes" or "no". As a result, the check was
always returning True, even when the user did not
want to flush the DNS cache.
2017-05-08 01:10:40 -04:00
Steven Black a5a2bdf32c New data from yoyo.org, someonewhocares.org, laicure, KADhosts, and Badd-Boyz. 2017-05-07 13:34:09 -04:00
Steven Black acb367561a Merge pull request #282 from DPTJKKVH/patch-1
Include 127.0.0.53 <hostname> to fix DNS issues in Ubuntu 17.04
2017-05-07 13:12:12 -04:00
Steven Black 29d23223d5 New data from clefspear, yoyo.org, someobewhocares.org, malwaredomainlist.com. laicure, and Badd-Boyz. 2017-05-02 19:06:03 +02:00
Steven Black 9ea644b65e New data from malwaredomainlist.com, Laicure, KADHosts, and Badd-Boyz. 2017-04-26 10:09:36 -04:00
Steven Black c63662bd2e New data from someonewhocares.org, laicure, and Badd-Boyz. 2017-04-25 12:58:52 -04:00
DPTJKKVH f9e8910ba0 Include 127.0.0.53 <hostname> to fix DNS issues from Ubuntu 17.04 onwards
Ubuntu 17.04 replaces dnsmasq with systemd-resolve which uses a different local IP address for domain name resolution.
By including this simple line of code we basically do the same what Issue #110 requested to fix Issue #109 but this time for systemd-resolve.
2017-04-23 11:20:29 +02:00
Steven Black abca8170dd New data from someonewhocares.org, Laicure, Badd-Boyz, and yoyo.org. 2017-04-22 21:22:50 -04:00
Steven Black 3e97045178 New data from Laicure, someonewhocares.org, and Badd-Boyz. 2017-04-18 14:00:52 -04:00
Steven Black 268bdc23f4 New data source from Laicure. 2017-04-18 13:55:07 -04:00
Steven Black 59ada550c5 New data from Badd-Boyz. 2017-04-17 10:02:19 -04:00
Steven Black 46cde24aff Merge pull request #275 from jwilk/readme
Fix incorrectly wrapped lines in readmes
2017-04-16 11:41:53 -04:00
Jakub Wilk 126be6e9ec Fix incorrectly wrapped lines in readmes 2017-04-16 08:54:05 +02:00
Steven Black cb4ac08375 New data from yoyo.org, someonewhocares.org, and Badd-Boyz. 2017-04-15 11:56:44 -04:00
Steven Black eb849c741d New data from sinfonietta, clefspeare13, mvps.org, KADhosts, and Badd-Boyz. 2017-04-13 21:26:20 -04:00
Steven Black 41103c04da Merge pull request #273 from FadeMind/patch-1
[FIX] traceroute and netstat display anomaly
2017-04-13 13:50:30 -04:00
Tomasz Przybył 71f2b8ee3f [FIX] traceroute and netstat display anomaly
Based on hosts file generated by Uncheky app
@StevenBlack
2017-04-13 19:21:10 +02:00
Steven Black 71213ce30d New data from fakenews, and Badd-Boyz. 2017-04-11 17:21:10 -04:00
Steven Black be17527117 Fine-tune that shallow-clone recommendation. 2017-04-08 23:01:33 -04:00
Steven Black 4e1238dd6f Issue #272: update the readme files with the shallow clone recommendation. 2017-04-08 22:58:27 -04:00
Steven Black 9d0ad35b7b Testing the shallow-clone notification. 2017-04-08 22:51:36 -04:00
Steven Black a3a21dd658 New data from someonewhocares.org, yoyo.org, Clefspeare, KADhosts, and Badd-Boyz. 2017-04-08 22:17:14 -04:00
Steven Black 292c2cb7ea New data from yoyo.org, someonewhocares.org, and Badd-Boyz. 2017-04-05 13:06:37 -04:00
Steven Black 590b62111e Trim periods in addition to whitespace. Closes #271. 2017-03-30 12:08:50 -04:00
Steven Black ead3839c10 New data from Fake News, someonewhocares.org, KADHosts, and Badd-Boyz. 2017-03-30 10:44:13 -04:00
Steven Black 0f092f8e43 New data from yoyo.org, and badd-boys. 2017-03-25 17:11:18 -04:00
Steven Black 4013a3be1f New data from someonewhocares.org, malwaredomainlist.com, and Badd-Boyz. 2017-03-22 16:55:37 -04:00
Steven Black 1e7f4cbdc0 New updates from yoyo.org, someonewhocares.org, malwaredomainlist.com, and Badd-Boyz. 2017-03-20 00:57:10 -04:00
Steven Black 42858806e3 Merge pull request #268 from ryanguest/master
Fix spelling error in Windows script
2017-03-20 00:54:24 -04:00
Ryan Guest 3aa658b7af Fix spelling error in Windows script 2017-03-19 19:39:44 -07:00
Steven Black ad05a4d936 Merge pull request #264 from mueller-ma/patch-2
fix link
2017-03-18 14:17:07 -04:00
mueller-ma a0ac3de3bd fix link 2017-03-18 09:11:12 +01:00
Steven Black fa41089c40 New data from someonewhocares.org and Badd-Boyz. 2017-03-16 14:55:35 -04:00
Steven Black 05cfdc4379 Fix the readme template since Github parses markdown headings differently. 2017-03-16 14:54:02 -04:00
Steven Black 0baba30389 New data from yoyo.org, someonewhocares.org, mvps.org, malwaredomainlist.com, KADhosts, and Badd-Boyz. 2017-03-15 22:26:44 -04:00
Steven Black 1681571174 New data from yoyo.org, someonewhocares.org, mvps, and Badd-Boyz. 2017-03-10 23:49:11 -05:00
Steven Black 5809e5d1af Add a link to doing this with Unbound. 2017-03-10 23:44:27 -05:00
Steven Black 44cb96fbaf New section, Interesting Applications in the readme. Closes #243. 2017-03-10 23:24:18 -05:00
Steven Black 42c43cc0c3 New data from Badd-Boyz, malwaredomainlist.com, someonewhocares.org, and yoyo.org. 2017-03-07 10:20:31 -05:00
Steven Black df6a916949 Merge pull request #261 from Hywan/patch-1
Fix markup
2017-03-07 10:13:58 -05:00
Ivan Enderlin 978f813602 Fix markup 2017-03-07 14:49:21 +01:00
Steven Black 2f10d40a30 Merge pull request #260 from seaside98/patch-1
Add documentation on how to pull this repo without conflicts
2017-03-07 00:35:50 -05:00
Addison 56392a2220 Add documentation on how to pull without conflicts
Per #255
2017-03-06 19:37:56 -06:00
Steven Black ac33a449af New data from yoyo.org, someonewhocares.org, KADhosts, and Badd-Boyz. 2017-03-04 10:37:45 -05:00
Steven Black 185a2ffcd0 New data from Fakenews, yoyo.org, someonewhocares.org, KADhosts, and Badd-Boyz. 2017-03-01 17:42:28 -05:00
Steven Black d76a8c8344 New data from Badd-Boyz and KADhosts. 2017-02-26 12:52:15 -05:00
Steven Black cf5a79acb5 New data from FadeMind and two hosts supplied by John Cairns. 2017-02-24 17:03:17 -05:00
Steven Black b567cd175e Adding login.dotomi.com and login.dotomi.net. 2017-02-24 17:00:38 -05:00
Steven Black 974523e82a New data from yoyo.org and Badd-Boyz. 2017-02-24 10:58:10 -05:00
Steven Black 989cea6eb2 New update from Badd-Boyz. 2017-02-23 10:32:42 -05:00
Steven Black 2d8f72361a New update from Bad-Boyz hosts. 2017-02-23 09:25:34 -05:00
Steven Black bcf3bb9bdf com-notice.info 2017-02-22 15:35:03 -05:00
Steven Black 9cad8abbe8 New data source by @mitchellkrogza, new data from someonewhocares.org and KADhosts. 2017-02-22 09:36:02 -05:00
Steven Black 63a637b848 Merge pull request #248 from mitchellkrogza/master
New Data from Mitchell Krog’s - Badd Boyz Hosts list.
2017-02-22 09:33:37 -05:00
Mitchell Krog f98432334f New Data from Mitchell Krog’s - Badd Boyz Hosts list. 2017-02-22 12:17:26 +02:00
Steven Black d81c87fcdb New data from KADhosts and someonewhocares.org. 2017-02-20 15:38:15 -05:00
Steven Black 5a1447a385 Issue #243: Generate new hosts files and readme files. 2017-02-17 22:33:00 -05:00
Steven Black 83fb4402ca Issue #243: documentation: new flag named —keepdomaincomments, short form -k, to keep in-line domain comments. 2017-02-17 22:31:13 -05:00
Steven Black 3ccf4cca0f Issue #243: fix - don’t include domain comments, by default. 2017-02-17 22:29:58 -05:00
Steven Black 1cd314ea15 New data from yoyo.org and malwaredomainlist.com 2017-02-17 15:55:02 -05:00
Steven Black d768c8637f New data from Sinfonietta and someonewhocares.org. 2017-02-15 19:12:07 -05:00
Steven Black 68dcfe80cc Add Apple spoofing site. 2017-02-13 12:35:25 -05:00
Steven Black e3b1d708e1 New data from Sinfonietta (porn hosts). 2017-02-11 20:49:36 -05:00
Steven Black 1b96476f4b Update the readme template - better wording around the hphosts file. 2017-02-11 20:47:48 -05:00
Steven Black 00c37fe815 New data from yoyo.org, someonewhocares.org, and malwaredomainlist.com. 2017-02-10 20:27:09 -05:00
Steven Black d574b23c30 New data from malwaredomainlist.com. 2017-02-07 19:32:00 -05:00
Steven Black bb5c265ac6 New data from malwaredomainlist.org. 2017-02-07 00:00:47 -05:00
Steven Black a8fbeadca9 New data from Sinfonietta. 2017-02-04 14:07:34 -05:00
Steven Black dd070f7227 New data from clefspeare13, fakenews, and yoyo.org. 2017-02-04 13:54:13 -05:00
Steven Black 445ea68155 Adding privacyassistant.net. 2017-01-31 19:06:20 -05:00
Steven Black f02dafcf1e New data from someonewhocares.org, yoyo,org, Sinfonietta, KADhosts, and Adaway. 2017-01-31 18:18:36 -05:00
Steven Black 1badad767b New data from @clefspeare13, @sinfonietta, someonewhocares.org, mvps.org, and malwaredomainlist.com 2017-01-26 14:59:45 -05:00
Steven Black 7bd47e5c77 Added sportsinteraction.com. 2017-01-22 19:21:13 -05:00
Steven Black 2a00322373 New data from KADhosts, yoyo.org, and @clefspeare13. 2017-01-22 17:30:43 -05:00
Steven Black 74093a1815 Issue #220: removing WindowsSpyBlocker. 2017-01-22 17:28:30 -05:00
Steven Black 6837cc5d07 New data from clefspeare13 and malwaredomainlist.com. 2017-01-20 02:40:33 +00:00
Steven Black c58575fd13 Another misspelling squatter that leads to phish. 2017-01-18 18:26:29 -05:00
Steven Black 35da1203d4 Another phish site. 2017-01-18 15:35:50 -05:00
Steven Black 26f12c32ac Latest hosts files and readme. 2017-01-18 11:43:03 -05:00
Steven Black 4ad0ee68c7 Adding a survey company that comes up when you mistype a url. 2017-01-18 11:40:20 -05:00
Steven Black 6fea8ce8fc New data from KADhosts, someonewhocares.org, and Fake News. 2017-01-18 10:29:37 -05:00
Steven Black a90c5d53fd New data from malwaredomainlist.org and yoyo.org. 2017-01-14 14:49:56 -05:00
Steven Black 37c58a63b6 New data from clefspeare and Steven Black. 2017-01-11 16:49:42 -05:00
Steven Black e31711c67c Blocking goodblock.gladly.io. 2017-01-11 10:03:03 -05:00
Steven Black 67a9c318f0 Added fgoogle.com. 2017-01-10 19:41:17 -05:00
Steven Black c7c05bc77f New data from yoyo.org, someonewhocares.org, malwaredomainlist.com, and KADhosts. 2017-01-10 15:03:37 -05:00
Steven Black 0a00ff400b Regeneration with the KADhosts source. 2017-01-05 16:35:42 -05:00
Steven Black 851d6cbf0f Restoring KADhosts. 2017-01-05 16:34:35 -05:00
Steven Black f22c5742d2 New data from someonewhocares.org, and adjustments from FadeMind/hosts.extras. 2017-01-05 10:29:11 -05:00
Steven Black 15581e7b80 Remove KADhosts
As per [0357f16d074f9](https://github.com/FadeMind/hosts.extras/commit/0357f16d074f9).
2017-01-05 10:26:23 -05:00
Steven Black c280d584c3 New data from yoyo.org, someonewhocares.org, and KADhosts. 2017-01-02 18:04:50 -05:00
Steven Black 857a67ddad New data from someonewhocares.org, KADhosts, and Steven Black 2016-12-28 21:42:51 -05:00
Steven Black a2f273c911 Added another scumbag domain. 2016-12-28 21:39:43 -05:00
Steven Black 3af5b844b0 New data from someonewhocares.org, and clefspeare. 2016-12-27 20:17:00 -05:00
Steven Black b979da9e3d New data from someonewhocares.org, yoyo.org. 2016-12-25 21:45:30 -05:00
Steven Black 3ec346d074 New data from Fake News, yoyo.org, someonewhocares.org. 2016-12-22 23:42:22 -05:00
Steven Black bb077d9aa3 New data from Fake News, yoyo.org, someonewhocares.org. 2016-12-22 23:41:53 -05:00
Steven Black e1517d7dd6 Merge branch 'pr/226'
* pr/226:
  Missing args (#225) Add title to bat windows

# Conflicts:
#	updateHostsWindows.bat
2016-12-22 10:39:42 -05:00
crazy-max ff05417f78 Missing args (#225)
Add title to bat windows
2016-12-22 16:30:26 +01:00
Steven Black 32a13332c3 Issue #225: fix - revert updateHostsWindows.bat to 014e7c3ee 2016-12-22 10:28:24 -05:00
Steven Black 6da8deaf03 Merge pull request #223 from crazy-max/master
Force updateHostsWindows.bat to be launched as Administrator
2016-12-21 23:50:46 -05:00
crazy-max 7a03d3a68e Update README.md 2016-12-22 04:26:32 +01:00
crazy-max 8c071873d3 No need to detect Administrator privileges for XP / 2003 2016-12-22 04:25:56 +01:00
crazy-max a32282b508 Force to be launched as Administrator 2016-12-22 04:20:00 +01:00
Steven Black a28ee0e959 Issue #220: fix - now removing the extra-winxx data sources. 2016-12-21 22:17:16 -05:00
Steven Black 41829e314d Issue #220: regenerating hosts files to re-enable login.live.com. 2016-12-21 20:50:09 -05:00
Steven Black fc47260d86 Issue #220: fix - to not block login.live.com, rename hosts to _hosts, update.json to _update.json. 2016-12-21 20:48:41 -05:00
Steven Black 0cf71fc564 New data from clefspeare13 and someonewhocares.org. 2016-12-21 11:14:04 -05:00
Steven Black b4b37cc747 Merge pull request #221 from FadeMind/master
WindowsSpyBlocker main merge
2016-12-21 10:31:48 -05:00
Tomasz Przybył 06cd80329f WindowsSpyBlocker main merge. Purge Telemetry dir 2016-12-21 12:51:52 +01:00
Tomasz Przybył 50a68dcc15 Merge pull request #13 from StevenBlack/master
merge
2016-12-21 12:33:53 +01:00
Steven Black a9d7a7ce3c New data from UncheckyAds, Telemetry, SpotifyAds, and someonewhocares.org. 2016-12-20 22:56:09 -05:00
Steven Black f15dbc0efc New data from someonewhocares.org 2016-12-19 09:52:21 -05:00
Steven Black 89e4b9827c New domains tracking me. 2016-12-19 09:50:40 -05:00
Tomasz Przybył 6eec9cffa9 Merge pull request #12 from StevenBlack/master
merge
2016-12-19 15:32:09 +01:00
Steven Black 745dc5882c Format readme_template.md to wrap at 80-columns. 2016-12-18 23:43:52 -05:00
Steven Black 85babd9720 Recursively collect files in subfolvers in Python versions below 3.5. This closes Issue #218. 2016-12-18 23:17:01 -05:00
Steven Black 69787bb30f New data from KADhosts and fake news. 2016-12-18 20:00:40 -05:00
Steven Black 6a675bcae6 Nest two sources of porn hosts. 2016-12-18 19:58:54 -05:00
Steven Black db58b6db95 Allow nesting of base hosts data, and within extension folders. 2016-12-18 19:57:55 -05:00
Steven Black d39ad733dc ‘hostsFile’ is a better variable name here than ‘dataFile’. 2016-12-18 18:34:41 -05:00
Steven Black ad2100aaf2 ‘hostsfilename’ is a better variable name than ‘datafilenames’. 2016-12-18 18:32:44 -05:00
Steven Black ac2a06f74b Updating all sources: add recursive=True to the call to glob() 2016-12-18 17:55:55 -05:00
Steven Black c022c2b230 Update data regardless fo folder depth using glob.glob(). 2016-12-18 11:02:21 -05:00
Steven Black d1c3921eb7 Restore updateHostsFile.py to 7119b725e7 because the prior commit’s diff is cluded by space/tab changes. 2016-12-18 10:55:35 -05:00
Steven Black 104aa50026 Add .editorconfig to the repository. 2016-12-18 10:49:04 -05:00
Steven Black 66f2f351ca Regenerated new hosts files. 2016-12-18 00:36:37 -05:00
Steven Black e97b6f304f New data from Fake News and yoyo.org. 2016-12-18 00:36:09 -05:00
Steven Black d3b8cc7339 Refactoring in updateHostsFile.py 2016-12-18 00:34:12 -05:00
Steven Black c596ef948f New extension, and attendant combinations: FAKENEWS 2016-12-17 14:28:47 -05:00
Steven Black 61317acc18 New data from yoyo.org. 2016-12-17 14:27:34 -05:00
Steven Black b831f6b8ef New domain from @ValbonneConsulting 2016-12-17 13:47:14 -05:00
Steven Black bba241e494 latest gitignore. 2016-12-17 13:47:14 -05:00
Steven Black d039616ae3 Merge pull request #217 from FadeMind/master
BAT files: change PATH for lookin DLL file check
2016-12-17 13:46:58 -05:00
Tomasz Przybył 38ab381c8c BAT files: change PATH for lookin DLL file check 2016-12-16 11:34:13 +01:00
Tomasz Przybył 100d0dfb88 Merge pull request #11 from StevenBlack/master
merge
2016-12-16 11:27:49 +01:00
Steven Black 63a4ae9625 New data from KADHosts, someonewhocares.org, and porn and gambling extensions. 2016-12-15 13:20:48 -05:00
Steven Black 2fbd0e1d53 Update the readme_template for the non-github mirror versions. 2016-12-15 13:18:58 -05:00
Tomasz Przybył 22cc97393f Merge pull request #10 from StevenBlack/master
merge
2016-12-12 20:07:10 +01:00
Steven Black 0cd2e323c0 New data from Telemetry/hosts. 2016-12-12 13:04:57 -05:00
Steven Black 1b0c75fe9e Merge pull request #214 from FadeMind/master
update.json frequency naming consequence
2016-12-11 15:17:43 -05:00
Tomasz Przybył 2db8dc76e6 update.json frequency naming consequence 2016-12-11 20:41:39 +01:00
Tomasz Przybył fa3ecb0698 Merge pull request #9 from StevenBlack/master
merge
2016-12-11 20:35:08 +01:00
Steven Black 7119b725e7 Added metadata to Sinfonietta’s hosts source files. 2016-12-11 13:44:51 -05:00
Steven Black 0877758116 New data from yoyo.org, mvps.org, malwaredomainlist.com, and KADhosts. 2016-12-11 13:24:00 -05:00
Steven Black 9c447cfa3a Create and fill a table of sources used for the base hosts file. 2016-12-11 12:48:57 -05:00
Steven Black e22e3dc594 Create a sourcesdata hash for each flavor of hosts file generated. 2016-12-11 12:22:51 -05:00
Steven Black 3f4bfa2d70 Code commenting. 2016-12-11 12:22:02 -05:00
Steven Black d089583a45 This code is never called. 2016-12-11 12:21:38 -05:00
Steven Black 962010ddcc Issue #208: fix - save the source data to populate the reame files. 2016-12-10 23:52:42 -05:00
Steven Black 8fbd424850 Make the template expression more concise. 2016-12-10 23:51:37 -05:00
Steven Black 797507de66 Merge pull request #213 from FadeMind/master
update.json: descriptions
2016-12-10 15:44:34 -05:00
Steven Black bff04f2d39 Merge pull request #212 from tomhoover/add-blacklist
add an optional blacklist file
2016-12-10 15:43:21 -05:00
Tom Hoover 1e4de72b65 add 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.
2016-12-10 14:17:56 -06:00
Tomasz Przybył b8048e063d update.json: deccriptions 2016-12-10 20:57:19 +01:00
Tomasz Przybył 696cda3cf7 Merge pull request #8 from StevenBlack/master
merge
2016-12-10 20:49:09 +01:00
Steven Black 4dfdc9ea72 Documentation – update all the readme.md files. 2016-12-09 22:03:02 -05:00
Steven Black 5d103895ae Issue #208: Add data attributes to a number of update.json files. 2016-12-09 21:58:23 -05:00
Steven Black 9532ee898c New data from yoyo.org, someonewhocares.org, and KADhosts. 2016-12-09 21:02:08 -05:00
Steven Black a6fcff9f22 Change update.info files to update.json, update the python generators, and docs. 2016-12-09 20:59:43 -05:00
Tomasz Przybył 51f55a989c Merge pull request #7 from StevenBlack/master
merge
2016-12-09 22:16:53 +01:00
Steven Black 6d414b758a New data from someonewhocares.org. 2016-12-05 20:45:04 -05:00
Steven Black acb1e1d55a New data from KADHosts and someonewhocares.org. 2016-12-03 16:56:59 -05:00
Steven Black 240ebffbcb New data from yoyo.org, KADHosts, and blocking help.evernote.com. 2016-12-02 11:42:10 -05:00
Steven Black da67ec9305 Adding help.evernote.com because their browser addin spam doesn’t behave ethically. 2016-12-02 11:40:41 -05:00
Steven Black e585adb773 New data from yoyo.org, KADhosts, and adaway.org. 2016-12-01 19:51:24 -05:00
Steven Black 36f102c133 New data from KADhosts and Sinfonietta. 2016-11-27 12:47:50 -05:00
Steven Black e256aea46f New data from yoyo.org, KADhosts, and Sinfionetta. 2016-11-26 10:49:51 -05:00
Steven Black 7264aa1ae3 New data from Sinfionetta, yoyo.org, someonewhocares.org, and KADhosts. 2016-11-25 00:07:05 -05:00
Steven Black 9a13ef602b New data from extensions, yoyo.org, and someonewhocares.org. 2016-11-22 10:30:06 -05:00
Steven Black 05c7eac9fe Got this popup today. 2016-11-22 10:28:08 -05:00
Steven Black 97efee6ef3 Latest hosts files after recent merge. 2016-11-20 11:32:37 -05:00
Steven Black 556cd0e8af Merge pull request #203 from FadeMind/master
KADhosts init merge
2016-11-20 11:07:05 -05:00
Tomasz Przybył f6b98d1df7 fix 213 line ! mark 2016-11-20 14:21:02 +01:00
Tomasz Przybył d13d380070 KADhosts init merge
fraud/scam/adware blocking. Mostly Polish domains.
2016-11-20 14:10:19 +01:00
Tomasz Przybył 508194e603 Merge pull request #6 from StevenBlack/master
merge
2016-11-20 14:03:23 +01:00
Steven Black b485a3ea15 New data from yoyo.org, someonewhocares.org, and malwaredomainlist.com. 2016-11-19 19:37:57 -05:00
Steven Black c1be4d1f8b New data from yoyo.org, someonewhocares.org, and malwaredomainlist.com. 2016-11-15 18:30:47 -05:00
Tomasz Przybył f9736703e8 Merge pull request #5 from StevenBlack/master
merge
2016-11-14 19:53:36 +01:00
Steven Black 8e95f8858c New data from malwaredomainlist.com, and someonewhocares.org. 2016-11-10 11:09:49 -05:00
Steven Black b378437bd0 New data from someonewhocares.org, and block mywot domain now blocked. 2016-11-08 08:42:30 -05:00
Steven Black ab0295bf65 Merge pull request #199 from FadeMind/master
block mywot domain against risky addons for browsers
2016-11-08 08:40:56 -05:00
Tomasz Przybył 721c4033d5 block mywot domain
Web Of Trust developers selling collected data: 
http://thehackernews.com/2016/11/web-of-trust-addon.html
http://www.ghacks.net/2016/11/01/browsing-history-sold/
2016-11-08 13:41:37 +01:00
Tomasz Przybył e48e1b8106 Merge pull request #4 from StevenBlack/master
merge
2016-11-08 13:33:51 +01:00
Steven Black 9b2b4d0354 New data from malwaredomainlist.com, someonewhocares.org, and yoyo.org. 2016-11-08 06:06:30 +00:00
Steven Black 079cbfd68b New data from someonewhocares.org and extensions/porn. 2016-11-03 12:57:54 -04:00
Steven Black 415fc40ae5 New data from malwaredomainlist.org and extensions/porn. 2016-11-01 09:50:33 -04:00
Steven Black 5a11f8194a New data from someonewhocares.org, and yoyo.org. 2016-10-29 19:15:37 -04:00
Steven Black f1fa518971 New data from malwaredomainlist.com, someonewhocares.org, and extensions/porn. 2016-10-25 18:46:06 -04:00
Tomasz Przybył c71841d637 Merge pull request #3 from StevenBlack/master
merge
2016-10-23 20:56:36 +02:00
Steven Black 2ef28cd492 Data updates and regeneration of latest hosts files. 2016-10-23 13:48:12 -04:00
Steven Black 38092c1046 Merge pull request #195 from FadeMind/patch-2
StevenBlack:hosts fraud/phishing/scam website rule
2016-10-23 13:41:24 -04:00
Tomasz Przybył 713cf4a06a StevenBlack:hosts fraud/phishing/scam website rule
Domain dobre-programy.pl is a fraud/scam/phishing website. Blocked as dangerous in ESET.
VALID and very good portal is dobreprogramy.pl (without minus in name).
@StevenBlack
More: http://www.dobreprogramy.pl/Niebezpieczna-podrobka-naszego-portalu-ponownie-przestrzegamy,News,33194.html
2016-10-23 16:01:06 +02:00
Steven Black 6bf6693ab2 New data from yoyo.org, someonewhocares.org, mvps.org, and for porn extension data. 2016-10-21 23:01:33 -04:00
Steven Black 2935c86219 General update, also closes #193. 2016-10-19 07:51:14 +00:00
Steven Black 9894ab5865 Update all the readme files with links to the hosts.zip files. 2016-10-16 23:27:07 -04:00
Steven Black 68d68ab90f Include hosts.zip files in the repo. This closes #188. 2016-10-16 23:09:11 -04:00
Steven Black 817100c10c Issue #188: the makeHosts scripts now use the —zip flag to create sister .zip files. 2016-10-16 23:08:08 -04:00
Steven Black f2f6a18440 Issue #188: Optionally create a hosts.zip file in addition to the hosts file. 2016-10-16 23:07:06 -04:00
Steven Black 6f6a60344e New data from yoyo.org and alternates/porn 2016-10-16 15:26:56 -04:00
Steven Black 499c96712e New data from Telemetry, malwaredomainlist.com, yoyo.org, and extensions/porn/hosts. Closes #183. 2016-10-14 09:24:27 -04:00
Steven Black 55f980640e Latest data, including my latest host addition. 2016-10-12 17:09:43 -04:00
Steven Black ac8e42eef9 Added 2468.go2cloud.org to my personal list. Again. 2016-10-12 17:00:55 -04:00
Steven Black 271c118615 Merging-in changes from my personal hosts list. 2016-10-12 11:34:19 -04:00
Steven Black 7726f00ba5 Added 2468.go2cloud.org to my personal list. 2016-10-12 11:33:16 -04:00
Steven Black 9d7cd25144 New data from yoyo.org, someonewhocares.org, and telemetry. 2016-10-10 10:03:24 -04:00
Steven Black a49b2f813f New data from someonewhocares.org. 2016-10-06 22:58:54 -04:00
Tomasz Przybył 9ac20eac46 Merge pull request #2 from StevenBlack/master
merge
2016-10-06 11:25:44 +02:00
Steven Black 901aa23442 New data from someonewhocares.org. 2016-10-03 20:53:13 -04:00
Steven Black 972495c646 New alagamations from new data sources (Thanks @fademind!) and an update from yoyo.org. 2016-09-30 08:59:12 -04:00
Steven Black 233efd6f42 Merge pull request #186 from FadeMind/master
hosts.extras: dead, risk, spam
2016-09-30 08:57:16 -04:00
Tomasz Przybył 45201f15be hosts.extras: dead, risk, spam 2016-09-30 13:53:03 +02:00
Tomasz Przybył 02151b87ae Merge pull request #1 from StevenBlack/master
merge
2016-09-30 13:39:35 +02:00
Steven Black 590eeac32c Latest data refresh. 2016-09-30 00:18:45 -04:00
Steven Black 5569a3e888 Merge pull request #185 from FadeMind/master
Telemetry rules, moving sources from gist to github
2016-09-30 00:16:30 -04:00
Tomasz Przybył bfb42f25be moving extras from gists to github 2016-09-29 16:02:35 +02:00
Tomasz Przybył b8da1d34f1 Telemetry rules
URLs extracted from
https://github.com/Nummer/Destroy-Windows-10-Spying

and merged in valid hosts file.  @StevenBlack Regards
2016-09-29 11:12:21 +02:00
Steven Black 7424843f08 New data from yoyo.org. 2016-09-27 23:33:38 -04:00
Steven Black e784524ddf Merge pull request #184 from FadeMind/patch-1
torrenty-org dot pl: phishing fake  site
2016-09-27 14:38:38 -04:00
Tomasz Przybył 0c826a4457 torrenty-org dot pl: phishing fake site
fake registration charge

See: http://www.wykop.pl/link/3371947/torrenty-org-polski-katalog-torrentow/ (this is polish "reddit style" community portal)
2016-09-27 11:45:31 +02:00
Steven Black 33b8a09272 New data from someonewhocares.org and yoyo.org. 2016-09-24 18:25:12 -04:00
Steven Black 0a97689aa2 New data from someonewhocares.org and add.2o7Net. 2016-09-22 15:33:04 -04:00
Steven Black 9d97b6c990 Merge pull request #181 from FadeMind/master
add.2o7Net rules
2016-09-22 15:28:03 -04:00
Tomasz Przybył 9e719b9b81 add.2o7Net rules 2016-09-22 21:18:47 +02:00
Steven Black 96342e1923 git c "New data from malwaredomainlist.com, someonewhocares.org, and yoyo.org." 2016-09-21 18:37:46 -04:00
Steven Black 33e35573f0 Better explanation of why we use the 0.0.0.0 address.
Just the readme_template.md file is changed.  All the other readme files in this commit are generated.

Closes Issue #68.
2016-09-16 22:37:20 -04:00
Steven Black 024c421e9d New data from malwaredomainlist.com and yoyo.org. 2016-09-16 19:09:19 -04:00
Steven Black e83c745cf5 New data from malwaredomainlist.com. 2016-09-14 14:31:57 -04:00
Steven Black 6ad70f2984 New data from mvps.org, someonewhocares.org, and yoyo.org. 2016-09-12 22:39:01 -04:00
Steven Black 9fdaee735c New data from malwaredomainlist.com and yoyo.org. 2016-09-10 17:05:50 -04:00
Steven Black 2f62d4c56a New hosts from yoyo.org and malwaredomainlist.com. 2016-09-09 04:26:48 +00:00
Steven Black da9af25b38 New data from malwaredomainlist.com and yoyo.org. 2016-09-05 11:17:02 -04:00
Steven Black a67ad16d8a Still another update from yoyo.org. 2016-09-04 14:49:04 -04:00
Steven Black 5143a26e68 Merge pull request #170 from FadeMind/patch-1
readme_template.md: clarify bat files requirements
2016-09-04 11:28:18 -04:00
Tomasz Przybył 2747ff5bf6 readme_template.md: clarify bat files requirements 2016-09-04 10:46:12 +02:00
Steven Black 22b2ec1968 A new update from yoyo.org. 2016-09-03 16:58:58 -04:00
Steven Black e5ed70e161 Merge pull request #169 from FadeMind/master
BATCH files for Windows: PY Runtime availability check
2016-09-03 16:57:55 -04:00
Tomasz Przybył ee6345f8b7 makeHostsWindows.bat: expand
- check if python runtime 3.5 is available on system
2016-09-03 15:59:33 +02:00
Tomasz Przybył 91756b3889 updateHostsWindows.bat: expand
- check if python runtime 3.5 is available on system
- update automaticaly hosts file before replace them
2016-09-03 15:52:28 +02:00
Steven Black 331a898bd0 New data from adaway.org, someonewhocares.org, and yoyo.org. 2016-09-02 13:59:48 -04:00
Steven Black b7101336b4 New data from yoyo.org. 2016-08-31 18:50:46 -04:00
Steven Black ba6513cb6d New data from malwaredomainlist.com and yoyo.org. 2016-08-29 18:47:44 -04:00
Steven Black 738733e61d Merge pull request #167 from FadeMind/master
UncheckyAds, makeHostsWindows.bat #166
2016-08-29 18:12:12 -04:00
Tomasz Przybył b4e139a4e2 readme_template.md: fix url 2016-08-29 16:03:01 +02:00
Tomasz Przybył c9b521a712 UncheckyAds, makeHostsWindows.bat
* makeHostsWindows.bat BATCH file for Windows
* copy of Unchecky hosts rules for block advertisements in Windows
installers.

Reference:  https://github.com/StevenBlack/hosts/issues/166
2016-08-29 15:57:08 +02:00
Steven Black cb729cf40f New data from yoyo.org. 2016-08-28 10:57:34 -04:00
Steven Black 7e00aa95e4 New data from yoyo.org. 2016-08-27 13:43:39 +00:00
Steven Black e554eb10af New data from malwaredomainlist.com, someonewhocares.org, and yoyo.org. 2016-08-26 14:08:41 -04:00
Steven Black a305360b50 New data from malwaredomainlist.com, someonewhocares.org, and yoyo.org. 2016-08-09 22:39:54 -04:00
Steven Black 8245f2d473 New data from someonewhocares.org and yoyo.org. 2016-08-08 09:33:38 -04:00
Steven Black 5903e04639 New data from malwaredomainlist.com, mvps.org, someonewhocares.org, and yoyo.org. 2016-08-02 09:41:41 -04:00
Steven Black d93938d189 New data from adaway.org, malwaredomainlist.com, and yoyo.org. 2016-07-21 09:09:12 -04:00
Steven Black 5e3ae49c4a Merge pull request #152 from FadeMind/patch-1
adaway.org: change main source raw url
2016-07-21 09:05:43 -04:00
Tomasz Przybył 05b4b483b6 adaway.org: change main source raw url
See: 

https://github.com/AdAway/adaway.github.io/commits/master/hosts.txt

and

https://github.com/AdAway/AdAway/commit/498ad11f203b588e1ddee50647aeae3aeb74a627

@StevenBlack
2016-07-21 13:44:24 +02:00
Steven Black 34566698f4 New data from malwaredomainlist.com, someonewhocares.org, and yoyo.org. 2016-07-20 15:26:35 -04:00
Steven Black c755ed6f98 Merge pull request #149 from benlowry/patch-1
Changed to HTTPS thanks Ben @benlowry
2016-07-20 15:24:24 -04:00
Ben 55f21ad54d Changed to HTTPS 2016-07-18 14:19:35 -06:00
Steven Black c8a9049126 Merge pull request #146 from sumitchawla/master
Added www.diptanuinfo.co.cc
2016-07-11 12:52:25 -04:00
Steven Black 7113df3724 New data from malwaredomainlist.com, someonewhocares.org, and yoyo.org. 2016-07-10 18:17:45 -04:00
Sumit Chawla 5359259eb0 Added www.diptanuinfo.co.cc 2016-07-07 22:40:06 -07:00
Steven Black a462f922b5 New data from malwaredomainlist.com, mvps.org, someonewhocares.org, and yoyo.org. 2016-06-26 10:33:39 -04:00
Steven Black a4d8e5a0a0 New data for SpotifyAds. 2016-06-19 22:12:17 -04:00
Steven Black fc7c2b53ab Merge pull request #143 from FadeMind/patch-1
readme_template.md: updateHostsWindows.bat HowTo
2016-06-19 22:11:10 -04:00
Tomasz Przybył 7df689e0cb readme_template.md: updateHostsWindows.bat HowTo
Reference: https://github.com/StevenBlack/hosts/pull/142
2016-06-19 18:31:21 +02:00
Steven Black f1d8657c27 Merge pull request #142 from FadeMind/master
updateHostsWindows.bat: add file
2016-06-19 11:38:57 -04:00
Tomasz Przybył 07fcae7817 SpotifyAds: block ads in Spotify apps
Source: https://github.com/Xeroday/Spotify-Ad-Blocker
2016-06-19 08:25:57 +02:00
Steven Black f94bc25d8d New data from yoyo.org. 2016-06-17 22:31:45 +00:00
Tomasz Przybył 0cf8659d2e updateHostsWindows.bat: add file
This script will create in first running backup of ORIGINAL/CURRENT
hosts file in hosts.skel file if file does not exists.
If hosts.skel file exists, then NEW copy with customized unified hosts
file will be copied to proper path.
Next DNS Cache will be refreshed.
2016-06-15 14:55:59 +02:00
Steven Black 70a27055d7 Latest data from someonewhocares.org. 2016-06-13 14:53:24 -04:00
Steven Black 6533106ccc Merge pull request #141 from cryzed/auto-for-flush-dns-cache
Handle the auto flag in promptForFlushDnsCache
2016-06-12 21:28:50 -04:00
cryzed 85ada890ba Handle the auto flag in promptForFlushDnsCache 2016-06-13 02:13:36 +02:00
Steven Black 2858dcba1c New data from malwaredomainlist.com, someonewhocares.org, and yoyo.org. 2016-06-12 19:27:55 -04:00
Steven Black 69156c3181 Update the readme for changes in pull request #140. 2016-06-12 19:25:54 -04:00
Steven Black bcdb39781e Merge pull request #140 from cryzed/feature-138
Implement feature proposed in #138
2016-06-12 19:20:18 -04:00
cryzed fd6769005e Implement feature proposed in #138 2016-06-12 14:04:38 +02:00
tyzbit 459ccd9540 Merge pull request #1 from StevenBlack/master
Catching up with master
2016-06-08 19:00:15 -04:00
Steven Black a8358873e6 New data from malwaredomainlist.com and yoyo.org. 2016-06-03 22:34:42 -04:00
Steven Black cff3ce9188 New data from malwaredomainlist.com. 2016-06-01 22:31:59 -04:00
Steven Black 7bd24ff7b9 New data from malwaredomainlist.com and someonewhocares.org. 2016-05-30 22:05:47 -04:00
Steven Black 7582baf90e Fresh data from malwaredomainlist.com. 2016-05-29 20:43:44 -04:00
Steven Black 25e9ffdf7e New data from someonewhocares.org and yoyo.org. 2016-05-27 09:08:34 -04:00
Steven Black a8db30dbdf New data from malwaredomainlist.org and someonewhocares.org. 2016-05-25 22:47:18 -04:00
Steven Black 1c03272b90 New data from malwaredomainlist.com, someonewhocares.org, and yoyo.org. 2016-05-23 14:28:13 -04:00
Steven Black 308064d60a New data from malwaredomainlist.com, mvps.org, someonewhocares.org, and yoyo.org. 2016-05-19 23:47:18 -04:00
Steven Black a8f56257a1 New data from someonewhocares.org, yoyo.org, and malwaredomainlist.com. 2016-05-13 14:34:22 +00:00
Steven Black d622e88526 Updates from malwaredomainlist.com, someonewhocares.org, and yoyo.org. 2016-05-10 21:19:20 -04:00
Steven Black 2337a0f297 Updates from malwaredomainlist and someonewhocares. 2016-05-06 04:21:53 +00:00
Steven Black b3c22d908e Update from malwaredomainlist.org. 2016-05-03 05:06:23 +00:00
Steven Black fa4151640f Updates from malwaredomainlist.com. 2016-05-02 10:02:49 -04:00
Steven Black 7eb733b680 Merge pull request #133 from cclauss/patch-2
Minor edits
2016-05-02 09:59:57 -04:00
cclauss b20fa35eba Update updateHostsFile.py 2016-05-02 10:59:54 +02:00
Steven Black 7363ac72f8 Updates from malwaredomainlist.com and yoyo.org. 2016-04-30 00:53:08 -04:00
Steven Black 392c1e6401 Updates from mlwaredomainlist.com and yoyo.org. 2016-04-29 01:00:33 -04:00
Steven Black 0ab5011c99 Fresh data from alwaredomainlist.com. 2016-04-28 00:10:04 -04:00
Steven Black 3618a5c21b Merge pull request #132 from cclauss/patch-1
Use 'with open() as' to automaticly close() files
2016-04-26 19:50:11 -04:00
Steven Black 78be5d4403 New data from malwaredomainlist.com and someonewhocares.org. 2016-04-26 19:35:06 -04:00
cclauss 854f2410a1 Update updateHostsFile.py 2016-04-26 17:52:00 +02:00
cclauss 1b46ffd85b Update updateHostsFile.py 2016-04-26 16:11:51 +02:00
cclauss 9ec9f22dda Update updateHostsFile.py 2016-04-26 16:03:36 +02:00
cclauss 46877f22c4 Update updateHostsFile.py 2016-04-26 15:49:31 +02:00
cclauss 5e08804cec Use 'with open() as' to automaticly close() files 2016-04-26 15:46:14 +02:00
Steven Black e6ac43b299 Merge pull request #131 from indrajitr/adaway-https
Switch to https for adaway.org source
2016-04-22 23:33:03 -04:00
Steven Black 8f28ca3fa3 Fresh data from malwaredomainlist.com, someonewhocares.org, and yoyo.org. 2016-04-22 23:29:31 -04:00
Indrajit Raychaudhuri 194a4f8786 Switch to https for adaway.org source 2016-04-20 18:19:13 -05:00
Steven Black 367fb2ba05 Fresh data from malwaredomainlist.com and someonewhocares.org. 2016-04-20 17:42:15 -04:00
Steven Black 5b251b023b Documentation for the switch introduced in pull request #129. 2016-04-20 17:40:10 -04:00
Steven Black ca5cc51460 Merge pull request #129 from indrajitr/skip-static-hosts
Add option to skip static localhost entries in the final hosts file.
2016-04-20 17:32:17 -04:00
Steven Black bb6f02f9e9 Data updates frpm someonewhocares.org and malwaredomainlist.com. 2016-04-20 04:21:20 +00:00
Indrajit Raychaudhuri 8c089ff0ef Add option to skip static localhost entries in the final hosts file.
This is particularly handy when you want to add the generated hosts file
as additional static 'hosts' file in DNS servers without affecting the default
`/etc/hosts`.

For example, `--addn-hosts=<file>` in dnsmasq [1] can be used exactly for this
purpose.

[1] http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html
2016-04-19 14:44:39 -05:00
Steven Black 0a59e9147a Fresh data from alwaredomainlist.com. 2016-04-18 22:09:42 -04:00
Steven Black 67fa1f768b Fresh data from malwaredomainlist.com, someonewhocares.org, and @Sinfonietta. 2016-04-16 22:38:51 -04:00
Steven Black d512091b7f New data from malwaredomainlist.com and yoyo.org. 2016-04-15 08:57:10 -04:00
Steven Black 4b3558e3a3 Data updates from malwaredomainlist.com and someonewhocares.org, and fresh new hosts files. 2016-04-14 19:26:40 -04:00
Steven Black 8a0e3e4679 Data updates from malwaredomainlist.com and someonewhocares.org, and fresh new hosts files. 2016-04-12 22:59:22 -04:00
Steven Black 919a5f1ca4 Fresh data from malwaredomainlist.com and someonewhocares.org. Updated hosts files and readmes. 2016-04-11 17:57:42 -04:00
Steven Black 8008c7deb3 New data from someonewhocares.org and malwaredomainlist.com. Hosts files updated. 2016-04-11 12:42:27 -04:00
Steven Black 1cba875f5e Fresh data from malwaredomainlist.com, and new unified hosts files. 2016-04-10 00:40:52 -04:00
Steven Black bc0957a446 Fresh data from malwaredomainlist.com and yoyo.org; new hosts files generated. 2016-04-09 13:06:29 -04:00
Steven Black 21eba13f37 Data updates, and new hosts files generated. 2016-04-07 23:07:27 -04:00
Steven Black 50b4dc3b46 New data from someonewhocares.org. Fresh hosts generated. 2016-04-06 07:44:48 -04:00
Steven Black 58a2b8ad03 New data from someonewhocares.org. Fresh hosts generated. 2016-04-06 07:44:18 -04:00
Steven Black cc24d9fc00 Fresh new hosts files and readmes. 2016-04-05 00:34:00 -04:00
Steven Black 121c275ee0 Data update from the Malware Domain List. 2016-04-05 00:33:43 -04:00
Steven Black 6c81877aa7 Added documentation for the new --backup option. Sorted the options alphabetically. 2016-04-05 00:32:29 -04:00
Steven Black c17ffcbe7e Another readme update. 2016-04-03 21:59:22 -04:00
Steven Black f36a32a72f Updated readme files. 2016-04-03 21:55:13 -04:00
Steven Black cc62b99c16 Readme template update. 2016-04-03 21:54:09 -04:00
Steven Black 3b30ff8000 Sort the display of --help options. 2016-04-03 21:30:46 -04:00
Steven Black b194e25020 Now the backup feature is optional, default is no backup. 2016-04-03 21:29:47 -04:00
Steven Black 6f60a86fad Typo in settings key. Fixes #126. 2016-04-03 21:19:41 -04:00
Steven Black 4914049a1b Latest hosts files generated. 2016-04-02 22:43:54 -04:00
Steven Black fea5b0c46b Updated social hosts. 2016-04-02 22:43:36 -04:00
Steven Black b788a075c6 Updated all the readme files with changes made to the template. 2016-04-02 11:25:10 -04:00
Steven Black 1f3c243d22 Issue #118: document the whitelist. 2016-04-02 11:23:29 -04:00
Steven Black af5d554b7c Fresh hosts files generated. 2016-04-01 23:51:47 -04:00
Steven Black 6e53cebdbd New data from mvps.org and yoyo.org. 2016-04-01 23:51:31 -04:00
Steven Black 60c43d299b Issue #118: fix – resolve problems with whitelisting domains. 2016-04-01 23:49:22 -04:00
Steven Black 05fb726082 Latest fresh hosts file. 2016-03-31 23:56:04 -04:00
Steven Black b00a74970a Update from malwaredomainlist.com. 2016-03-31 23:55:15 -04:00
Steven Black 1f6391e683 Merge pull request #124 from FadeMind/patch-1
typo
2016-03-31 10:14:00 -04:00
Tomasz Przybył d23a845183 typo
@StevenBlack
2016-03-31 16:09:24 +02:00
Steven Black a53e2ea2ce Merge pull request #123 from itachi46/fix_relative_path_of_readmeData
Fixed file not found error due to relative path
2016-03-31 10:02:34 -04:00
itachi46 6f1484a01c Fixed file not found error due to relative path
When updateHostFile.py is not run from the project directory we get a file not found error trying to find readmeData.json
2016-03-31 23:35:42 +11:00
Steven Black 4ade0f87f8 Updated hosts files with latest data. 2016-03-30 23:14:39 -04:00
Steven Black d553c32872 Fresh data from someonewhocares.org. 2016-03-30 23:14:14 -04:00
Steven Black 2eb62dd8d5 Latest unified host files and readme. 2016-03-30 10:17:10 -04:00
Steven Black 26fcae44c1 Updated data sources. 2016-03-30 10:16:45 -04:00
Steven Black 55777b148f Fresh hosts files and readme files. 2016-03-28 23:04:50 -04:00
Steven Black 6dc8c77b64 Tweak for updatehostsfile.py which wasn't updating extension sources. 2016-03-28 23:04:34 -04:00
Steven Black b42f453d51 Data update from Sinfonietta. 2016-03-28 23:04:03 -04:00
Steven Black c377a9e1e6 Latest hosts file gemerated, and updated readme files. 2016-03-28 22:25:16 -04:00
Steven Black 171fc817be Update from someonewhocares.org. 2016-03-28 22:23:12 -04:00
Steven Black ef37166285 Style: normalize the code to double quotes for strings. 2016-03-28 13:27:17 -04:00
Steven Black 2111f172d5 Renaming history.md to all-lowercase. 2016-03-27 18:16:48 -04:00
Steven Black bcd7f6c034 Fresh hosts files generated. 2016-03-26 23:15:01 -04:00
Steven Black 609af3b307 Update from someonewhocares.org. 2016-03-26 23:14:27 -04:00
Steven Black 4db5ff00f7 Fresh hosts files. 2016-03-25 23:50:31 -04:00
Steven Black cf60473c77 Updates from yoyo.org, malwaredomainlist and someonewhocares. 2016-03-25 23:50:16 -04:00
Steven Black b996001c95 Scope management. 2016-03-25 23:45:18 -04:00
Steven Black 92e8e4d8d9 Whitespace. 2016-03-25 23:44:54 -04:00
Steven Black 2d44d18af6 Jettison legacy codeblock. 2016-03-25 23:44:22 -04:00
Steven Black a0bfd584e5 Introducing [History.md](History.md). 2016-03-25 21:58:07 -04:00
120 changed files with 807200 additions and 172174 deletions

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
root = true
[*.py]
indent_style = space
trim_trailing_whitespace = true
indent_size = 4
end_of_line = LF
[*.md]
trim_trailing_whitespace = false
insert_final_newline = true
+21
View File
@@ -0,0 +1,21 @@
# Configuration for welcome - https://github.com/behaviorbot/welcome
# Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome
# Comment to be posted to on first time issues
newIssueWelcomeComment: >
Hello! Thank you for opening your first issue in this repo. It’s people like you who make these host files better!
# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome
# Comment to be posted to on PRs from first time contributors in your repository
newPRWelcomeComment: >
Thank you for submitting this pull request! We’ll get back to you as soon as we can!
# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge
# Comment to be posted to on pull requests merged by a first time user
firstPRMergeComment: >
Congratulations on merging your first pull request! 🎉🎉🎉
# It is recommend to include as many gifs and emojis as possible!
+6
View File
@@ -1,4 +1,10 @@
.idea
*.iml
myhosts
blacklist
whitelist
readmeData.json
hosts-*
/web.config
/__pycache__
/node_modules
+17
View File
@@ -0,0 +1,17 @@
{
"src": {
"tagName": "v%s",
"commitArgs": "-S",
"tagArgs": "-S"
},
"github": {
"release": true
},
"npm": {
"publish": false,
"publishPath": ".",
"tag": "latest",
"private": false,
"access": null
}
}
+36
View File
@@ -0,0 +1,36 @@
notifications:
email: false
language: generic
sudo: false
cache:
directories:
- $HOME/miniconda3
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="3.5"
- PYTHON_VERSION="3.6"
- PYTHON_VERSION="3.7"
before_install:
- export PATH="$HOME/miniconda3/bin:$PATH"
install:
- ci/install_conda.sh
- ci/setup_conda_env.sh
script:
- ci/test.sh
- ci/lint.sh
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,437 @@
----
**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: **September 19 2019**.
* 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 60,070 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) | 42,298 | [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) | 43,240 | [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) | 44,570 | [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) | 54,382 | [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) | 44,773 | [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) | 45,512 | [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) | 55,324 | [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) | 45,715 | [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) | 56,654 | [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) | 47,045 | [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) | 56,856 | [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) | 57,596 | [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) | 47,987 | [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) | 57,798 | [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) | 59,128 | [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) | 60,070 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
of OS.
## Sources of hosts data unified in this variant
Updated `hosts` files from the following locations are always unified and
included:
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
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)
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)
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 optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in 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 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
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** 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:
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
#### Using Python 3:
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
* Hosts data sources, including extensions, are updated.
* No extensions are included by default. Use the `--extensions` or `-e` flag
to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace`
flag.
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
over them.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
of subfolders below the `extensions` folder containing additional
category-specific hosts files to include in the amalgamation. Example:
`--extensions porn` or `-e social porn`.
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
in a subfolder. If the subfolder does not exist, it will be created.
`--replace`, or `-r`: trigger replacing your active hosts
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
section at the top, containing lines like `127.0.0.1 localhost`. This is
useful for configuring proximate DNS services on the local network.
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
ignoring non-necessary lines (empty lines and comments) and putting multiple
domains in each line. Reducing the number of lines of the hosts file improves
the performances under Windows (with DNS Client service enabled).
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
each domain on a separate line. This is necessary because many implementations
of URL blockers that rely on `hosts` files do not conform to the standard which
allows multiple hosts on a single line.
## How do I control which sources are unified?
Add one or more *additional* sources, each in a subfolder of the `data/`
folder, and specify the `url` key in its `update.json` file.
Add one or more *optional* extensions, which originate from subfolders of the
`extensions/` folder. Again the url in `update.json` controls where this
extension finds its updates.
Create an *optional* `blacklist` file. The contents of this file (containing a
listing of additional domains in `hosts` file format) are appended to the
unified hosts file during the update process. A sample `blacklist` is
included, and may be modified as you desire.
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
be overridden when you `git pull` this repo from `origin` in the future.
### How do I include my own custom domain mappings?
If you have custom hosts records, place them in file `myhosts`. The contents
of this file are prepended to the unified hosts file during the update
process.
The `myhosts` file is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
### How do I prevent domains from being included?
The domains you list in the `whitelist` file are excluded from the final hosts
file.
The `whitelist` uses partial matching. Therefore if you whitelist
`google-analytics.com`, that domain and all its subdomains won't be merged
into the final hosts file.
The `whitelist` is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
## How can I contribute hosts records?
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
### Option 1: contact one of our hosts sources
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
### Option 2: add your domains to Steven Black's personal data file
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
Then, submit a pull request.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
A hosts file, named `hosts` (with no file extension), is a plain-text file
used by all operating systems to map hostnames to IP addresses.
In most operating systems, the `hosts` file is preferential to `DNS`.
Therefore if a domain name is resolved by the `hosts` file, the request never
leaves your computer.
Having a smart `hosts` file goes a long way towards blocking malware, adware,
and other irritants.
For example, to nullify requests to some doubleclick.net servers, adding these
lines to your hosts file will do it:
# block doubleClick's servers
0.0.0.0 ad.ae.doubleclick.net
0.0.0.0 ad.ar.doubleclick.net
0.0.0.0 ad.at.doubleclick.net
0.0.0.0 ad.au.doubleclick.net
0.0.0.0 ad.be.doubleclick.net
# etc...
## We recommend using `0.0.0.0` instead of `127.0.0.1`
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
## Location of your hosts file
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
## 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:
```
updateHostsWindows.bat
```
This file MUST be run in command prompt with administrator privileges in
the repository directory. In addition to updating the hosts file, it can also
replace the existing hosts file, and reload the DNS cache. It goes without
saying that in order for this to work, you must be connected to the internet.
To open a command prompt as administrator in the repository's directory, do the following:
**Windows XP**: Start -> Run -> `cmd`
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
**Windows 8**: Start -> Swipe Up -> All Apps -> Windows System -> right-click Command Prompt ->
"Run as Administrator"
**Windows 10**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
You can also refer to the "Third-Party Hosts Managers" section for further recommended solutions from third parties.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: https://superuser.com/questions/723703
:-----------------------------------------------------------------------------------------
### Windows
Open a command prompt with administrator privileges and run this command:
```
ipconfig /flushdns
```
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
```
sc config "Dnscache" start= disabled
sc stop "Dnscache"
```
### Linux
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
**Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
**RHEL/Centos**: `sudo /etc/init.d/network restart`
**FreeBSD**: `sudo service nscd restart`
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
```
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
Open a Terminal and run:
```
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
```
## Release management
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
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
## Goals of this unified hosts file
The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
3. de-dupe the resultant combined list,
4. and keep the resultant file reasonably sized.
A high-quality source is defined here as one that is actively curated. A
hosts source should be frequently updated by its maintainers with both
additions and removals. The larger the hosts file, the higher the level of
curation is expected.
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
is **not** included here because it is very large (780,000+ entries)
and doesn't currently display a corresponding high level of curation activity.
It is expected that this unified hosts file will serve both desktop and mobile
devices under a variety of operating systems.
## Third-Party Hosts Managers
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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.
* [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.
* [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server") (for BSD, Windows & Linux): Set up a blacklist for everyone on your network using the power of the unified hosts reformatted for DualServer. And if you're on Windows, this project also maintains an update script to make updating DualServer's blacklist even easier.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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
+435
View File
@@ -0,0 +1,435 @@
----
**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: **September 19 2019**.
* Here's the [raw hosts file with fakenews, gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) containing 57,596 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) | 42,298 | [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) | 43,240 | [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) | 44,570 | [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) | 54,382 | [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) | 44,773 | [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) | 45,512 | [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) | 55,324 | [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) | 45,715 | [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) | 56,654 | [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) | 47,045 | [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) | 56,856 | [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) | 57,596 | [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) | 47,987 | [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) | 57,798 | [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) | 59,128 | [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) | 60,070 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
of OS.
## Sources of hosts data unified in this variant
Updated `hosts` files from the following locations are always unified and
included:
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
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)
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)
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 optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in 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 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
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** 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:
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
#### Using Python 3:
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
* Hosts data sources, including extensions, are updated.
* No extensions are included by default. Use the `--extensions` or `-e` flag
to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace`
flag.
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
over them.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
of subfolders below the `extensions` folder containing additional
category-specific hosts files to include in the amalgamation. Example:
`--extensions porn` or `-e social porn`.
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
in a subfolder. If the subfolder does not exist, it will be created.
`--replace`, or `-r`: trigger replacing your active hosts
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
section at the top, containing lines like `127.0.0.1 localhost`. This is
useful for configuring proximate DNS services on the local network.
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
ignoring non-necessary lines (empty lines and comments) and putting multiple
domains in each line. Reducing the number of lines of the hosts file improves
the performances under Windows (with DNS Client service enabled).
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
each domain on a separate line. This is necessary because many implementations
of URL blockers that rely on `hosts` files do not conform to the standard which
allows multiple hosts on a single line.
## How do I control which sources are unified?
Add one or more *additional* sources, each in a subfolder of the `data/`
folder, and specify the `url` key in its `update.json` file.
Add one or more *optional* extensions, which originate from subfolders of the
`extensions/` folder. Again the url in `update.json` controls where this
extension finds its updates.
Create an *optional* `blacklist` file. The contents of this file (containing a
listing of additional domains in `hosts` file format) are appended to the
unified hosts file during the update process. A sample `blacklist` is
included, and may be modified as you desire.
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
be overridden when you `git pull` this repo from `origin` in the future.
### How do I include my own custom domain mappings?
If you have custom hosts records, place them in file `myhosts`. The contents
of this file are prepended to the unified hosts file during the update
process.
The `myhosts` file is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
### How do I prevent domains from being included?
The domains you list in the `whitelist` file are excluded from the final hosts
file.
The `whitelist` uses partial matching. Therefore if you whitelist
`google-analytics.com`, that domain and all its subdomains won't be merged
into the final hosts file.
The `whitelist` is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
## How can I contribute hosts records?
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
### Option 1: contact one of our hosts sources
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
### Option 2: add your domains to Steven Black's personal data file
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
Then, submit a pull request.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
A hosts file, named `hosts` (with no file extension), is a plain-text file
used by all operating systems to map hostnames to IP addresses.
In most operating systems, the `hosts` file is preferential to `DNS`.
Therefore if a domain name is resolved by the `hosts` file, the request never
leaves your computer.
Having a smart `hosts` file goes a long way towards blocking malware, adware,
and other irritants.
For example, to nullify requests to some doubleclick.net servers, adding these
lines to your hosts file will do it:
# block doubleClick's servers
0.0.0.0 ad.ae.doubleclick.net
0.0.0.0 ad.ar.doubleclick.net
0.0.0.0 ad.at.doubleclick.net
0.0.0.0 ad.au.doubleclick.net
0.0.0.0 ad.be.doubleclick.net
# etc...
## We recommend using `0.0.0.0` instead of `127.0.0.1`
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
## Location of your hosts file
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
## 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:
```
updateHostsWindows.bat
```
This file MUST be run in command prompt with administrator privileges in
the repository directory. In addition to updating the hosts file, it can also
replace the existing hosts file, and reload the DNS cache. It goes without
saying that in order for this to work, you must be connected to the internet.
To open a command prompt as administrator in the repository's directory, do the following:
**Windows XP**: Start -> Run -> `cmd`
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
**Windows 8**: Start -> Swipe Up -> All Apps -> Windows System -> right-click Command Prompt ->
"Run as Administrator"
**Windows 10**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
You can also refer to the "Third-Party Hosts Managers" section for further recommended solutions from third parties.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: https://superuser.com/questions/723703
:-----------------------------------------------------------------------------------------
### Windows
Open a command prompt with administrator privileges and run this command:
```
ipconfig /flushdns
```
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
```
sc config "Dnscache" start= disabled
sc stop "Dnscache"
```
### Linux
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
**Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
**RHEL/Centos**: `sudo /etc/init.d/network restart`
**FreeBSD**: `sudo service nscd restart`
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
```
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
Open a Terminal and run:
```
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
```
## Release management
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
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
## Goals of this unified hosts file
The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
3. de-dupe the resultant combined list,
4. and keep the resultant file reasonably sized.
A high-quality source is defined here as one that is actively curated. A
hosts source should be frequently updated by its maintainers with both
additions and removals. The larger the hosts file, the higher the level of
curation is expected.
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
is **not** included here because it is very large (780,000+ entries)
and doesn't currently display a corresponding high level of curation activity.
It is expected that this unified hosts file will serve both desktop and mobile
devices under a variety of operating systems.
## Third-Party Hosts Managers
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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.
* [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.
* [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server") (for BSD, Windows & Linux): Set up a blacklist for everyone on your network using the power of the unified hosts reformatted for DualServer. And if you're on Windows, this project also maintains an update script to make updating DualServer's blacklist even easier.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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
@@ -0,0 +1,433 @@
----
**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: **September 19 2019**.
* Here's the [raw hosts file with fakenews, gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) containing 47,987 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) | 42,298 | [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) | 43,240 | [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) | 44,570 | [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) | 54,382 | [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) | 44,773 | [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) | 45,512 | [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) | 55,324 | [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) | 45,715 | [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) | 56,654 | [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) | 47,045 | [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) | 56,856 | [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) | 57,596 | [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) | 47,987 | [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) | 57,798 | [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) | 59,128 | [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) | 60,070 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
of OS.
## Sources of hosts data unified in this variant
Updated `hosts` files from the following locations are always unified and
included:
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
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)
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)
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 optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in 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 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
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** 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:
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
#### Using Python 3:
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
* Hosts data sources, including extensions, are updated.
* No extensions are included by default. Use the `--extensions` or `-e` flag
to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace`
flag.
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
over them.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
of subfolders below the `extensions` folder containing additional
category-specific hosts files to include in the amalgamation. Example:
`--extensions porn` or `-e social porn`.
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
in a subfolder. If the subfolder does not exist, it will be created.
`--replace`, or `-r`: trigger replacing your active hosts
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
section at the top, containing lines like `127.0.0.1 localhost`. This is
useful for configuring proximate DNS services on the local network.
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
ignoring non-necessary lines (empty lines and comments) and putting multiple
domains in each line. Reducing the number of lines of the hosts file improves
the performances under Windows (with DNS Client service enabled).
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
each domain on a separate line. This is necessary because many implementations
of URL blockers that rely on `hosts` files do not conform to the standard which
allows multiple hosts on a single line.
## How do I control which sources are unified?
Add one or more *additional* sources, each in a subfolder of the `data/`
folder, and specify the `url` key in its `update.json` file.
Add one or more *optional* extensions, which originate from subfolders of the
`extensions/` folder. Again the url in `update.json` controls where this
extension finds its updates.
Create an *optional* `blacklist` file. The contents of this file (containing a
listing of additional domains in `hosts` file format) are appended to the
unified hosts file during the update process. A sample `blacklist` is
included, and may be modified as you desire.
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
be overridden when you `git pull` this repo from `origin` in the future.
### How do I include my own custom domain mappings?
If you have custom hosts records, place them in file `myhosts`. The contents
of this file are prepended to the unified hosts file during the update
process.
The `myhosts` file is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
### How do I prevent domains from being included?
The domains you list in the `whitelist` file are excluded from the final hosts
file.
The `whitelist` uses partial matching. Therefore if you whitelist
`google-analytics.com`, that domain and all its subdomains won't be merged
into the final hosts file.
The `whitelist` is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
## How can I contribute hosts records?
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
### Option 1: contact one of our hosts sources
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
### Option 2: add your domains to Steven Black's personal data file
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
Then, submit a pull request.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
A hosts file, named `hosts` (with no file extension), is a plain-text file
used by all operating systems to map hostnames to IP addresses.
In most operating systems, the `hosts` file is preferential to `DNS`.
Therefore if a domain name is resolved by the `hosts` file, the request never
leaves your computer.
Having a smart `hosts` file goes a long way towards blocking malware, adware,
and other irritants.
For example, to nullify requests to some doubleclick.net servers, adding these
lines to your hosts file will do it:
# block doubleClick's servers
0.0.0.0 ad.ae.doubleclick.net
0.0.0.0 ad.ar.doubleclick.net
0.0.0.0 ad.at.doubleclick.net
0.0.0.0 ad.au.doubleclick.net
0.0.0.0 ad.be.doubleclick.net
# etc...
## We recommend using `0.0.0.0` instead of `127.0.0.1`
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
## Location of your hosts file
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
## 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:
```
updateHostsWindows.bat
```
This file MUST be run in command prompt with administrator privileges in
the repository directory. In addition to updating the hosts file, it can also
replace the existing hosts file, and reload the DNS cache. It goes without
saying that in order for this to work, you must be connected to the internet.
To open a command prompt as administrator in the repository's directory, do the following:
**Windows XP**: Start -> Run -> `cmd`
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
**Windows 8**: Start -> Swipe Up -> All Apps -> Windows System -> right-click Command Prompt ->
"Run as Administrator"
**Windows 10**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
You can also refer to the "Third-Party Hosts Managers" section for further recommended solutions from third parties.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: https://superuser.com/questions/723703
:-----------------------------------------------------------------------------------------
### Windows
Open a command prompt with administrator privileges and run this command:
```
ipconfig /flushdns
```
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
```
sc config "Dnscache" start= disabled
sc stop "Dnscache"
```
### Linux
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
**Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
**RHEL/Centos**: `sudo /etc/init.d/network restart`
**FreeBSD**: `sudo service nscd restart`
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
```
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
Open a Terminal and run:
```
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
```
## Release management
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
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
## Goals of this unified hosts file
The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
3. de-dupe the resultant combined list,
4. and keep the resultant file reasonably sized.
A high-quality source is defined here as one that is actively curated. A
hosts source should be frequently updated by its maintainers with both
additions and removals. The larger the hosts file, the higher the level of
curation is expected.
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
is **not** included here because it is very large (780,000+ entries)
and doesn't currently display a corresponding high level of curation activity.
It is expected that this unified hosts file will serve both desktop and mobile
devices under a variety of operating systems.
## Third-Party Hosts Managers
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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.
* [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.
* [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server") (for BSD, Windows & Linux): Set up a blacklist for everyone on your network using the power of the unified hosts reformatted for DualServer. And if you're on Windows, this project also maintains an update script to make updating DualServer's blacklist even easier.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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
+431
View File
@@ -0,0 +1,431 @@
----
**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: **September 19 2019**.
* Here's the [raw hosts file with fakenews, gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) containing 45,512 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) | 42,298 | [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) | 43,240 | [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) | 44,570 | [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) | 54,382 | [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) | 44,773 | [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) | 45,512 | [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) | 55,324 | [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) | 45,715 | [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) | 56,654 | [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) | 47,045 | [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) | 56,856 | [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) | 57,596 | [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) | 47,987 | [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) | 57,798 | [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) | 59,128 | [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) | 60,070 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
of OS.
## Sources of hosts data unified in this variant
Updated `hosts` files from the following locations are always unified and
included:
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
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)
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)
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 optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in 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 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
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** 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:
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
#### Using Python 3:
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
* Hosts data sources, including extensions, are updated.
* No extensions are included by default. Use the `--extensions` or `-e` flag
to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace`
flag.
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
over them.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
of subfolders below the `extensions` folder containing additional
category-specific hosts files to include in the amalgamation. Example:
`--extensions porn` or `-e social porn`.
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
in a subfolder. If the subfolder does not exist, it will be created.
`--replace`, or `-r`: trigger replacing your active hosts
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
section at the top, containing lines like `127.0.0.1 localhost`. This is
useful for configuring proximate DNS services on the local network.
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
ignoring non-necessary lines (empty lines and comments) and putting multiple
domains in each line. Reducing the number of lines of the hosts file improves
the performances under Windows (with DNS Client service enabled).
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
each domain on a separate line. This is necessary because many implementations
of URL blockers that rely on `hosts` files do not conform to the standard which
allows multiple hosts on a single line.
## How do I control which sources are unified?
Add one or more *additional* sources, each in a subfolder of the `data/`
folder, and specify the `url` key in its `update.json` file.
Add one or more *optional* extensions, which originate from subfolders of the
`extensions/` folder. Again the url in `update.json` controls where this
extension finds its updates.
Create an *optional* `blacklist` file. The contents of this file (containing a
listing of additional domains in `hosts` file format) are appended to the
unified hosts file during the update process. A sample `blacklist` is
included, and may be modified as you desire.
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
be overridden when you `git pull` this repo from `origin` in the future.
### How do I include my own custom domain mappings?
If you have custom hosts records, place them in file `myhosts`. The contents
of this file are prepended to the unified hosts file during the update
process.
The `myhosts` file is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
### How do I prevent domains from being included?
The domains you list in the `whitelist` file are excluded from the final hosts
file.
The `whitelist` uses partial matching. Therefore if you whitelist
`google-analytics.com`, that domain and all its subdomains won't be merged
into the final hosts file.
The `whitelist` is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
## How can I contribute hosts records?
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
### Option 1: contact one of our hosts sources
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
### Option 2: add your domains to Steven Black's personal data file
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
Then, submit a pull request.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
A hosts file, named `hosts` (with no file extension), is a plain-text file
used by all operating systems to map hostnames to IP addresses.
In most operating systems, the `hosts` file is preferential to `DNS`.
Therefore if a domain name is resolved by the `hosts` file, the request never
leaves your computer.
Having a smart `hosts` file goes a long way towards blocking malware, adware,
and other irritants.
For example, to nullify requests to some doubleclick.net servers, adding these
lines to your hosts file will do it:
# block doubleClick's servers
0.0.0.0 ad.ae.doubleclick.net
0.0.0.0 ad.ar.doubleclick.net
0.0.0.0 ad.at.doubleclick.net
0.0.0.0 ad.au.doubleclick.net
0.0.0.0 ad.be.doubleclick.net
# etc...
## We recommend using `0.0.0.0` instead of `127.0.0.1`
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
## Location of your hosts file
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
## 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:
```
updateHostsWindows.bat
```
This file MUST be run in command prompt with administrator privileges in
the repository directory. In addition to updating the hosts file, it can also
replace the existing hosts file, and reload the DNS cache. It goes without
saying that in order for this to work, you must be connected to the internet.
To open a command prompt as administrator in the repository's directory, do the following:
**Windows XP**: Start -> Run -> `cmd`
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
**Windows 8**: Start -> Swipe Up -> All Apps -> Windows System -> right-click Command Prompt ->
"Run as Administrator"
**Windows 10**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
You can also refer to the "Third-Party Hosts Managers" section for further recommended solutions from third parties.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: https://superuser.com/questions/723703
:-----------------------------------------------------------------------------------------
### Windows
Open a command prompt with administrator privileges and run this command:
```
ipconfig /flushdns
```
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
```
sc config "Dnscache" start= disabled
sc stop "Dnscache"
```
### Linux
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
**Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
**RHEL/Centos**: `sudo /etc/init.d/network restart`
**FreeBSD**: `sudo service nscd restart`
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
```
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
Open a Terminal and run:
```
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
```
## Release management
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
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
## Goals of this unified hosts file
The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
3. de-dupe the resultant combined list,
4. and keep the resultant file reasonably sized.
A high-quality source is defined here as one that is actively curated. A
hosts source should be frequently updated by its maintainers with both
additions and removals. The larger the hosts file, the higher the level of
curation is expected.
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
is **not** included here because it is very large (780,000+ entries)
and doesn't currently display a corresponding high level of curation activity.
It is expected that this unified hosts file will serve both desktop and mobile
devices under a variety of operating systems.
## Third-Party Hosts Managers
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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.
* [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.
* [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server") (for BSD, Windows & Linux): Set up a blacklist for everyone on your network using the power of the unified hosts reformatted for DualServer. And if you're on Windows, this project also maintains an update script to make updating DualServer's blacklist even easier.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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
+436
View File
@@ -0,0 +1,436 @@
----
**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: **September 19 2019**.
* Here's the [raw hosts file with fakenews, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) containing 57,798 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) | 42,298 | [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) | 43,240 | [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) | 44,570 | [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) | 54,382 | [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) | 44,773 | [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) | 45,512 | [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) | 55,324 | [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) | 45,715 | [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) | 56,654 | [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) | 47,045 | [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) | 56,856 | [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) | 57,596 | [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) | 47,987 | [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) | 57,798 | [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) | 59,128 | [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) | 60,070 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
of OS.
## Sources of hosts data unified in this variant
Updated `hosts` files from the following locations are always unified and
included:
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
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)
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)
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 optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in 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 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
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** 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:
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
#### Using Python 3:
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
* Hosts data sources, including extensions, are updated.
* No extensions are included by default. Use the `--extensions` or `-e` flag
to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace`
flag.
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
over them.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
of subfolders below the `extensions` folder containing additional
category-specific hosts files to include in the amalgamation. Example:
`--extensions porn` or `-e social porn`.
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
in a subfolder. If the subfolder does not exist, it will be created.
`--replace`, or `-r`: trigger replacing your active hosts
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
section at the top, containing lines like `127.0.0.1 localhost`. This is
useful for configuring proximate DNS services on the local network.
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
ignoring non-necessary lines (empty lines and comments) and putting multiple
domains in each line. Reducing the number of lines of the hosts file improves
the performances under Windows (with DNS Client service enabled).
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
each domain on a separate line. This is necessary because many implementations
of URL blockers that rely on `hosts` files do not conform to the standard which
allows multiple hosts on a single line.
## How do I control which sources are unified?
Add one or more *additional* sources, each in a subfolder of the `data/`
folder, and specify the `url` key in its `update.json` file.
Add one or more *optional* extensions, which originate from subfolders of the
`extensions/` folder. Again the url in `update.json` controls where this
extension finds its updates.
Create an *optional* `blacklist` file. The contents of this file (containing a
listing of additional domains in `hosts` file format) are appended to the
unified hosts file during the update process. A sample `blacklist` is
included, and may be modified as you desire.
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
be overridden when you `git pull` this repo from `origin` in the future.
### How do I include my own custom domain mappings?
If you have custom hosts records, place them in file `myhosts`. The contents
of this file are prepended to the unified hosts file during the update
process.
The `myhosts` file is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
### How do I prevent domains from being included?
The domains you list in the `whitelist` file are excluded from the final hosts
file.
The `whitelist` uses partial matching. Therefore if you whitelist
`google-analytics.com`, that domain and all its subdomains won't be merged
into the final hosts file.
The `whitelist` is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
## How can I contribute hosts records?
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
### Option 1: contact one of our hosts sources
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
### Option 2: add your domains to Steven Black's personal data file
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
Then, submit a pull request.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
A hosts file, named `hosts` (with no file extension), is a plain-text file
used by all operating systems to map hostnames to IP addresses.
In most operating systems, the `hosts` file is preferential to `DNS`.
Therefore if a domain name is resolved by the `hosts` file, the request never
leaves your computer.
Having a smart `hosts` file goes a long way towards blocking malware, adware,
and other irritants.
For example, to nullify requests to some doubleclick.net servers, adding these
lines to your hosts file will do it:
# block doubleClick's servers
0.0.0.0 ad.ae.doubleclick.net
0.0.0.0 ad.ar.doubleclick.net
0.0.0.0 ad.at.doubleclick.net
0.0.0.0 ad.au.doubleclick.net
0.0.0.0 ad.be.doubleclick.net
# etc...
## We recommend using `0.0.0.0` instead of `127.0.0.1`
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
## Location of your hosts file
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
## 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:
```
updateHostsWindows.bat
```
This file MUST be run in command prompt with administrator privileges in
the repository directory. In addition to updating the hosts file, it can also
replace the existing hosts file, and reload the DNS cache. It goes without
saying that in order for this to work, you must be connected to the internet.
To open a command prompt as administrator in the repository's directory, do the following:
**Windows XP**: Start -> Run -> `cmd`
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
**Windows 8**: Start -> Swipe Up -> All Apps -> Windows System -> right-click Command Prompt ->
"Run as Administrator"
**Windows 10**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
You can also refer to the "Third-Party Hosts Managers" section for further recommended solutions from third parties.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: https://superuser.com/questions/723703
:-----------------------------------------------------------------------------------------
### Windows
Open a command prompt with administrator privileges and run this command:
```
ipconfig /flushdns
```
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
```
sc config "Dnscache" start= disabled
sc stop "Dnscache"
```
### Linux
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
**Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
**RHEL/Centos**: `sudo /etc/init.d/network restart`
**FreeBSD**: `sudo service nscd restart`
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
```
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
Open a Terminal and run:
```
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
```
## Release management
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
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
## Goals of this unified hosts file
The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
3. de-dupe the resultant combined list,
4. and keep the resultant file reasonably sized.
A high-quality source is defined here as one that is actively curated. A
hosts source should be frequently updated by its maintainers with both
additions and removals. The larger the hosts file, the higher the level of
curation is expected.
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
is **not** included here because it is very large (780,000+ entries)
and doesn't currently display a corresponding high level of curation activity.
It is expected that this unified hosts file will serve both desktop and mobile
devices under a variety of operating systems.
## Third-Party Hosts Managers
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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.
* [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.
* [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server") (for BSD, Windows & Linux): Set up a blacklist for everyone on your network using the power of the unified hosts reformatted for DualServer. And if you're on Windows, this project also maintains an update script to make updating DualServer's blacklist even easier.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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
+434
View File
@@ -0,0 +1,434 @@
----
**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: **September 19 2019**.
* Here's the [raw hosts file with fakenews, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) containing 55,324 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) | 42,298 | [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) | 43,240 | [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) | 44,570 | [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) | 54,382 | [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) | 44,773 | [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) | 45,512 | [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) | 55,324 | [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) | 45,715 | [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) | 56,654 | [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) | 47,045 | [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) | 56,856 | [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) | 57,596 | [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) | 47,987 | [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) | 57,798 | [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) | 59,128 | [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) | 60,070 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
of OS.
## Sources of hosts data unified in this variant
Updated `hosts` files from the following locations are always unified and
included:
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
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)
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)
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 optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in 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 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
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** 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:
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
#### Using Python 3:
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
* Hosts data sources, including extensions, are updated.
* No extensions are included by default. Use the `--extensions` or `-e` flag
to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace`
flag.
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
over them.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
of subfolders below the `extensions` folder containing additional
category-specific hosts files to include in the amalgamation. Example:
`--extensions porn` or `-e social porn`.
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
in a subfolder. If the subfolder does not exist, it will be created.
`--replace`, or `-r`: trigger replacing your active hosts
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
section at the top, containing lines like `127.0.0.1 localhost`. This is
useful for configuring proximate DNS services on the local network.
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
ignoring non-necessary lines (empty lines and comments) and putting multiple
domains in each line. Reducing the number of lines of the hosts file improves
the performances under Windows (with DNS Client service enabled).
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
each domain on a separate line. This is necessary because many implementations
of URL blockers that rely on `hosts` files do not conform to the standard which
allows multiple hosts on a single line.
## How do I control which sources are unified?
Add one or more *additional* sources, each in a subfolder of the `data/`
folder, and specify the `url` key in its `update.json` file.
Add one or more *optional* extensions, which originate from subfolders of the
`extensions/` folder. Again the url in `update.json` controls where this
extension finds its updates.
Create an *optional* `blacklist` file. The contents of this file (containing a
listing of additional domains in `hosts` file format) are appended to the
unified hosts file during the update process. A sample `blacklist` is
included, and may be modified as you desire.
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
be overridden when you `git pull` this repo from `origin` in the future.
### How do I include my own custom domain mappings?
If you have custom hosts records, place them in file `myhosts`. The contents
of this file are prepended to the unified hosts file during the update
process.
The `myhosts` file is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
### How do I prevent domains from being included?
The domains you list in the `whitelist` file are excluded from the final hosts
file.
The `whitelist` uses partial matching. Therefore if you whitelist
`google-analytics.com`, that domain and all its subdomains won't be merged
into the final hosts file.
The `whitelist` is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
## How can I contribute hosts records?
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
### Option 1: contact one of our hosts sources
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
### Option 2: add your domains to Steven Black's personal data file
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
Then, submit a pull request.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
A hosts file, named `hosts` (with no file extension), is a plain-text file
used by all operating systems to map hostnames to IP addresses.
In most operating systems, the `hosts` file is preferential to `DNS`.
Therefore if a domain name is resolved by the `hosts` file, the request never
leaves your computer.
Having a smart `hosts` file goes a long way towards blocking malware, adware,
and other irritants.
For example, to nullify requests to some doubleclick.net servers, adding these
lines to your hosts file will do it:
# block doubleClick's servers
0.0.0.0 ad.ae.doubleclick.net
0.0.0.0 ad.ar.doubleclick.net
0.0.0.0 ad.at.doubleclick.net
0.0.0.0 ad.au.doubleclick.net
0.0.0.0 ad.be.doubleclick.net
# etc...
## We recommend using `0.0.0.0` instead of `127.0.0.1`
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
## Location of your hosts file
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
## 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:
```
updateHostsWindows.bat
```
This file MUST be run in command prompt with administrator privileges in
the repository directory. In addition to updating the hosts file, it can also
replace the existing hosts file, and reload the DNS cache. It goes without
saying that in order for this to work, you must be connected to the internet.
To open a command prompt as administrator in the repository's directory, do the following:
**Windows XP**: Start -> Run -> `cmd`
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
**Windows 8**: Start -> Swipe Up -> All Apps -> Windows System -> right-click Command Prompt ->
"Run as Administrator"
**Windows 10**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
You can also refer to the "Third-Party Hosts Managers" section for further recommended solutions from third parties.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: https://superuser.com/questions/723703
:-----------------------------------------------------------------------------------------
### Windows
Open a command prompt with administrator privileges and run this command:
```
ipconfig /flushdns
```
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
```
sc config "Dnscache" start= disabled
sc stop "Dnscache"
```
### Linux
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
**Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
**RHEL/Centos**: `sudo /etc/init.d/network restart`
**FreeBSD**: `sudo service nscd restart`
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
```
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
Open a Terminal and run:
```
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
```
## Release management
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
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
## Goals of this unified hosts file
The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
3. de-dupe the resultant combined list,
4. and keep the resultant file reasonably sized.
A high-quality source is defined here as one that is actively curated. A
hosts source should be frequently updated by its maintainers with both
additions and removals. The larger the hosts file, the higher the level of
curation is expected.
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
is **not** included here because it is very large (780,000+ entries)
and doesn't currently display a corresponding high level of curation activity.
It is expected that this unified hosts file will serve both desktop and mobile
devices under a variety of operating systems.
## Third-Party Hosts Managers
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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.
* [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.
* [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server") (for BSD, Windows & Linux): Set up a blacklist for everyone on your network using the power of the unified hosts reformatted for DualServer. And if you're on Windows, this project also maintains an update script to make updating DualServer's blacklist even easier.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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
+432
View File
@@ -0,0 +1,432 @@
----
**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: **September 19 2019**.
* Here's the [raw hosts file with fakenews, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) containing 45,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) | 42,298 | [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) | 43,240 | [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) | 44,570 | [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) | 54,382 | [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) | 44,773 | [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) | 45,512 | [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) | 55,324 | [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) | 45,715 | [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) | 56,654 | [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) | 47,045 | [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) | 56,856 | [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) | 57,596 | [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) | 47,987 | [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) | 57,798 | [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) | 59,128 | [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) | 60,070 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
of OS.
## Sources of hosts data unified in this variant
Updated `hosts` files from the following locations are always unified and
included:
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
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)
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)
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 optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in 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 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
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** 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:
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
#### Using Python 3:
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
* Hosts data sources, including extensions, are updated.
* No extensions are included by default. Use the `--extensions` or `-e` flag
to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace`
flag.
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
over them.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
of subfolders below the `extensions` folder containing additional
category-specific hosts files to include in the amalgamation. Example:
`--extensions porn` or `-e social porn`.
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
in a subfolder. If the subfolder does not exist, it will be created.
`--replace`, or `-r`: trigger replacing your active hosts
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
section at the top, containing lines like `127.0.0.1 localhost`. This is
useful for configuring proximate DNS services on the local network.
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
ignoring non-necessary lines (empty lines and comments) and putting multiple
domains in each line. Reducing the number of lines of the hosts file improves
the performances under Windows (with DNS Client service enabled).
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
each domain on a separate line. This is necessary because many implementations
of URL blockers that rely on `hosts` files do not conform to the standard which
allows multiple hosts on a single line.
## How do I control which sources are unified?
Add one or more *additional* sources, each in a subfolder of the `data/`
folder, and specify the `url` key in its `update.json` file.
Add one or more *optional* extensions, which originate from subfolders of the
`extensions/` folder. Again the url in `update.json` controls where this
extension finds its updates.
Create an *optional* `blacklist` file. The contents of this file (containing a
listing of additional domains in `hosts` file format) are appended to the
unified hosts file during the update process. A sample `blacklist` is
included, and may be modified as you desire.
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
be overridden when you `git pull` this repo from `origin` in the future.
### How do I include my own custom domain mappings?
If you have custom hosts records, place them in file `myhosts`. The contents
of this file are prepended to the unified hosts file during the update
process.
The `myhosts` file is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
### How do I prevent domains from being included?
The domains you list in the `whitelist` file are excluded from the final hosts
file.
The `whitelist` uses partial matching. Therefore if you whitelist
`google-analytics.com`, that domain and all its subdomains won't be merged
into the final hosts file.
The `whitelist` is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
## How can I contribute hosts records?
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
### Option 1: contact one of our hosts sources
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
### Option 2: add your domains to Steven Black's personal data file
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
Then, submit a pull request.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
A hosts file, named `hosts` (with no file extension), is a plain-text file
used by all operating systems to map hostnames to IP addresses.
In most operating systems, the `hosts` file is preferential to `DNS`.
Therefore if a domain name is resolved by the `hosts` file, the request never
leaves your computer.
Having a smart `hosts` file goes a long way towards blocking malware, adware,
and other irritants.
For example, to nullify requests to some doubleclick.net servers, adding these
lines to your hosts file will do it:
# block doubleClick's servers
0.0.0.0 ad.ae.doubleclick.net
0.0.0.0 ad.ar.doubleclick.net
0.0.0.0 ad.at.doubleclick.net
0.0.0.0 ad.au.doubleclick.net
0.0.0.0 ad.be.doubleclick.net
# etc...
## We recommend using `0.0.0.0` instead of `127.0.0.1`
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
## Location of your hosts file
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
## 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:
```
updateHostsWindows.bat
```
This file MUST be run in command prompt with administrator privileges in
the repository directory. In addition to updating the hosts file, it can also
replace the existing hosts file, and reload the DNS cache. It goes without
saying that in order for this to work, you must be connected to the internet.
To open a command prompt as administrator in the repository's directory, do the following:
**Windows XP**: Start -> Run -> `cmd`
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
**Windows 8**: Start -> Swipe Up -> All Apps -> Windows System -> right-click Command Prompt ->
"Run as Administrator"
**Windows 10**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
You can also refer to the "Third-Party Hosts Managers" section for further recommended solutions from third parties.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: https://superuser.com/questions/723703
:-----------------------------------------------------------------------------------------
### Windows
Open a command prompt with administrator privileges and run this command:
```
ipconfig /flushdns
```
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
```
sc config "Dnscache" start= disabled
sc stop "Dnscache"
```
### Linux
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
**Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
**RHEL/Centos**: `sudo /etc/init.d/network restart`
**FreeBSD**: `sudo service nscd restart`
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
```
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
Open a Terminal and run:
```
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
```
## Release management
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
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
## Goals of this unified hosts file
The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
3. de-dupe the resultant combined list,
4. and keep the resultant file reasonably sized.
A high-quality source is defined here as one that is actively curated. A
hosts source should be frequently updated by its maintainers with both
additions and removals. The larger the hosts file, the higher the level of
curation is expected.
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
is **not** included here because it is very large (780,000+ entries)
and doesn't currently display a corresponding high level of curation activity.
It is expected that this unified hosts file will serve both desktop and mobile
devices under a variety of operating systems.
## Third-Party Hosts Managers
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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.
* [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.
* [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server") (for BSD, Windows & Linux): Set up a blacklist for everyone on your network using the power of the unified hosts reformatted for DualServer. And if you're on Windows, this project also maintains an update script to make updating DualServer's blacklist even easier.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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
+430
View File
@@ -0,0 +1,430 @@
----
**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: **September 19 2019**.
* Here's the [raw hosts file with fakenews extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) containing 43,240 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) | 42,298 | [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) | 43,240 | [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) | 44,570 | [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) | 54,382 | [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) | 44,773 | [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) | 45,512 | [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) | 55,324 | [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) | 45,715 | [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) | 56,654 | [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) | 47,045 | [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) | 56,856 | [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) | 57,596 | [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) | 47,987 | [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) | 57,798 | [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) | 59,128 | [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) | 60,070 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
of OS.
## Sources of hosts data unified in this variant
Updated `hosts` files from the following locations are always unified and
included:
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
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)
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)
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 optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in 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 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
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** 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:
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
#### Using Python 3:
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
* Hosts data sources, including extensions, are updated.
* No extensions are included by default. Use the `--extensions` or `-e` flag
to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace`
flag.
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
over them.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
of subfolders below the `extensions` folder containing additional
category-specific hosts files to include in the amalgamation. Example:
`--extensions porn` or `-e social porn`.
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
in a subfolder. If the subfolder does not exist, it will be created.
`--replace`, or `-r`: trigger replacing your active hosts
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
section at the top, containing lines like `127.0.0.1 localhost`. This is
useful for configuring proximate DNS services on the local network.
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
ignoring non-necessary lines (empty lines and comments) and putting multiple
domains in each line. Reducing the number of lines of the hosts file improves
the performances under Windows (with DNS Client service enabled).
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
each domain on a separate line. This is necessary because many implementations
of URL blockers that rely on `hosts` files do not conform to the standard which
allows multiple hosts on a single line.
## How do I control which sources are unified?
Add one or more *additional* sources, each in a subfolder of the `data/`
folder, and specify the `url` key in its `update.json` file.
Add one or more *optional* extensions, which originate from subfolders of the
`extensions/` folder. Again the url in `update.json` controls where this
extension finds its updates.
Create an *optional* `blacklist` file. The contents of this file (containing a
listing of additional domains in `hosts` file format) are appended to the
unified hosts file during the update process. A sample `blacklist` is
included, and may be modified as you desire.
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
be overridden when you `git pull` this repo from `origin` in the future.
### How do I include my own custom domain mappings?
If you have custom hosts records, place them in file `myhosts`. The contents
of this file are prepended to the unified hosts file during the update
process.
The `myhosts` file is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
### How do I prevent domains from being included?
The domains you list in the `whitelist` file are excluded from the final hosts
file.
The `whitelist` uses partial matching. Therefore if you whitelist
`google-analytics.com`, that domain and all its subdomains won't be merged
into the final hosts file.
The `whitelist` is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
## How can I contribute hosts records?
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
### Option 1: contact one of our hosts sources
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
### Option 2: add your domains to Steven Black's personal data file
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
Then, submit a pull request.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
A hosts file, named `hosts` (with no file extension), is a plain-text file
used by all operating systems to map hostnames to IP addresses.
In most operating systems, the `hosts` file is preferential to `DNS`.
Therefore if a domain name is resolved by the `hosts` file, the request never
leaves your computer.
Having a smart `hosts` file goes a long way towards blocking malware, adware,
and other irritants.
For example, to nullify requests to some doubleclick.net servers, adding these
lines to your hosts file will do it:
# block doubleClick's servers
0.0.0.0 ad.ae.doubleclick.net
0.0.0.0 ad.ar.doubleclick.net
0.0.0.0 ad.at.doubleclick.net
0.0.0.0 ad.au.doubleclick.net
0.0.0.0 ad.be.doubleclick.net
# etc...
## We recommend using `0.0.0.0` instead of `127.0.0.1`
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
## Location of your hosts file
To modify your current `hosts` file, look for it in the following places and modify it with a text
editor.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
## 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:
```
updateHostsWindows.bat
```
This file MUST be run in command prompt with administrator privileges in
the repository directory. In addition to updating the hosts file, it can also
replace the existing hosts file, and reload the DNS cache. It goes without
saying that in order for this to work, you must be connected to the internet.
To open a command prompt as administrator in the repository's directory, do the following:
**Windows XP**: Start -> Run -> `cmd`
**Windows Vista, 7**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
**Windows 8**: Start -> Swipe Up -> All Apps -> Windows System -> right-click Command Prompt ->
"Run as Administrator"
**Windows 10**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
You can also refer to the "Third-Party Hosts Managers" section for further recommended solutions from third parties.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: https://superuser.com/questions/723703
:-----------------------------------------------------------------------------------------
### Windows
Open a command prompt with administrator privileges and run this command:
```
ipconfig /flushdns
```
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
```
sc config "Dnscache" start= disabled
sc stop "Dnscache"
```
### Linux
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
**Fedora Linux**: `sudo systemctl restart NetworkManager.service`
**Arch Linux/Manjaro with Network Manager**: `sudo systemctl restart NetworkManager.service`
**Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
**RHEL/Centos**: `sudo /etc/init.d/network restart`
**FreeBSD**: `sudo service nscd restart`
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
```
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
Open a Terminal and run:
```
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
```
## Release management
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
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
## Goals of this unified hosts file
The goals of this repo are to:
1. automatically combine high-quality lists of hosts,
2. provide easy extensions,
3. de-dupe the resultant combined list,
4. and keep the resultant file reasonably sized.
A high-quality source is defined here as one that is actively curated. A
hosts source should be frequently updated by its maintainers with both
additions and removals. The larger the hosts file, the higher the level of
curation is expected.
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
is **not** included here because it is very large (780,000+ entries)
and doesn't currently display a corresponding high level of curation activity.
It is expected that this unified hosts file will serve both desktop and mobile
devices under a variety of operating systems.
## Third-Party Hosts Managers
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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.
* [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.
* [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server") (for BSD, Windows & Linux): Set up a blacklist for everyone on your network using the power of the unified hosts reformatted for DualServer. And if you're on Windows, this project also maintains an update script to make updating DualServer's blacklist even easier.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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
+329 -87
View File
@@ -1,49 +1,119 @@
#Unified hosts file with gambling, porn, social extensions
----
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
This repository consolidates several reputable `hosts` files, and merges them into various unified hosts files
with duplicates removed.
----
![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: **September 19 2019**.
* Here's the [raw hosts file with gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) containing 59,128 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
* Here's the [raw hosts file](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) containing 33,358 entries.
* Last updated: **March 25 2016**.
### List of all hosts file variants
Host file recipe | Readme | Raw hosts | Unique domains
---------------- |:------:|:---------:|:-------------:
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 27,285
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) | 28,000
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) | 32,535
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) | 27,393
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) | 33,250
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) | 28,108
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) | 32,643
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) | 33,358
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) | 42,298 | [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) | 43,240 | [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) | 44,570 | [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) | 54,382 | [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) | 44,773 | [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) | 45,512 | [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) | 55,324 | [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) | 45,715 | [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) | 56,654 | [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) | 47,045 | [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) | 56,856 | [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) | 57,596 | [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) | 47,987 | [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) | 57,798 | [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) | 59,128 | [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) | 60,070 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless of OS.
**Expectation**: These unified hosts files should serve all devices, regardless
of OS.
## Sources of hosts data unified here
## Sources of hosts data unified in this variant
Updated `hosts` files from the following locations are always unified and
included:
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
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)
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)
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)
Updated `hosts` files from the following locations are always unified and included:
* The [Adaway hosts file](http://adaway.org/hosts.txt), updated regularly.
* MVPs.org Hosts file at [http://winhelp2002.mvps.org/hosts.htm](http://winhelp2002.mvps.org/hosts.htm), updated
monthly, or thereabouts.
* Dan Pollock at [http://someonewhocares.org/hosts/](http://someonewhocares.org/hosts/) updated regularly.
* Malware Domain List at [http://www.malwaredomainlist.com/](http://www.malwaredomainlist.com/), updated regularly.
* Peter Lowe at [http://pgl.yoyo.org/adservers/](http://pgl.yoyo.org/adservers/), updated regularly.
* My own small list in raw form [here](https://raw.github.com/StevenBlack/hosts/master/data/StevenBlack/hosts).
## Extensions
The unified hosts file is extensible. You manage extensions by curating the `extensions/` folder tree.
See the `social`, `gambling`, and `porn` extension which are included in this repo, for example.
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in 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 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
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.info text file in each source's folder), otherwise it will use the
`hosts` file that's already there.
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** 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:
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -51,72 +121,149 @@ versions (from locations defined by the update.info text file in each source's f
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.
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
* Hosts data sources, including extensions, are updated.
* No extensions are included by default. Use the `--extensions` or `-e` flag to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace` flag.
* No extensions are included by default. Use the `--extensions` or `-e` flag
to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace`
flag.
`--replace`, or `-r`: trigger replacing your active hosts file with the new hosts file. Use along with `--auto` to
force replacement.
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
over them.
`--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`.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
of subfolders below the `extensions` folder containing additional
category-specific hosts files to include in the amalgamation. Example:
`--extensions porn` or `-e social porn`.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of subfolders below the `extensions` folder
containing additional category-specific hosts files to include in the amalgamation. Example: `--extensions porn` or
`-e social porn`.
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in a subfolder. If the subfolder does not
exist, it will be created.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
in a subfolder. If the subfolder does not exist, it will be created.
`--help`, or `-h`: display help.
`--replace`, or `-r`: trigger replacing your active hosts
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
section at the top, containing lines like `127.0.0.1 localhost`. This is
useful for configuring proximate DNS services on the local network.
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
ignoring non-necessary lines (empty lines and comments) and putting multiple
domains in each line. Reducing the number of lines of the hosts file improves
the performances under Windows (with DNS Client service enabled).
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
each domain on a separate line. This is necessary because many implementations
of URL blockers that rely on `hosts` files do not conform to the standard which
allows multiple hosts on a single line.
## How do I control which sources are unified?
Add one or more *additional* sources, each in a subfolder of the `data/` folder, and specify its update url in
`update.info` file.
Add one or more *additional* sources, each in a subfolder of the `data/`
folder, and specify the `url` key in its `update.json` file.
Add one or more *optional* extensions, which originate from subfolders of the `extensions/` folder. Again the url in
`update.info` controls where this extension finds its updates.
Add one or more *optional* extensions, which originate from subfolders of the
`extensions/` folder. Again the url in `update.json` controls where this
extension finds its updates.
## How do I incorporate my own hosts?
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.
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
be overridden when you `git pull` this repo from `origin` in the future.
### How do I include my own custom domain mappings?
If you have custom hosts records, place them in file `myhosts`. The contents
of this file are prepended to the unified hosts file during the update
process.
The `myhosts` file is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
### How do I prevent domains from being included?
The domains you list in the `whitelist` file are excluded from the final hosts
file.
The `whitelist` uses partial matching. Therefore if you whitelist
`google-analytics.com`, that domain and all its subdomains won't be merged
into the final hosts file.
The `whitelist` is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
## How can I contribute hosts records?
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
### Option 1: contact one of our hosts sources
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
### Option 2: add your domains to Steven Black's personal data file
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
Then, submit a pull request.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you have custom hosts records, place them in file `myhosts`. The contents of this file are prepended to the
unified hosts file during the update process.
## What is a hosts file?
A hosts file, named `hosts` (with no file extension), is a plain-text file used by all operating
systems to map hostnames to IP addresses.
A hosts file, named `hosts` (with no file extension), is a plain-text file
used by all operating systems to map hostnames to IP addresses.
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore if a domain name is
resolved by the `hosts` file, the request never leaves your computer.
In most operating systems, the `hosts` file is preferential to `DNS`.
Therefore if a domain name is resolved by the `hosts` file, the request never
leaves your computer.
Having a smart `hosts` file goes a long way towards blocking malware, adware, and other irritants.
Having a smart `hosts` file goes a long way towards blocking malware, adware,
and other irritants.
For example, to nullify requests to some doubleclick.net servers, adding these lines to your hosts
file will do it:
For example, to nullify requests to some doubleclick.net servers, adding these
lines to your hosts file will do it:
# block doubleClick's servers
127.0.0.1 ad.ae.doubleclick.net
127.0.0.1 ad.ar.doubleclick.net
127.0.0.1 ad.at.doubleclick.net
127.0.0.1 ad.au.doubleclick.net
127.0.0.1 ad.be.doubleclick.net
0.0.0.0 ad.ae.doubleclick.net
0.0.0.0 ad.ar.doubleclick.net
0.0.0.0 ad.at.doubleclick.net
0.0.0.0 ad.au.doubleclick.net
0.0.0.0 ad.be.doubleclick.net
# etc...
## We recommend using `0.0.0.0` instead of `127.0.0.1`
Using `0.0.0.0` is faster because you don't have to wait for a timeout. It also does not interfere
with a web server that may be running on the local PC.
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -126,21 +273,26 @@ 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` folder.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` folder.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
## Updating hosts file on Windows
### Mac OS X
Open a Terminal and run:
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:
`sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder`
```
updateHostsWindows.bat
```
### Windows
Open a Command Prompt:
This file MUST be run in command prompt with administrator privileges in
the repository directory. In addition to updating the hosts file, it can also
replace the existing hosts file, and reload the DNS cache. It goes without
saying that in order for this to work, you must be connected to the internet.
To open a command prompt as administrator in the repository's directory, do the following:
**Windows XP**: Start -> Run -> `cmd`
@@ -150,14 +302,43 @@ Open a Command Prompt:
**Windows 8**: Start -> Swipe Up -> All Apps -> Windows System -> right-click Command Prompt ->
"Run as Administrator"
and run:
**Windows 10**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
`ipconfig /flushdns`
You can also refer to the "Third-Party Hosts Managers" section for further recommended solutions from third parties.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: https://superuser.com/questions/723703
:-----------------------------------------------------------------------------------------
### Windows
Open a command prompt with administrator privileges and run this command:
```
ipconfig /flushdns
```
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
```
sc config "Dnscache" start= disabled
sc stop "Dnscache"
```
### Linux
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`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -167,8 +348,38 @@ Open a Terminal and run with root privileges:
**Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
**RHEL/Centos**: `sudo /etc/init.d/network restart`
**FreeBSD**: `sudo service nscd restart`
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
```
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
Open a Terminal and run:
```
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
```
## Release management
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
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
## Goals of this unified hosts file
@@ -182,13 +393,44 @@ The goals of this repo are to:
4. and keep the resultant file reasonably sized.
A high-quality source is defined here as one that is actively curated. A hosts source should be frequently
updated by its maintainers with both additions and removals. The larger the hosts file, the higher the level of
A high-quality source is defined here as one that is actively curated. A
hosts source should be frequently updated by its maintainers with both
additions and removals. The larger the hosts file, the higher the level of
curation is expected.
For example, the (huge) hosts file from [hosts-file.net](http://hosts-file.net) is **not** included
here because it is very large (300,000+ entries) and doesn't currently display a corresponding high level of curation
activity.
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
is **not** included here because it is very large (780,000+ entries)
and doesn't currently display a corresponding high level of curation activity.
It is expected that this unified hosts file will serve both desktop and mobile devices under a variety of operating
systems.
It is expected that this unified hosts file will serve both desktop and mobile
devices under a variety of operating systems.
## Third-Party Hosts Managers
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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.
* [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.
* [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server") (for BSD, Windows & Linux): Set up a blacklist for everyone on your network using the power of the unified hosts reformatted for DualServer. And if you're on Windows, this project also maintains an update script to make updating DualServer's blacklist even easier.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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).
+45814 -22443
View File
File diff suppressed because it is too large. Load diff
+327 -87
View File
@@ -1,49 +1,117 @@
#Unified hosts file with gambling, porn extensions
----
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
This repository consolidates several reputable `hosts` files, and merges them into various unified hosts files
with duplicates removed.
----
![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: **September 19 2019**.
* Here's the [raw hosts file with gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) containing 56,654 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
* Here's the [raw hosts file](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) containing 33,250 entries.
* Last updated: **March 25 2016**.
### List of all hosts file variants
Host file recipe | Readme | Raw hosts | Unique domains
---------------- |:------:|:---------:|:-------------:
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 27,285
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) | 28,000
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) | 32,535
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) | 27,393
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) | 33,250
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) | 28,108
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) | 32,643
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) | 33,358
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) | 42,298 | [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) | 43,240 | [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) | 44,570 | [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) | 54,382 | [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) | 44,773 | [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) | 45,512 | [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) | 55,324 | [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) | 45,715 | [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) | 56,654 | [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) | 47,045 | [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) | 56,856 | [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) | 57,596 | [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) | 47,987 | [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) | 57,798 | [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) | 59,128 | [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) | 60,070 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless of OS.
**Expectation**: These unified hosts files should serve all devices, regardless
of OS.
## Sources of hosts data unified here
## Sources of hosts data unified in this variant
Updated `hosts` files from the following locations are always unified and
included:
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
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)
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)
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)
Updated `hosts` files from the following locations are always unified and included:
* The [Adaway hosts file](http://adaway.org/hosts.txt), updated regularly.
* MVPs.org Hosts file at [http://winhelp2002.mvps.org/hosts.htm](http://winhelp2002.mvps.org/hosts.htm), updated
monthly, or thereabouts.
* Dan Pollock at [http://someonewhocares.org/hosts/](http://someonewhocares.org/hosts/) updated regularly.
* Malware Domain List at [http://www.malwaredomainlist.com/](http://www.malwaredomainlist.com/), updated regularly.
* Peter Lowe at [http://pgl.yoyo.org/adservers/](http://pgl.yoyo.org/adservers/), updated regularly.
* My own small list in raw form [here](https://raw.github.com/StevenBlack/hosts/master/data/StevenBlack/hosts).
## Extensions
The unified hosts file is extensible. You manage extensions by curating the `extensions/` folder tree.
See the `social`, `gambling`, and `porn` extension which are included in this repo, for example.
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in 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 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
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.info text file in each source's folder), otherwise it will use the
`hosts` file that's already there.
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** 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:
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -51,72 +119,149 @@ versions (from locations defined by the update.info text file in each source's f
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.
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
* Hosts data sources, including extensions, are updated.
* No extensions are included by default. Use the `--extensions` or `-e` flag to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace` flag.
* No extensions are included by default. Use the `--extensions` or `-e` flag
to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace`
flag.
`--replace`, or `-r`: trigger replacing your active hosts file with the new hosts file. Use along with `--auto` to
force replacement.
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
over them.
`--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`.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
of subfolders below the `extensions` folder containing additional
category-specific hosts files to include in the amalgamation. Example:
`--extensions porn` or `-e social porn`.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of subfolders below the `extensions` folder
containing additional category-specific hosts files to include in the amalgamation. Example: `--extensions porn` or
`-e social porn`.
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in a subfolder. If the subfolder does not
exist, it will be created.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
in a subfolder. If the subfolder does not exist, it will be created.
`--help`, or `-h`: display help.
`--replace`, or `-r`: trigger replacing your active hosts
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
section at the top, containing lines like `127.0.0.1 localhost`. This is
useful for configuring proximate DNS services on the local network.
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
ignoring non-necessary lines (empty lines and comments) and putting multiple
domains in each line. Reducing the number of lines of the hosts file improves
the performances under Windows (with DNS Client service enabled).
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
each domain on a separate line. This is necessary because many implementations
of URL blockers that rely on `hosts` files do not conform to the standard which
allows multiple hosts on a single line.
## How do I control which sources are unified?
Add one or more *additional* sources, each in a subfolder of the `data/` folder, and specify its update url in
`update.info` file.
Add one or more *additional* sources, each in a subfolder of the `data/`
folder, and specify the `url` key in its `update.json` file.
Add one or more *optional* extensions, which originate from subfolders of the `extensions/` folder. Again the url in
`update.info` controls where this extension finds its updates.
Add one or more *optional* extensions, which originate from subfolders of the
`extensions/` folder. Again the url in `update.json` controls where this
extension finds its updates.
## How do I incorporate my own hosts?
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.
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
be overridden when you `git pull` this repo from `origin` in the future.
### How do I include my own custom domain mappings?
If you have custom hosts records, place them in file `myhosts`. The contents
of this file are prepended to the unified hosts file during the update
process.
The `myhosts` file is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
### How do I prevent domains from being included?
The domains you list in the `whitelist` file are excluded from the final hosts
file.
The `whitelist` uses partial matching. Therefore if you whitelist
`google-analytics.com`, that domain and all its subdomains won't be merged
into the final hosts file.
The `whitelist` is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
## How can I contribute hosts records?
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
### Option 1: contact one of our hosts sources
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
### Option 2: add your domains to Steven Black's personal data file
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
Then, submit a pull request.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you have custom hosts records, place them in file `myhosts`. The contents of this file are prepended to the
unified hosts file during the update process.
## What is a hosts file?
A hosts file, named `hosts` (with no file extension), is a plain-text file used by all operating
systems to map hostnames to IP addresses.
A hosts file, named `hosts` (with no file extension), is a plain-text file
used by all operating systems to map hostnames to IP addresses.
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore if a domain name is
resolved by the `hosts` file, the request never leaves your computer.
In most operating systems, the `hosts` file is preferential to `DNS`.
Therefore if a domain name is resolved by the `hosts` file, the request never
leaves your computer.
Having a smart `hosts` file goes a long way towards blocking malware, adware, and other irritants.
Having a smart `hosts` file goes a long way towards blocking malware, adware,
and other irritants.
For example, to nullify requests to some doubleclick.net servers, adding these lines to your hosts
file will do it:
For example, to nullify requests to some doubleclick.net servers, adding these
lines to your hosts file will do it:
# block doubleClick's servers
127.0.0.1 ad.ae.doubleclick.net
127.0.0.1 ad.ar.doubleclick.net
127.0.0.1 ad.at.doubleclick.net
127.0.0.1 ad.au.doubleclick.net
127.0.0.1 ad.be.doubleclick.net
0.0.0.0 ad.ae.doubleclick.net
0.0.0.0 ad.ar.doubleclick.net
0.0.0.0 ad.at.doubleclick.net
0.0.0.0 ad.au.doubleclick.net
0.0.0.0 ad.be.doubleclick.net
# etc...
## We recommend using `0.0.0.0` instead of `127.0.0.1`
Using `0.0.0.0` is faster because you don't have to wait for a timeout. It also does not interfere
with a web server that may be running on the local PC.
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -126,21 +271,26 @@ 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` folder.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` folder.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
## Updating hosts file on Windows
### Mac OS X
Open a Terminal and run:
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:
`sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder`
```
updateHostsWindows.bat
```
### Windows
Open a Command Prompt:
This file MUST be run in command prompt with administrator privileges in
the repository directory. In addition to updating the hosts file, it can also
replace the existing hosts file, and reload the DNS cache. It goes without
saying that in order for this to work, you must be connected to the internet.
To open a command prompt as administrator in the repository's directory, do the following:
**Windows XP**: Start -> Run -> `cmd`
@@ -150,14 +300,43 @@ Open a Command Prompt:
**Windows 8**: Start -> Swipe Up -> All Apps -> Windows System -> right-click Command Prompt ->
"Run as Administrator"
and run:
**Windows 10**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
`ipconfig /flushdns`
You can also refer to the "Third-Party Hosts Managers" section for further recommended solutions from third parties.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: https://superuser.com/questions/723703
:-----------------------------------------------------------------------------------------
### Windows
Open a command prompt with administrator privileges and run this command:
```
ipconfig /flushdns
```
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
```
sc config "Dnscache" start= disabled
sc stop "Dnscache"
```
### Linux
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`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -167,8 +346,38 @@ Open a Terminal and run with root privileges:
**Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
**RHEL/Centos**: `sudo /etc/init.d/network restart`
**FreeBSD**: `sudo service nscd restart`
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
```
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
Open a Terminal and run:
```
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
```
## Release management
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
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
## Goals of this unified hosts file
@@ -182,13 +391,44 @@ The goals of this repo are to:
4. and keep the resultant file reasonably sized.
A high-quality source is defined here as one that is actively curated. A hosts source should be frequently
updated by its maintainers with both additions and removals. The larger the hosts file, the higher the level of
A high-quality source is defined here as one that is actively curated. A
hosts source should be frequently updated by its maintainers with both
additions and removals. The larger the hosts file, the higher the level of
curation is expected.
For example, the (huge) hosts file from [hosts-file.net](http://hosts-file.net) is **not** included
here because it is very large (300,000+ entries) and doesn't currently display a corresponding high level of curation
activity.
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
is **not** included here because it is very large (780,000+ entries)
and doesn't currently display a corresponding high level of curation activity.
It is expected that this unified hosts file will serve both desktop and mobile devices under a variety of operating
systems.
It is expected that this unified hosts file will serve both desktop and mobile
devices under a variety of operating systems.
## Third-Party Hosts Managers
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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.
* [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.
* [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server") (for BSD, Windows & Linux): Set up a blacklist for everyone on your network using the power of the unified hosts reformatted for DualServer. And if you're on Windows, this project also maintains an update script to make updating DualServer's blacklist even easier.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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).
+36859 -17965
View File
File diff suppressed because it is too large. Load diff
+325 -87
View File
@@ -1,49 +1,115 @@
#Unified hosts file with gambling, social extensions
----
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
This repository consolidates several reputable `hosts` files, and merges them into various unified hosts files
with duplicates removed.
----
![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: **September 19 2019**.
* Here's the [raw hosts file with gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) containing 47,045 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
* Here's the [raw hosts file](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) containing 28,108 entries.
* Last updated: **March 25 2016**.
### List of all hosts file variants
Host file recipe | Readme | Raw hosts | Unique domains
---------------- |:------:|:---------:|:-------------:
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 27,285
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) | 28,000
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) | 32,535
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) | 27,393
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) | 33,250
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) | 28,108
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) | 32,643
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) | 33,358
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) | 42,298 | [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) | 43,240 | [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) | 44,570 | [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) | 54,382 | [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) | 44,773 | [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) | 45,512 | [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) | 55,324 | [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) | 45,715 | [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) | 56,654 | [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) | 47,045 | [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) | 56,856 | [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) | 57,596 | [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) | 47,987 | [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) | 57,798 | [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) | 59,128 | [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) | 60,070 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless of OS.
**Expectation**: These unified hosts files should serve all devices, regardless
of OS.
## Sources of hosts data unified here
## Sources of hosts data unified in this variant
Updated `hosts` files from the following locations are always unified and
included:
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
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)
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)
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)
Updated `hosts` files from the following locations are always unified and included:
* The [Adaway hosts file](http://adaway.org/hosts.txt), updated regularly.
* MVPs.org Hosts file at [http://winhelp2002.mvps.org/hosts.htm](http://winhelp2002.mvps.org/hosts.htm), updated
monthly, or thereabouts.
* Dan Pollock at [http://someonewhocares.org/hosts/](http://someonewhocares.org/hosts/) updated regularly.
* Malware Domain List at [http://www.malwaredomainlist.com/](http://www.malwaredomainlist.com/), updated regularly.
* Peter Lowe at [http://pgl.yoyo.org/adservers/](http://pgl.yoyo.org/adservers/), updated regularly.
* My own small list in raw form [here](https://raw.github.com/StevenBlack/hosts/master/data/StevenBlack/hosts).
## Extensions
The unified hosts file is extensible. You manage extensions by curating the `extensions/` folder tree.
See the `social`, `gambling`, and `porn` extension which are included in this repo, for example.
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in 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 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
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.info text file in each source's folder), otherwise it will use the
`hosts` file that's already there.
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** 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:
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -51,72 +117,149 @@ versions (from locations defined by the update.info text file in each source's f
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.
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
* Hosts data sources, including extensions, are updated.
* No extensions are included by default. Use the `--extensions` or `-e` flag to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace` flag.
* No extensions are included by default. Use the `--extensions` or `-e` flag
to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace`
flag.
`--replace`, or `-r`: trigger replacing your active hosts file with the new hosts file. Use along with `--auto` to
force replacement.
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
over them.
`--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`.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
of subfolders below the `extensions` folder containing additional
category-specific hosts files to include in the amalgamation. Example:
`--extensions porn` or `-e social porn`.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of subfolders below the `extensions` folder
containing additional category-specific hosts files to include in the amalgamation. Example: `--extensions porn` or
`-e social porn`.
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in a subfolder. If the subfolder does not
exist, it will be created.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
in a subfolder. If the subfolder does not exist, it will be created.
`--help`, or `-h`: display help.
`--replace`, or `-r`: trigger replacing your active hosts
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
section at the top, containing lines like `127.0.0.1 localhost`. This is
useful for configuring proximate DNS services on the local network.
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
ignoring non-necessary lines (empty lines and comments) and putting multiple
domains in each line. Reducing the number of lines of the hosts file improves
the performances under Windows (with DNS Client service enabled).
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
each domain on a separate line. This is necessary because many implementations
of URL blockers that rely on `hosts` files do not conform to the standard which
allows multiple hosts on a single line.
## How do I control which sources are unified?
Add one or more *additional* sources, each in a subfolder of the `data/` folder, and specify its update url in
`update.info` file.
Add one or more *additional* sources, each in a subfolder of the `data/`
folder, and specify the `url` key in its `update.json` file.
Add one or more *optional* extensions, which originate from subfolders of the `extensions/` folder. Again the url in
`update.info` controls where this extension finds its updates.
Add one or more *optional* extensions, which originate from subfolders of the
`extensions/` folder. Again the url in `update.json` controls where this
extension finds its updates.
## How do I incorporate my own hosts?
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.
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
be overridden when you `git pull` this repo from `origin` in the future.
### How do I include my own custom domain mappings?
If you have custom hosts records, place them in file `myhosts`. The contents
of this file are prepended to the unified hosts file during the update
process.
The `myhosts` file is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
### How do I prevent domains from being included?
The domains you list in the `whitelist` file are excluded from the final hosts
file.
The `whitelist` uses partial matching. Therefore if you whitelist
`google-analytics.com`, that domain and all its subdomains won't be merged
into the final hosts file.
The `whitelist` is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
## How can I contribute hosts records?
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
### Option 1: contact one of our hosts sources
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
### Option 2: add your domains to Steven Black's personal data file
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
Then, submit a pull request.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you have custom hosts records, place them in file `myhosts`. The contents of this file are prepended to the
unified hosts file during the update process.
## What is a hosts file?
A hosts file, named `hosts` (with no file extension), is a plain-text file used by all operating
systems to map hostnames to IP addresses.
A hosts file, named `hosts` (with no file extension), is a plain-text file
used by all operating systems to map hostnames to IP addresses.
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore if a domain name is
resolved by the `hosts` file, the request never leaves your computer.
In most operating systems, the `hosts` file is preferential to `DNS`.
Therefore if a domain name is resolved by the `hosts` file, the request never
leaves your computer.
Having a smart `hosts` file goes a long way towards blocking malware, adware, and other irritants.
Having a smart `hosts` file goes a long way towards blocking malware, adware,
and other irritants.
For example, to nullify requests to some doubleclick.net servers, adding these lines to your hosts
file will do it:
For example, to nullify requests to some doubleclick.net servers, adding these
lines to your hosts file will do it:
# block doubleClick's servers
127.0.0.1 ad.ae.doubleclick.net
127.0.0.1 ad.ar.doubleclick.net
127.0.0.1 ad.at.doubleclick.net
127.0.0.1 ad.au.doubleclick.net
127.0.0.1 ad.be.doubleclick.net
0.0.0.0 ad.ae.doubleclick.net
0.0.0.0 ad.ar.doubleclick.net
0.0.0.0 ad.at.doubleclick.net
0.0.0.0 ad.au.doubleclick.net
0.0.0.0 ad.be.doubleclick.net
# etc...
## We recommend using `0.0.0.0` instead of `127.0.0.1`
Using `0.0.0.0` is faster because you don't have to wait for a timeout. It also does not interfere
with a web server that may be running on the local PC.
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -126,21 +269,26 @@ 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` folder.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` folder.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
## Updating hosts file on Windows
### Mac OS X
Open a Terminal and run:
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:
`sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder`
```
updateHostsWindows.bat
```
### Windows
Open a Command Prompt:
This file MUST be run in command prompt with administrator privileges in
the repository directory. In addition to updating the hosts file, it can also
replace the existing hosts file, and reload the DNS cache. It goes without
saying that in order for this to work, you must be connected to the internet.
To open a command prompt as administrator in the repository's directory, do the following:
**Windows XP**: Start -> Run -> `cmd`
@@ -150,14 +298,43 @@ Open a Command Prompt:
**Windows 8**: Start -> Swipe Up -> All Apps -> Windows System -> right-click Command Prompt ->
"Run as Administrator"
and run:
**Windows 10**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
`ipconfig /flushdns`
You can also refer to the "Third-Party Hosts Managers" section for further recommended solutions from third parties.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: https://superuser.com/questions/723703
:-----------------------------------------------------------------------------------------
### Windows
Open a command prompt with administrator privileges and run this command:
```
ipconfig /flushdns
```
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
```
sc config "Dnscache" start= disabled
sc stop "Dnscache"
```
### Linux
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`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -167,8 +344,38 @@ Open a Terminal and run with root privileges:
**Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
**RHEL/Centos**: `sudo /etc/init.d/network restart`
**FreeBSD**: `sudo service nscd restart`
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
```
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
Open a Terminal and run:
```
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
```
## Release management
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
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
## Goals of this unified hosts file
@@ -182,13 +389,44 @@ The goals of this repo are to:
4. and keep the resultant file reasonably sized.
A high-quality source is defined here as one that is actively curated. A hosts source should be frequently
updated by its maintainers with both additions and removals. The larger the hosts file, the higher the level of
A high-quality source is defined here as one that is actively curated. A
hosts source should be frequently updated by its maintainers with both
additions and removals. The larger the hosts file, the higher the level of
curation is expected.
For example, the (huge) hosts file from [hosts-file.net](http://hosts-file.net) is **not** included
here because it is very large (300,000+ entries) and doesn't currently display a corresponding high level of curation
activity.
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
is **not** included here because it is very large (780,000+ entries)
and doesn't currently display a corresponding high level of curation activity.
It is expected that this unified hosts file will serve both desktop and mobile devices under a variety of operating
systems.
It is expected that this unified hosts file will serve both desktop and mobile
devices under a variety of operating systems.
## Third-Party Hosts Managers
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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.
* [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.
* [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server") (for BSD, Windows & Linux): Set up a blacklist for everyone on your network using the power of the unified hosts reformatted for DualServer. And if you're on Windows, this project also maintains an update script to make updating DualServer's blacklist even easier.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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).
+34458 -17947
View File
File diff suppressed because it is too large. Load diff
+323 -87
View File
@@ -1,49 +1,113 @@
#Unified hosts file with gambling extensions
----
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
This repository consolidates several reputable `hosts` files, and merges them into various unified hosts files
with duplicates removed.
----
![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: **September 19 2019**.
* Here's the [raw hosts file with gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) containing 44,570 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
* Here's the [raw hosts file](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) containing 28,000 entries.
* Last updated: **March 25 2016**.
### List of all hosts file variants
Host file recipe | Readme | Raw hosts | Unique domains
---------------- |:------:|:---------:|:-------------:
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 27,285
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) | 28,000
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) | 32,535
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) | 27,393
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) | 33,250
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) | 28,108
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) | 32,643
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) | 33,358
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) | 42,298 | [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) | 43,240 | [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) | 44,570 | [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) | 54,382 | [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) | 44,773 | [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) | 45,512 | [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) | 55,324 | [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) | 45,715 | [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) | 56,654 | [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) | 47,045 | [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) | 56,856 | [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) | 57,596 | [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) | 47,987 | [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) | 57,798 | [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) | 59,128 | [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) | 60,070 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless of OS.
**Expectation**: These unified hosts files should serve all devices, regardless
of OS.
## Sources of hosts data unified here
## Sources of hosts data unified in this variant
Updated `hosts` files from the following locations are always unified and
included:
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
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)
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)
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)
Updated `hosts` files from the following locations are always unified and included:
* The [Adaway hosts file](http://adaway.org/hosts.txt), updated regularly.
* MVPs.org Hosts file at [http://winhelp2002.mvps.org/hosts.htm](http://winhelp2002.mvps.org/hosts.htm), updated
monthly, or thereabouts.
* Dan Pollock at [http://someonewhocares.org/hosts/](http://someonewhocares.org/hosts/) updated regularly.
* Malware Domain List at [http://www.malwaredomainlist.com/](http://www.malwaredomainlist.com/), updated regularly.
* Peter Lowe at [http://pgl.yoyo.org/adservers/](http://pgl.yoyo.org/adservers/), updated regularly.
* My own small list in raw form [here](https://raw.github.com/StevenBlack/hosts/master/data/StevenBlack/hosts).
## Extensions
The unified hosts file is extensible. You manage extensions by curating the `extensions/` folder tree.
See the `social`, `gambling`, and `porn` extension which are included in this repo, for example.
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in 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 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
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.info text file in each source's folder), otherwise it will use the
`hosts` file that's already there.
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** 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:
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -51,72 +115,149 @@ versions (from locations defined by the update.info text file in each source's f
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.
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
* Hosts data sources, including extensions, are updated.
* No extensions are included by default. Use the `--extensions` or `-e` flag to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace` flag.
* No extensions are included by default. Use the `--extensions` or `-e` flag
to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace`
flag.
`--replace`, or `-r`: trigger replacing your active hosts file with the new hosts file. Use along with `--auto` to
force replacement.
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
over them.
`--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`.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
of subfolders below the `extensions` folder containing additional
category-specific hosts files to include in the amalgamation. Example:
`--extensions porn` or `-e social porn`.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of subfolders below the `extensions` folder
containing additional category-specific hosts files to include in the amalgamation. Example: `--extensions porn` or
`-e social porn`.
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in a subfolder. If the subfolder does not
exist, it will be created.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
in a subfolder. If the subfolder does not exist, it will be created.
`--help`, or `-h`: display help.
`--replace`, or `-r`: trigger replacing your active hosts
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
section at the top, containing lines like `127.0.0.1 localhost`. This is
useful for configuring proximate DNS services on the local network.
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
ignoring non-necessary lines (empty lines and comments) and putting multiple
domains in each line. Reducing the number of lines of the hosts file improves
the performances under Windows (with DNS Client service enabled).
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
each domain on a separate line. This is necessary because many implementations
of URL blockers that rely on `hosts` files do not conform to the standard which
allows multiple hosts on a single line.
## How do I control which sources are unified?
Add one or more *additional* sources, each in a subfolder of the `data/` folder, and specify its update url in
`update.info` file.
Add one or more *additional* sources, each in a subfolder of the `data/`
folder, and specify the `url` key in its `update.json` file.
Add one or more *optional* extensions, which originate from subfolders of the `extensions/` folder. Again the url in
`update.info` controls where this extension finds its updates.
Add one or more *optional* extensions, which originate from subfolders of the
`extensions/` folder. Again the url in `update.json` controls where this
extension finds its updates.
## How do I incorporate my own hosts?
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.
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
be overridden when you `git pull` this repo from `origin` in the future.
### How do I include my own custom domain mappings?
If you have custom hosts records, place them in file `myhosts`. The contents
of this file are prepended to the unified hosts file during the update
process.
The `myhosts` file is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
### How do I prevent domains from being included?
The domains you list in the `whitelist` file are excluded from the final hosts
file.
The `whitelist` uses partial matching. Therefore if you whitelist
`google-analytics.com`, that domain and all its subdomains won't be merged
into the final hosts file.
The `whitelist` is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
## How can I contribute hosts records?
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
### Option 1: contact one of our hosts sources
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
### Option 2: add your domains to Steven Black's personal data file
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
Then, submit a pull request.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you have custom hosts records, place them in file `myhosts`. The contents of this file are prepended to the
unified hosts file during the update process.
## What is a hosts file?
A hosts file, named `hosts` (with no file extension), is a plain-text file used by all operating
systems to map hostnames to IP addresses.
A hosts file, named `hosts` (with no file extension), is a plain-text file
used by all operating systems to map hostnames to IP addresses.
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore if a domain name is
resolved by the `hosts` file, the request never leaves your computer.
In most operating systems, the `hosts` file is preferential to `DNS`.
Therefore if a domain name is resolved by the `hosts` file, the request never
leaves your computer.
Having a smart `hosts` file goes a long way towards blocking malware, adware, and other irritants.
Having a smart `hosts` file goes a long way towards blocking malware, adware,
and other irritants.
For example, to nullify requests to some doubleclick.net servers, adding these lines to your hosts
file will do it:
For example, to nullify requests to some doubleclick.net servers, adding these
lines to your hosts file will do it:
# block doubleClick's servers
127.0.0.1 ad.ae.doubleclick.net
127.0.0.1 ad.ar.doubleclick.net
127.0.0.1 ad.at.doubleclick.net
127.0.0.1 ad.au.doubleclick.net
127.0.0.1 ad.be.doubleclick.net
0.0.0.0 ad.ae.doubleclick.net
0.0.0.0 ad.ar.doubleclick.net
0.0.0.0 ad.at.doubleclick.net
0.0.0.0 ad.au.doubleclick.net
0.0.0.0 ad.be.doubleclick.net
# etc...
## We recommend using `0.0.0.0` instead of `127.0.0.1`
Using `0.0.0.0` is faster because you don't have to wait for a timeout. It also does not interfere
with a web server that may be running on the local PC.
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -126,21 +267,26 @@ 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` folder.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` folder.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
## Updating hosts file on Windows
### Mac OS X
Open a Terminal and run:
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:
`sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder`
```
updateHostsWindows.bat
```
### Windows
Open a Command Prompt:
This file MUST be run in command prompt with administrator privileges in
the repository directory. In addition to updating the hosts file, it can also
replace the existing hosts file, and reload the DNS cache. It goes without
saying that in order for this to work, you must be connected to the internet.
To open a command prompt as administrator in the repository's directory, do the following:
**Windows XP**: Start -> Run -> `cmd`
@@ -150,14 +296,43 @@ Open a Command Prompt:
**Windows 8**: Start -> Swipe Up -> All Apps -> Windows System -> right-click Command Prompt ->
"Run as Administrator"
and run:
**Windows 10**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
`ipconfig /flushdns`
You can also refer to the "Third-Party Hosts Managers" section for further recommended solutions from third parties.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: https://superuser.com/questions/723703
:-----------------------------------------------------------------------------------------
### Windows
Open a command prompt with administrator privileges and run this command:
```
ipconfig /flushdns
```
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
```
sc config "Dnscache" start= disabled
sc stop "Dnscache"
```
### Linux
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`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -167,8 +342,38 @@ Open a Terminal and run with root privileges:
**Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
**RHEL/Centos**: `sudo /etc/init.d/network restart`
**FreeBSD**: `sudo service nscd restart`
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
```
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
Open a Terminal and run:
```
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
```
## Release management
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
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
## Goals of this unified hosts file
@@ -182,13 +387,44 @@ The goals of this repo are to:
4. and keep the resultant file reasonably sized.
A high-quality source is defined here as one that is actively curated. A hosts source should be frequently
updated by its maintainers with both additions and removals. The larger the hosts file, the higher the level of
A high-quality source is defined here as one that is actively curated. A
hosts source should be frequently updated by its maintainers with both
additions and removals. The larger the hosts file, the higher the level of
curation is expected.
For example, the (huge) hosts file from [hosts-file.net](http://hosts-file.net) is **not** included
here because it is very large (300,000+ entries) and doesn't currently display a corresponding high level of curation
activity.
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
is **not** included here because it is very large (780,000+ entries)
and doesn't currently display a corresponding high level of curation activity.
It is expected that this unified hosts file will serve both desktop and mobile devices under a variety of operating
systems.
It is expected that this unified hosts file will serve both desktop and mobile
devices under a variety of operating systems.
## Third-Party Hosts Managers
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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.
* [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.
* [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server") (for BSD, Windows & Linux): Set up a blacklist for everyone on your network using the power of the unified hosts reformatted for DualServer. And if you're on Windows, this project also maintains an update script to make updating DualServer's blacklist even easier.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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).
+46084 -21895
View File
File diff suppressed because it is too large. Load diff
+328 -87
View File
@@ -1,49 +1,118 @@
#Unified hosts file with porn, social extensions
----
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
This repository consolidates several reputable `hosts` files, and merges them into various unified hosts files
with duplicates removed.
----
![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: **September 19 2019**.
* Here's the [raw hosts file with porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) containing 56,856 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
* Here's the [raw hosts file](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) containing 32,643 entries.
* Last updated: **March 25 2016**.
### List of all hosts file variants
Host file recipe | Readme | Raw hosts | Unique domains
---------------- |:------:|:---------:|:-------------:
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 27,285
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) | 28,000
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) | 32,535
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) | 27,393
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) | 33,250
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) | 28,108
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) | 32,643
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) | 33,358
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) | 42,298 | [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) | 43,240 | [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) | 44,570 | [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) | 54,382 | [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) | 44,773 | [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) | 45,512 | [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) | 55,324 | [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) | 45,715 | [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) | 56,654 | [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) | 47,045 | [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) | 56,856 | [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) | 57,596 | [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) | 47,987 | [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) | 57,798 | [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) | 59,128 | [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) | 60,070 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless of OS.
**Expectation**: These unified hosts files should serve all devices, regardless
of OS.
## Sources of hosts data unified here
## Sources of hosts data unified in this variant
Updated `hosts` files from the following locations are always unified and
included:
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
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)
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)
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)
Updated `hosts` files from the following locations are always unified and included:
* The [Adaway hosts file](http://adaway.org/hosts.txt), updated regularly.
* MVPs.org Hosts file at [http://winhelp2002.mvps.org/hosts.htm](http://winhelp2002.mvps.org/hosts.htm), updated
monthly, or thereabouts.
* Dan Pollock at [http://someonewhocares.org/hosts/](http://someonewhocares.org/hosts/) updated regularly.
* Malware Domain List at [http://www.malwaredomainlist.com/](http://www.malwaredomainlist.com/), updated regularly.
* Peter Lowe at [http://pgl.yoyo.org/adservers/](http://pgl.yoyo.org/adservers/), updated regularly.
* My own small list in raw form [here](https://raw.github.com/StevenBlack/hosts/master/data/StevenBlack/hosts).
## Extensions
The unified hosts file is extensible. You manage extensions by curating the `extensions/` folder tree.
See the `social`, `gambling`, and `porn` extension which are included in this repo, for example.
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in 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 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
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.info text file in each source's folder), otherwise it will use the
`hosts` file that's already there.
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** 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:
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -51,72 +120,149 @@ versions (from locations defined by the update.info text file in each source's f
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.
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
* Hosts data sources, including extensions, are updated.
* No extensions are included by default. Use the `--extensions` or `-e` flag to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace` flag.
* No extensions are included by default. Use the `--extensions` or `-e` flag
to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace`
flag.
`--replace`, or `-r`: trigger replacing your active hosts file with the new hosts file. Use along with `--auto` to
force replacement.
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
over them.
`--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`.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
of subfolders below the `extensions` folder containing additional
category-specific hosts files to include in the amalgamation. Example:
`--extensions porn` or `-e social porn`.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of subfolders below the `extensions` folder
containing additional category-specific hosts files to include in the amalgamation. Example: `--extensions porn` or
`-e social porn`.
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in a subfolder. If the subfolder does not
exist, it will be created.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
in a subfolder. If the subfolder does not exist, it will be created.
`--help`, or `-h`: display help.
`--replace`, or `-r`: trigger replacing your active hosts
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
section at the top, containing lines like `127.0.0.1 localhost`. This is
useful for configuring proximate DNS services on the local network.
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
ignoring non-necessary lines (empty lines and comments) and putting multiple
domains in each line. Reducing the number of lines of the hosts file improves
the performances under Windows (with DNS Client service enabled).
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
each domain on a separate line. This is necessary because many implementations
of URL blockers that rely on `hosts` files do not conform to the standard which
allows multiple hosts on a single line.
## How do I control which sources are unified?
Add one or more *additional* sources, each in a subfolder of the `data/` folder, and specify its update url in
`update.info` file.
Add one or more *additional* sources, each in a subfolder of the `data/`
folder, and specify the `url` key in its `update.json` file.
Add one or more *optional* extensions, which originate from subfolders of the `extensions/` folder. Again the url in
`update.info` controls where this extension finds its updates.
Add one or more *optional* extensions, which originate from subfolders of the
`extensions/` folder. Again the url in `update.json` controls where this
extension finds its updates.
## How do I incorporate my own hosts?
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.
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
be overridden when you `git pull` this repo from `origin` in the future.
### How do I include my own custom domain mappings?
If you have custom hosts records, place them in file `myhosts`. The contents
of this file are prepended to the unified hosts file during the update
process.
The `myhosts` file is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
### How do I prevent domains from being included?
The domains you list in the `whitelist` file are excluded from the final hosts
file.
The `whitelist` uses partial matching. Therefore if you whitelist
`google-analytics.com`, that domain and all its subdomains won't be merged
into the final hosts file.
The `whitelist` is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
## How can I contribute hosts records?
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
### Option 1: contact one of our hosts sources
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
### Option 2: add your domains to Steven Black's personal data file
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
Then, submit a pull request.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you have custom hosts records, place them in file `myhosts`. The contents of this file are prepended to the
unified hosts file during the update process.
## What is a hosts file?
A hosts file, named `hosts` (with no file extension), is a plain-text file used by all operating
systems to map hostnames to IP addresses.
A hosts file, named `hosts` (with no file extension), is a plain-text file
used by all operating systems to map hostnames to IP addresses.
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore if a domain name is
resolved by the `hosts` file, the request never leaves your computer.
In most operating systems, the `hosts` file is preferential to `DNS`.
Therefore if a domain name is resolved by the `hosts` file, the request never
leaves your computer.
Having a smart `hosts` file goes a long way towards blocking malware, adware, and other irritants.
Having a smart `hosts` file goes a long way towards blocking malware, adware,
and other irritants.
For example, to nullify requests to some doubleclick.net servers, adding these lines to your hosts
file will do it:
For example, to nullify requests to some doubleclick.net servers, adding these
lines to your hosts file will do it:
# block doubleClick's servers
127.0.0.1 ad.ae.doubleclick.net
127.0.0.1 ad.ar.doubleclick.net
127.0.0.1 ad.at.doubleclick.net
127.0.0.1 ad.au.doubleclick.net
127.0.0.1 ad.be.doubleclick.net
0.0.0.0 ad.ae.doubleclick.net
0.0.0.0 ad.ar.doubleclick.net
0.0.0.0 ad.at.doubleclick.net
0.0.0.0 ad.au.doubleclick.net
0.0.0.0 ad.be.doubleclick.net
# etc...
## We recommend using `0.0.0.0` instead of `127.0.0.1`
Using `0.0.0.0` is faster because you don't have to wait for a timeout. It also does not interfere
with a web server that may be running on the local PC.
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -126,21 +272,26 @@ 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` folder.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` folder.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
## Updating hosts file on Windows
### Mac OS X
Open a Terminal and run:
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:
`sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder`
```
updateHostsWindows.bat
```
### Windows
Open a Command Prompt:
This file MUST be run in command prompt with administrator privileges in
the repository directory. In addition to updating the hosts file, it can also
replace the existing hosts file, and reload the DNS cache. It goes without
saying that in order for this to work, you must be connected to the internet.
To open a command prompt as administrator in the repository's directory, do the following:
**Windows XP**: Start -> Run -> `cmd`
@@ -150,14 +301,43 @@ Open a Command Prompt:
**Windows 8**: Start -> Swipe Up -> All Apps -> Windows System -> right-click Command Prompt ->
"Run as Administrator"
and run:
**Windows 10**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
`ipconfig /flushdns`
You can also refer to the "Third-Party Hosts Managers" section for further recommended solutions from third parties.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: https://superuser.com/questions/723703
:-----------------------------------------------------------------------------------------
### Windows
Open a command prompt with administrator privileges and run this command:
```
ipconfig /flushdns
```
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
```
sc config "Dnscache" start= disabled
sc stop "Dnscache"
```
### Linux
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`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -167,8 +347,38 @@ Open a Terminal and run with root privileges:
**Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
**RHEL/Centos**: `sudo /etc/init.d/network restart`
**FreeBSD**: `sudo service nscd restart`
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
```
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
Open a Terminal and run:
```
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
```
## Release management
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
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
## Goals of this unified hosts file
@@ -182,13 +392,44 @@ The goals of this repo are to:
4. and keep the resultant file reasonably sized.
A high-quality source is defined here as one that is actively curated. A hosts source should be frequently
updated by its maintainers with both additions and removals. The larger the hosts file, the higher the level of
A high-quality source is defined here as one that is actively curated. A
hosts source should be frequently updated by its maintainers with both
additions and removals. The larger the hosts file, the higher the level of
curation is expected.
For example, the (huge) hosts file from [hosts-file.net](http://hosts-file.net) is **not** included
here because it is very large (300,000+ entries) and doesn't currently display a corresponding high level of curation
activity.
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
is **not** included here because it is very large (780,000+ entries)
and doesn't currently display a corresponding high level of curation activity.
It is expected that this unified hosts file will serve both desktop and mobile devices under a variety of operating
systems.
It is expected that this unified hosts file will serve both desktop and mobile
devices under a variety of operating systems.
## Third-Party Hosts Managers
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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.
* [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.
* [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server") (for BSD, Windows & Linux): Set up a blacklist for everyone on your network using the power of the unified hosts reformatted for DualServer. And if you're on Windows, this project also maintains an update script to make updating DualServer's blacklist even easier.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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).
+43684 -21877
View File
File diff suppressed because it is too large. Load diff
+326 -87
View File
@@ -1,49 +1,116 @@
#Unified hosts file with porn extensions
----
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
This repository consolidates several reputable `hosts` files, and merges them into various unified hosts files
with duplicates removed.
----
![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: **September 19 2019**.
* Here's the [raw hosts file with porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) containing 54,382 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
* Here's the [raw hosts file](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) containing 32,535 entries.
* Last updated: **March 25 2016**.
### List of all hosts file variants
Host file recipe | Readme | Raw hosts | Unique domains
---------------- |:------:|:---------:|:-------------:
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 27,285
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) | 28,000
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) | 32,535
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) | 27,393
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) | 33,250
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) | 28,108
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) | 32,643
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) | 33,358
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) | 42,298 | [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) | 43,240 | [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) | 44,570 | [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) | 54,382 | [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) | 44,773 | [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) | 45,512 | [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) | 55,324 | [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) | 45,715 | [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) | 56,654 | [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) | 47,045 | [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) | 56,856 | [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) | 57,596 | [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) | 47,987 | [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) | 57,798 | [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) | 59,128 | [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) | 60,070 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless of OS.
**Expectation**: These unified hosts files should serve all devices, regardless
of OS.
## Sources of hosts data unified here
## Sources of hosts data unified in this variant
Updated `hosts` files from the following locations are always unified and
included:
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
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)
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)
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)
Updated `hosts` files from the following locations are always unified and included:
* The [Adaway hosts file](http://adaway.org/hosts.txt), updated regularly.
* MVPs.org Hosts file at [http://winhelp2002.mvps.org/hosts.htm](http://winhelp2002.mvps.org/hosts.htm), updated
monthly, or thereabouts.
* Dan Pollock at [http://someonewhocares.org/hosts/](http://someonewhocares.org/hosts/) updated regularly.
* Malware Domain List at [http://www.malwaredomainlist.com/](http://www.malwaredomainlist.com/), updated regularly.
* Peter Lowe at [http://pgl.yoyo.org/adservers/](http://pgl.yoyo.org/adservers/), updated regularly.
* My own small list in raw form [here](https://raw.github.com/StevenBlack/hosts/master/data/StevenBlack/hosts).
## Extensions
The unified hosts file is extensible. You manage extensions by curating the `extensions/` folder tree.
See the `social`, `gambling`, and `porn` extension which are included in this repo, for example.
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in 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 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
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.info text file in each source's folder), otherwise it will use the
`hosts` file that's already there.
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** 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:
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -51,72 +118,149 @@ versions (from locations defined by the update.info text file in each source's f
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.
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
* Hosts data sources, including extensions, are updated.
* No extensions are included by default. Use the `--extensions` or `-e` flag to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace` flag.
* No extensions are included by default. Use the `--extensions` or `-e` flag
to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace`
flag.
`--replace`, or `-r`: trigger replacing your active hosts file with the new hosts file. Use along with `--auto` to
force replacement.
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
over them.
`--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`.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
of subfolders below the `extensions` folder containing additional
category-specific hosts files to include in the amalgamation. Example:
`--extensions porn` or `-e social porn`.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of subfolders below the `extensions` folder
containing additional category-specific hosts files to include in the amalgamation. Example: `--extensions porn` or
`-e social porn`.
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in a subfolder. If the subfolder does not
exist, it will be created.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
in a subfolder. If the subfolder does not exist, it will be created.
`--help`, or `-h`: display help.
`--replace`, or `-r`: trigger replacing your active hosts
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
section at the top, containing lines like `127.0.0.1 localhost`. This is
useful for configuring proximate DNS services on the local network.
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
ignoring non-necessary lines (empty lines and comments) and putting multiple
domains in each line. Reducing the number of lines of the hosts file improves
the performances under Windows (with DNS Client service enabled).
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
each domain on a separate line. This is necessary because many implementations
of URL blockers that rely on `hosts` files do not conform to the standard which
allows multiple hosts on a single line.
## How do I control which sources are unified?
Add one or more *additional* sources, each in a subfolder of the `data/` folder, and specify its update url in
`update.info` file.
Add one or more *additional* sources, each in a subfolder of the `data/`
folder, and specify the `url` key in its `update.json` file.
Add one or more *optional* extensions, which originate from subfolders of the `extensions/` folder. Again the url in
`update.info` controls where this extension finds its updates.
Add one or more *optional* extensions, which originate from subfolders of the
`extensions/` folder. Again the url in `update.json` controls where this
extension finds its updates.
## How do I incorporate my own hosts?
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.
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
be overridden when you `git pull` this repo from `origin` in the future.
### How do I include my own custom domain mappings?
If you have custom hosts records, place them in file `myhosts`. The contents
of this file are prepended to the unified hosts file during the update
process.
The `myhosts` file is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
### How do I prevent domains from being included?
The domains you list in the `whitelist` file are excluded from the final hosts
file.
The `whitelist` uses partial matching. Therefore if you whitelist
`google-analytics.com`, that domain and all its subdomains won't be merged
into the final hosts file.
The `whitelist` is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
## How can I contribute hosts records?
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
### Option 1: contact one of our hosts sources
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
### Option 2: add your domains to Steven Black's personal data file
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
Then, submit a pull request.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you have custom hosts records, place them in file `myhosts`. The contents of this file are prepended to the
unified hosts file during the update process.
## What is a hosts file?
A hosts file, named `hosts` (with no file extension), is a plain-text file used by all operating
systems to map hostnames to IP addresses.
A hosts file, named `hosts` (with no file extension), is a plain-text file
used by all operating systems to map hostnames to IP addresses.
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore if a domain name is
resolved by the `hosts` file, the request never leaves your computer.
In most operating systems, the `hosts` file is preferential to `DNS`.
Therefore if a domain name is resolved by the `hosts` file, the request never
leaves your computer.
Having a smart `hosts` file goes a long way towards blocking malware, adware, and other irritants.
Having a smart `hosts` file goes a long way towards blocking malware, adware,
and other irritants.
For example, to nullify requests to some doubleclick.net servers, adding these lines to your hosts
file will do it:
For example, to nullify requests to some doubleclick.net servers, adding these
lines to your hosts file will do it:
# block doubleClick's servers
127.0.0.1 ad.ae.doubleclick.net
127.0.0.1 ad.ar.doubleclick.net
127.0.0.1 ad.at.doubleclick.net
127.0.0.1 ad.au.doubleclick.net
127.0.0.1 ad.be.doubleclick.net
0.0.0.0 ad.ae.doubleclick.net
0.0.0.0 ad.ar.doubleclick.net
0.0.0.0 ad.at.doubleclick.net
0.0.0.0 ad.au.doubleclick.net
0.0.0.0 ad.be.doubleclick.net
# etc...
## We recommend using `0.0.0.0` instead of `127.0.0.1`
Using `0.0.0.0` is faster because you don't have to wait for a timeout. It also does not interfere
with a web server that may be running on the local PC.
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -126,21 +270,26 @@ 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` folder.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` folder.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
## Updating hosts file on Windows
### Mac OS X
Open a Terminal and run:
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:
`sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder`
```
updateHostsWindows.bat
```
### Windows
Open a Command Prompt:
This file MUST be run in command prompt with administrator privileges in
the repository directory. In addition to updating the hosts file, it can also
replace the existing hosts file, and reload the DNS cache. It goes without
saying that in order for this to work, you must be connected to the internet.
To open a command prompt as administrator in the repository's directory, do the following:
**Windows XP**: Start -> Run -> `cmd`
@@ -150,14 +299,43 @@ Open a Command Prompt:
**Windows 8**: Start -> Swipe Up -> All Apps -> Windows System -> right-click Command Prompt ->
"Run as Administrator"
and run:
**Windows 10**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
`ipconfig /flushdns`
You can also refer to the "Third-Party Hosts Managers" section for further recommended solutions from third parties.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: https://superuser.com/questions/723703
:-----------------------------------------------------------------------------------------
### Windows
Open a command prompt with administrator privileges and run this command:
```
ipconfig /flushdns
```
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
```
sc config "Dnscache" start= disabled
sc stop "Dnscache"
```
### Linux
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`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -167,8 +345,38 @@ Open a Terminal and run with root privileges:
**Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
**RHEL/Centos**: `sudo /etc/init.d/network restart`
**FreeBSD**: `sudo service nscd restart`
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
```
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
Open a Terminal and run:
```
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
```
## Release management
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
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
## Goals of this unified hosts file
@@ -182,13 +390,44 @@ The goals of this repo are to:
4. and keep the resultant file reasonably sized.
A high-quality source is defined here as one that is actively curated. A hosts source should be frequently
updated by its maintainers with both additions and removals. The larger the hosts file, the higher the level of
A high-quality source is defined here as one that is actively curated. A
hosts source should be frequently updated by its maintainers with both
additions and removals. The larger the hosts file, the higher the level of
curation is expected.
For example, the (huge) hosts file from [hosts-file.net](http://hosts-file.net) is **not** included
here because it is very large (300,000+ entries) and doesn't currently display a corresponding high level of curation
activity.
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
is **not** included here because it is very large (780,000+ entries)
and doesn't currently display a corresponding high level of curation activity.
It is expected that this unified hosts file will serve both desktop and mobile devices under a variety of operating
systems.
It is expected that this unified hosts file will serve both desktop and mobile
devices under a variety of operating systems.
## Third-Party Hosts Managers
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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.
* [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.
* [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server") (for BSD, Windows & Linux): Set up a blacklist for everyone on your network using the power of the unified hosts reformatted for DualServer. And if you're on Windows, this project also maintains an update script to make updating DualServer's blacklist even easier.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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).
+34715 -17385
View File
File diff suppressed because it is too large. Load diff
+324 -87
View File
@@ -1,49 +1,114 @@
#Unified hosts file with social extensions
----
**Take Note!** This version of the Hosts file generator, and tests, are for Python 3.5+ only.
This repository consolidates several reputable `hosts` files, and merges them into various unified hosts files
with duplicates removed.
----
![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: **September 19 2019**.
* Here's the [raw hosts file with social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) containing 44,773 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
* Here's the [raw hosts file](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) containing 27,393 entries.
* Last updated: **March 25 2016**.
### List of all hosts file variants
Host file recipe | Readme | Raw hosts | Unique domains
---------------- |:------:|:---------:|:-------------:
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 27,285
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) | 28,000
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) | 32,535
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) | 27,393
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) | 33,250
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) | 28,108
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) | 32,643
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) | 33,358
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) | 42,298 | [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) | 43,240 | [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) | 44,570 | [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) | 54,382 | [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) | 44,773 | [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) | 45,512 | [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) | 55,324 | [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) | 45,715 | [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) | 56,654 | [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) | 47,045 | [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) | 56,856 | [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) | 57,596 | [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) | 47,987 | [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) | 57,798 | [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) | 59,128 | [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) | 60,070 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless of OS.
**Expectation**: These unified hosts files should serve all devices, regardless
of OS.
## Sources of hosts data unified here
## Sources of hosts data unified in this variant
Updated `hosts` files from the following locations are always unified and
included:
Host file source | Description | Home page | Raw hosts | Update frequency | License | Issues
-----------------|-------------|:---------:|:---------:|:----------------:|:-------:|:------:
Steven Black's ad-hoc list | Additional sketch domains as I come across them. |[link](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts) | [raw](https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts) | occasionally | MIT | [issues](https://github.com/StevenBlack/hosts/issues)
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)
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)
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)
Updated `hosts` files from the following locations are always unified and included:
* The [Adaway hosts file](http://adaway.org/hosts.txt), updated regularly.
* MVPs.org Hosts file at [http://winhelp2002.mvps.org/hosts.htm](http://winhelp2002.mvps.org/hosts.htm), updated
monthly, or thereabouts.
* Dan Pollock at [http://someonewhocares.org/hosts/](http://someonewhocares.org/hosts/) updated regularly.
* Malware Domain List at [http://www.malwaredomainlist.com/](http://www.malwaredomainlist.com/), updated regularly.
* Peter Lowe at [http://pgl.yoyo.org/adservers/](http://pgl.yoyo.org/adservers/), updated regularly.
* My own small list in raw form [here](https://raw.github.com/StevenBlack/hosts/master/data/StevenBlack/hosts).
## Extensions
The unified hosts file is extensible. You manage extensions by curating the `extensions/` folder tree.
See the `social`, `gambling`, and `porn` extension which are included in this repo, for example.
The unified hosts file is optionally extensible. Extensions are used to include domains by category. Currently we offer the following categories: `fakenews`, `social`, `gambling`, and `porn`.
Extensions are optional, and can be combined in various ways wth the base hosts file. The combined products are stored in 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 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
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.info text file in each source's folder), otherwise it will use the
`hosts` file that's already there.
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** 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:
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -51,72 +116,149 @@ versions (from locations defined by the update.info text file in each source's f
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.
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
* Hosts data sources, including extensions, are updated.
* No extensions are included by default. Use the `--extensions` or `-e` flag to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace` flag.
* No extensions are included by default. Use the `--extensions` or `-e` flag
to include any you want.
* Your active hosts file is *not* replaced unless you include the `--replace`
flag.
`--replace`, or `-r`: trigger replacing your active hosts file with the new hosts file. Use along with `--auto` to
force replacement.
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
over them.
`--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`.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
of subfolders below the `extensions` folder containing additional
category-specific hosts files to include in the amalgamation. Example:
`--extensions porn` or `-e social porn`.
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names of subfolders below the `extensions` folder
containing additional category-specific hosts files to include in the amalgamation. Example: `--extensions porn` or
`-e social porn`.
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file in a subfolder. If the subfolder does not
exist, it will be created.
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
in a subfolder. If the subfolder does not exist, it will be created.
`--help`, or `-h`: display help.
`--replace`, or `-r`: trigger replacing your active hosts
`--skipstatichosts`, or `-s`: `false` (default) or `true`, omit the standard
section at the top, containing lines like `127.0.0.1 localhost`. This is
useful for configuring proximate DNS services on the local network.
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
ignoring non-necessary lines (empty lines and comments) and putting multiple
domains in each line. Reducing the number of lines of the hosts file improves
the performances under Windows (with DNS Client service enabled).
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
each domain on a separate line. This is necessary because many implementations
of URL blockers that rely on `hosts` files do not conform to the standard which
allows multiple hosts on a single line.
## How do I control which sources are unified?
Add one or more *additional* sources, each in a subfolder of the `data/` folder, and specify its update url in
`update.info` file.
Add one or more *additional* sources, each in a subfolder of the `data/`
folder, and specify the `url` key in its `update.json` file.
Add one or more *optional* extensions, which originate from subfolders of the `extensions/` folder. Again the url in
`update.info` controls where this extension finds its updates.
Add one or more *optional* extensions, which originate from subfolders of the
`extensions/` folder. Again the url in `update.json` controls where this
extension finds its updates.
## How do I incorporate my own hosts?
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.
* NOTE: The `blacklist` is not tracked by git, so any changes you make won't
be overridden when you `git pull` this repo from `origin` in the future.
### How do I include my own custom domain mappings?
If you have custom hosts records, place them in file `myhosts`. The contents
of this file are prepended to the unified hosts file during the update
process.
The `myhosts` file is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
### How do I prevent domains from being included?
The domains you list in the `whitelist` file are excluded from the final hosts
file.
The `whitelist` uses partial matching. Therefore if you whitelist
`google-analytics.com`, that domain and all its subdomains won't be merged
into the final hosts file.
The `whitelist` is not tracked by git, so any changes you make won't be
overridden when you `git pull` this repo from `origin` in the future.
## How can I contribute hosts records?
If you discover sketchy domains you feel should be included here, here are some ways to contribute them.
### Option 1: contact one of our hosts sources
The best way to get new domains included is to submit an issue to any of the data providers whose home pages are [listed here](https://github.com/StevenBlack/hosts#sources-of-hosts-data-unified-in-this-variant). This is best because once you submit new domains, they will be curated and updated by the dedicated folks who maintain these sources.
### Option 2: add your domains to Steven Black's personal data file
Fork this hosts this repo and add your links to [https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts](https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts).
Then, submit a pull request.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
### Option 3: create your own hosts list as a repo on Github
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existence of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you have custom hosts records, place them in file `myhosts`. The contents of this file are prepended to the
unified hosts file during the update process.
## What is a hosts file?
A hosts file, named `hosts` (with no file extension), is a plain-text file used by all operating
systems to map hostnames to IP addresses.
A hosts file, named `hosts` (with no file extension), is a plain-text file
used by all operating systems to map hostnames to IP addresses.
In most operating systems, the `hosts` file is preferential to `DNS`. Therefore if a domain name is
resolved by the `hosts` file, the request never leaves your computer.
In most operating systems, the `hosts` file is preferential to `DNS`.
Therefore if a domain name is resolved by the `hosts` file, the request never
leaves your computer.
Having a smart `hosts` file goes a long way towards blocking malware, adware, and other irritants.
Having a smart `hosts` file goes a long way towards blocking malware, adware,
and other irritants.
For example, to nullify requests to some doubleclick.net servers, adding these lines to your hosts
file will do it:
For example, to nullify requests to some doubleclick.net servers, adding these
lines to your hosts file will do it:
# block doubleClick's servers
127.0.0.1 ad.ae.doubleclick.net
127.0.0.1 ad.ar.doubleclick.net
127.0.0.1 ad.at.doubleclick.net
127.0.0.1 ad.au.doubleclick.net
127.0.0.1 ad.be.doubleclick.net
0.0.0.0 ad.ae.doubleclick.net
0.0.0.0 ad.ar.doubleclick.net
0.0.0.0 ad.at.doubleclick.net
0.0.0.0 ad.au.doubleclick.net
0.0.0.0 ad.be.doubleclick.net
# etc...
## We recommend using `0.0.0.0` instead of `127.0.0.1`
Using `0.0.0.0` is faster because you don't have to wait for a timeout. It also does not interfere
with a web server that may be running on the local PC.
Traditionally most host files use `127.0.0.1`, the *loopback address*, to establish an IP connection to the local machine.
We prefer to use `0.0.0.0`, which is defined as a non-routable meta-address used to designate an invalid, unknown,
or non applicable target.
Using `0.0.0.0` is empirically faster, possibly because there's no wait for a timeout resolution. It also does not
interfere with a web server that may be running on the local PC.
## Why not use just `0` instead of `0.0.0.0`?
We tried that. Using `0` doesn't work universally.
@@ -126,21 +268,26 @@ 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` folder.
**Mac OS X, iOS, Android, Linux**: `/etc/hosts` file.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` folder.
**Windows**: `%SystemRoot%\system32\drivers\etc\hosts` file.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
## Updating hosts file on Windows
### Mac OS X
Open a Terminal and run:
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:
`sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder`
```
updateHostsWindows.bat
```
### Windows
Open a Command Prompt:
This file MUST be run in command prompt with administrator privileges in
the repository directory. In addition to updating the hosts file, it can also
replace the existing hosts file, and reload the DNS cache. It goes without
saying that in order for this to work, you must be connected to the internet.
To open a command prompt as administrator in the repository's directory, do the following:
**Windows XP**: Start -> Run -> `cmd`
@@ -150,14 +297,43 @@ Open a Command Prompt:
**Windows 8**: Start -> Swipe Up -> All Apps -> Windows System -> right-click Command Prompt ->
"Run as Administrator"
and run:
**Windows 10**: Start Button -> type `cmd` -> right-click Command Prompt ->
"Run as Administrator"
`ipconfig /flushdns`
You can also refer to the "Third-Party Hosts Managers" section for further recommended solutions from third parties.
## Reloading hosts file
Your operating system will cache DNS lookups. You can either reboot or run the following commands to
manually flush your DNS cache once the new hosts file is in place.
| The Google Chrome browser may require manually cleaning up its DNS Cache on `chrome://net-internals/#dns` page to thereafter see the changes in your hosts file. See: https://superuser.com/questions/723703
:-----------------------------------------------------------------------------------------
### Windows
Open a command prompt with administrator privileges and run this command:
```
ipconfig /flushdns
```
|If you want to use a huge hosts file by merging [hphosts](https://www.hosts-file.net) (NOT INCLUDED HERE) you need to DISABLE and STOP `Dnscache` service before you replace hosts file in Windows Systems. You have been warned.|
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Before flushing the DNS cache, open a command prompt with administrator privileges and run this command:
```
sc config "Dnscache" start= disabled
sc stop "Dnscache"
```
### Linux
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`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -167,8 +343,38 @@ Open a Terminal and run with root privileges:
**Arch Linux/Manjaro with Wicd**: `sudo systemctl restart wicd.service`
**RHEL/Centos**: `sudo /etc/init.d/network restart`
**FreeBSD**: `sudo service nscd restart`
To enable the `nscd` daemon initially, it is recommended that you run the following commands:
```
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
Open a Terminal and run:
```
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
```
## Release management
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
[.release-it.json](https://github.com/StevenBlack/hosts/blob/master/.release-it.json) files are bundled.
## Goals of this unified hosts file
@@ -182,13 +388,44 @@ The goals of this repo are to:
4. and keep the resultant file reasonably sized.
A high-quality source is defined here as one that is actively curated. A hosts source should be frequently
updated by its maintainers with both additions and removals. The larger the hosts file, the higher the level of
A high-quality source is defined here as one that is actively curated. A
hosts source should be frequently updated by its maintainers with both
additions and removals. The larger the hosts file, the higher the level of
curation is expected.
For example, the (huge) hosts file from [hosts-file.net](http://hosts-file.net) is **not** included
here because it is very large (300,000+ entries) and doesn't currently display a corresponding high level of curation
activity.
For example, the (huge) hosts file from [hosts-file.net](https://hosts-file.net)
is **not** included here because it is very large (780,000+ entries)
and doesn't currently display a corresponding high level of curation activity.
It is expected that this unified hosts file will serve both desktop and mobile devices under a variety of operating
systems.
It is expected that this unified hosts file will serve both desktop and mobile
devices under a variety of operating systems.
## Third-Party Hosts Managers
* [Unified Hosts AutoUpdate](https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate "Unified Hosts AutoUpdate") (for Windows): The Unified Hosts 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.
* [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.
* [Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server](https://scripttiger.github.io/dualserver "Block ads, malware, and deploy parental controls via local DualServer DNS/DHCP server") (for BSD, Windows & Linux): Set up a blacklist for everyone on your network using the power of the unified hosts reformatted for DualServer. And if you're on Windows, this project also maintains an update script to make updating DualServer's blacklist even easier.
* [Blocking ads and malwares with unbound](https://deadc0de.re/articles/unbound-blocking-ads.html "Blocking ads and malwares with unbound") – [Unbound](https://www.unbound.net/ "Unbound is a validating, recursive, and caching DNS resolver.") is a validating, recursive, and caching DNS resolver.
* [DNSMasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This github gist has a short shell script (bash, will work on any 'nix) and uses 'wget' & 'awk' present in most distros, to fetch a specified hosts file and convert it the format required by dnsmasq. Supports ipv4 and ipv6. Designed to be used as either a shell script, or can be dropped into /etc/cron.weekly (or wherever suits). 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).
+8
View File
@@ -0,0 +1,8 @@
# blacklist
#
# 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. For example, uncomment the following line to block
# 'example.com':
# 0.0.0.0 example.com
+26
View File
@@ -0,0 +1,26 @@
#!/bin/bash
if [ -d "$HOME/miniconda3" ] && [ -e "$HOME/miniconda3/bin/conda" ]; then
echo "Miniconda install already present from cache: $HOME/miniconda3"
rm -rf $HOME/miniconda3/envs/hosts # Just in case...
else
echo "Installing Miniconda..."
rm -rf $HOME/miniconda3 # Just in case...
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh || exit 1
else
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh || exit 1
fi
bash miniconda.sh -b -p "$HOME/miniconda3" || exit 1
fi
echo "Configuring Miniconda..."
conda config --set ssl_verify false || exit 1
conda config --set always_yes true --set changeps1 false || exit 1
echo "Updating Miniconda"
conda update conda
conda update --all
conda info -a || exit 1
Executable
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
echo "Linting repository..."
source activate hosts
flake8 --max-line-length 120
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
echo "Creating a Python $PYTHON_VERSION environment"
conda create -n hosts python=$PYTHON_VERSION || exit 1
source activate hosts
echo "Installing packages..."
conda install flake8 beautifulsoup4 lxml
Executable
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
echo "Running unittests..."
source activate hosts
python testUpdateHostsFile.py
+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!
File diff suppressed because it is too large. Load diff
+9
View File
@@ -0,0 +1,9 @@
{
"name": "Mitchell Krog's - Badd Boyz Hosts",
"description": "Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers",
"homeurl": "https://github.com/mitchellkrogza/Badd-Boyz-Hosts",
"frequency": "weekly",
"issues": "https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues",
"url": "https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts",
"license": "'non-commercial with attribution'"
}
File diff suppressed because it is too large. Load diff
+9
View File
@@ -0,0 +1,9 @@
{
"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"
}
+3671
View File
File diff suppressed because it is too large. Load diff
+9
View File
@@ -0,0 +1,9 @@
{
"name": "KADhosts",
"description": "Fraud/adware/scam websites.",
"homeurl": "https://github.com/azet12/KADhosts",
"frequency": "frequently",
"issues": "https://github.com/azet12/KADhosts/issues",
"url": "https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt",
"license": "GPLv3"
}
+1224 -22
View File
File diff suppressed because it is too large. Load diff
-1
View File
@@ -1 +0,0 @@
https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts
+9
View File
@@ -0,0 +1,9 @@
{
"name": "Steven Black's ad-hoc list",
"description": "Additional sketch domains as I come across them.",
"homeurl": "https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts",
"frequency": "occasionally",
"issues": "https://github.com/StevenBlack/hosts/issues",
"url": "https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts",
"license": "MIT"
}
+10
View File
@@ -0,0 +1,10 @@
0.0.0.0 cdn.appround.biz
0.0.0.0 cdn.download.sweetpacks.com
0.0.0.0 cdn.insta.playbryte.com
0.0.0.0 cdn.msdwnld.com
0.0.0.0 cdn.mypcbackup.com
0.0.0.0 inno.bisrv.com
0.0.0.0 installer.betterinstaller.com
0.0.0.0 installer.filebulldog.com
0.0.0.0 nsis.bisrv.com
0.0.0.0 tracking.opencandy.com.s3.amazonaws.com
+8
View File
@@ -0,0 +1,8 @@
{
"name": "UncheckyAds",
"description": "Windows installers ads sources sites based on https://unchecky.com/ content.",
"homeurl": "https://github.com/FadeMind/hosts.extras",
"frequency": "occasionally",
"issues": "https://github.com/FadeMind/hosts.extras/issues",
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts"
}
+7 -5
View File
@@ -2,9 +2,10 @@
# Blocking mobile ad providers and some analytics providers
#
# Contribute:
# Create an issue at https://github.com/dschuermann/ad-away/issues
# Create an issue at https://github.com/AdAway/AdAway/issues
#
# Changelog:
# 2016-07-18 Now hosted on GitHub + Cloudflare
# 2014-05-18 Now with a valid SSL certificate available at https://adaway.org/hosts.txt
# 2013-03-29 Integrated some hosts from
# http://adblock.gjtech.net/?format=hostfile
@@ -33,7 +34,6 @@
127.0.0.1 apps.buzzcity.net
127.0.0.1 ads.mobgold.com
127.0.0.1 android.bcfads.com
127.0.0.1 req.appads.com
127.0.0.1 show.buzzcity.net
127.0.0.1 api.analytics.omgpop.com
127.0.0.1 r.edge.inmobicdn.net
@@ -48,7 +48,6 @@
127.0.0.1 static.estebull.com
127.0.0.1 mobile.Banzai.it
127.0.0.1 ads.xxxad.net
127.0.0.1 hhbekxxw5d9e.pflexads.com
127.0.0.1 img.ads.mojiva.com
127.0.0.1 adcontent.saymedia.com
127.0.0.1 ads.saymedia.com
@@ -100,7 +99,7 @@
127.0.0.1 ads2.mediaarmor.com
127.0.0.1 cdn.nearbyad.com
127.0.0.1 ads.ookla.com
127.0.0.1 mobiledl.adboe.com
127.0.0.1 mobiledl.adobe.com
127.0.0.1 ads.flurry.com
127.0.0.1 gemini.yahoo.com
@@ -495,6 +494,9 @@
127.0.0.1 ifc.inmobi.com
127.0.0.1 thinknear-hosted.thinknearhub.com
# [https://play.google.com/store/apps/details?id=com.buymeapie.bmap]
127.0.0.1 ads.adadapted.com
#
# ANALYTICS
#
@@ -520,4 +522,4 @@
# [EFF Tracker Detection]
127.0.0.1 trackersimulator.org
127.0.0.1 eviltracker.net
127.0.0.1 do-not-tracker.org
127.0.0.1 do-not-tracker.org
-1
View File
@@ -1 +0,0 @@
http://adaway.org/hosts.txt
+9
View File
@@ -0,0 +1,9 @@
{
"name": "AdAway",
"description": "AdAway is an open source ad blocker for Android using the hosts file.",
"homeurl": "https://adaway.org/",
"frequency": "occasionally",
"issues": "https://github.com/AdAway/AdAway/issues",
"url": "https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt",
"license": "CC BY 3.0"
}
File diff suppressed because it is too large. Load diff
+9
View File
@@ -0,0 +1,9 @@
{
"name": "add.2o7Net",
"description": "2o7Net tracking sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content.",
"homeurl": "https://github.com/FadeMind/hosts.extras",
"frequency": "occasionally",
"issues": "https://github.com/FadeMind/hosts.extras/issues",
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts",
"license": "GPLv3+"
}
+20
View File
@@ -0,0 +1,20 @@
0.0.0.0 avast-downloads.com
0.0.0.0 blacksnake.com
0.0.0.0 europcareer.com
0.0.0.0 get-avast.com
0.0.0.0 google-docs.info
0.0.0.0 gooqleapi.com
0.0.0.0 iphonegames3g.com
0.0.0.0 jmp2click.com
0.0.0.0 microsoft-update.name
0.0.0.0 paypai.org
0.0.0.0 sunonsunday.com
0.0.0.0 thesunonsunday.com
0.0.0.0 toolbar.wibiya.com
0.0.0.0 www.avast-downloads.com
0.0.0.0 www.europcareer.com
0.0.0.0 www.get-avast.com
0.0.0.0 www.google-docs.info
0.0.0.0 www.iphonegames3g.com
0.0.0.0 www.jmp2click.com
0.0.0.0 www.microsoft-update.name
+9
View File
@@ -0,0 +1,9 @@
{
"name": "add.Dead",
"description": "Dead sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content.",
"homeurl": "https://github.com/FadeMind/hosts.extras",
"frequency": "occasionally",
"issues": "https://github.com/FadeMind/hosts.extras/issues",
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts",
"license": "GPLv3+"
}
+2580
View File
File diff suppressed because it is too large. Load diff
+9
View File
@@ -0,0 +1,9 @@
{
"name": "add.Risk",
"description": "Risk content sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content.",
"homeurl": "https://github.com/FadeMind/hosts.extras",
"frequency": "occasionally",
"issues": "https://github.com/FadeMind/hosts.extras/issues",
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts",
"license": "GPLv3+"
}
+73
View File
@@ -0,0 +1,73 @@
0.0.0.0 100.1qingdao.com
0.0.0.0 7minuteworkout.com
0.0.0.0 addshoppers.com
0.0.0.0 affiliatecashpile.go2jump.org
0.0.0.0 arklighting.co
0.0.0.0 bigpayout.go2jump.org
0.0.0.0 brandedleadgeneration.com
0.0.0.0 clicktshirtprinting.co.uk
0.0.0.0 creditauthpagev3.info
0.0.0.0 dandingo.go2jump.org
0.0.0.0 defenderxtactical.com
0.0.0.0 divisioncore.com
0.0.0.0 fitnesshealthreporter.com
0.0.0.0 freeforums.org
0.0.0.0 go2jump.org
0.0.0.0 gtradersoft.com
0.0.0.0 heartrevitalized.com
0.0.0.0 janeaustenjoy.com
0.0.0.0 lazyprofits.go2jump.org
0.0.0.0 medtecchina.com
0.0.0.0 motoren.ru
0.0.0.0 mydreamdegree.com
0.0.0.0 nero-us.com
0.0.0.0 news.nero-emea.com
0.0.0.0 news.nero-us.com
0.0.0.0 novastarled.com
0.0.0.0 offerscience.go2jump.org
0.0.0.0 onlineloan-personal.net
0.0.0.0 otherinbox.com
0.0.0.0 pcbutts1-therealtruth.blogspot.com
0.0.0.0 playlott.com
0.0.0.0 profitsitesbiz.com
0.0.0.0 redhotfreebies.co.uk
0.0.0.0 securesignupoffers.org
0.0.0.0 stsoftware.biz
0.0.0.0 tekindustri.upnjatim.ac.id
0.0.0.0 thedatingconference.com
0.0.0.0 tinaborg.com
0.0.0.0 unionleisurewear.com
0.0.0.0 vntanktransport.com
0.0.0.0 vydoxtrial.com
0.0.0.0 www.7minuteworkout.com
0.0.0.0 www.addshoppers.com
0.0.0.0 www.arklighting.co
0.0.0.0 www.brandedleadgeneration.com
0.0.0.0 www.clicktshirtprinting.co.uk
0.0.0.0 www.creditauthpagev3.info
0.0.0.0 www.defenderxtactical.com
0.0.0.0 www.divisioncore.com
0.0.0.0 www.fitnesshealthreporter.com
0.0.0.0 www.freeforums.org
0.0.0.0 www.go2jump.org
0.0.0.0 www.gtradersoft.com
0.0.0.0 www.heartrevitalized.com
0.0.0.0 www.janeaustenjoy.com
0.0.0.0 www.medtecchina.com
0.0.0.0 www.motoren.ru
0.0.0.0 www.mydreamdegree.com
0.0.0.0 www.nero-us.com
0.0.0.0 www.novastarled.com
0.0.0.0 www.onlineloan-personal.net
0.0.0.0 www.otherinbox.com
0.0.0.0 www.oz-offers.com
0.0.0.0 www.playlott.com
0.0.0.0 www.profitsitesbiz.com
0.0.0.0 www.securesignupoffers.org
0.0.0.0 www.stsoftware.biz
0.0.0.0 www.thedatingconference.com
0.0.0.0 www.tinaborg.com
0.0.0.0 www.tkdami.net
0.0.0.0 www.unionleisurewear.com
0.0.0.0 www.vntanktransport.com
0.0.0.0 www.vydoxtrial.com
+9
View File
@@ -0,0 +1,9 @@
{
"name": "add.Spam",
"description": "Spam sites based on [hostsfile.org](http://www.hostsfile.org/hosts.html) content.",
"homeurl": "https://github.com/FadeMind/hosts.extras",
"frequency": "occasionally",
"issues": "https://github.com/FadeMind/hosts.extras/issues",
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts",
"license": "GPLv3+"
}
+1070
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
-1
View File
@@ -1 +0,0 @@
http://www.malwaredomainlist.com/hostslist/hosts.txt
+9
View File
@@ -0,0 +1,9 @@
{
"name": "Malware Domain List",
"description": "Malware Domain List is a non-commercial community project.",
"homeurl": "https://www.malwaredomainlist.com/",
"frequency": "weekly",
"issues": "https://www.malwaredomainlist.com/contact.php",
"url": "https://www.malwaredomainlist.com/hostslist/hosts.txt",
"license": "'can be used for free by anyone'"
}
+1104 -3188
View File
File diff suppressed because it is too large. Load diff
-1
View File
@@ -1 +0,0 @@
http://winhelp2002.mvps.org/hosts.txt
+9
View File
@@ -0,0 +1,9 @@
{
"name": "MVPS hosts file",
"description": "The purpose of this site is to provide the user with a high quality custom HOSTS file.",
"homeurl": "http://winhelp2002.mvps.org/",
"frequency": "monthly",
"issues": "mailto:winhelp2002@gmail.com",
"url": "http://winhelp2002.mvps.org/hosts.txt",
"license": "CC BY-NC-SA 4.0"
}
File diff suppressed because it is too large. Load diff
-1
View File
@@ -1 +0,0 @@
http://someonewhocares.org/hosts/zero/hosts
+9
View File
@@ -0,0 +1,9 @@
{
"name": "Dan Pollock – [someonewhocares](https://someonewhocares.org)",
"description": "How to make the internet not suck (as much).",
"homeurl": "https://someonewhocares.org/hosts/",
"frequency": "frequently",
"issues": "hosts@someonewhocares.org",
"url": "https://someonewhocares.org/hosts/zero/hosts",
"license": "non-commercial with attribution"
}
+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"
}
-39
View File
@@ -1,39 +0,0 @@
127.0.0.1 ac3.msn.com
127.0.0.1 choice.microsoft.com
127.0.0.1 choice.microsoft.com.nsatc.net
127.0.0.1 compatexchange.cloudapp.net
127.0.0.1 corp.sts.microsoft.com
127.0.0.1 corpext.msitadfs.glbdns2.microsoft.com
127.0.0.1 cs1.wpc.v0cdn.net
127.0.0.1 diagnostics.support.microsoft.com
127.0.0.1 feedback.search.microsoft.com
127.0.0.1 feedback.windows.com
127.0.0.1 i1.services.social.microsoft.com
127.0.0.1 i1.services.social.microsoft.com.nsatc.net
127.0.0.1 oca.telemetry.microsoft.com
127.0.0.1 oca.telemetry.microsoft.com.nsatc.net
127.0.0.1 pre.footprintpredict.com
127.0.0.1 redir.metaservices.microsoft.com
127.0.0.1 services.wes.df.telemetry.microsoft.com
127.0.0.1 settings-sandbox.data.microsoft.com
127.0.0.1 sls.update.microsoft.com.akadns.net
127.0.0.1 sqm.df.telemetry.microsoft.com
127.0.0.1 sqm.telemetry.microsoft.com
127.0.0.1 sqm.telemetry.microsoft.com.nsatc.net
127.0.0.1 ssw.live.com
127.0.0.1 statsfe1.ws.microsoft.com
127.0.0.1 statsfe2.update.microsoft.com.akadns.net
127.0.0.1 survey.watson.microsoft.com
127.0.0.1 telecommand.telemetry.microsoft.com
127.0.0.1 telecommand.telemetry.microsoft.com.nsatc.net
127.0.0.1 telemetry.urs.microsoft.com
127.0.0.1 vortex-bn2.metron.live.com.nsatc.net
127.0.0.1 vortex-cy2.metron.live.com.nsatc.net
127.0.0.1 vortex-sandbox.data.microsoft.com
127.0.0.1 vortex-win.data.microsoft.com
127.0.0.1 vortex.data.microsoft.com
127.0.0.1 watson.live.com
127.0.0.1 watson.microsoft.com
127.0.0.1 watson.ppe.telemetry.microsoft.com
127.0.0.1 watson.telemetry.microsoft.com
127.0.0.1 watson.telemetry.microsoft.com.nsatc.net
-1
View File
@@ -1 +0,0 @@
https://raw.githubusercontent.com/tyzbit/hosts/master/data/tyzbit/hosts
+1042 -434
View File
File diff suppressed because it is too large. Load diff
-1
View File
@@ -1 +0,0 @@
https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0
+10
View File
@@ -0,0 +1,10 @@
{
"name": "yoyo.org",
"description": "Blocking with ad server and tracking server hostnames.",
"homeurl": "https://pgl.yoyo.org/adservers/",
"frequency": "frequently",
"issues": "mailto:pgl@yoyo.org",
"url": "https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0"
}
+944
View File
@@ -0,0 +1,944 @@
0.0.0.0 100percentfedup.com
0.0.0.0 20minutenews.com
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
0.0.0.0 americanmilitarynews.com
0.0.0.0 americannews.com
0.0.0.0 americanoverlook.com
0.0.0.0 americanreviewer.com
0.0.0.0 americantoday.news
0.0.0.0 americantribune.org
0.0.0.0 amposts.com
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
0.0.0.0 channel18news.com
0.0.0.0 channel22news.com
0.0.0.0 channel23news.com
0.0.0.0 channel24news.com
0.0.0.0 channel28news.com
0.0.0.0 channel33news.com
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
0.0.0.0 conservativedailypost.com
0.0.0.0 conservativefiringline.com
0.0.0.0 conservativefrontline.com
0.0.0.0 conservativepapers.com
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
0.0.0.0 cowgernation.com
0.0.0.0 crazynews24.co.zw
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
0.0.0.0 dailyheadlines.net
0.0.0.0 dailynews11.com
0.0.0.0 dailynewsposts.info
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
0.0.0.0 drugsofficial.com
0.0.0.0 duhprogressive.com
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
0.0.0.0 journal-neo.org
0.0.0.0 justtrumpit.us
0.0.0.0 kata33.com
0.0.0.0 katehon.com
0.0.0.0 kingworldnews.com
0.0.0.0 knightstemplarinternational.com
0.0.0.0 krbcnews.com
0.0.0.0 kspm33.com
0.0.0.0 kupr7.com
0.0.0.0 ky6news.com
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
0.0.0.0 libertytalk.fm
0.0.0.0 libertyunyielding.com
0.0.0.0 libertyvideos.org
0.0.0.0 libertywritersnews.com
0.0.0.0 lincolnreport.com
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
0.0.0.0 mainerepublicemailalert.com
0.0.0.0 makeamericagreattoday.com
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 newswatch28.com
0.0.0.0 newswatch33.com
0.0.0.0 newswire-24.com
0.0.0.0 newswithviews.com
0.0.0.0 newzsentinel.com
0.0.0.0 noch.info
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
0.0.0.0 politicalo.com
0.0.0.0 politicalreviewer.com
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
0.0.0.0 theantimedia.org
0.0.0.0 theblacksphere.net
0.0.0.0 thebostontribune.com
0.0.0.0 thedcgazette.com
0.0.0.0 theduran.com
0.0.0.0 theeconomiccollapseblog.com
0.0.0.0 thefederalistpapers.org
0.0.0.0 theforbiddenknowledge.com
0.0.0.0 thefreepatriot.org
0.0.0.0 thefreethoughtproject.com
0.0.0.0 thefrt.com
0.0.0.0 theineptowl.com
0.0.0.0 thelapine.ca
0.0.0.0 thelastgreatstand.com
0.0.0.0 thelastlineofdefense.org
0.0.0.0 themarshallreport.wordpress.com
0.0.0.0 themillenniumreport.com
0.0.0.0 themindunleashed.com
0.0.0.0 themindunleashed.org
0.0.0.0 themuslimissue.wordpress.com
0.0.0.0 thenationalsun.com
0.0.0.0 thenewinquiry.com
0.0.0.0 thenewsdoctors.com
0.0.0.0 thenochill.com
0.0.0.0 theracketreport.com
0.0.0.0 therealstrategy.com
0.0.0.0 thereporterz.com
0.0.0.0 therightists.com
0.0.0.0 therundownlive.com
0.0.0.0 thesaker.is
0.0.0.0 theskunk.org
0.0.0.0 thespiritscience.net
0.0.0.0 thestatelyharold.com
0.0.0.0 thetimesoftheworld.com
0.0.0.0 thetruenews.info
0.0.0.0 thetruthdivision.com
0.0.0.0 thetruthseeker.co.uk
0.0.0.0 theunhivedmind.com
0.0.0.0 theuspatriot.com
0.0.0.0 thevalleyreport.com
0.0.0.0 thewatchtowers.com
0.0.0.0 thirdworldtraveler.com
0.0.0.0 thoughtoffense.wordpress.com
0.0.0.0 threepercenternation.com
0.0.0.0 thuglifevideos.com
0.0.0.0 tmzbreaking.com
0.0.0.0 tmzbusiness.com
0.0.0.0 tmzcomedy.com
0.0.0.0 tmzhiphop.com
0.0.0.0 tmzuncut.com
0.0.0.0 tmzurban.com
0.0.0.0 tmzworldnews.com
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
0.0.0.0 usadailypolitics.com
0.0.0.0 usahitman.com
0.0.0.0 usanewshome.com
0.0.0.0 usapoliticsnow.com
0.0.0.0 uschronicle.com
0.0.0.0 usdcrisis.com
0.0.0.0 usdefensewatch.com
0.0.0.0 ushealthyadvisor.com
0.0.0.0 usherald.com
0.0.0.0 uspolitico.com
0.0.0.0 uspoln.com
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
0.0.0.0 viraldevil.com
0.0.0.0 viralliberty.com
0.0.0.0 viralmugshot.com
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
0.0.0.0 www.activistpost.com
0.0.0.0 www.actualidadpanamericana.com
0.0.0.0 www.ae911truth.org
0.0.0.0 www.americanpatriotdaily.com
0.0.0.0 www.americanpoliticnews.com
0.0.0.0 www.americasfreedomfighters.com
0.0.0.0 www.americatalks.com
0.0.0.0 www.amren.com
0.0.0.0 www.amtvmedia.com
0.0.0.0 www.ancient-code.com
0.0.0.0 www.ancreport.com
0.0.0.0 www.angrypatriotmovement.com
0.0.0.0 www.anonews.co
0.0.0.0 www.anonymousnews.ru
0.0.0.0 www.antiwar.com
0.0.0.0 www.barenakedislam.com
0.0.0.0 www.bighairynews.com
0.0.0.0 www.bizpacreview.com
0.0.0.0 www.blastingnews.com
0.0.0.0 www.brasschecktv.com
0.0.0.0 www.breitbart.com
0.0.0.0 www.burrardstreetjournal.com
0.0.0.0 www.callthecops.net
0.0.0.0 www.celebmaestro.com
0.0.0.0 www.celebtricity.com
0.0.0.0 www.centerforsecuritypolicy.org
0.0.0.0 www.climatedepot.com
0.0.0.0 www.coasttocoastam.com
0.0.0.0 www.collective-evolution.com
0.0.0.0 www.conservativeinfidel.com
0.0.0.0 www.conservativeoutfitters.com
0.0.0.0 www.corbettreport.com
0.0.0.0 www.dailydiscord.com
0.0.0.0 www.dailyfinesser.com
0.0.0.0 www.dailynewsbin.com
0.0.0.0 www.dailysquib.co.uk
0.0.0.0 www.dailystormer.com
0.0.0.0 www.dangerandplay.com
0.0.0.0 www.darkmoon.me
0.0.0.0 www.darkpolitricks.com
0.0.0.0 www.davidwolfe.com
0.0.0.0 www.dcclothesline.com
0.0.0.0 www.debunkingskeptics.com
0.0.0.0 www.derfmagazine.com
0.0.0.0 www.disclose.tv
0.0.0.0 www.disclosuremedia.net
0.0.0.0 www.duffelblog.com
0.0.0.0 www.empiresports.co
0.0.0.0 www.endtime.com
0.0.0.0 www.enduringvision.com
0.0.0.0 www.eutimes.net
0.0.0.0 www.everynewshere.com
0.0.0.0 www.ewao.com
0.0.0.0 www.express.co.uk
0.0.0.0 www.eyeopening.info
0.0.0.0 www.floridasunpost.com
0.0.0.0 www.fort-russ.com
0.0.0.0 www.fourwinds10.net
0.0.0.0 www.freewoodpost.com
0.0.0.0 www.fridaymash.com
0.0.0.0 www.frontpagemag.com
0.0.0.0 www.gaia.com
0.0.0.0 www.geoengineeringwatch.org
0.0.0.0 www.globalpossibilities.org
0.0.0.0 www.globalresearch.ca
0.0.0.0 www.godlikeproductions.com
0.0.0.0 www.greanvillepost.com
0.0.0.0 www.hangthebankers.com
0.0.0.0 www.healthnutnews.com
0.0.0.0 www.hermancain.com
0.0.0.0 www.humortimes.com
0.0.0.0 www.huzlers.com
0.0.0.0 www.ifactsviral.com
0.0.0.0 www.infiniteunknown.net
0.0.0.0 www.informationclearinghouse.info
0.0.0.0 www.informationliberation.com
0.0.0.0 www.infostormer.com
0.0.0.0 www.infowars.com
0.0.0.0 www.inquisitr.com
0.0.0.0 www.intrepidreport.com
0.0.0.0 www.israelislamandendtimes.com
0.0.0.0 www.jewsnews.co.il
0.0.0.0 www.jihadwatch.org
0.0.0.0 www.johnnyrobish.com
0.0.0.0 www.kkk.com
0.0.0.0 www.landrypost.com
0.0.0.0 www.libertyvideos.com
0.0.0.0 www.lifezette.com
0.0.0.0 www.liftable.com
0.0.0.0 www.lushforlife.com
0.0.0.0 www.mercola.com
0.0.0.0 www.militianews.com
0.0.0.0 www.moonofalabama.org
0.0.0.0 www.mrcblog.com
0.0.0.0 www.nationalenquirer.com
0.0.0.0 www.nationalinsiderpolitics.com
0.0.0.0 www.naturalnews.com
0.0.0.0 www.ncscooper.com
0.0.0.0 www.neonnettle.com
0.0.0.0 www.newcoldwar.org
0.0.0.0 www.newsbusters.org
0.0.0.0 www.newsmax.com
0.0.0.0 www.nowtheendbegins.com
0.0.0.0 www.organicandhealthy.org
0.0.0.0 www.pakalertpress.com
0.0.0.0 www.palmerreport.com
0.0.0.0 www.patdollard.com
0.0.0.0 www.paulcraigroberts.org
0.0.0.0 www.peoplemagazine.co.za
0.0.0.0 www.politicalgarbagechute.com
0.0.0.0 www.politicususa.com
0.0.0.0 www.powerlineblog.com
0.0.0.0 www.pravda.ru
0.0.0.0 www.pravdareport.com
0.0.0.0 www.prepperwebsite.com
0.0.0.0 www.presstv.ir
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.react365.com
0.0.0.0 www.realfarmacy.com
0.0.0.0 www.redflagnews.com
0.0.0.0 www.redstate.com
0.0.0.0 www.reelnewsnetwork.com
0.0.0.0 www.renegadetribune.com
0.0.0.0 www.rense.com
0.0.0.0 www.revolutions2040.com
0.0.0.0 www.ridiculously.com
0.0.0.0 www.rockcitytimes.com
0.0.0.0 www.rt.com
0.0.0.0 www.russia-direct.org
0.0.0.0 www.satiratribune.com
0.0.0.0 www.satirewire.com
0.0.0.0 www.secretsofthefed.com
0.0.0.0 www.sensationalisttimes.com
0.0.0.0 www.shiftfrequency.com
0.0.0.0 www.shtfplan.com
0.0.0.0 www.silverdoctors.com
0.0.0.0 www.socialmediamorning.com
0.0.0.0 www.sott.net
0.0.0.0 www.strategic-culture.org
0.0.0.0 www.superstation95.com
0.0.0.0 www.surrealscoop.com
0.0.0.0 www.survivopedia.com
0.0.0.0 www.teaparty.org
0.0.0.0 www.theamericanmirror.com
0.0.0.0 www.theavocadonews.com
0.0.0.0 www.thebeaverton.com
0.0.0.0 www.theblaze.com
0.0.0.0 www.thecommonsenseshow.com
0.0.0.0 www.thecontroversialfiles.net
0.0.0.0 www.thedailybell.com
0.0.0.0 www.thedailymash.co.uk
0.0.0.0 www.thedailysheeple.com
0.0.0.0 www.theearthchild.co.za
0.0.0.0 www.theeventchronicle.com
0.0.0.0 www.thegatewaypundit.com
0.0.0.0 www.thelibertybeacon.com
0.0.0.0 www.themoralofthestory.us
0.0.0.0 www.thenewamerican.com
0.0.0.0 www.thenewsnerd.com
0.0.0.0 www.theoccidentalobserver.net
0.0.0.0 www.thepoke.co.uk
0.0.0.0 www.thepoliticalinsider.com
0.0.0.0 www.therebel.media
0.0.0.0 www.therussophile.org
0.0.0.0 www.theshovel.com.au
0.0.0.0 www.thesleuthjournal.com
0.0.0.0 www.thespoof.com
0.0.0.0 www.theunrealtimes.com
0.0.0.0 www.tmn.today
0.0.0.0 www.topinfopost.com
0.0.0.0 www.trueactivist.com
0.0.0.0 www.trunews.com
0.0.0.0 www.truth-out.org
0.0.0.0 www.truthandaction.org
0.0.0.0 www.truthdig.com
0.0.0.0 www.unz.com
0.0.0.0 www.usanewsflash.com
0.0.0.0 www.usanewsinsider.com
0.0.0.0 www.usasupreme.com
0.0.0.0 www.uspoliticslive.com
0.0.0.0 www.vaccinationcouncil.org
0.0.0.0 www.vdare.com
0.0.0.0 www.veteransnewsnow.com
0.0.0.0 www.veteranstoday.com
0.0.0.0 www.viralthread.com
0.0.0.0 www.voltairenet.org
0.0.0.0 www.wakingtimes.com
0.0.0.0 www.washingtonsblog.com
0.0.0.0 www.webdaily.com
0.0.0.0 www.wellaware1.com
0.0.0.0 www.westernjournalism.com
0.0.0.0 www.whatdoesitmean.com
0.0.0.0 www.whatreallyhappened.com
0.0.0.0 www.wnd.com
0.0.0.0 www.wonkie.com
0.0.0.0 www.worldnewspolitics.com
0.0.0.0 www.yesimright.com
0.0.0.0 www.youngcons.com
0.0.0.0 www.zambianobserver.com
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
+9
View File
@@ -0,0 +1,9 @@
{
"name": "Fake News",
"description": "An in-progress collection of fake news outlets.",
"homeurl": "https://github.com/marktron/fakenews",
"frequency": "occasional",
"issues": "https://github.com/marktron/fakenews/issues",
"url": "https://raw.githubusercontent.com/marktron/fakenews/master/fakenews",
"license": "MIT"
}
+2295 -720
View File
File diff suppressed because it is too large. Load diff
-1
View File
@@ -1 +0,0 @@
https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts
+9
View File
@@ -0,0 +1,9 @@
{
"name": "Sinfonietta's gambling blocking hosts file",
"description": "A collection of category-specific host files.",
"homeurl": "https://github.com/Sinfonietta/hostfiles",
"frequency": "occasional",
"issues": "https://github.com/Sinfonietta/hostfiles/issues",
"url": "https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts",
"license": "MIT"
}
File diff suppressed because it is too large. Load diff
+9
View File
@@ -0,0 +1,9 @@
{
"name": "pornhosts -- a consolidated anti porn hosts file",
"description": "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.",
"homeurl": "https://github.com/Clefspeare13/pornhosts",
"frequency": "occasional",
"issues": "https://github.com/Clefspeare13/pornhosts/issues",
"url": "https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts",
"license": "MIT"
}
File diff suppressed because it is too large. Load diff
+18
View File
@@ -0,0 +1,18 @@
# 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 elblogdelnarco.com
127.0.0.1 kaotic.com
127.0.0.1 ogrish.tv
127.0.0.1 thepinsta.com
@@ -0,0 +1,9 @@
{
"name": "Sinfonietta's snuff-site blocking hosts file",
"description": "A collection of category-specific host files.",
"homeurl": "https://github.com/Sinfonietta/hostfiles",
"frequency": "occasional",
"issues": "https://github.com/Sinfonietta/hostfiles/issues",
"url": "https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts",
"license": "MIT"
}
File diff suppressed because it is too large. Load diff
+9
View File
@@ -0,0 +1,9 @@
{
"name": "Sinfonietta's porn blocking hosts file",
"description": "A collection of category-specific host files.",
"homeurl": "https://github.com/Sinfonietta/hostfiles",
"frequency": "occasional",
"issues": "https://github.com/Sinfonietta/hostfiles/issues",
"url": "https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts",
"license": "MIT"
}
+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
View File
@@ -1 +0,0 @@
https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts
+10 -18
View File
@@ -1,16 +1,20 @@
# Extensions
Use subfolders under the `extensions` folder to house extensions to the final unified hosts file.
Use subfolders under this `extensions` folder to house data sources for extensions to the default unified hosts file.
Currently this repo includes three extensions:
Currently, this repo includes data sources for four extensions:
* `fakenews` for fake news sites.
* `gambling` for common online betting sites,
* `porn` for porn sites, and
* `social` for common social media sites,
* `gambling` for common online betting sites,
* `social` for common social media sites, and
* `porn` for porn sites. You can optionally add either or both to your final unified file.
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.
python3 updateHostsFile.py --auto --extensions porn social gambling
@@ -18,15 +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
More built-in extensions are coming soon.
-117
View File
@@ -1,117 +0,0 @@
# Facebook
127.0.0.1 api.ak.facebook.com
127.0.0.1 api.connect.facebook.com
127.0.0.1 api.facebook.com
127.0.0.1 app.facebook.com
127.0.0.1 apps.facebook.com
127.0.0.1 ar-ar.facebook.com
127.0.0.1 badge.facebook.com
127.0.0.1 blog.facebook.com
127.0.0.1 connect.facebook.com
127.0.0.1 connect.facebook.net
127.0.0.1 de-de.facebook.com
127.0.0.1 developers.facebook.com
127.0.0.1 es-la.facebook.com
127.0.0.1 external.ak.fbcdn.net
127.0.0.1 facebook.com
127.0.0.1 facebook.de
127.0.0.1 facebook.fr
127.0.0.1 fb.me
127.0.0.1 fbcdn.com
127.0.0.1 fbcdn.net
127.0.0.1 fr-fr.facebook.com
127.0.0.1 graph.facebook.com
127.0.0.1 hi-in.facebook.com
127.0.0.1 it-it.facebook.com
127.0.0.1 ja-jp.facebook.com
127.0.0.1 login.facebook.com
127.0.0.1 newsroom.fb.com
127.0.0.1 photos-b.ak.fbcdn.net
127.0.0.1 photos-f.ak.fbcdn.net
127.0.0.1 profile.ak.fbcdn.net
127.0.0.1 pt-br.facebook.com
127.0.0.1 sphotos-a.xx.fbcdn.net
127.0.0.1 ssl.connect.facebook.com
127.0.0.1 staticxx.facebook.com
127.0.0.1 static.ak.connect.facebook.com
127.0.0.1 static.ak.fbcdn.net
127.0.0.1 www.connect.facebook.net
127.0.0.1 www.facebook.com
127.0.0.1 www.facebook.de
127.0.0.1 www.facebook.fr
127.0.0.1 www.fbcdn.com
127.0.0.1 www.fbcdn.net
127.0.0.1 www.login.facebook.com
127.0.0.1 zh-cn.facebook.com
# Twitter
127.0.0.1 www.twitter.com
127.0.0.1 twitter.com
127.0.0.1 pbs.twimg.com
127.0.0.1 abs.twimg.com
127.0.0.1 syndication.twitter.com
# Instagram
127.0.0.1 igcdn-photos-aa.akamaihd.net
127.0.0.1 igcdn-photos-ba.akamaihd.net
127.0.0.1 igcdn-photos-ca.akamaihd.net
127.0.0.1 igcdn-photos-da.akamaihd.net
127.0.0.1 igcdn-photos-ea.akamaihd.net
127.0.0.1 igcdn-photos-fa.akamaihd.net
127.0.0.1 igcdn-photos-ga.akamaihd.net
127.0.0.1 igcdn-photos-ha.akamaihd.net
127.0.0.1 instagram.com
127.0.0.1 scontent-iad3-1.cdninstagram.com
127.0.0.1 scontent.cdninstagram.com
127.0.0.1 www.instagram.com
# LinkedIn
127.0.0.1 static.licdn.com
127.0.0.1 www.linkedin.com
127.0.0.1 media.licdn.com
127.0.0.1 platform.linkedin.com
# MySpace
127.0.0.1 browseusers.myspace.com
127.0.0.1 classifieds.myspace.com
127.0.0.1 collect.myspace.com
127.0.0.1 events.myspace.com
127.0.0.1 favorites.myspace.com
127.0.0.1 forum.myspace.com
127.0.0.1 groups.myspace.com
127.0.0.1 home.myspace.com
127.0.0.1 invite.myspace.com
127.0.0.1 linux.myspace.com
127.0.0.1 log.myspace.com
127.0.0.1 login.myspace.com
127.0.0.1 mail.myspace.com
127.0.0.1 message.myspace.com
127.0.0.1 messages.myspace.com
127.0.0.1 music.myspace.com
127.0.0.1 mx2.myspace.com
127.0.0.1 myspace.com
127.0.0.1 ns1.myspace.com
127.0.0.1 ns2.myspace.com
127.0.0.1 profile.myspace.com
127.0.0.1 rio.myspace.com
127.0.0.1 search.myspace.com
127.0.0.1 security.myspace.com
127.0.0.1 signup.myspace.com
127.0.0.1 videos.myspace.com
127.0.0.1 vids.myspace.com
127.0.0.1 viewmorepics.myspace.com
127.0.0.1 vmta01.myspace.com
127.0.0.1 vmta02.myspace.com
127.0.0.1 vmta03.myspace.com
127.0.0.1 vmta04.myspace.com
127.0.0.1 vmta05.myspace.com
127.0.0.1 vmta06.myspace.com
127.0.0.1 vmta07.myspace.com
127.0.0.1 vmta08.myspace.com
127.0.0.1 vmta09.myspace.com
127.0.0.1 vmta10.myspace.com
127.0.0.1 vmta11.myspace.com
127.0.0.1 vmta12.myspace.com
127.0.0.1 vmta13.myspace.com
127.0.0.1 www.myspace.com
127.0.0.1 www1.myspace.com
Loaded 100 of 120 files, more files were not shown because too many files have changed in this diff. Show more