Compare commits

..
407 Commits
Author SHA1 Message Date
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
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
Chris 3c0bba41e1 updated per scriptiger
Thanks @ScriptTiger
2018-02-25 23:54:59 -05: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
tyzbit 459ccd9540 Merge pull request #1 from StevenBlack/master
Catching up with master
2016-06-08 19:00:15 -04:00
78 changed files with 531164 additions and 416510 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
{
"src": {
"tagName": "v%s"
"tagName": "v%s",
"commitArgs": "-S",
"tagArgs": "-S"
},
"github": {
"release": true
+1 -1
View File
@@ -18,9 +18,9 @@ os:
- osx
env:
- PYTHON_VERSION="2.7"
- PYTHON_VERSION="3.5"
- PYTHON_VERSION="3.6"
- PYTHON_VERSION="3.7"
before_install:
- export PATH="$HOME/miniconda3/bin:$PATH"
File diff suppressed because it is too large Load Diff
@@ -1,12 +1,29 @@
----
**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)
[![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: **March 18 2018**.
* Here's the [raw hosts file with fakenews, gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) containing 68,916 entries.
* Last updated: **November 26 2018**.
* Here's the [raw hosts file with fakenews, gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts) containing 78,475 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
@@ -17,22 +34,22 @@ 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) | 56,046 | [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) | 56,719 | [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) | 57,558 | [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) | 65,584 | [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) | 57,193 | [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) | 58,231 | [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) | 66,257 | [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) | 57,866 | [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) | 67,096 | [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) | 58,705 | [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) | 66,731 | [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) | 67,769 | [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) | 59,378 | [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) | 67,404 | [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) | 68,243 | [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) | 68,916 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 64,102 | [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) | 64,771 | [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) | 66,368 | [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) | 74,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) | 65,261 | [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) | 67,037 | [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) | 75,051 | [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) | 65,930 | [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) | 76,648 | [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) | 67,527 | [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) | 75,540 | [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) | 77,317 | [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) | 68,196 | [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) | 76,209 | [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) | 77,806 | [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) | 78,475 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -46,20 +63,20 @@ 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](http://www.malwaredomainlist.com/) | [raw](http://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](http://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on 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)
add.Spam | Spam sites based on 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.org | How to make the internet not suck (as much). |[link](http://someonewhocares.org/hosts/) | [raw](http://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
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)
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://github.com/ZeroDot1/CoinBlockerLists) | [raw](https://raw.githubusercontent.com/ZeroDot1/CoinBlockerLists/master/hosts_browser) | frequently | GPLv3 | [issues](https://github.com/ZeroDot1/CoinBlockerLists/issues)
tyzbit | Microsoft tracking domains. A fork of this repo providing additional data. |[link](https://github.com/tyzbit/hosts/blob/master/data/tyzbit/hosts) | [raw](https://raw.githubusercontent.com/tyzbit/hosts/master/data/tyzbit/hosts) | rarely | | [issues]()
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
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 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)
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 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)
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)
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)
@@ -70,31 +87,33 @@ Sinfonietta's social media blocking hosts file | A collection of category-specif
## Extensions
The unified hosts file is extensible. You manage extensions by curating the
`extensions/` folder tree. See the `fakenews`, `social`, `gambling`, and `porn` extension
folders.
The unified hosts file is extensible. Extensions are used to block domains by category.
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
## Generate your own unified hosts file
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.txt
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
To run unit tests, in the top level directory, just run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -102,10 +121,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -132,9 +147,8 @@ Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
@@ -210,11 +224,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us 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 existance of your remo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -259,9 +273,9 @@ 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.
## Updating hosts file on Windows
@@ -322,7 +336,9 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -332,6 +348,23 @@ 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
@@ -378,6 +411,8 @@ devices under a variety of operating systems.
## Interesting Applications
* [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.
File diff suppressed because it is too large Load Diff
+87 -52
View File
@@ -1,12 +1,29 @@
----
**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)
[![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: **March 18 2018**.
* Here's the [raw hosts file with fakenews, gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) containing 67,769 entries.
* Last updated: **November 26 2018**.
* Here's the [raw hosts file with fakenews, gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts) containing 77,317 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
@@ -17,22 +34,22 @@ 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) | 56,046 | [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) | 56,719 | [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) | 57,558 | [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) | 65,584 | [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) | 57,193 | [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) | 58,231 | [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) | 66,257 | [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) | 57,866 | [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) | 67,096 | [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) | 58,705 | [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) | 66,731 | [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) | 67,769 | [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) | 59,378 | [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) | 67,404 | [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) | 68,243 | [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) | 68,916 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 64,102 | [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) | 64,771 | [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) | 66,368 | [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) | 74,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) | 65,261 | [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) | 67,037 | [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) | 75,051 | [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) | 65,930 | [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) | 76,648 | [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) | 67,527 | [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) | 75,540 | [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) | 77,317 | [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) | 68,196 | [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) | 76,209 | [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) | 77,806 | [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) | 78,475 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -46,20 +63,20 @@ 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](http://www.malwaredomainlist.com/) | [raw](http://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](http://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on 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)
add.Spam | Spam sites based on 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.org | How to make the internet not suck (as much). |[link](http://someonewhocares.org/hosts/) | [raw](http://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
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)
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://github.com/ZeroDot1/CoinBlockerLists) | [raw](https://raw.githubusercontent.com/ZeroDot1/CoinBlockerLists/master/hosts_browser) | frequently | GPLv3 | [issues](https://github.com/ZeroDot1/CoinBlockerLists/issues)
tyzbit | Microsoft tracking domains. A fork of this repo providing additional data. |[link](https://github.com/tyzbit/hosts/blob/master/data/tyzbit/hosts) | [raw](https://raw.githubusercontent.com/tyzbit/hosts/master/data/tyzbit/hosts) | rarely | | [issues]()
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
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 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)
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 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)
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)
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)
@@ -69,31 +86,33 @@ Sinfonietta's porn blocking hosts file | A collection of category-specific host
## Extensions
The unified hosts file is extensible. You manage extensions by curating the
`extensions/` folder tree. See the `fakenews`, `social`, `gambling`, and `porn` extension
folders.
The unified hosts file is extensible. Extensions are used to block domains by category.
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
## Generate your own unified hosts file
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.txt
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
To run unit tests, in the top level directory, just run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -101,10 +120,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -131,9 +146,8 @@ Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
@@ -209,11 +223,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us 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 existance of your remo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -258,9 +272,9 @@ 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.
## Updating hosts file on Windows
@@ -321,7 +335,9 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -331,6 +347,23 @@ 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
@@ -377,6 +410,8 @@ devices under a variety of operating systems.
## Interesting Applications
* [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.
File diff suppressed because it is too large Load Diff
+87 -52
View File
@@ -1,12 +1,29 @@
----
**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)
[![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: **March 18 2018**.
* Here's the [raw hosts file with fakenews, gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) containing 59,378 entries.
* Last updated: **November 26 2018**.
* Here's the [raw hosts file with fakenews, gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts) containing 68,196 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
@@ -17,22 +34,22 @@ 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) | 56,046 | [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) | 56,719 | [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) | 57,558 | [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) | 65,584 | [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) | 57,193 | [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) | 58,231 | [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) | 66,257 | [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) | 57,866 | [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) | 67,096 | [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) | 58,705 | [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) | 66,731 | [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) | 67,769 | [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) | 59,378 | [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) | 67,404 | [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) | 68,243 | [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) | 68,916 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 64,102 | [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) | 64,771 | [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) | 66,368 | [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) | 74,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) | 65,261 | [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) | 67,037 | [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) | 75,051 | [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) | 65,930 | [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) | 76,648 | [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) | 67,527 | [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) | 75,540 | [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) | 77,317 | [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) | 68,196 | [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) | 76,209 | [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) | 77,806 | [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) | 78,475 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -46,20 +63,20 @@ 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](http://www.malwaredomainlist.com/) | [raw](http://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](http://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on 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)
add.Spam | Spam sites based on 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.org | How to make the internet not suck (as much). |[link](http://someonewhocares.org/hosts/) | [raw](http://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
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)
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://github.com/ZeroDot1/CoinBlockerLists) | [raw](https://raw.githubusercontent.com/ZeroDot1/CoinBlockerLists/master/hosts_browser) | frequently | GPLv3 | [issues](https://github.com/ZeroDot1/CoinBlockerLists/issues)
tyzbit | Microsoft tracking domains. A fork of this repo providing additional data. |[link](https://github.com/tyzbit/hosts/blob/master/data/tyzbit/hosts) | [raw](https://raw.githubusercontent.com/tyzbit/hosts/master/data/tyzbit/hosts) | rarely | | [issues]()
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
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 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)
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 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)
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)
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)
@@ -67,31 +84,33 @@ Sinfonietta's social media blocking hosts file | A collection of category-specif
## Extensions
The unified hosts file is extensible. You manage extensions by curating the
`extensions/` folder tree. See the `fakenews`, `social`, `gambling`, and `porn` extension
folders.
The unified hosts file is extensible. Extensions are used to block domains by category.
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
## Generate your own unified hosts file
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.txt
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
To run unit tests, in the top level directory, just run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -99,10 +118,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -129,9 +144,8 @@ Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
@@ -207,11 +221,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us 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 existance of your remo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -256,9 +270,9 @@ 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.
## Updating hosts file on Windows
@@ -319,7 +333,9 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -329,6 +345,23 @@ 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
@@ -375,6 +408,8 @@ devices under a variety of operating systems.
## Interesting Applications
* [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.
File diff suppressed because it is too large Load Diff
+87 -52
View File
@@ -1,12 +1,29 @@
----
**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)
[![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: **March 18 2018**.
* Here's the [raw hosts file with fakenews, gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) containing 58,231 entries.
* Last updated: **November 26 2018**.
* Here's the [raw hosts file with fakenews, gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts) containing 67,037 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
@@ -17,22 +34,22 @@ 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) | 56,046 | [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) | 56,719 | [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) | 57,558 | [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) | 65,584 | [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) | 57,193 | [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) | 58,231 | [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) | 66,257 | [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) | 57,866 | [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) | 67,096 | [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) | 58,705 | [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) | 66,731 | [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) | 67,769 | [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) | 59,378 | [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) | 67,404 | [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) | 68,243 | [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) | 68,916 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 64,102 | [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) | 64,771 | [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) | 66,368 | [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) | 74,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) | 65,261 | [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) | 67,037 | [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) | 75,051 | [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) | 65,930 | [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) | 76,648 | [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) | 67,527 | [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) | 75,540 | [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) | 77,317 | [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) | 68,196 | [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) | 76,209 | [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) | 77,806 | [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) | 78,475 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -46,51 +63,53 @@ 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](http://www.malwaredomainlist.com/) | [raw](http://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](http://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on 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)
add.Spam | Spam sites based on 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.org | How to make the internet not suck (as much). |[link](http://someonewhocares.org/hosts/) | [raw](http://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
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)
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://github.com/ZeroDot1/CoinBlockerLists) | [raw](https://raw.githubusercontent.com/ZeroDot1/CoinBlockerLists/master/hosts_browser) | frequently | GPLv3 | [issues](https://github.com/ZeroDot1/CoinBlockerLists/issues)
tyzbit | Microsoft tracking domains. A fork of this repo providing additional data. |[link](https://github.com/tyzbit/hosts/blob/master/data/tyzbit/hosts) | [raw](https://raw.githubusercontent.com/tyzbit/hosts/master/data/tyzbit/hosts) | rarely | | [issues]()
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
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 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)
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 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)
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)
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
## Extensions
The unified hosts file is extensible. You manage extensions by curating the
`extensions/` folder tree. See the `fakenews`, `social`, `gambling`, and `porn` extension
folders.
The unified hosts file is extensible. Extensions are used to block domains by category.
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
## Generate your own unified hosts file
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.txt
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
To run unit tests, in the top level directory, just run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -98,10 +117,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -128,9 +143,8 @@ Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
@@ -206,11 +220,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us 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 existance of your remo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -255,9 +269,9 @@ 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.
## Updating hosts file on Windows
@@ -318,7 +332,9 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -328,6 +344,23 @@ 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
@@ -374,6 +407,8 @@ devices under a variety of operating systems.
## Interesting Applications
* [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.
File diff suppressed because it is too large Load Diff
+87 -52
View File
@@ -1,12 +1,29 @@
----
**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)
[![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: **March 18 2018**.
* Here's the [raw hosts file with fakenews, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) containing 67,404 entries.
* Last updated: **November 26 2018**.
* Here's the [raw hosts file with fakenews, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn-social/hosts) containing 76,209 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
@@ -17,22 +34,22 @@ 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) | 56,046 | [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) | 56,719 | [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) | 57,558 | [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) | 65,584 | [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) | 57,193 | [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) | 58,231 | [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) | 66,257 | [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) | 57,866 | [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) | 67,096 | [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) | 58,705 | [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) | 66,731 | [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) | 67,769 | [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) | 59,378 | [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) | 67,404 | [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) | 68,243 | [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) | 68,916 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 64,102 | [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) | 64,771 | [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) | 66,368 | [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) | 74,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) | 65,261 | [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) | 67,037 | [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) | 75,051 | [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) | 65,930 | [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) | 76,648 | [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) | 67,527 | [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) | 75,540 | [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) | 77,317 | [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) | 68,196 | [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) | 76,209 | [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) | 77,806 | [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) | 78,475 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -46,20 +63,20 @@ 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](http://www.malwaredomainlist.com/) | [raw](http://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](http://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on 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)
add.Spam | Spam sites based on 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.org | How to make the internet not suck (as much). |[link](http://someonewhocares.org/hosts/) | [raw](http://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
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)
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://github.com/ZeroDot1/CoinBlockerLists) | [raw](https://raw.githubusercontent.com/ZeroDot1/CoinBlockerLists/master/hosts_browser) | frequently | GPLv3 | [issues](https://github.com/ZeroDot1/CoinBlockerLists/issues)
tyzbit | Microsoft tracking domains. A fork of this repo providing additional data. |[link](https://github.com/tyzbit/hosts/blob/master/data/tyzbit/hosts) | [raw](https://raw.githubusercontent.com/tyzbit/hosts/master/data/tyzbit/hosts) | rarely | | [issues]()
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
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 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)
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 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)
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)
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)
@@ -69,31 +86,33 @@ Sinfonietta's social media blocking hosts file | A collection of category-specif
## Extensions
The unified hosts file is extensible. You manage extensions by curating the
`extensions/` folder tree. See the `fakenews`, `social`, `gambling`, and `porn` extension
folders.
The unified hosts file is extensible. Extensions are used to block domains by category.
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
## Generate your own unified hosts file
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.txt
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
To run unit tests, in the top level directory, just run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -101,10 +120,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -131,9 +146,8 @@ Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
@@ -209,11 +223,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us 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 existance of your remo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -258,9 +272,9 @@ 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.
## Updating hosts file on Windows
@@ -321,7 +335,9 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -331,6 +347,23 @@ 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
@@ -377,6 +410,8 @@ devices under a variety of operating systems.
## Interesting Applications
* [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.
+30946 -24453
View File
File diff suppressed because it is too large Load Diff
+87 -52
View File
@@ -1,12 +1,29 @@
----
**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)
[![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: **March 18 2018**.
* Here's the [raw hosts file with fakenews, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) containing 66,257 entries.
* Last updated: **November 26 2018**.
* Here's the [raw hosts file with fakenews, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts) containing 75,051 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
@@ -17,22 +34,22 @@ 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) | 56,046 | [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) | 56,719 | [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) | 57,558 | [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) | 65,584 | [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) | 57,193 | [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) | 58,231 | [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) | 66,257 | [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) | 57,866 | [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) | 67,096 | [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) | 58,705 | [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) | 66,731 | [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) | 67,769 | [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) | 59,378 | [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) | 67,404 | [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) | 68,243 | [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) | 68,916 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 64,102 | [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) | 64,771 | [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) | 66,368 | [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) | 74,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) | 65,261 | [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) | 67,037 | [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) | 75,051 | [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) | 65,930 | [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) | 76,648 | [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) | 67,527 | [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) | 75,540 | [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) | 77,317 | [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) | 68,196 | [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) | 76,209 | [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) | 77,806 | [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) | 78,475 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -46,20 +63,20 @@ 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](http://www.malwaredomainlist.com/) | [raw](http://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](http://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on 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)
add.Spam | Spam sites based on 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.org | How to make the internet not suck (as much). |[link](http://someonewhocares.org/hosts/) | [raw](http://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
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)
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://github.com/ZeroDot1/CoinBlockerLists) | [raw](https://raw.githubusercontent.com/ZeroDot1/CoinBlockerLists/master/hosts_browser) | frequently | GPLv3 | [issues](https://github.com/ZeroDot1/CoinBlockerLists/issues)
tyzbit | Microsoft tracking domains. A fork of this repo providing additional data. |[link](https://github.com/tyzbit/hosts/blob/master/data/tyzbit/hosts) | [raw](https://raw.githubusercontent.com/tyzbit/hosts/master/data/tyzbit/hosts) | rarely | | [issues]()
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
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 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)
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 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)
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)
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)
@@ -68,31 +85,33 @@ Sinfonietta's porn blocking hosts file | A collection of category-specific host
## Extensions
The unified hosts file is extensible. You manage extensions by curating the
`extensions/` folder tree. See the `fakenews`, `social`, `gambling`, and `porn` extension
folders.
The unified hosts file is extensible. Extensions are used to block domains by category.
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
## Generate your own unified hosts file
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.txt
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
To run unit tests, in the top level directory, just run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -100,10 +119,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -130,9 +145,8 @@ Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
@@ -208,11 +222,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us 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 existance of your remo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -257,9 +271,9 @@ 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.
## Updating hosts file on Windows
@@ -320,7 +334,9 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -330,6 +346,23 @@ 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
@@ -376,6 +409,8 @@ devices under a variety of operating systems.
## Interesting Applications
* [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.
+30105 -24351
View File
File diff suppressed because it is too large Load Diff
+87 -52
View File
@@ -1,12 +1,29 @@
----
**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)
[![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: **March 18 2018**.
* Here's the [raw hosts file with fakenews, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) containing 57,866 entries.
* Last updated: **November 26 2018**.
* Here's the [raw hosts file with fakenews, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-social/hosts) containing 65,930 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
@@ -17,22 +34,22 @@ 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) | 56,046 | [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) | 56,719 | [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) | 57,558 | [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) | 65,584 | [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) | 57,193 | [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) | 58,231 | [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) | 66,257 | [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) | 57,866 | [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) | 67,096 | [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) | 58,705 | [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) | 66,731 | [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) | 67,769 | [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) | 59,378 | [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) | 67,404 | [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) | 68,243 | [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) | 68,916 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 64,102 | [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) | 64,771 | [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) | 66,368 | [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) | 74,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) | 65,261 | [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) | 67,037 | [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) | 75,051 | [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) | 65,930 | [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) | 76,648 | [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) | 67,527 | [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) | 75,540 | [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) | 77,317 | [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) | 68,196 | [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) | 76,209 | [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) | 77,806 | [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) | 78,475 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -46,51 +63,53 @@ 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](http://www.malwaredomainlist.com/) | [raw](http://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](http://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on 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)
add.Spam | Spam sites based on 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.org | How to make the internet not suck (as much). |[link](http://someonewhocares.org/hosts/) | [raw](http://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
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)
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://github.com/ZeroDot1/CoinBlockerLists) | [raw](https://raw.githubusercontent.com/ZeroDot1/CoinBlockerLists/master/hosts_browser) | frequently | GPLv3 | [issues](https://github.com/ZeroDot1/CoinBlockerLists/issues)
tyzbit | Microsoft tracking domains. A fork of this repo providing additional data. |[link](https://github.com/tyzbit/hosts/blob/master/data/tyzbit/hosts) | [raw](https://raw.githubusercontent.com/tyzbit/hosts/master/data/tyzbit/hosts) | rarely | | [issues]()
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
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 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)
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 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)
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)
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)
## Extensions
The unified hosts file is extensible. You manage extensions by curating the
`extensions/` folder tree. See the `fakenews`, `social`, `gambling`, and `porn` extension
folders.
The unified hosts file is extensible. Extensions are used to block domains by category.
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
## Generate your own unified hosts file
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.txt
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
To run unit tests, in the top level directory, just run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -98,10 +117,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -128,9 +143,8 @@ Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
@@ -206,11 +220,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us 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 existance of your remo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -255,9 +269,9 @@ 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.
## Updating hosts file on Windows
@@ -318,7 +332,9 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -328,6 +344,23 @@ 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
@@ -374,6 +407,8 @@ devices under a variety of operating systems.
## Interesting Applications
* [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.
+30088 -24330
View File
File diff suppressed because it is too large Load Diff
+87 -52
View File
@@ -1,12 +1,29 @@
----
**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)
[![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: **March 18 2018**.
* Here's the [raw hosts file with fakenews extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) containing 56,719 entries.
* Last updated: **November 26 2018**.
* Here's the [raw hosts file with fakenews extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts) containing 64,771 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
@@ -17,22 +34,22 @@ 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) | 56,046 | [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) | 56,719 | [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) | 57,558 | [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) | 65,584 | [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) | 57,193 | [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) | 58,231 | [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) | 66,257 | [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) | 57,866 | [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) | 67,096 | [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) | 58,705 | [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) | 66,731 | [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) | 67,769 | [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) | 59,378 | [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) | 67,404 | [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) | 68,243 | [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) | 68,916 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 64,102 | [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) | 64,771 | [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) | 66,368 | [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) | 74,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) | 65,261 | [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) | 67,037 | [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) | 75,051 | [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) | 65,930 | [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) | 76,648 | [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) | 67,527 | [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) | 75,540 | [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) | 77,317 | [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) | 68,196 | [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) | 76,209 | [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) | 77,806 | [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) | 78,475 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -46,50 +63,52 @@ 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](http://www.malwaredomainlist.com/) | [raw](http://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](http://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on 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)
add.Spam | Spam sites based on 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.org | How to make the internet not suck (as much). |[link](http://someonewhocares.org/hosts/) | [raw](http://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
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)
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://github.com/ZeroDot1/CoinBlockerLists) | [raw](https://raw.githubusercontent.com/ZeroDot1/CoinBlockerLists/master/hosts_browser) | frequently | GPLv3 | [issues](https://github.com/ZeroDot1/CoinBlockerLists/issues)
tyzbit | Microsoft tracking domains. A fork of this repo providing additional data. |[link](https://github.com/tyzbit/hosts/blob/master/data/tyzbit/hosts) | [raw](https://raw.githubusercontent.com/tyzbit/hosts/master/data/tyzbit/hosts) | rarely | | [issues]()
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
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 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)
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 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)
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)
Fake News | An in-progress collection of fake news outlets. |[link](https://github.com/marktron/fakenews) | [raw](https://raw.githubusercontent.com/marktron/fakenews/master/fakenews) | occasional | MIT | [issues](https://github.com/marktron/fakenews/issues)
## Extensions
The unified hosts file is extensible. You manage extensions by curating the
`extensions/` folder tree. See the `fakenews`, `social`, `gambling`, and `porn` extension
folders.
The unified hosts file is extensible. Extensions are used to block domains by category.
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
## Generate your own unified hosts file
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.txt
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
To run unit tests, in the top level directory, just run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -97,10 +116,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -127,9 +142,8 @@ Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
@@ -205,11 +219,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us 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 existance of your remo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -254,9 +268,9 @@ 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.
## Updating hosts file on Windows
@@ -317,7 +331,9 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -327,6 +343,23 @@ 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
@@ -373,6 +406,8 @@ devices under a variety of operating systems.
## Interesting Applications
* [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.
File diff suppressed because it is too large Load Diff
+87 -52
View File
@@ -1,12 +1,29 @@
----
**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)
[![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: **March 18 2018**.
* Here's the [raw hosts file with gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) containing 68,243 entries.
* Last updated: **November 26 2018**.
* Here's the [raw hosts file with gambling, porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn-social/hosts) containing 77,806 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
@@ -17,22 +34,22 @@ 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) | 56,046 | [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) | 56,719 | [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) | 57,558 | [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) | 65,584 | [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) | 57,193 | [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) | 58,231 | [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) | 66,257 | [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) | 57,866 | [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) | 67,096 | [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) | 58,705 | [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) | 66,731 | [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) | 67,769 | [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) | 59,378 | [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) | 67,404 | [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) | 68,243 | [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) | 68,916 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 64,102 | [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) | 64,771 | [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) | 66,368 | [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) | 74,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) | 65,261 | [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) | 67,037 | [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) | 75,051 | [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) | 65,930 | [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) | 76,648 | [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) | 67,527 | [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) | 75,540 | [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) | 77,317 | [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) | 68,196 | [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) | 76,209 | [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) | 77,806 | [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) | 78,475 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -46,20 +63,20 @@ 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](http://www.malwaredomainlist.com/) | [raw](http://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](http://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on 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)
add.Spam | Spam sites based on 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.org | How to make the internet not suck (as much). |[link](http://someonewhocares.org/hosts/) | [raw](http://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
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)
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://github.com/ZeroDot1/CoinBlockerLists) | [raw](https://raw.githubusercontent.com/ZeroDot1/CoinBlockerLists/master/hosts_browser) | frequently | GPLv3 | [issues](https://github.com/ZeroDot1/CoinBlockerLists/issues)
tyzbit | Microsoft tracking domains. A fork of this repo providing additional data. |[link](https://github.com/tyzbit/hosts/blob/master/data/tyzbit/hosts) | [raw](https://raw.githubusercontent.com/tyzbit/hosts/master/data/tyzbit/hosts) | rarely | | [issues]()
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
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 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)
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 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)
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)
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)
@@ -69,31 +86,33 @@ Sinfonietta's social media blocking hosts file | A collection of category-specif
## Extensions
The unified hosts file is extensible. You manage extensions by curating the
`extensions/` folder tree. See the `fakenews`, `social`, `gambling`, and `porn` extension
folders.
The unified hosts file is extensible. Extensions are used to block domains by category.
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
## Generate your own unified hosts file
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.txt
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
To run unit tests, in the top level directory, just run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -101,10 +120,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -131,9 +146,8 @@ Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
@@ -209,11 +223,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us 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 existance of your remo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -258,9 +272,9 @@ 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.
## Updating hosts file on Windows
@@ -321,7 +335,9 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -331,6 +347,23 @@ 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
@@ -377,6 +410,8 @@ devices under a variety of operating systems.
## Interesting Applications
* [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.
+31703 -24454
View File
File diff suppressed because it is too large Load Diff
+87 -52
View File
@@ -1,12 +1,29 @@
----
**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)
[![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: **March 18 2018**.
* Here's the [raw hosts file with gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) containing 67,096 entries.
* Last updated: **November 26 2018**.
* Here's the [raw hosts file with gambling, porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-porn/hosts) containing 76,648 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
@@ -17,22 +34,22 @@ 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) | 56,046 | [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) | 56,719 | [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) | 57,558 | [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) | 65,584 | [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) | 57,193 | [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) | 58,231 | [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) | 66,257 | [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) | 57,866 | [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) | 67,096 | [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) | 58,705 | [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) | 66,731 | [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) | 67,769 | [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) | 59,378 | [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) | 67,404 | [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) | 68,243 | [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) | 68,916 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 64,102 | [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) | 64,771 | [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) | 66,368 | [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) | 74,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) | 65,261 | [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) | 67,037 | [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) | 75,051 | [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) | 65,930 | [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) | 76,648 | [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) | 67,527 | [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) | 75,540 | [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) | 77,317 | [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) | 68,196 | [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) | 76,209 | [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) | 77,806 | [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) | 78,475 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -46,20 +63,20 @@ 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](http://www.malwaredomainlist.com/) | [raw](http://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](http://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on 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)
add.Spam | Spam sites based on 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.org | How to make the internet not suck (as much). |[link](http://someonewhocares.org/hosts/) | [raw](http://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
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)
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://github.com/ZeroDot1/CoinBlockerLists) | [raw](https://raw.githubusercontent.com/ZeroDot1/CoinBlockerLists/master/hosts_browser) | frequently | GPLv3 | [issues](https://github.com/ZeroDot1/CoinBlockerLists/issues)
tyzbit | Microsoft tracking domains. A fork of this repo providing additional data. |[link](https://github.com/tyzbit/hosts/blob/master/data/tyzbit/hosts) | [raw](https://raw.githubusercontent.com/tyzbit/hosts/master/data/tyzbit/hosts) | rarely | | [issues]()
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
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 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)
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 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)
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)
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)
@@ -68,31 +85,33 @@ Sinfonietta's porn blocking hosts file | A collection of category-specific host
## Extensions
The unified hosts file is extensible. You manage extensions by curating the
`extensions/` folder tree. See the `fakenews`, `social`, `gambling`, and `porn` extension
folders.
The unified hosts file is extensible. Extensions are used to block domains by category.
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
## Generate your own unified hosts file
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.txt
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
To run unit tests, in the top level directory, just run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -100,10 +119,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -130,9 +145,8 @@ Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
@@ -208,11 +222,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us 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 existance of your remo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -257,9 +271,9 @@ 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.
## Updating hosts file on Windows
@@ -320,7 +334,9 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -330,6 +346,23 @@ 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
@@ -376,6 +409,8 @@ devices under a variety of operating systems.
## Interesting Applications
* [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.
+30863 -24353
View File
File diff suppressed because it is too large Load Diff
+87 -52
View File
@@ -1,12 +1,29 @@
----
**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)
[![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: **March 18 2018**.
* Here's the [raw hosts file with gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) containing 58,705 entries.
* Last updated: **November 26 2018**.
* Here's the [raw hosts file with gambling, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling-social/hosts) containing 67,527 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
@@ -17,22 +34,22 @@ 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) | 56,046 | [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) | 56,719 | [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) | 57,558 | [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) | 65,584 | [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) | 57,193 | [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) | 58,231 | [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) | 66,257 | [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) | 57,866 | [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) | 67,096 | [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) | 58,705 | [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) | 66,731 | [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) | 67,769 | [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) | 59,378 | [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) | 67,404 | [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) | 68,243 | [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) | 68,916 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 64,102 | [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) | 64,771 | [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) | 66,368 | [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) | 74,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) | 65,261 | [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) | 67,037 | [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) | 75,051 | [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) | 65,930 | [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) | 76,648 | [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) | 67,527 | [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) | 75,540 | [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) | 77,317 | [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) | 68,196 | [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) | 76,209 | [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) | 77,806 | [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) | 78,475 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -46,51 +63,53 @@ 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](http://www.malwaredomainlist.com/) | [raw](http://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](http://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on 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)
add.Spam | Spam sites based on 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.org | How to make the internet not suck (as much). |[link](http://someonewhocares.org/hosts/) | [raw](http://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
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)
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://github.com/ZeroDot1/CoinBlockerLists) | [raw](https://raw.githubusercontent.com/ZeroDot1/CoinBlockerLists/master/hosts_browser) | frequently | GPLv3 | [issues](https://github.com/ZeroDot1/CoinBlockerLists/issues)
tyzbit | Microsoft tracking domains. A fork of this repo providing additional data. |[link](https://github.com/tyzbit/hosts/blob/master/data/tyzbit/hosts) | [raw](https://raw.githubusercontent.com/tyzbit/hosts/master/data/tyzbit/hosts) | rarely | | [issues]()
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
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 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)
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 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)
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)
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)
## Extensions
The unified hosts file is extensible. You manage extensions by curating the
`extensions/` folder tree. See the `fakenews`, `social`, `gambling`, and `porn` extension
folders.
The unified hosts file is extensible. Extensions are used to block domains by category.
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
## Generate your own unified hosts file
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.txt
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
To run unit tests, in the top level directory, just run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -98,10 +117,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -128,9 +143,8 @@ Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
@@ -206,11 +220,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us 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 existance of your remo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -255,9 +269,9 @@ 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.
## Updating hosts file on Windows
@@ -318,7 +332,9 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -328,6 +344,23 @@ 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
@@ -374,6 +407,8 @@ devices under a variety of operating systems.
## Interesting Applications
* [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.
+30847 -24333
View File
File diff suppressed because it is too large Load Diff
+87 -52
View File
@@ -1,12 +1,29 @@
----
**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)
[![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: **March 18 2018**.
* Here's the [raw hosts file with gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) containing 57,558 entries.
* Last updated: **November 26 2018**.
* Here's the [raw hosts file with gambling extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts) containing 66,368 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
@@ -17,22 +34,22 @@ 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) | 56,046 | [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) | 56,719 | [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) | 57,558 | [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) | 65,584 | [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) | 57,193 | [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) | 58,231 | [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) | 66,257 | [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) | 57,866 | [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) | 67,096 | [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) | 58,705 | [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) | 66,731 | [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) | 67,769 | [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) | 59,378 | [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) | 67,404 | [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) | 68,243 | [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) | 68,916 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 64,102 | [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) | 64,771 | [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) | 66,368 | [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) | 74,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) | 65,261 | [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) | 67,037 | [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) | 75,051 | [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) | 65,930 | [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) | 76,648 | [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) | 67,527 | [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) | 75,540 | [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) | 77,317 | [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) | 68,196 | [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) | 76,209 | [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) | 77,806 | [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) | 78,475 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -46,50 +63,52 @@ 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](http://www.malwaredomainlist.com/) | [raw](http://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](http://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on 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)
add.Spam | Spam sites based on 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.org | How to make the internet not suck (as much). |[link](http://someonewhocares.org/hosts/) | [raw](http://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
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)
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://github.com/ZeroDot1/CoinBlockerLists) | [raw](https://raw.githubusercontent.com/ZeroDot1/CoinBlockerLists/master/hosts_browser) | frequently | GPLv3 | [issues](https://github.com/ZeroDot1/CoinBlockerLists/issues)
tyzbit | Microsoft tracking domains. A fork of this repo providing additional data. |[link](https://github.com/tyzbit/hosts/blob/master/data/tyzbit/hosts) | [raw](https://raw.githubusercontent.com/tyzbit/hosts/master/data/tyzbit/hosts) | rarely | | [issues]()
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
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 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)
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 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)
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)
Sinfonietta's gambling blocking hosts file | A collection of category-specific host files. |[link](https://github.com/Sinfonietta/hostfiles) | [raw](https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts) | occasional | MIT | [issues](https://github.com/Sinfonietta/hostfiles/issues)
## Extensions
The unified hosts file is extensible. You manage extensions by curating the
`extensions/` folder tree. See the `fakenews`, `social`, `gambling`, and `porn` extension
folders.
The unified hosts file is extensible. Extensions are used to block domains by category.
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
## Generate your own unified hosts file
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.txt
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
To run unit tests, in the top level directory, just run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -97,10 +116,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -127,9 +142,8 @@ Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
@@ -205,11 +219,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us 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 existance of your remo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -254,9 +268,9 @@ 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.
## Updating hosts file on Windows
@@ -317,7 +331,9 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -327,6 +343,23 @@ 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
@@ -373,6 +406,8 @@ devices under a variety of operating systems.
## Interesting Applications
* [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.
+30959 -24467
View File
File diff suppressed because it is too large Load Diff
+87 -52
View File
@@ -1,12 +1,29 @@
----
**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)
[![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: **March 18 2018**.
* Here's the [raw hosts file with porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) containing 66,731 entries.
* Last updated: **November 26 2018**.
* Here's the [raw hosts file with porn, social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn-social/hosts) containing 75,540 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
@@ -17,22 +34,22 @@ 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) | 56,046 | [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) | 56,719 | [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) | 57,558 | [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) | 65,584 | [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) | 57,193 | [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) | 58,231 | [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) | 66,257 | [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) | 57,866 | [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) | 67,096 | [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) | 58,705 | [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) | 66,731 | [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) | 67,769 | [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) | 59,378 | [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) | 67,404 | [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) | 68,243 | [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) | 68,916 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 64,102 | [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) | 64,771 | [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) | 66,368 | [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) | 74,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) | 65,261 | [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) | 67,037 | [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) | 75,051 | [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) | 65,930 | [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) | 76,648 | [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) | 67,527 | [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) | 75,540 | [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) | 77,317 | [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) | 68,196 | [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) | 76,209 | [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) | 77,806 | [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) | 78,475 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -46,20 +63,20 @@ 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](http://www.malwaredomainlist.com/) | [raw](http://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](http://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on 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)
add.Spam | Spam sites based on 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.org | How to make the internet not suck (as much). |[link](http://someonewhocares.org/hosts/) | [raw](http://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
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)
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://github.com/ZeroDot1/CoinBlockerLists) | [raw](https://raw.githubusercontent.com/ZeroDot1/CoinBlockerLists/master/hosts_browser) | frequently | GPLv3 | [issues](https://github.com/ZeroDot1/CoinBlockerLists/issues)
tyzbit | Microsoft tracking domains. A fork of this repo providing additional data. |[link](https://github.com/tyzbit/hosts/blob/master/data/tyzbit/hosts) | [raw](https://raw.githubusercontent.com/tyzbit/hosts/master/data/tyzbit/hosts) | rarely | | [issues]()
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
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 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)
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 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)
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)
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)
@@ -68,31 +85,33 @@ Sinfonietta's social media blocking hosts file | A collection of category-specif
## Extensions
The unified hosts file is extensible. You manage extensions by curating the
`extensions/` folder tree. See the `fakenews`, `social`, `gambling`, and `porn` extension
folders.
The unified hosts file is extensible. Extensions are used to block domains by category.
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
## Generate your own unified hosts file
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.txt
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
To run unit tests, in the top level directory, just run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -100,10 +119,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -130,9 +145,8 @@ Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
@@ -208,11 +222,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us 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 existance of your remo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -257,9 +271,9 @@ 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.
## Updating hosts file on Windows
@@ -320,7 +334,9 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -330,6 +346,23 @@ 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
@@ -376,6 +409,8 @@ devices under a variety of operating systems.
## Interesting Applications
* [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.
+30944 -24447
View File
File diff suppressed because it is too large Load Diff
+87 -52
View File
@@ -1,12 +1,29 @@
----
**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)
[![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: **March 18 2018**.
* Here's the [raw hosts file with porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) containing 65,584 entries.
* Last updated: **November 26 2018**.
* Here's the [raw hosts file with porn extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts) containing 74,382 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
@@ -17,22 +34,22 @@ 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) | 56,046 | [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) | 56,719 | [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) | 57,558 | [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) | 65,584 | [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) | 57,193 | [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) | 58,231 | [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) | 66,257 | [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) | 57,866 | [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) | 67,096 | [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) | 58,705 | [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) | 66,731 | [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) | 67,769 | [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) | 59,378 | [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) | 67,404 | [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) | 68,243 | [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) | 68,916 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 64,102 | [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) | 64,771 | [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) | 66,368 | [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) | 74,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) | 65,261 | [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) | 67,037 | [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) | 75,051 | [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) | 65,930 | [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) | 76,648 | [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) | 67,527 | [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) | 75,540 | [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) | 77,317 | [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) | 68,196 | [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) | 76,209 | [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) | 77,806 | [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) | 78,475 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -46,20 +63,20 @@ 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](http://www.malwaredomainlist.com/) | [raw](http://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](http://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on 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)
add.Spam | Spam sites based on 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.org | How to make the internet not suck (as much). |[link](http://someonewhocares.org/hosts/) | [raw](http://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
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)
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://github.com/ZeroDot1/CoinBlockerLists) | [raw](https://raw.githubusercontent.com/ZeroDot1/CoinBlockerLists/master/hosts_browser) | frequently | GPLv3 | [issues](https://github.com/ZeroDot1/CoinBlockerLists/issues)
tyzbit | Microsoft tracking domains. A fork of this repo providing additional data. |[link](https://github.com/tyzbit/hosts/blob/master/data/tyzbit/hosts) | [raw](https://raw.githubusercontent.com/tyzbit/hosts/master/data/tyzbit/hosts) | rarely | | [issues]()
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
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 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)
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 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)
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)
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)
@@ -67,31 +84,33 @@ Sinfonietta's porn blocking hosts file | A collection of category-specific host
## Extensions
The unified hosts file is extensible. You manage extensions by curating the
`extensions/` folder tree. See the `fakenews`, `social`, `gambling`, and `porn` extension
folders.
The unified hosts file is extensible. Extensions are used to block domains by category.
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
## Generate your own unified hosts file
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.txt
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
To run unit tests, in the top level directory, just run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -99,10 +118,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -129,9 +144,8 @@ Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
@@ -207,11 +221,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us 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 existance of your remo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -256,9 +270,9 @@ 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.
## Updating hosts file on Windows
@@ -319,7 +333,9 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -329,6 +345,23 @@ 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
@@ -375,6 +408,8 @@ devices under a variety of operating systems.
## Interesting Applications
* [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.
+30103 -24345
View File
File diff suppressed because it is too large Load Diff
+87 -52
View File
@@ -1,12 +1,29 @@
----
**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)
[![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: **March 18 2018**.
* Here's the [raw hosts file with social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) containing 57,193 entries.
* Last updated: **November 26 2018**.
* Here's the [raw hosts file with social extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts) containing 65,261 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
@@ -17,22 +34,22 @@ 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) | 56,046 | [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) | 56,719 | [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) | 57,558 | [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) | 65,584 | [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) | 57,193 | [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) | 58,231 | [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) | 66,257 | [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) | 57,866 | [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) | 67,096 | [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) | 58,705 | [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) | 66,731 | [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) | 67,769 | [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) | 59,378 | [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) | 67,404 | [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) | 68,243 | [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) | 68,916 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 64,102 | [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) | 64,771 | [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) | 66,368 | [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) | 74,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) | 65,261 | [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) | 67,037 | [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) | 75,051 | [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) | 65,930 | [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) | 76,648 | [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) | 67,527 | [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) | 75,540 | [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) | 77,317 | [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) | 68,196 | [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) | 76,209 | [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) | 77,806 | [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) | 78,475 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -46,50 +63,52 @@ 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](http://www.malwaredomainlist.com/) | [raw](http://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](http://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on 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)
add.Spam | Spam sites based on 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.org | How to make the internet not suck (as much). |[link](http://someonewhocares.org/hosts/) | [raw](http://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
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)
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://github.com/ZeroDot1/CoinBlockerLists) | [raw](https://raw.githubusercontent.com/ZeroDot1/CoinBlockerLists/master/hosts_browser) | frequently | GPLv3 | [issues](https://github.com/ZeroDot1/CoinBlockerLists/issues)
tyzbit | Microsoft tracking domains. A fork of this repo providing additional data. |[link](https://github.com/tyzbit/hosts/blob/master/data/tyzbit/hosts) | [raw](https://raw.githubusercontent.com/tyzbit/hosts/master/data/tyzbit/hosts) | rarely | | [issues]()
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
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 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)
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 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)
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)
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)
## Extensions
The unified hosts file is extensible. You manage extensions by curating the
`extensions/` folder tree. See the `fakenews`, `social`, `gambling`, and `porn` extension
folders.
The unified hosts file is extensible. Extensions are used to block domains by category.
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
## Generate your own unified hosts file
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.txt
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
To run unit tests, in the top level directory, just run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -97,10 +116,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -127,9 +142,8 @@ Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
@@ -205,11 +219,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us 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 existance of your remo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -254,9 +268,9 @@ 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.
## Updating hosts file on Windows
@@ -317,7 +331,9 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -327,6 +343,23 @@ 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
@@ -373,6 +406,8 @@ devices under a variety of operating systems.
## Interesting Applications
* [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.
View File
+1 -1
View File
@@ -3,4 +3,4 @@
echo "Linting repository..."
source activate hosts
flake8
flake8 --max-line-length 120
+1 -1
View File
@@ -5,4 +5,4 @@ conda create -n hosts python=$PYTHON_VERSION || exit 1
source activate hosts
echo "Installing packages..."
conda install mock flake8 beautifulsoup4 lxml
conda install flake8 beautifulsoup4 lxml
+10 -19536
View File
File diff suppressed because it is too large Load Diff
+1528 -38
View File
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -1,9 +1,9 @@
{
"name": "CoinBlocker",
"description": "Simple lists that can help prevent cryptomining in the browser or other applications",
"homeurl": "https://github.com/ZeroDot1/CoinBlockerLists",
"homeurl": "https://gitlab.com/ZeroDot1/CoinBlockerLists",
"frequency": "frequently",
"issues": "https://github.com/ZeroDot1/CoinBlockerLists/issues",
"url": "https://raw.githubusercontent.com/ZeroDot1/CoinBlockerLists/master/hosts_browser",
"issues": "https://gitlab.com/ZeroDot1/CoinBlockerLists/issues",
"url": "https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser",
"license": "GPLv3"
}
+1388 -1220
View File
File diff suppressed because it is too large Load Diff
+823 -268
View File
File diff suppressed because it is too large Load Diff
-5
View File
@@ -1,13 +1,8 @@
### Extra rules for @StevenBlack 's hosts project
### https://github.com/FadeMind/hosts.extras
### UncheckyAds
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 d3oxtn1x3b8d7i.cloudfront.net
0.0.0.0 inno.bisrv.com
0.0.0.0 installer.betterinstaller.com
0.0.0.0 installer.filebulldog.com
+181 -9
View File
@@ -1,27 +1,28 @@
### Extra rules for @StevenBlack 's hosts project
### https://github.com/FadeMind/hosts.extras
### 2o7Net tracking sites based on http://www.hostsfile.org/hosts.html content.
### http://www.makeuseof.com/tag/that-mysterious-2o7-net-tracking-cookie-all-you-need-to-know/
### https://en.wikipedia.org/wiki/Omniture
0.0.0.0 102.112.207.net
0.0.0.0 102.112.2o7.net
0.0.0.0 102.122.2o7.net
0.0.0.0 10xhellometro.112.2o7.net
0.0.0.0 1105governmentinformationgroup.122.2o7.net
0.0.0.0 112.2o7.net
0.0.0.0 192.168.112.2o7.net
0.0.0.0 192.168.122.2o7.net
0.0.0.0 1und1internetag.d3.sc.omtrdc.net
0.0.0.0 2o7.net
0.0.0.0 3gupload.112.2o7.net
0.0.0.0 aarp.122.2o7.net
0.0.0.0 abcotv.hb.omtrdc.net
0.0.0.0 acanales.sc.omtrdc.net
0.0.0.0 acckalaharinet.112.2o7.net
0.0.0.0 aclu.tt.omtrdc.net
0.0.0.0 acpmagazines.112.2o7.net
0.0.0.0 actontv.122.2o7.net
0.0.0.0 adbrite.122.2o7.net
0.0.0.0 adobe.tt.omtrdc.net
0.0.0.0 adobecorp.sc.omtrdc.net
0.0.0.0 adp.112.2o7.net
0.0.0.0 advertisementnl.112.2o7.net
0.0.0.0 advertisingcom.122.2o7.net
0.0.0.0 aehistory.112.2o7.net
0.0.0.0 aetnaaetnaprod2018.112.2o7.net
0.0.0.0 aetv.112.2o7.net
0.0.0.0 affargenus.112.2o7.net
0.0.0.0 affilcrtopcolle.112.2o7.net
@@ -31,11 +32,19 @@
0.0.0.0 agmsnag.112.2o7.net
0.0.0.0 agwebshots.112.2o7.net
0.0.0.0 agyahooag.112.2o7.net
0.0.0.0 ajinomoto.d1.sc.omtrdc.net
0.0.0.0 albanytimesunion.122.2o7.net
0.0.0.0 alchemyworldwide.tt.omtrdc.net
0.0.0.0 allbritton.122.2o7.net
0.0.0.0 amadeus.d2.sc.omtrdc.net
0.0.0.0 amazoncustomerservice.d2.sc.omtrdc.net
0.0.0.0 amazonmerchants.122.2o7.net
0.0.0.0 amazonservices.122.2o7.net
0.0.0.0 amazonshopbop.122.2o7.net
0.0.0.0 amazonwebservices.d2.sc.omtrdc.net
0.0.0.0 amazonwebservicesinc.tt.omtrdc.net
0.0.0.0 amazonwebstore.122.2o7.net
0.0.0.0 amcglobal.sc.omtrdc.net
0.0.0.0 amdvtest.112.2o7.net
0.0.0.0 americaneagleoutfitt.tt.omtrdc.net
0.0.0.0 ameritradeamerivest.112.2o7.net
@@ -93,11 +102,15 @@
0.0.0.0 aolwpnscom.122.2o7.net
0.0.0.0 aolwpnswhatsnew.112.2o7.net
0.0.0.0 aolyedda.122.2o7.net
0.0.0.0 aoncomprod.122.2o7.net
0.0.0.0 apdigitalorg.112.2o7.net
0.0.0.0 apdigitalorgovn.112.2o7.net
0.0.0.0 apnonline.112.2o7.net
0.0.0.0 aporg.112.2o7.net
0.0.0.0 ariba.112.2o7.net
0.0.0.0 arthurmiddletoncapit.tt.omtrdc.net
0.0.0.0 asadventure.tt.omtrdc.net
0.0.0.0 asco.d2.sc.omtrdc.net
0.0.0.0 associatedcontent.112.2o7.net
0.0.0.0 atlanticmedia.122.2o7.net
0.0.0.0 atlassian.122.2o7.net
@@ -115,9 +128,13 @@
0.0.0.0 autoanythingcom.112.2o7.net
0.0.0.0 autobytel.112.2o7.net
0.0.0.0 autobytelcorppopup.112.2o7.net
0.0.0.0 autocarcomprod.112.2o7.net
0.0.0.0 autodesk.tt.omtrdc.net
0.0.0.0 autoscout24.112.2o7.net
0.0.0.0 autoweb.112.2o7.net
0.0.0.0 avgtechnologies.112.2o7.net
0.0.0.0 aviraoperations.d3.sc.omtrdc.net
0.0.0.0 aviva.112.2o7.net
0.0.0.0 avon.112.2o7.net
0.0.0.0 awarenesstech.122.2o7.net
0.0.0.0 babycentercom.112.2o7.net
@@ -125,6 +142,9 @@
0.0.0.0 bankwest.112.2o7.net
0.0.0.0 bbc.112.2o7.net
0.0.0.0 bbg.d1.sc.omtrdc.net
0.0.0.0 bbg.sc.omtrdc.net
0.0.0.0 bbvacolombia.sc.omtrdc.net
0.0.0.0 bcbsks.com.102.112.2o7.net
0.0.0.0 bellglobemediapublishing.122.2o7.net
0.0.0.0 belointeractive.122.2o7.net
0.0.0.0 bertelwissenprod.122.2o7.net
@@ -137,22 +157,32 @@
0.0.0.0 bhgremodel.112.2o7.net
0.0.0.0 bhgscrap.112.2o7.net
0.0.0.0 bigpond.122.2o7.net
0.0.0.0 bitdrive.112.2o7.net
0.0.0.0 bizjournals.112.2o7.net
0.0.0.0 blethenmaine.112.2o7.net
0.0.0.0 bmwmoter.122.2o7.net
0.0.0.0 bnk30livejs.112.2o7.net
0.0.0.0 bnkholic.112.2o7.net
0.0.0.0 bnkicomv2.112.2o7.net
0.0.0.0 bnkr8dev.112.2o7.net
0.0.0.0 bonintnewsktarcom.112.2o7.net
0.0.0.0 bonneville.112.2o7.net
0.0.0.0 bonniercorp.122.2o7.net
0.0.0.0 boostmobile.112.2o7.net
0.0.0.0 borders.112.2o7.net
0.0.0.0 boscovs.com.ssl.sc.omtrdc.net
0.0.0.0 bostoncommonpress.112.2o7.net
0.0.0.0 bostonscientificcorporation.112.2o7.net
0.0.0.0 brangista.122.2o7.net
0.0.0.0 brightcove.112.2o7.net
0.0.0.0 brighthouse.122.2o7.net
0.0.0.0 britishskybroadcasti.tt.omtrdc.net
0.0.0.0 bruceclay.112.2o7.net
0.0.0.0 btbusiness.d1.sc.omtrdc.net
0.0.0.0 btbusiness.tt.omtrdc.net
0.0.0.0 btcom.112.2o7.net
0.0.0.0 btigspresalessandt.112.2o7.net
0.0.0.0 budgetcarhire.112.2o7.net
0.0.0.0 builderonlinecom.112.2o7.net
0.0.0.0 businessweekpoc.112.2o7.net
0.0.0.0 buycom.122.2o7.net
@@ -177,6 +207,7 @@
0.0.0.0 capella.122.2o7.net
0.0.0.0 carbonite.tt.omtrdc.net
0.0.0.0 care2.112.2o7.net
0.0.0.0 carfax.112.2o7.net
0.0.0.0 carlsonradisson.112.2o7.net
0.0.0.0 cartoonnetwork.122.2o7.net
0.0.0.0 cba.122.2o7.net
@@ -187,14 +218,20 @@
0.0.0.0 cbs.112.2o7.net
0.0.0.0 cbscom.112.2o7.net
0.0.0.0 cbsdigitalmedia.112.2o7.net
0.0.0.0 cbsinteractive.hb.omtrdc.net
0.0.0.0 cbsnfl.112.2o7.net
0.0.0.0 cbspgatour.112.2o7.net
0.0.0.0 cbsspln.112.2o7.net
0.0.0.0 cbstelevisiondistribution.112.2o7.net
0.0.0.0 cbtnuggets.tt.omtrdc.net
0.0.0.0 ccrgaviscom.112.2o7.net
0.0.0.0 cdc.112.2o7.net
0.0.0.0 cdn.tt.omtrdc.net
0.0.0.0 cengagecsinfosec.112.2o7.net
0.0.0.0 centricabritishgas.d3.sc.omtrdc.net
0.0.0.0 cfr.112.2o7.net
0.0.0.0 chacha.112.2o7.net
0.0.0.0 channel4.com.ssl.sc.omtrdc.net
0.0.0.0 chchoice.112.2o7.net
0.0.0.0 chghowardjohnson.112.2o7.net
0.0.0.0 chgsupereight.112.2o7.net
@@ -206,8 +243,11 @@
0.0.0.0 ciaocom.122.2o7.net
0.0.0.0 ciaoshopcouk.122.2o7.net
0.0.0.0 ciaoshopit.122.2o7.net
0.0.0.0 cisco.112.2o7.net
0.0.0.0 cisco.sc.omtrdc.net
0.0.0.0 ciscolearningnetwork.tt.omtrdc.net
0.0.0.0 ciscowebex.112.2o7.net
0.0.0.0 citicorpcreditservic.tt.omtrdc.net
0.0.0.0 citimobile.d2.sc.omtrdc.net
0.0.0.0 classicvacations.112.2o7.net
0.0.0.0 classmatescom.112.2o7.net
0.0.0.0 clubmed.112.2o7.net
@@ -215,6 +255,7 @@
0.0.0.0 cmp.112.2o7.net
0.0.0.0 cmpdotnetjunkiescom.112.2o7.net
0.0.0.0 cmpglobalvista.112.2o7.net
0.0.0.0 cmpmedica.112.2o7.net
0.0.0.0 cmtvia.112.2o7.net
0.0.0.0 cnetasiapacific.122.2o7.net
0.0.0.0 cnetaustralia.122.2o7.net
@@ -265,6 +306,7 @@
0.0.0.0 cpusall.112.2o7.net
0.0.0.0 crain.d1.sc.omtrdc.net
0.0.0.0 createthegroup.122.2o7.net
0.0.0.0 creditagricole.tt.omtrdc.net
0.0.0.0 creditcardscom.112.2o7.net
0.0.0.0 cri.d1.sc.omtrdc.net
0.0.0.0 cruisecritic.112.2o7.net
@@ -273,9 +315,12 @@
0.0.0.0 ctvmaincom.112.2o7.net
0.0.0.0 ctvsmokinggun.112.2o7.net
0.0.0.0 ctvtsgtv.112.2o7.net
0.0.0.0 cunda.d3.sc.omtrdc.net
0.0.0.0 cwnetworkmparticle.112.2o7.net
0.0.0.0 cwportal.112.2o7.net
0.0.0.0 cxociocom.112.2o7.net
0.0.0.0 cxocomdev.112.2o7.net
0.0.0.0 cyberagent.122.2o7.net
0.0.0.0 cyberdefender.122.2o7.net
0.0.0.0 dailyheraldpaddockpublication.112.2o7.net
0.0.0.0 daimlerag.122.2o7.net
@@ -290,10 +335,14 @@
0.0.0.0 denverpost.112.2o7.net
0.0.0.0 deseretdigitalmedia.tt.omtrdc.net
0.0.0.0 deseretnews.112.2o7.net
0.0.0.0 developjapan.122.2o7.net
0.0.0.0 dexdexprod.112.2o7.net
0.0.0.0 dgag.112.2o7.net
0.0.0.0 dillards.112.2o7.net
0.0.0.0 directtv.tt.omtrdc.net
0.0.0.0 dis.d1.sc.omtrdc.net
0.0.0.0 discovercard.112.2o7.net
0.0.0.0 disneyinternational.hb.omtrdc.net
0.0.0.0 divx.112.2o7.net
0.0.0.0 dixonscouk.112.2o7.net
0.0.0.0 dmcontactmanagement.122.2o7.net
@@ -305,6 +354,8 @@
0.0.0.0 dotsterdotsteraug08.112.2o7.net
0.0.0.0 dreamhome.112.2o7.net
0.0.0.0 duluthtrading.tt.omtrdc.net
0.0.0.0 dummy.112.2o7.net
0.0.0.0 dunandbradstreet.122.2o7.net
0.0.0.0 eaeacom.112.2o7.net
0.0.0.0 eagamesuk.112.2o7.net
0.0.0.0 eaglemiles.112.2o7.net
@@ -320,8 +371,12 @@
0.0.0.0 ehadvicedev.112.2o7.net
0.0.0.0 eharmony.112.2o7.net
0.0.0.0 eharmony.tt.omtrdc.net
0.0.0.0 ehealthinsurance.tt.omtrdc.net
0.0.0.0 eleconomista.d1.sc.omtrdc.net
0.0.0.0 electronicarts.112.2o7.net
0.0.0.0 elkjop.112.2o7.net
0.0.0.0 eloqua.122.2o7.net
0.0.0.0 eluniversalmx.sc.omtrdc.net
0.0.0.0 emc.122.2o7.net
0.0.0.0 enterprisemediagroup.112.2o7.net
0.0.0.0 entrepreneur.122.2o7.net
@@ -331,6 +386,7 @@
0.0.0.0 eremedia.112.2o7.net
0.0.0.0 eset.122.2o7.net
0.0.0.0 espndotcom.tt.omtrdc.net
0.0.0.0 eucpviveusaprod.112.2o7.net
0.0.0.0 eurostar.122.2o7.net
0.0.0.0 eventbrite.122.2o7.net
0.0.0.0 evepdaggiesports.112.2o7.net
@@ -366,12 +422,14 @@
0.0.0.0 fbfredericksburgcom.112.2o7.net
0.0.0.0 figlobal.112.2o7.net
0.0.0.0 fim.122.2o7.net
0.0.0.0 flipkart.d1.sc.omtrdc.net
0.0.0.0 flyingmag.com.122.2o7.net
0.0.0.0 ford.112.2o7.net
0.0.0.0 foxamw.112.2o7.net
0.0.0.0 foxcom.112.2o7.net
0.0.0.0 foxidol.112.2o7.net
0.0.0.0 foxinteractivemedia.122.2o7.net
0.0.0.0 foxnews.tt.omtrdc.net
0.0.0.0 furniturecom.112.2o7.net
0.0.0.0 furnlevitz.112.2o7.net
0.0.0.0 fusetv.112.2o7.net
@@ -383,8 +441,11 @@
0.0.0.0 geosign.112.2o7.net
0.0.0.0 gifastcompanycom.112.2o7.net
0.0.0.0 giftscom.122.2o7.net
0.0.0.0 gigamon.sc.omtrdc.net
0.0.0.0 gigamon.tt.omtrdc.net
0.0.0.0 gjfastcompanycom.112.2o7.net
0.0.0.0 gjincscobleizer.112.2o7.net
0.0.0.0 gmglobalt3sites.112.2o7.net
0.0.0.0 gmgmacfs.112.2o7.net
0.0.0.0 gmgmacmortgage.112.2o7.net
0.0.0.0 gmgmcom.112.2o7.net
@@ -419,7 +480,9 @@
0.0.0.0 guthyrenker.tt.omtrdc.net
0.0.0.0 hallmarkibmcom.112.2o7.net
0.0.0.0 harconsumer.112.2o7.net
0.0.0.0 harlandclarke.d1.sc.omtrdc.net
0.0.0.0 harpo.122.2o7.net
0.0.0.0 harrahs.112.2o7.net
0.0.0.0 harrahscom.112.2o7.net
0.0.0.0 haymarketbusinesspublications.122.2o7.net
0.0.0.0 hchrmain.112.2o7.net
@@ -434,6 +497,7 @@
0.0.0.0 hickoryfarms.112.2o7.net
0.0.0.0 highbeam.122.2o7.net
0.0.0.0 himedia.112.2o7.net
0.0.0.0 his.112.2o7.net
0.0.0.0 hisnakiamotors.122.2o7.net
0.0.0.0 hm.d1.sc.omtrdc.net
0.0.0.0 hollywood.122.2o7.net
@@ -446,6 +510,7 @@
0.0.0.0 hswmedia.122.2o7.net
0.0.0.0 hulu.112.2o7.net
0.0.0.0 huludev.112.2o7.net
0.0.0.0 hyperlinktech.122.2o7.net
0.0.0.0 ibibo.112.2o7.net
0.0.0.0 ice.112.2o7.net
0.0.0.0 iconhealthfitness.tt.omtrdc.net
@@ -456,11 +521,13 @@
0.0.0.0 imeem.112.2o7.net
0.0.0.0 imiliving.122.2o7.net
0.0.0.0 incisivemedia.112.2o7.net
0.0.0.0 independentdigital.d3.sc.omtrdc.net
0.0.0.0 indigio.122.2o7.net
0.0.0.0 infoworldmediagroup.112.2o7.net
0.0.0.0 infrastrategy.122.2o7.net
0.0.0.0 infratotalduicom.122.2o7.net
0.0.0.0 insiderpagescom.122.2o7.net
0.0.0.0 insightenterprises.tt.omtrdc.net
0.0.0.0 instadia.112.2o7.net
0.0.0.0 intelcorpchan.112.2o7.net
0.0.0.0 intelcorperror.112.2o7.net
@@ -470,18 +537,28 @@
0.0.0.0 internetretailer.d2.sc.omtrdc.net
0.0.0.0 intouchsolutions.112.2o7.net
0.0.0.0 intuitinc.122.2o7.net
0.0.0.0 iodatadevice.d2.sc.omtrdc.net
0.0.0.0 ipcmarieclaireprod.122.2o7.net
0.0.0.0 ipcmedia.122.2o7.net
0.0.0.0 ipcnowprod.122.2o7.net
0.0.0.0 ipcuncut.122.2o7.net
0.0.0.0 ipcwebuserprod.122.2o7.net
0.0.0.0 ipcyachtingworldprod.122.2o7.net
0.0.0.0 iqdigitalmediamarketinggmbh.sc.omtrdc.net
0.0.0.0 isaca.sc.omtrdc.net
0.0.0.0 isaca.tt.omtrdc.net
0.0.0.0 itmedia.122.2o7.net
0.0.0.0 itv.112.2o7.net
0.0.0.0 iusacomlive.112.2o7.net
0.0.0.0 ivillageglobal.112.2o7.net
0.0.0.0 jaccs.122.2o7.net
0.0.0.0 jackpot.112.2o7.net
0.0.0.0 jade853gmbh.tt.omtrdc.net
0.0.0.0 jamecoelectronics.sc.omtrdc.net
0.0.0.0 jcb.sc.omtrdc.net
0.0.0.0 jcb.tt.omtrdc.net
0.0.0.0 jcom.122.2o7.net
0.0.0.0 jcrewcom.112.2o7.net
0.0.0.0 jcwhitney.112.2o7.net
0.0.0.0 jennycraig.112.2o7.net
0.0.0.0 jetbluecom2.112.2o7.net
@@ -498,14 +575,21 @@
0.0.0.0 journalregistercompany.122.2o7.net
0.0.0.0 jrcdelcotimescom.122.2o7.net
0.0.0.0 jrcom.112.2o7.net
0.0.0.0 jtt.sc.omtrdc.net
0.0.0.0 jtt.tt.omtrdc.net
0.0.0.0 kaboose.112.2o7.net
0.0.0.0 kaspersky.d3.sc.omtrdc.net
0.0.0.0 kbbmain.112.2o7.net
0.0.0.0 kelleybluebook.112.2o7.net
0.0.0.0 kerplat.112.2o7.net
0.0.0.0 keybank.112.2o7.net
0.0.0.0 kiplinger.112.2o7.net
0.0.0.0 konicaminoltahd.122.2o7.net
0.0.0.0 kopticom.122.2o7.net
0.0.0.0 lab88inc.112.2o7.net
0.0.0.0 lakeshore.d1.sc.omtrdc.net
0.0.0.0 landolakescomprod.112.2o7.net
0.0.0.0 landsend.112.2o7.net
0.0.0.0 laptopmag.122.2o7.net
0.0.0.0 lastminengb.112.2o7.net
0.0.0.0 laxnws.112.2o7.net
@@ -518,13 +602,19 @@
0.0.0.0 leaitworldprod.112.2o7.net
0.0.0.0 leeenterprises.112.2o7.net
0.0.0.0 legalzoom.tt.omtrdc.net
0.0.0.0 lenovoappssystemupdateprod.112.2o7.net
0.0.0.0 lenovosimpletapdev.112.2o7.net
0.0.0.0 leveragemarketing.112.2o7.net
0.0.0.0 lgelectronics.122.2o7.net
0.0.0.0 libertyglobalpaneu.tt.omtrdc.net
0.0.0.0 lintv.122.2o7.net
0.0.0.0 livedealcom.112.2o7.net
0.0.0.0 livenation.122.2o7.net
0.0.0.0 logitechlogitechglobal.112.2o7.net
0.0.0.0 lowes.tt.omtrdc.net
0.0.0.0 lucent.122.2o7.net
0.0.0.0 mailtribunecom.112.2o7.net
0.0.0.0 makemytrip.tt.omtrdc.net
0.0.0.0 mapscom2.112.2o7.net
0.0.0.0 marchofdimes.d2.sc.omtrdc.net
0.0.0.0 marinermarketing.112.2o7.net
@@ -535,7 +625,11 @@
0.0.0.0 mashable.d2.sc.omtrdc.net
0.0.0.0 mattressusa.122.2o7.net
0.0.0.0 maxim.122.2o7.net
0.0.0.0 mcafee12.tt.omtrdc.net
0.0.0.0 mcclatchy.112.2o7.net
0.0.0.0 mcdonaldscorporation.sc.omtrdc.net
0.0.0.0 mcdonaldscorporation.tt.omtrdc.net
0.0.0.0 mckinseyknowledge.122.2o7.net
0.0.0.0 mdjacksonville.112.2o7.net
0.0.0.0 mdpparents.112.2o7.net
0.0.0.0 mdstaugustine.112.2o7.net
@@ -548,6 +642,7 @@
0.0.0.0 medhelpinternational.112.2o7.net
0.0.0.0 mediabistro.112.2o7.net
0.0.0.0 mediabistrocom.112.2o7.net
0.0.0.0 mediacorp.112.2o7.net
0.0.0.0 medialogic.122.2o7.net
0.0.0.0 mediamatters.112.2o7.net
0.0.0.0 meetupdev.122.2o7.net
@@ -590,6 +685,7 @@
0.0.0.0 midsen.112.2o7.net
0.0.0.0 milbglobal.112.2o7.net
0.0.0.0 mitsubishi.112.2o7.net
0.0.0.0 mitsubishielectric.112.2o7.net
0.0.0.0 mkcthehomemarketplace.112.2o7.net
0.0.0.0 mkt10.122.2o7.net
0.0.0.0 mlarmani.122.2o7.net
@@ -647,13 +743,16 @@
0.0.0.0 msntrademarketing.112.2o7.net
0.0.0.0 msnwinonecare.112.2o7.net
0.0.0.0 mssbcprod.112.2o7.net
0.0.0.0 msstonojstechnet.112.2o7.net
0.0.0.0 mswindowswolglobal.112.2o7.net
0.0.0.0 mswlspcmktdev.112.2o7.net
0.0.0.0 mswmwpapolloprod.122.2o7.net
0.0.0.0 mtvn.112.2o7.net
0.0.0.0 multiply.112.2o7.net
0.0.0.0 multiview.122.2o7.net
0.0.0.0 mun.122.2o7.net
0.0.0.0 mxmacromedia.112.2o7.net
0.0.0.0 myfamilyancestry.112.2o7.net
0.0.0.0 myfamilycominc.tt.omtrdc.net
0.0.0.0 nandomedia.112.2o7.net
0.0.0.0 nascardigitalsap.d2.sc.omtrdc.net
0.0.0.0 nasdaq.122.2o7.net
@@ -671,12 +770,18 @@
0.0.0.0 natgeovideo.112.2o7.net
0.0.0.0 nationalbankofnewzea.tt.omtrdc.net
0.0.0.0 nationalgeographic.112.2o7.net
0.0.0.0 nationwide.sc.omtrdc.net
0.0.0.0 nautilus.d2.sc.omtrdc.net
0.0.0.0 nautilus.tt.omtrdc.net
0.0.0.0 nbagametimeprod.112.2o7.net
0.0.0.0 nbcume.sc.omtrdc.net
0.0.0.0 nbcuniversal.122.2o7.net
0.0.0.0 neber.112.2o7.net
0.0.0.0 nebnr.112.2o7.net
0.0.0.0 neccorp.112.2o7.net
0.0.0.0 neccorp.tt.omtrdc.net
0.0.0.0 neref.112.2o7.net
0.0.0.0 netappinc.tt.omtrdc.net
0.0.0.0 netgear.122.2o7.net
0.0.0.0 networksolutions.112.2o7.net
0.0.0.0 newcom.122.2o7.net
@@ -692,12 +797,16 @@
0.0.0.0 newyorkmagazine.112.2o7.net
0.0.0.0 nhl.112.2o7.net
0.0.0.0 nielsen.112.2o7.net
0.0.0.0 nihonkogakuin.122.2o7.net
0.0.0.0 nikefootball.112.2o7.net
0.0.0.0 nikefootballglobal.112.2o7.net
0.0.0.0 nikegoddess.112.2o7.net
0.0.0.0 nikehome.112.2o7.net
0.0.0.0 nikerunning.112.2o7.net
0.0.0.0 nikerunningglobal.112.2o7.net
0.0.0.0 nikkei.112.2o7.net
0.0.0.0 nikkei.d1.sc.omtrdc.net
0.0.0.0 nikonjp.112.2o7.net
0.0.0.0 njmvc.112.2o7.net
0.0.0.0 nmanchorage.112.2o7.net
0.0.0.0 nmbakersfieldca.112.2o7.net
@@ -732,6 +841,7 @@
0.0.0.0 novellcom.112.2o7.net
0.0.0.0 nsdldlese.112.2o7.net
0.0.0.0 nttcommunications.122.2o7.net
0.0.0.0 nyandcompany.com.ssl.sc.omtrdc.net
0.0.0.0 nydailynews.d1.sc.omtrdc.net
0.0.0.0 nysun.com.112.2o7.net
0.0.0.0 nytbglobe.112.2o7.net
@@ -761,7 +871,9 @@
0.0.0.0 onetoone.112.2o7.net
0.0.0.0 onlinegurupopularsitecom.112.2o7.net
0.0.0.0 oodpreprod.122.2o7.net
0.0.0.0 opinionlabcc.122.2o7.net
0.0.0.0 optimost.112.2o7.net
0.0.0.0 oracle.112.2o7.net
0.0.0.0 oraclecom.112.2o7.net
0.0.0.0 oracleglobal.112.2o7.net
0.0.0.0 oreck.tt.omtrdc.net
@@ -773,11 +885,14 @@
0.0.0.0 overstockcom.112.2o7.net
0.0.0.0 overturecom.112.2o7.net
0.0.0.0 overturecomvista.112.2o7.net
0.0.0.0 ozon.122.2o7.net
0.0.0.0 paloaltonetworks.d1.sc.omtrdc.net
0.0.0.0 pandasoftware.112.2o7.net
0.0.0.0 parade.122.2o7.net
0.0.0.0 parship.122.2o7.net
0.0.0.0 partygaming.122.2o7.net
0.0.0.0 partygamingglobal.122.2o7.net
0.0.0.0 patagonia.122.2o7.net
0.0.0.0 patrickhillery.112.2o7.net
0.0.0.0 paypal.112.2o7.net
0.0.0.0 pcconnectioncom.112.2o7.net
@@ -795,6 +910,7 @@
0.0.0.0 petfooddirect.d1.sc.omtrdc.net
0.0.0.0 pfizer.122.2o7.net
0.0.0.0 philips.112.2o7.net
0.0.0.0 philipslighting.d3.sc.omtrdc.net
0.0.0.0 phillyburbscom.112.2o7.net
0.0.0.0 phillycom.112.2o7.net
0.0.0.0 phillymedia.112.2o7.net
@@ -804,26 +920,34 @@
0.0.0.0 plsoyfoods.112.2o7.net
0.0.0.0 poacprod.122.2o7.net
0.0.0.0 poconorecordcom.112.2o7.net
0.0.0.0 poloralphlaurenlotusstg.112.2o7.net
0.0.0.0 popcapgames.122.2o7.net
0.0.0.0 popsci.com.122.2o7.net
0.0.0.0 postmedia.sc.omtrdc.net
0.0.0.0 powellsbooks.122.2o7.net
0.0.0.0 poweronemedia.122.2o7.net
0.0.0.0 preferredhotelgroup.d2.sc.omtrdc.net
0.0.0.0 premierfarnell.tt.omtrdc.net
0.0.0.0 premiumtv.122.2o7.net
0.0.0.0 primediabusiness.122.2o7.net
0.0.0.0 primemensfitness.112.2o7.net
0.0.0.0 primestarmagazine.112.2o7.net
0.0.0.0 primetimesolutions.tt.omtrdc.net
0.0.0.0 prisacom.112.2o7.net
0.0.0.0 prisacom.sc.omtrdc.net
0.0.0.0 prnewswire.122.2o7.net
0.0.0.0 productpartnersllc.tt.omtrdc.net
0.0.0.0 pulkauaiworld.112.2o7.net
0.0.0.0 pultheworldlink.112.2o7.net
0.0.0.0 questdsgsupport.112.2o7.net
0.0.0.0 questiacom.112.2o7.net
0.0.0.0 questsoftware.112.2o7.net
0.0.0.0 questsoftware.sc.omtrdc.net
0.0.0.0 qwestfull.112.2o7.net
0.0.0.0 rainbowmedia.122.2o7.net
0.0.0.0 rakuten.112.2o7.net
0.0.0.0 randmcnally.112.2o7.net
0.0.0.0 ranker.sc.omtrdc.net
0.0.0.0 rcci.122.2o7.net
0.0.0.0 rcntelecom.112.2o7.net
0.0.0.0 readersdigest.tt.omtrdc.net
@@ -832,6 +956,8 @@
0.0.0.0 recordeaglecom.112.2o7.net
0.0.0.0 recordnetcom.112.2o7.net
0.0.0.0 recordonlinecom.112.2o7.net
0.0.0.0 recruit.112.2o7.net
0.0.0.0 redhat.sc.omtrdc.net
0.0.0.0 registercom.122.2o7.net
0.0.0.0 registercom.tt.omtrdc.net
0.0.0.0 remodelingonlinecom.112.2o7.net
@@ -840,7 +966,9 @@
0.0.0.0 restoredchurchofgod.112.2o7.net
0.0.0.0 reunion.tt.omtrdc.net
0.0.0.0 reunioncom.112.2o7.net
0.0.0.0 riafinancial.d2.sc.omtrdc.net
0.0.0.0 ringcentral.112.2o7.net
0.0.0.0 ringcentral.tt.omtrdc.net
0.0.0.0 ringierag.112.2o7.net
0.0.0.0 riptownmedia.122.2o7.net
0.0.0.0 riverdeep.112.2o7.net
@@ -870,6 +998,7 @@
0.0.0.0 saxotechtylerpaper.122.2o7.net
0.0.0.0 saxotelegraph.122.2o7.net
0.0.0.0 saxotoledo.122.2o7.net
0.0.0.0 saxounionleader.112.2o7.net
0.0.0.0 saxowatertowndailytimes.122.2o7.net
0.0.0.0 saxowenworld.122.2o7.net
0.0.0.0 saxowesterncommunications.122.2o7.net
@@ -892,9 +1021,11 @@
0.0.0.0 searsholdings.tt.omtrdc.net
0.0.0.0 searskmartcom.112.2o7.net
0.0.0.0 seb.d1.sc.omtrdc.net
0.0.0.0 senshukai.122.2o7.net
0.0.0.0 sento.122.2o7.net
0.0.0.0 sevenoneintermedia.112.2o7.net
0.0.0.0 shawnewspapers.112.2o7.net
0.0.0.0 shell.tt.omtrdc.net
0.0.0.0 shopping.112.2o7.net
0.0.0.0 siemens.d1.sc.omtrdc.net
0.0.0.0 sixapart.112.2o7.net
@@ -902,8 +1033,10 @@
0.0.0.0 skyauction.122.2o7.net
0.0.0.0 skype.tt.omtrdc.net
0.0.0.0 slbbbcom.112.2o7.net
0.0.0.0 slickdeals.sc.omtrdc.net
0.0.0.0 sltravelcom.112.2o7.net
0.0.0.0 smartmoney.112.2o7.net
0.0.0.0 smbc.sc.omtrdc.net
0.0.0.0 smibs.112.2o7.net
0.0.0.0 smokingeverywhere.122.2o7.net
0.0.0.0 smokinggun.122.2o7.net
@@ -912,12 +1045,18 @@
0.0.0.0 snagajob.122.2o7.net
0.0.0.0 snapfish.112.2o7.net
0.0.0.0 sofmap.112.2o7.net
0.0.0.0 softbank.tt.omtrdc.net
0.0.0.0 softbankbb.122.2o7.net
0.0.0.0 softbankbb.d2.sc.omtrdc.net
0.0.0.0 softbanktechnology.112.2o7.net
0.0.0.0 softlayer.d1.sc.omtrdc.net
0.0.0.0 softonic.112.2o7.net
0.0.0.0 sonychina.112.2o7.net
0.0.0.0 sonycorporate.112.2o7.net
0.0.0.0 sonyelectronicssupportus.112.2o7.net
0.0.0.0 sonygs.112.2o7.net
0.0.0.0 sonymediasoftware.112.2o7.net
0.0.0.0 sonypanasia.112.2o7.net
0.0.0.0 sonyscei.112.2o7.net
0.0.0.0 southcoasttodaycom.112.2o7.net
0.0.0.0 spamfighter.112.2o7.net
@@ -927,6 +1066,7 @@
0.0.0.0 sprintglobal.112.2o7.net
0.0.0.0 stampscom.112.2o7.net
0.0.0.0 starz.122.2o7.net
0.0.0.0 stepstone.112.2o7.net
0.0.0.0 stpetersburgtimes.122.2o7.net
0.0.0.0 stubhub.122.2o7.net
0.0.0.0 stylincom.112.2o7.net
@@ -934,14 +1074,17 @@
0.0.0.0 summitbusinessmedia.112.2o7.net
0.0.0.0 sunglobal.112.2o7.net
0.0.0.0 superpages.122.2o7.net
0.0.0.0 superpagesdexknowsprod.122.2o7.net
0.0.0.0 surfline.112.2o7.net
0.0.0.0 survey.122.2o7.net
0.0.0.0 suzukimotor.112.2o7.net
0.0.0.0 svd.112.2o7.net
0.0.0.0 swsoft.122.2o7.net
0.0.0.0 sylvane.122.2o7.net
0.0.0.0 symantec.tt.omtrdc.net
0.0.0.0 sympmsnglobalen.112.2o7.net
0.0.0.0 sympmsnmusic.112.2o7.net
0.0.0.0 synacor.112.2o7.net
0.0.0.0 tacobell.d1.sc.omtrdc.net
0.0.0.0 tangomedia.112.2o7.net
0.0.0.0 tbstv.112.2o7.net
@@ -951,14 +1094,20 @@
0.0.0.0 techreview.112.2o7.net
0.0.0.0 tehomercacom.112.2o7.net
0.0.0.0 tel3adv.112.2o7.net
0.0.0.0 telateladivulgaprod.112.2o7.net
0.0.0.0 tele2nl.112.2o7.net
0.0.0.0 telefloracom.112.2o7.net
0.0.0.0 telefonicauk.d3.sc.omtrdc.net
0.0.0.0 telefonicauklimited.tt.omtrdc.net
0.0.0.0 telegraphmediagroup.d3.sc.omtrdc.net
0.0.0.0 telegraphmediagroupl.tt.omtrdc.net
0.0.0.0 telenor.112.2o7.net
0.0.0.0 tescostores.122.2o7.net
0.0.0.0 tgn.122.2o7.net
0.0.0.0 thayhiltonlongisland.112.2o7.net
0.0.0.0 thayhoteldelcoronado.112.2o7.net
0.0.0.0 thayvenetian.112.2o7.net
0.0.0.0 thechannelcompany.d1.sc.omtrdc.net
0.0.0.0 thedailystarcom.112.2o7.net
0.0.0.0 thegroup.112.2o7.net
0.0.0.0 thelibraryofcongress.122.2o7.net
@@ -991,11 +1140,15 @@
0.0.0.0 torstardigital.122.2o7.net
0.0.0.0 toyotamotorcorporation.122.2o7.net
0.0.0.0 toysrus.tt.omtrdc.net
0.0.0.0 tpciletsgo.112.2o7.net
0.0.0.0 trailblazers.122.2o7.net
0.0.0.0 trailerservicescom.112.2o7.net
0.0.0.0 trane-ir-corp-ingersollrand.112.2o7.net
0.0.0.0 trane.112.2o7.net
0.0.0.0 tranest-schlage-link.112.2o7.net
0.0.0.0 travidia.112.2o7.net
0.0.0.0 trendmicro.tt.omtrdc.net
0.0.0.0 trendmicrojp.d2.sc.omtrdc.net
0.0.0.0 tribuneinteractive.122.2o7.net
0.0.0.0 trinitymirror.112.2o7.net
0.0.0.0 truevalue.d2.sc.omtrdc.net
@@ -1003,11 +1156,15 @@
0.0.0.0 turnerclassic.112.2o7.net
0.0.0.0 turnersports.112.2o7.net
0.0.0.0 tvguide.112.2o7.net
0.0.0.0 ubm.tt.omtrdc.net
0.0.0.0 uolfreeservers.112.2o7.net
0.0.0.0 uoljunocom2.112.2o7.net
0.0.0.0 uolnetzeronet2.112.2o7.net
0.0.0.0 uolphotosite.112.2o7.net
0.0.0.0 upc.d2.sc.omtrdc.net
0.0.0.0 upi.112.2o7.net
0.0.0.0 ups.tt.omtrdc.net
0.0.0.0 usaa.tt.omtrdc.net
0.0.0.0 usatoday1.112.2o7.net
0.0.0.0 usbank.tt.omtrdc.net
0.0.0.0 usdm.122.2o7.net
@@ -1017,6 +1174,10 @@
0.0.0.0 vcommerce.112.2o7.net
0.0.0.0 vectrabank.112.2o7.net
0.0.0.0 verisignwildcard.112.2o7.net
0.0.0.0 veritasim.d1.sc.omtrdc.net
0.0.0.0 veritastechnologiesl.tt.omtrdc.net
0.0.0.0 verizontelecom.tt.omtrdc.net
0.0.0.0 verizonwireless.112.2o7.net
0.0.0.0 verizonwireless.tt.omtrdc.net
0.0.0.0 vermontteddybear.112.2o7.net
0.0.0.0 viaaddictingclips.112.2o7.net
@@ -1044,6 +1205,7 @@
0.0.0.0 viarnd.112.2o7.net
0.0.0.0 viasatsatelliteservices.112.2o7.net
0.0.0.0 viashockwave.112.2o7.net
0.0.0.0 viashockwavekeyhole.112.2o7.net
0.0.0.0 viaspike.112.2o7.net
0.0.0.0 viaukplayer.112.2o7.net
0.0.0.0 viavh1com.112.2o7.net
@@ -1051,14 +1213,21 @@
0.0.0.0 viavh1video.112.2o7.net
0.0.0.0 viay2m.112.2o7.net
0.0.0.0 victoriaadvocate.112.2o7.net
0.0.0.0 videorvrcip.112.2o7.net
0.0.0.0 videotroncom.112.2o7.net
0.0.0.0 vintacom.112.2o7.net
0.0.0.0 vintadream.112.2o7.net
0.0.0.0 virginmedia.112.2o7.net
0.0.0.0 virginmobile.122.2o7.net
0.0.0.0 virginmobileusa.tt.omtrdc.net
0.0.0.0 vision.d1.sc.omtrdc.net
0.0.0.0 vitacost.122.2o7.net
0.0.0.0 vocento.d3.sc.omtrdc.net
0.0.0.0 vodafonegroup.122.2o7.net
0.0.0.0 vodafoneindia.tt.omtrdc.net
0.0.0.0 vodafonenz.122.2o7.net
0.0.0.0 vodafoneuk.tt.omtrdc.net
0.0.0.0 vogelservices.122.2o7.net
0.0.0.0 volkswagen.122.2o7.net
0.0.0.0 vpmc.122.2o7.net
0.0.0.0 walgrns.112.2o7.net
@@ -1080,6 +1249,7 @@
0.0.0.0 westwickfarrow.122.2o7.net
0.0.0.0 whitecastle.122.2o7.net
0.0.0.0 wileypublishing.112.2o7.net
0.0.0.0 williamhill.tt.omtrdc.net
0.0.0.0 winecom.112.2o7.net
0.0.0.0 wineenthusiastcom.112.2o7.net
0.0.0.0 winmpmain.112.2o7.net
@@ -1093,6 +1263,8 @@
0.0.0.0 wwatchcomusa.112.2o7.net
0.0.0.0 wweconsumer.112.2o7.net
0.0.0.0 wwecorp2.112.2o7.net
0.0.0.0 www.ikea.122.2o7.net
0.0.0.0 www.nissan.d3.sc.omtrdc.net
0.0.0.0 xhealth.112.2o7.net
0.0.0.0 xhealthmobiltools.112.2o7.net
0.0.0.0 yamaha.122.2o7.net
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "add.2o7Net",
"description": "2o7Net tracking sites based on http://www.hostsfile.org/hosts.html content.",
"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",
+7 -11
View File
@@ -1,25 +1,21 @@
### Extra rules for @StevenBlack 's hosts project
### https://github.com/FadeMind/hosts.extras
### Dead sites based on http://www.hostsfile.org/hosts.html content.
0.0.0.0 analytic-google.com
0.0.0.0 avast-downloads.com
0.0.0.0 blacksnake.com
0.0.0.0 europcareer.com
0.0.0.0 flashplayer-adobe.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 sunonsunday.co.uk
0.0.0.0 paypai.org
0.0.0.0 sunonsunday.com
0.0.0.0 thesunonsunday.co.uk
0.0.0.0 thesunonsunday.com
0.0.0.0 toolbar.wibiya.com
0.0.0.0 www.analytic-google.com
0.0.0.0 www.avast-downloads.com
0.0.0.0 www.europcareer.com
0.0.0.0 www.flashplayer-adobe.com
0.0.0.0 wwwfacebook.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
0.0.0.0 wwwfacebook.com
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "add.Dead",
"description": "Dead sites based on http://www.hostsfile.org/hosts.html content.",
"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",
+2613 -2929
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "add.Risk",
"description": "Risk content sites based on http://www.hostsfile.org/hosts.html content.",
"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",
+74 -107
View File
@@ -1,107 +1,74 @@
### Extra rules for @StevenBlack 's hosts project
### https://github.com/FadeMind/hosts.extras
### SPAM sites based on http://www.hostsfile.org/hosts.html content.
# File generated with https://github.com/funilrys/PyFunceble
# Date of generation: Mon 12 Feb 14:02:56 UTC 2018
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 amoxicillin-amoxil-buy.com
0.0.0.0 arklighting.co
0.0.0.0 beaverday.biz
0.0.0.0 bigpayout.go2jump.org
0.0.0.0 brandedleadgeneration.com
0.0.0.0 buylasix-online.net
0.0.0.0 clicktshirtprinting.co.uk
0.0.0.0 creditauthpagev3.info
0.0.0.0 credomobile.com
0.0.0.0 dandingo.go2jump.org
0.0.0.0 defenderxtactical.com
0.0.0.0 divisioncore.com
0.0.0.0 ebaychristmas.com
0.0.0.0 email.otherinbox.com
0.0.0.0 fitnesshealthreporter.com
0.0.0.0 freeforums.org
0.0.0.0 generic-onlinenexium.net
0.0.0.0 genericnexium40mg.net
0.0.0.0 go2jump.org
0.0.0.0 gtradersoft.com
0.0.0.0 heartrevitalized.com
0.0.0.0 hudsonleadership.com
0.0.0.0 janeaustenjoy.com
0.0.0.0 jnwky.misterjoy.ru
0.0.0.0 lazyprofits.go2jump.org
0.0.0.0 link.credomobile.com
0.0.0.0 medtecchina.com
0.0.0.0 misterjoy.ru
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 online-buyprednisone.com
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 pngjmz.misterjoy.ru
0.0.0.0 preligions.com
0.0.0.0 profitsitesbiz.com
0.0.0.0 quickloanbank.com
0.0.0.0 redhotfreebies.co.uk
0.0.0.0 reverse-mortgage-info.com
0.0.0.0 securesignupoffers.org
0.0.0.0 sghu.misterjoy.ru
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 va.tawk.to
0.0.0.0 vntanktransport.com
0.0.0.0 vp5.sudohost.com.br
0.0.0.0 vydoxtrial.com
0.0.0.0 whiteboxin.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.beaverday.biz
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.credomobile.com
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.hudsonleadership.com
0.0.0.0 www.janeaustenjoy.com
0.0.0.0 www.medtecchina.com
0.0.0.0 www.misterjoy.ru
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.redhotfreebies.co.uk
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
0.0.0.0 www.whiteboxin.com
0.0.0.0 xyrjtq.misterjoy.ru
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 va.tawk.to
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
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "add.Spam",
"description": "Spam sites based on http://www.hostsfile.org/hosts.html content.",
"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",
File diff suppressed because it is too large Load Diff
+9
View File
@@ -0,0 +1,9 @@
{
"name": "lightswitch05",
"description": "Block ad and tracking domains.",
"homeurl": "https://github.com/lightswitch05/hosts",
"frequency": "occasionally",
"issues": "https://github.com/lightswitch05/hosts/issues",
"url": "https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt",
"license": "Apache-2.0"
}
+1 -34
View File
@@ -1,6 +1,6 @@
# MalwareDomainList.com Hosts List #
# http://www.malwaredomainlist.com/hostslist/hosts.txt #
# Last updated: Wed, 07 Mar 18 15:29:21 +0000 #
# Last updated: Thu, 15 Nov 18 16:23:29 +0000 #
127.0.0.1 localhost
@@ -60,7 +60,6 @@
127.0.0.1 analxxxclipsyjh.dnset.com
127.0.0.1 anshrit.com
127.0.0.1 antalya.ru
127.0.0.1 apexgames.org
127.0.0.1 app.pho8.com
127.0.0.1 arkinsoftware.in
127.0.0.1 art-archiv.ru
@@ -69,7 +68,6 @@
127.0.0.1 associatesexports.com
127.0.0.1 atlcourier.com
127.0.0.1 atyss.barginginfrance.net
127.0.0.1 avokka.com
127.0.0.1 avppet.com
127.0.0.1 axisbuild.com
127.0.0.1 azoos.csheaven.com
@@ -227,7 +225,6 @@
127.0.0.1 ex.technor.com
127.0.0.1 exclaim.goldenteamacademy.cl
127.0.0.1 executivecoaching.co.il
127.0.0.1 exsexytop.tk
127.0.0.1 extreembilisim.com
127.0.0.1 f.gj555.net
127.0.0.1 faiyazahmed.com
@@ -243,7 +240,6 @@
127.0.0.1 files.dsnetwb.com
127.0.0.1 finnhair.co.uk
127.0.0.1 firehouse651.com
127.0.0.1 fkhfgfg.tk
127.0.0.1 flashsavant.com
127.0.0.1 fo5.a1-downloader.org
127.0.0.1 fondazioneciampi.org
@@ -275,7 +271,6 @@
127.0.0.1 gyboo.cruisingsmallship.com
127.0.0.1 gylra.cruisingsmallship.com
127.0.0.1 h1666015.stratoserver.net
127.0.0.1 hana-naveh.com
127.0.0.1 hanulsms.com
127.0.0.1 hardcorepornparty.com
127.0.0.1 harshwhispers.com
@@ -284,7 +279,6 @@
127.0.0.1 helesouurusa.cjb.com
127.0.0.1 hexadl.line55.net
127.0.0.1 higher.dwebsi.tk
127.0.0.1 highflyingfood.com
127.0.0.1 hinsib.com
127.0.0.1 hmora.fred-build.tk
127.0.0.1 hnskorea.co.kr
@@ -337,7 +331,6 @@
127.0.0.1 izzy-cars.nl
127.0.0.1 japanesevehicles.us
127.0.0.1 jdfabrication.com
127.0.0.1 jeanlesigne.com
127.0.0.1 jeansvixens.com
127.0.0.1 jessisjewels.com
127.0.0.1 josip-stadler.org
@@ -369,7 +362,6 @@
127.0.0.1 landisbaptist.com
127.0.0.1 lay.elticket.com.ar
127.0.0.1 lcbcad.co.uk
127.0.0.1 leagleconsulting.com
127.0.0.1 lefos.net
127.0.0.1 legendsdtv.com
127.0.0.1 lexu.goggendorf.at
@@ -377,7 +369,6 @@
127.0.0.1 lifescience.sysu.edu.cn
127.0.0.1 likes.gisnetwork.net
127.0.0.1 linkforme.tk
127.0.0.1 live-dir.tk
127.0.0.1 livre.wasastation.fi
127.0.0.1 loft2126.dedicatedpanel.com
127.0.0.1 losas.cabanaslanina.com.ar
@@ -398,7 +389,6 @@
127.0.0.1 luggagepreview.com
127.0.0.1 lunaticjazz.com
127.0.0.1 luwyou.com
127.0.0.1 lydwood.co.uk
127.0.0.1 m2132.ehgaugysd.net
127.0.0.1 mahindrainsurance.com
127.0.0.1 mailboto.com
@@ -409,7 +399,6 @@
127.0.0.1 marx-brothers.mhwang.com
127.0.0.1 mathenea.com
127.0.0.1 maxisoft.co.uk
127.0.0.1 mbrdot.tk
127.0.0.1 mediatrade.h19.ru
127.0.0.1 mepra.blautechnology.cl
127.0.0.1 merrymilkfoods.com
@@ -471,7 +460,6 @@
127.0.0.1 nowina.info
127.0.0.1 ns1.the-sinner.net
127.0.0.1 ns1.updatesdns.org
127.0.0.1 ns2ns1.tk
127.0.0.1 nt-associates.com
127.0.0.1 nudebeachgalleries.net
127.0.0.1 nugly.barginginfrance.net
@@ -595,21 +583,14 @@
127.0.0.1 sanya.vipc2f.com
127.0.0.1 sarahdaniella.com
127.0.0.1 sasson-cpa.co.il
127.0.0.1 sayherbal.com
127.0.0.1 sbnc.hak.su
127.0.0.1 scaner-do.tk
127.0.0.1 scaner-figy.tk
127.0.0.1 scaner-file.tk
127.0.0.1 scaner-or.tk
127.0.0.1 scaner-sbite.tk
127.0.0.1 scaner-sboom.tk
127.0.0.1 scaner-sdee.tk
127.0.0.1 scaner-tfeed.tk
127.0.0.1 scaner-tgame.tk
127.0.0.1 scanty.colormark.cl
127.0.0.1 scdsfdfgdr12.tk
127.0.0.1 scream.garudamp3.com
127.0.0.1 sdg-translations.com
127.0.0.1 securitywebservices.com
127.0.0.1 seet10.jino.ru
127.0.0.1 semengineers.com
@@ -728,7 +709,6 @@
127.0.0.1 slimxxxtubeyge.ddns.name
127.0.0.1 slimxxxtubeyhz.ddns.name
127.0.0.1 slimxxxtubeyza.ddns.name
127.0.0.1 smartify.org
127.0.0.1 smilll.depozit.hr
127.0.0.1 smrcek.com
127.0.0.1 sn-gzzx.com
@@ -740,7 +720,6 @@
127.0.0.1 spekband.com
127.0.0.1 sportsulsan.co.kr
127.0.0.1 spread.diadanoivabh.com.br
127.0.0.1 spykit.110mb.com
127.0.0.1 srslogisticts.com
127.0.0.1 ssl-6582datamanager.de
127.0.0.1 static.retirementcommunitiesfyi.com
@@ -754,7 +733,6 @@
127.0.0.1 sunny99.cholerik.cz
127.0.0.1 svetyivanrilski.com
127.0.0.1 svision-online.de
127.0.0.1 sysconcalibration.com
127.0.0.1 systemscheckusa.com
127.0.0.1 szinhaz.hu
127.0.0.1 tabex.sopharma.bg
@@ -772,7 +750,6 @@
127.0.0.1 teprom.it
127.0.0.1 terem.eltransbt.ro
127.0.0.1 testtralala.xorg.pl
127.0.0.1 textsex.tk
127.0.0.1 textspeier.de
127.0.0.1 thcextractor.com
127.0.0.1 thcvaporizer.com
@@ -782,7 +759,6 @@
127.0.0.1 timothycopus.aimoo.com
127.0.0.1 titon.info
127.0.0.1 tk-gregoric.si
127.0.0.1 toddscarwash.com
127.0.0.1 tomalinoalambres.com.ar
127.0.0.1 tophostbg.net
127.0.0.1 traff1.com
@@ -910,8 +886,6 @@
127.0.0.1 wallpapers91.com
127.0.0.1 warco.pl
127.0.0.1 wc0x83ghk.homepage.t-online.de
127.0.0.1 web-domain.tk
127.0.0.1 web-fill.tk
127.0.0.1 web-olymp.ru
127.0.0.1 web-sensations.com
127.0.0.1 webcashmaker.com
@@ -962,7 +936,6 @@
127.0.0.1 www.arkinsoftware.in
127.0.0.1 www.assculturaleincontri.it
127.0.0.1 www.atousoft.com
127.0.0.1 www.autoappassionati.it
127.0.0.1 www.bcservice.it
127.0.0.1 www.blueimagen.com
127.0.0.1 www.casamama.nl
@@ -1011,7 +984,6 @@
127.0.0.1 www.hjaoopoa.top
127.0.0.1 www.hospedar.xpg.com.br
127.0.0.1 www.icybrand.eu
127.0.0.1 www.imagerieduroc.com
127.0.0.1 www.inevo.co.il
127.0.0.1 www.infra.by
127.0.0.1 www.jcmarcadolib.com
@@ -1061,14 +1033,12 @@
127.0.0.1 www.racingandclassic.com
127.0.0.1 www.realinnovation.com
127.0.0.1 www.rebeccacella.com
127.0.0.1 www.reifen-simon.com
127.0.0.1 www.rempko.sk
127.0.0.1 www.riccardochinnici.it
127.0.0.1 www.ristoromontebasso.it
127.0.0.1 www.rokus-tgy.hu
127.0.0.1 www.roltek.com.tr
127.0.0.1 www.rooversadvocatuur.nl
127.0.0.1 www.rst-velbert.de
127.0.0.1 www.saemark.is
127.0.0.1 www.salentoeasy.it
127.0.0.1 www.sankyo.gr.jp
@@ -1084,7 +1054,6 @@
127.0.0.1 www.sitepalace.com
127.0.0.1 www.sj88.com
127.0.0.1 www.slivki.com.ua
127.0.0.1 www.smartgvcfunding.com
127.0.0.1 www.smartscan.ro
127.0.0.1 www.sonnoli.com
127.0.0.1 www.spris.com
@@ -1123,8 +1092,6 @@
127.0.0.1 www.zatzy.com
127.0.0.1 www.zctei.com
127.0.0.1 www.zyxyfy.com
127.0.0.1 www12.0zz0.com
127.0.0.1 www8.0zz0.com
127.0.0.1 xamateurpornlic.www1.biz
127.0.0.1 xicaxique.com.br
127.0.0.1 xindalawyer.com
+3 -3
View File
@@ -1,9 +1,9 @@
{
"name": "Malware Domain List",
"description": "Malware Domain List is a non-commercial community project.",
"homeurl": "http://www.malwaredomainlist.com/",
"homeurl": "https://www.malwaredomainlist.com/",
"frequency": "weekly",
"issues": "http://www.malwaredomainlist.com/contact.php",
"url": "http://www.malwaredomainlist.com/hostslist/hosts.txt",
"issues": "https://www.malwaredomainlist.com/contact.php",
"url": "https://www.malwaredomainlist.com/hostslist/hosts.txt",
"license": "'can be used for free by anyone'"
}
+38 -332
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -1,9 +1,9 @@
{
"name": "Dan Pollock – someonewhocares.org",
"name": "Dan Pollock – [someonewhocares](https://someonewhocares.org)",
"description": "How to make the internet not suck (as much).",
"homeurl": "http://someonewhocares.org/hosts/",
"homeurl": "https://someonewhocares.org/hosts/",
"frequency": "frequently",
"issues": "hosts@someonewhocares.org",
"url": "http://someonewhocares.org/hosts/zero/hosts",
"url": "https://someonewhocares.org/hosts/zero/hosts",
"license": "non-commercial with attribution"
}
-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
-8
View File
@@ -1,8 +0,0 @@
{
"name": "tyzbit",
"description": "Microsoft tracking domains. A fork of this repo providing additional data.",
"homeurl": "https://github.com/tyzbit/hosts/blob/master/data/tyzbit/hosts",
"frequency": "rarely",
"issues": "",
"url": "https://raw.githubusercontent.com/tyzbit/hosts/master/data/tyzbit/hosts"
}
+455 -134
View File
File diff suppressed because it is too large Load Diff
+1 -11
View File
@@ -35,7 +35,6 @@
0.0.0.0 awarenessact.com
0.0.0.0 awazetribune.com
0.0.0.0 awdnews.com
0.0.0.0 babylonbee.com
0.0.0.0 badcriminals.com
0.0.0.0 baltimoregazette.com
0.0.0.0 bb4sp.com
@@ -84,7 +83,6 @@
0.0.0.0 conservative101.com
0.0.0.0 conservativebyte.com
0.0.0.0 conservativedailypost.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
@@ -175,7 +173,6 @@
0.0.0.0 holylandnutrition.com
0.0.0.0 humansarefree.com
0.0.0.0 ihavethetruth.com
0.0.0.0 ijr.com
0.0.0.0 illuminati-news.com
0.0.0.0 immediatesafety.org
0.0.0.0 imzansi.co.za
@@ -225,13 +222,13 @@
0.0.0.0 lucidawakenings.net
0.0.0.0 madashellnews.com
0.0.0.0 madworldnews.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 memoryholeblog.com
0.0.0.0 mindenszo.hu
0.0.0.0 moralmatters.org
0.0.0.0 mpidailymagazine.com
0.0.0.0 mrnewswatch.com
@@ -351,7 +348,6 @@
0.0.0.0 theforbiddenknowledge.com
0.0.0.0 thefreepatriot.org
0.0.0.0 thefreethoughtproject.com
0.0.0.0 thefreethoughtproject.com
0.0.0.0 thefrt.com
0.0.0.0 thehardtimes.net
0.0.0.0 theineptowl.com
@@ -371,7 +367,6 @@
0.0.0.0 therealstrategy.com
0.0.0.0 thereporterz.com
0.0.0.0 therightists.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
@@ -412,7 +407,6 @@
0.0.0.0 truthpoliticsnews.com
0.0.0.0 tv.infowars.com
0.0.0.0 twitchy.com
0.0.0.0 twitchy.com
0.0.0.0 uconservative.com
0.0.0.0 ufoholic.com
0.0.0.0 ultimateflashnews.com
@@ -552,11 +546,9 @@
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.lgbtqnation.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.liveleak.com
0.0.0.0 www.lushforlife.com
0.0.0.0 www.mercola.com
0.0.0.0 www.militianews.com
@@ -648,7 +640,6 @@
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.usanewsflash.com
0.0.0.0 www.usanewsinsider.com
0.0.0.0 www.usasupreme.com
0.0.0.0 www.uspoliticslive.com
@@ -659,7 +650,6 @@
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.washingtonexaminer.com
0.0.0.0 www.washingtonsblog.com
0.0.0.0 www.webdaily.com
0.0.0.0 www.wellaware1.com
+748 -2
View File
@@ -1,7 +1,8 @@
# Gambling hosts
# Title: Gambling hosts
# https://www.reddit.com/r/GlobalOffensiveGamble/comments/3d5fmr/list_of_csgo_gambling_websites/
# http://www.top100bookmakers.com/completelist.php
# Updated July 17, 2016
# https://raw.githubusercontent.com/lassekongo83/Frellwits-filter-lists/master/anti-casino-and-betting-hosts-file.txt
# Updated October 24, 2018
127.0.0.1 crownbet.com.au
127.0.0.1 crownbet.com
@@ -118,6 +119,8 @@
127.0.0.1 artemisbet10.com
127.0.0.1 asianbeta.com
127.0.0.1 www.asianbeta.com
127.0.0.1 atg.se
127.0.0.1 www.atg.se
127.0.0.1 axbet.com
127.0.0.1 www.axbet.com
127.0.0.1 bananajackpot.com
@@ -684,6 +687,8 @@
127.0.0.1 daisybingo.com
127.0.0.1 www.daisybingo.com
127.0.0.1 dakotacasino.com
127.0.0.1 dantoto.dk
127.0.0.1 www.dantoto.dk
127.0.0.1 dashbet.com
127.0.0.1 www.dashbet.com
127.0.0.1 desertnightscasino.co.uk
@@ -720,6 +725,8 @@
127.0.0.1 www.eccobet.com
127.0.0.1 ed3688.com
127.0.0.1 www.ed3688.com
127.0.0.1 eestiloto.ee
127.0.0.1 eestiloto.ee
127.0.0.1 efbet.com
127.0.0.1 www.efbet.com
127.0.0.1 egamingbets.com
@@ -772,6 +779,8 @@
127.0.0.1 www.favbet.com
127.0.0.1 favourit.com
127.0.0.1 www.favourit.com
127.0.0.1 fdj.fr
127.0.0.1 www.fdj.fr
127.0.0.1 flemingtonsportsbet.com.au
127.0.0.1 www.flemingtonsportsbet.com.au
127.0.0.1 fonbet.com
@@ -1129,6 +1138,8 @@
127.0.0.1 www.nitrogensports.eu
127.0.0.1 nordicbet.com
127.0.0.1 www.nordicbet.com
127.0.0.1 norsk-tipping.no
127.0.0.1 www.norsk-tipping.no
127.0.0.1 novibet.com
127.0.0.1 www.novibet.com
127.0.0.1 noxwin.com
@@ -1235,6 +1246,8 @@
127.0.0.1 www.redmilebets.com
127.0.0.1 redstarsports.eu
127.0.0.1 www.redstarsports.eu
127.0.0.1 rikstoto.no
127.0.0.1 www.rikstoto.no
127.0.0.1 rivalo.com
127.0.0.1 www.rivalo.com
127.0.0.1 roadbet.com
@@ -1276,6 +1289,8 @@
127.0.0.1 www.setantabet.com
127.0.0.1 sirbobet.com
127.0.0.1 www.sirbobet.com
127.0.0.1 sisal.it
127.0.0.1 www.sisal.it
127.0.0.1 sjbet.at
127.0.0.1 www.sjbet.at
127.0.0.1 skedina.com
@@ -1391,6 +1406,8 @@
127.0.0.1 www.supersportsbook.com
127.0.0.1 superusacasino.com
127.0.0.1 www.superusacasino.com
127.0.0.1 svenskaspel.se
127.0.0.1 www.svenskaspel.se
127.0.0.1 tab.co.nz
127.0.0.1 www.tab.co.nz
127.0.0.1 tab.com.au
@@ -1471,6 +1488,8 @@
127.0.0.1 www.vandersports.com
127.0.0.1 vbet.com
127.0.0.1 www.vbet.com
127.0.0.1 veikkaus.fi
127.0.0.1 www.veikkaus.fi
127.0.0.1 vernons.com
127.0.0.1 www.vernons.com
127.0.0.1 vestabet365.com
@@ -1545,3 +1564,730 @@
127.0.0.1 www.zebrabet.com.au
127.0.0.1 zetpoker.eu
127.0.0.1 www.zetpoker.eu
127.0.0.1 www.betonline.com
127.0.0.1 www.sportsbook.ag
127.0.0.1 www.lasvegassportsbetting.com
127.0.0.1 www.oddsshark.com
127.0.0.1 betting.betfair.com
127.0.0.1 www.offtrackbetting.com
127.0.0.1 m.skybet.com
127.0.0.1 sports.williamhill.com
127.0.0.1 vegas.williamhill.com
127.0.0.1 macau.williamhill.com
127.0.0.1 casino.williamhill.com
127.0.0.1 livecasino.williamhill.com
127.0.0.1 games.williamhill.com
127.0.0.1 bingo.williamhill.com
127.0.0.1 poker.williamhill.com
127.0.0.1 www.sportsbettingdime.com
127.0.0.1 www.sunbets.co.uk
127.0.0.1 www.sportsbookreview.com
127.0.0.1 www.pinnacle.com
127.0.0.1 sblp.intertops.eu
127.0.0.1 www.justbet.co
127.0.0.1 www.wagerweb.eu
127.0.0.1 danskespil.dk
127.0.0.1 www.bodog888.com
127.0.0.1 sports.bwin.com
127.0.0.1 global.138.com
127.0.0.1 www.winner.co.uk
127.0.0.1 en.expekt.com
127.0.0.1 sports.gamebookers.com
127.0.0.1 en.betclic.com
127.0.0.1 www.cloudbet.com
127.0.0.1 www.betcoin.ag
127.0.0.1 www.jetwin.com
127.0.0.1 www.bitcoinrush.io
127.0.0.1 sportsbet.io
127.0.0.1 betregal.com
127.0.0.1 www.betmonarch.com
127.0.0.1 www.betcruise.com
127.0.0.1 www.northbet.com
127.0.0.1 mybookie.ag
127.0.0.1 m.jetbull.com
127.0.0.1 www.betodds.ag
127.0.0.1 www.betplatinum.ag
127.0.0.1 www.gamingclub1.com
127.0.0.1 www.betmylines.com
127.0.0.1 www.alohasportsbook.com
127.0.0.1 www.bet2win.ag
127.0.0.1 www.bigcitysportsbook.com
127.0.0.1 balkanbet.co.rs
127.0.0.1 sport.netbet.co.uk
127.0.0.1 jojobet.com
127.0.0.1 betdna.com
127.0.0.1 www.parimatchplay1.com
127.0.0.1 www.actionbets.com
127.0.0.1 www.azcasino.com
127.0.0.1 sports.br.betboo.com
127.0.0.1 www.betsbc.com
127.0.0.1 www.linesmaker.eu
127.0.0.1 www.playersonly.ag
127.0.0.1 www.superbook.ag
127.0.0.1 www.mpcasino.com
127.0.0.1 www.vacasino.com
127.0.0.1 www.gotoentertainment.com
127.0.0.1 www.casinony.com
127.0.0.1 www.japancasino.com
127.0.0.1 www.dccasino.com
127.0.0.1 www.mexicocasino.com
127.0.0.1 www.bamasportsbook.com
127.0.0.1 www.indycasino.com
127.0.0.1 www.12bet.uk
127.0.0.1 www.wagerup.eu
127.0.0.1 www.crsportsbet.ag
127.0.0.1 zenitbet.com
127.0.0.1 www.admiralspot.com
127.0.0.1 www.livesports.ag
127.0.0.1 www.10bet.co.uk
127.0.0.1 www.mrgreen.com
127.0.0.1 casino.betway.com
127.0.0.1 livecasino.betway.com
127.0.0.1 sports.betway.com
127.0.0.1 vegas.betway.com
127.0.0.1 poker.betway.com
127.0.0.1 plus.betway.com
127.0.0.1 m.boylesports.com
127.0.0.1 www.karamba.com
127.0.0.1 www.unibet.co.uk
127.0.0.1 www.grosvenorcasinos.com
127.0.0.1 www.royalpanda.com
127.0.0.1 livebetting.bwin.com
127.0.0.1 thebettingguy.co.uk
127.0.0.1 www.betstars.uk
127.0.0.1 www.pokerstarscasino.uk
127.0.0.1 www.pokerstars.uk
127.0.0.1 www.uk-k8.com
127.0.0.1 energybet.com
127.0.0.1 wwin.com
127.0.0.1 www.stakers.com
127.0.0.1 www.32red.com
127.0.0.1 www.marathonbet.co.uk
127.0.0.1 sports.gentingcasino.com
127.0.0.1 www.redzonesports.bet
127.0.0.1 sports.vernons.com
127.0.0.1 casino.vernons.com
127.0.0.1 bingo.vernons.com
127.0.0.1 www.bethard.com
127.0.0.1 21bet.com
127.0.0.1 21casino.com
127.0.0.1 21prive.com
127.0.0.1 22bet.com
127.0.0.1 22betpartners.com
127.0.0.1 24bettle.com
127.0.0.1 666casino.com
127.0.0.1 777.com
127.0.0.1 7godscasino.com
127.0.0.1 7jackpots.com
127.0.0.1 888.com
127.0.0.1 agentspinner.com
127.0.0.1 ahacasino.com
127.0.0.1 ahtigames.com
127.0.0.1 alfcasino.com
127.0.0.1 barbadoscasino.com
127.0.0.1 b-bets.com
127.0.0.1 bertil.com
127.0.0.1 bestcasino.com
127.0.0.1 betfinal.com
127.0.0.1 bethard.com
127.0.0.1 betive.com
127.0.0.1 betser.com
127.0.0.1 betspawn.com
127.0.0.1 betzest.com
127.0.0.1 bgo.com
127.0.0.1 bingo.com
127.0.0.1 bobcasino.com
127.0.0.1 bobregister.com
127.0.0.1 buckandbutler.com
127.0.0.1 campeonbet.com
127.0.0.1 campobet.com
127.0.0.1 cashiopeia.com
127.0.0.1 cashmio.com
127.0.0.1 casilando.com
127.0.0.1 casimba.com
127.0.0.1 casiniabet.com
127.0.0.1 casinoandfriends.com
127.0.0.1 casinocalzone.com
127.0.0.1 casinocruise.com
127.0.0.1 casinoeuro.com
127.0.0.1 casinoheroes.com
127.0.0.1 casinojefe.com
127.0.0.1 casinoland.com
127.0.0.1 casinolasvegas.com
127.0.0.1 casinolasvegas.no
127.0.0.1 casinopop.com
127.0.0.1 casino-pp.net
127.0.0.1 casinoroom.com
127.0.0.1 casinostugan.com
127.0.0.1 casinotown.se
127.0.0.1 casinsi.com
127.0.0.1 casumo.com
127.0.0.1 chancehill.com
127.0.0.1 chanz.com
127.0.0.1 cheekywin.com
127.0.0.1 cherrycasino.com
127.0.0.1 codeta.com
127.0.0.1 coolbet.com
127.0.0.1 cozino.com
127.0.0.1 dealerscasino.com
127.0.0.1 diamond7casino.com
127.0.0.1 dreamjackpot.com
127.0.0.1 dreamvegas.com
127.0.0.1 dreamz.com
127.0.0.1 duelz.com
127.0.0.1 dunder.com
127.0.0.1 esportsbetting.com
127.0.0.1 euroslots.com
127.0.0.1 fansbet.com
127.0.0.1 fikacasino.com
127.0.0.1 flumecasino.com
127.0.0.1 folkeautomaten.com
127.0.0.1 frankcasino.com
127.0.0.1 frankfred.com
127.0.0.1 freakyvegas.com
127.0.0.1 fruitycasa.com
127.0.0.1 fsport.net
127.0.0.1 funcasino.com
127.0.0.1 gate777.com
127.0.0.1 genesiscasino.com
127.0.0.1 getlucky.com
127.0.0.1 glimmercasino.com
127.0.0.1 goliathcasino.com
127.0.0.1 hajper.com
127.0.0.1 hellocasino.com
127.0.0.1 heyspin.com
127.0.0.1 highroller.com
127.0.0.1 hopa.com
127.0.0.1 igame.com
127.0.0.1 igame.se
127.0.0.1 ikibu.com
127.0.0.1 instacasino.com
127.0.0.1 intercasino.com
127.0.0.1 jackpotcity.com
127.0.0.1 johnslots.com
127.0.0.1 justcasino.com
127.0.0.1 kaboo.com
127.0.0.1 kaiserslots.com
127.0.0.1 karamba.com
127.0.0.1 karjalakasino.com
127.0.0.1 karlcasino.com
127.0.0.1 lapalingo.com
127.0.0.1 legolas.bet
127.0.0.1 leovegas.com
127.0.0.1 letsbet.com
127.0.0.1 livelounge.com
127.0.0.1 lsbet690.com
127.0.0.1 luckland.com
127.0.0.1 luckycasino.com
127.0.0.1 luckydino.com
127.0.0.1 luckyland.co.uk
127.0.0.1 luckylouis.com
127.0.0.1 luckymeslots.com
127.0.0.1 luckyniki.com
127.0.0.1 luckywinslots.com
127.0.0.1 magicred.com
127.0.0.1 malinasports.com
127.0.0.1 mamamiabingo.com
127.0.0.1 mansionbet.com
127.0.0.1 mariacasino.com
127.0.0.1 metalcasino.com
127.0.0.1 miamidicecasino.com
127.0.0.1 miamidice.com
127.0.0.1 mobil6000.com
127.0.0.1 mobilautomaten.com
127.0.0.1 mobilebet.com
127.0.0.1 mobocasino.com
127.0.0.1 montecarlocasino.com
127.0.0.1 mr.bet
127.0.0.1 mrgreen.com
127.0.0.1 mrmega.com
127.0.0.1 mrmobi.com
127.0.0.1 mrplay.com
127.0.0.1 mrslot.com
127.0.0.1 mrwin.com
127.0.0.1 mychance.com
127.0.0.1 n1casino.com
127.0.0.1 nextcasino.com
127.0.0.1 nightrush.com
127.0.0.1 ninjacasino.com
127.0.0.1 noaccountcasino.com
127.0.0.1 norgesautomaten.com
127.0.0.1 norgesspill.com
127.0.0.1 norskeautomater.com
127.0.0.1 norskespilleautomater.com
127.0.0.1 nyspins.com
127.0.0.1 olaspill.com
127.0.0.1 olybet.eu
127.0.0.1 omniacasino.com
127.0.0.1 ovocasino.com
127.0.0.1 pinnacle.com
127.0.0.1 piratespin.com
127.0.0.1 playclub.com
127.0.0.1 playfrank.com
127.0.0.1 playgrandcasino.com
127.0.0.1 playojo.com
127.0.0.1 pocketvegas.co.uk
127.0.0.1 potsofluck.com
127.0.0.1 primeslots.com
127.0.0.1 promotions.epic.partners
127.0.0.1 queenvegas.com
127.0.0.1 redkings.com
127.0.0.1 redspins.com
127.0.0.1 ridika.com
127.0.0.1 rizk.com
127.0.0.1 rolla.com
127.0.0.1 royalpanda.com
127.0.0.1 royalslots.com
127.0.0.1 royrichie.com
127.0.0.1 rush777.com
127.0.0.1 scandibet.com
127.0.0.1 scasino.com
127.0.0.1 sirjackpot.com
127.0.0.1 slotplanet.com
127.0.0.1 slotsheaven.com
127.0.0.1 slotsino.co.uk
127.0.0.1 slotsmagic.com
127.0.0.1 slotsons.com
127.0.0.1 slotv.com
127.0.0.1 sloty.com
127.0.0.1 snabbare.com
127.0.0.1 speedybet.com
127.0.0.1 spela.com
127.0.0.1 spinit.com
127.0.0.1 spinland.com
127.0.0.1 spinprincess.com
127.0.0.1 spinrider.com
127.0.0.1 spinson.com
127.0.0.1 spinstation.com
127.0.0.1 spinzilla.com
127.0.0.1 storspelare.com
127.0.0.1 storspiller.com
127.0.0.1 surf.casino
127.0.0.1 sveacasino.se
127.0.0.1 svedalacasino.com
127.0.0.1 swedencasino.com
127.0.0.1 swedencasino.se
127.0.0.1 sverigeautomaten.com
127.0.0.1 sverigecasino.com
127.0.0.1 sverigekronan.com
127.0.0.1 thrills.com
127.0.0.1 toto2.com
127.0.0.1 ttr.casino
127.0.0.1 vegashero.com
127.0.0.1 verajohn.com
127.0.0.1 videoslots.com
127.0.0.1 vikingslots.com
127.0.0.1 viks.com
127.0.0.1 wildjackpots.com
127.0.0.1 vinnarum.com
127.0.0.1 wixstars.com
127.0.0.1 voodoodreams.com
127.0.0.1 wunderino.com
127.0.0.1 yakocasino.com
127.0.0.1 yeticasino.com
127.0.0.1 yobetit.com
127.0.0.1 zodiacu.com
127.0.0.1 www.21bet.com
127.0.0.1 www.21casino.com
127.0.0.1 www.21prive.com
127.0.0.1 www.22bet.com
127.0.0.1 www.22betpartners.com
127.0.0.1 www.24bettle.com
127.0.0.1 www.666casino.com
127.0.0.1 www.777.com
127.0.0.1 www.7godscasino.com
127.0.0.1 www.7jackpots.com
127.0.0.1 www.888.com
127.0.0.1 www.agentspinner.com
127.0.0.1 www.ahacasino.com
127.0.0.1 www.ahtigames.com
127.0.0.1 www.alfcasino.com
127.0.0.1 www.barbadoscasino.com
127.0.0.1 www.b-bets.com
127.0.0.1 www.bertil.com
127.0.0.1 www.bestcasino.com
127.0.0.1 www.betfinal.com
127.0.0.1 www.betive.com
127.0.0.1 www.betser.com
127.0.0.1 www.betspawn.com
127.0.0.1 www.betzest.com
127.0.0.1 www.bgo.com
127.0.0.1 www.bingo.com
127.0.0.1 www.bobcasino.com
127.0.0.1 www.bobregister.com
127.0.0.1 www.buckandbutler.com
127.0.0.1 www.campeonbet.com
127.0.0.1 www.campobet.com
127.0.0.1 www.cashiopeia.com
127.0.0.1 www.cashmio.com
127.0.0.1 www.casilando.com
127.0.0.1 www.casimba.com
127.0.0.1 www.casiniabet.com
127.0.0.1 www.casinoandfriends.com
127.0.0.1 www.casinocalzone.com
127.0.0.1 www.casinocruise.com
127.0.0.1 www.casinoeuro.com
127.0.0.1 www.casinoheroes.com
127.0.0.1 www.casinojefe.com
127.0.0.1 www.casinoland.com
127.0.0.1 www.casinolasvegas.com
127.0.0.1 www.casinolasvegas.no
127.0.0.1 www.casinopop.com
127.0.0.1 www.casino-pp.net
127.0.0.1 www.casinoroom.com
127.0.0.1 www.casinostugan.com
127.0.0.1 www.casinotown.se
127.0.0.1 www.casinsi.com
127.0.0.1 www.casumo.com
127.0.0.1 www.chancehill.com
127.0.0.1 www.chanz.com
127.0.0.1 www.cheekywin.com
127.0.0.1 www.cherrycasino.com
127.0.0.1 www.codeta.com
127.0.0.1 www.coolbet.com
127.0.0.1 www.cozino.com
127.0.0.1 www.dealerscasino.com
127.0.0.1 www.diamond7casino.com
127.0.0.1 www.dreamjackpot.com
127.0.0.1 www.dreamvegas.com
127.0.0.1 www.dreamz.com
127.0.0.1 www.duelz.com
127.0.0.1 www.dunder.com
127.0.0.1 www.esportsbetting.com
127.0.0.1 www.euroslots.com
127.0.0.1 www.fansbet.com
127.0.0.1 www.fikacasino.com
127.0.0.1 www.flumecasino.com
127.0.0.1 www.folkeautomaten.com
127.0.0.1 www.frankcasino.com
127.0.0.1 www.frankfred.com
127.0.0.1 www.freakyvegas.com
127.0.0.1 www.fruitycasa.com
127.0.0.1 www.fsport.net
127.0.0.1 www.funcasino.com
127.0.0.1 www.gate777.com
127.0.0.1 www.genesiscasino.com
127.0.0.1 www.getlucky.com
127.0.0.1 www.glimmercasino.com
127.0.0.1 www.goliathcasino.com
127.0.0.1 www.hajper.com
127.0.0.1 www.hellocasino.com
127.0.0.1 www.heyspin.com
127.0.0.1 www.highroller.com
127.0.0.1 www.hopa.com
127.0.0.1 www.igame.com
127.0.0.1 www.igame.se
127.0.0.1 www.ikibu.com
127.0.0.1 www.instacasino.com
127.0.0.1 www.intercasino.com
127.0.0.1 www.jackpotcity.com
127.0.0.1 www.johnslots.com
127.0.0.1 www.justcasino.com
127.0.0.1 www.kaboo.com
127.0.0.1 www.kaiserslots.com
127.0.0.1 www.karjalakasino.com
127.0.0.1 www.karlcasino.com
127.0.0.1 www.lapalingo.com
127.0.0.1 www.legolas.bet
127.0.0.1 www.leovegas.com
127.0.0.1 www.letsbet.com
127.0.0.1 www.livelounge.com
127.0.0.1 www.lsbet690.com
127.0.0.1 www.luckland.com
127.0.0.1 www.luckycasino.com
127.0.0.1 www.luckydino.com
127.0.0.1 www.luckyland.co.uk
127.0.0.1 www.luckylouis.com
127.0.0.1 www.luckymeslots.com
127.0.0.1 www.luckyniki.com
127.0.0.1 www.luckywinslots.com
127.0.0.1 www.magicred.com
127.0.0.1 www.malinasports.com
127.0.0.1 www.mamamiabingo.com
127.0.0.1 www.mansionbet.com
127.0.0.1 www.mariacasino.com
127.0.0.1 www.metalcasino.com
127.0.0.1 www.miamidicecasino.com
127.0.0.1 www.miamidice.com
127.0.0.1 www.mobil6000.com
127.0.0.1 www.mobilautomaten.com
127.0.0.1 www.mobilebet.com
127.0.0.1 www.mobocasino.com
127.0.0.1 www.montecarlocasino.com
127.0.0.1 www.mr.bet
127.0.0.1 www.mrmega.com
127.0.0.1 www.mrmobi.com
127.0.0.1 www.mrplay.com
127.0.0.1 www.mrslot.com
127.0.0.1 www.mrwin.com
127.0.0.1 www.mychance.com
127.0.0.1 www.n1casino.com
127.0.0.1 www.nextcasino.com
127.0.0.1 www.nightrush.com
127.0.0.1 www.ninjacasino.com
127.0.0.1 www.noaccountcasino.com
127.0.0.1 www.norgesautomaten.com
127.0.0.1 www.norgesspill.com
127.0.0.1 www.norskeautomater.com
127.0.0.1 www.norskespilleautomater.com
127.0.0.1 www.nyspins.com
127.0.0.1 www.olaspill.com
127.0.0.1 www.olybet.eu
127.0.0.1 www.omniacasino.com
127.0.0.1 www.ovocasino.com
127.0.0.1 www.piratespin.com
127.0.0.1 www.playclub.com
127.0.0.1 www.playfrank.com
127.0.0.1 www.playgrandcasino.com
127.0.0.1 www.playojo.com
127.0.0.1 www.pocketvegas.co.uk
127.0.0.1 www.potsofluck.com
127.0.0.1 www.primeslots.com
127.0.0.1 www.promotions.epic.partners
127.0.0.1 www.queenvegas.com
127.0.0.1 www.redkings.com
127.0.0.1 www.redspins.com
127.0.0.1 www.ridika.com
127.0.0.1 www.rizk.com
127.0.0.1 www.rolla.com
127.0.0.1 www.royalslots.com
127.0.0.1 www.royrichie.com
127.0.0.1 www.rush777.com
127.0.0.1 www.scandibet.com
127.0.0.1 www.scasino.com
127.0.0.1 www.sirjackpot.com
127.0.0.1 www.slotplanet.com
127.0.0.1 www.slotsheaven.com
127.0.0.1 www.slotsino.co.uk
127.0.0.1 www.slotsmagic.com
127.0.0.1 www.slotsons.com
127.0.0.1 www.slotv.com
127.0.0.1 www.sloty.com
127.0.0.1 www.snabbare.com
127.0.0.1 www.speedybet.com
127.0.0.1 www.spela.com
127.0.0.1 www.spinit.com
127.0.0.1 www.spinland.com
127.0.0.1 www.spinprincess.com
127.0.0.1 www.spinrider.com
127.0.0.1 www.spinson.com
127.0.0.1 www.spinstation.com
127.0.0.1 www.spinzilla.com
127.0.0.1 www.storspelare.com
127.0.0.1 www.storspiller.com
127.0.0.1 www.surf.casino
127.0.0.1 www.sveacasino.se
127.0.0.1 www.svedalacasino.com
127.0.0.1 www.swedencasino.com
127.0.0.1 www.swedencasino.se
127.0.0.1 www.sverigeautomaten.com
127.0.0.1 www.sverigecasino.com
127.0.0.1 www.sverigekronan.com
127.0.0.1 www.thrills.com
127.0.0.1 www.toto2.com
127.0.0.1 www.ttr.casino
127.0.0.1 www.vegashero.com
127.0.0.1 www.verajohn.com
127.0.0.1 www.videoslots.com
127.0.0.1 www.vikingslots.com
127.0.0.1 www.viks.com
127.0.0.1 www.wildjackpots.com
127.0.0.1 www.vinnarum.com
127.0.0.1 www.wixstars.com
127.0.0.1 www.voodoodreams.com
127.0.0.1 www.wunderino.com
127.0.0.1 www.yakocasino.com
127.0.0.1 www.yeticasino.com
127.0.0.1 www.yobetit.com
127.0.0.1 www.zodiacu.com
127.0.0.1 nationale-loterij.be
127.0.0.1 e-lotto.be
127.0.0.1 loterie-nationale.be
127.0.0.1 loterie.lu
127.0.0.1 e-loterie.ma
127.0.0.1 loterie.ma
127.0.0.1 eurobet.bg
127.0.0.1 nostrabet.com
127.0.0.1 efirbet.com
127.0.0.1 7777.bg
127.0.0.1 toto.bg
127.0.0.1 lutrija.hr
127.0.0.1 sazka.cz
127.0.0.1 klasselotteriet.dk
127.0.0.1 lotto.de
127.0.0.1 lotto24.de
127.0.0.1 lotto.gmx.net
127.0.0.1 lotto.web.de
127.0.0.1 dielottozahlende.net
127.0.0.1 tipp24.com
127.0.0.1 westlotto.de
127.0.0.1 lottoland.com
127.0.0.1 lotto-thueringen.de
127.0.0.1 thelotter.com
127.0.0.1 lottohelden.de
127.0.0.1 lotto-sh.de
127.0.0.1 faber.de
127.0.0.1 lotto-berlin.de
127.0.0.1 gambling.com
127.0.0.1 opap.gr
127.0.0.1 lotto.is
127.0.0.1 szerencsejatek.hu
127.0.0.1 multilotto.com
127.0.0.1 szuperlotto.com
127.0.0.1 lottery.ie
127.0.0.1 national-lottery.co.uk
127.0.0.1 latloto.lv
127.0.0.1 loto.mk
127.0.0.1 lutrija.co.me
127.0.0.1 postcodeloterij.nl
127.0.0.1 nederlandseloterij.nl
127.0.0.1 statsloterij.nederlandseloterij.nl
127.0.0.1 lotto.pl
127.0.0.1 multipasko.pl
127.0.0.1 megalotto.pl
127.0.0.1 lotto-centrum.com
127.0.0.1 jogossantacasa.pt
127.0.0.1 loto.ro
127.0.0.1 stoloto.ru
127.0.0.1 lutrija.rs
127.0.0.1 tipos.sk
127.0.0.1 etipos.sk
127.0.0.1 loterija.si
127.0.0.1 eloterija.si
127.0.0.1 e-stave.com
127.0.0.1 loteriasyapuestas.es
127.0.0.1 juegos.loteriasyapuestas.es
127.0.0.1 msl.ua
127.0.0.1 healthlottery.co.uk
127.0.0.1 lotto.cn
127.0.0.1 bet.hkjc.com
127.0.0.1 pais.co.il
127.0.0.1 takarakuji-official.jp
127.0.0.1 lldj.com
127.0.0.1 macau-slot.com
127.0.0.1 galacasino.com
127.0.0.1 cashsweep.com.my
127.0.0.1 magnum4d.my
127.0.0.1 damacai.com.my
127.0.0.1 sportstoto.com.my
127.0.0.1 online.singaporepools.com
127.0.0.1 lotterien.at
127.0.0.1 nlotto.co.kr
127.0.0.1 nlb.lk
127.0.0.1 dlb.lk
127.0.0.1 taiwanlottery.com.tw
127.0.0.1 lotto.mthai.com
127.0.0.1 mpi.gov.tr
127.0.0.1 lotoquebec.com
127.0.0.1 loteries.lotoquebec.com
127.0.0.1 espacejeux.com
127.0.0.1 portail.lotoquebec.com
127.0.0.1 olg.ca
127.0.0.1 home.olg.ca
127.0.0.1 lottery.olg.ca
127.0.0.1 proline.ca
127.0.0.1 olgslotsandcasinos.ca
127.0.0.1 playolg.ca
127.0.0.1 cgaming.olg.ca
127.0.0.1 lottomax.ca
127.0.0.1 lotenal.gob.mx
127.0.0.1 loteria.com.ec
127.0.0.1 nationallottery.co.za
127.0.0.1 mylotto.co.nz
127.0.0.1 www.nationale-loterij.be
127.0.0.1 www.e-lotto.be
127.0.0.1 www.loterie-nationale.be
127.0.0.1 www.loterie.lu
127.0.0.1 www.e-loterie.ma
127.0.0.1 www.loterie.ma
127.0.0.1 www.eurobet.bg
127.0.0.1 www.nostrabet.com
127.0.0.1 www.efirbet.com
127.0.0.1 www.7777.bg
127.0.0.1 www.toto.bg
127.0.0.1 www.lutrija.hr
127.0.0.1 www.sazka.cz
127.0.0.1 www.klasselotteriet.dk
127.0.0.1 www.lotto.de
127.0.0.1 www.lotto24.de
127.0.0.1 www.lotto.gmx.net
127.0.0.1 www.lotto.web.de
127.0.0.1 www.dielottozahlende.net
127.0.0.1 www.tipp24.com
127.0.0.1 www.westlotto.de
127.0.0.1 www.lottoland.com
127.0.0.1 www.lotto-thueringen.de
127.0.0.1 www.thelotter.com
127.0.0.1 www.lottohelden.de
127.0.0.1 www.lotto-sh.de
127.0.0.1 www.faber.de
127.0.0.1 www.lotto-berlin.de
127.0.0.1 www.gambling.com
127.0.0.1 www.opap.gr
127.0.0.1 www.lotto.is
127.0.0.1 www.szerencsejatek.hu
127.0.0.1 www.multilotto.com
127.0.0.1 www.szuperlotto.com
127.0.0.1 www.lottery.ie
127.0.0.1 www.national-lottery.co.uk
127.0.0.1 www.latloto.lv
127.0.0.1 www.loto.mk
127.0.0.1 www.lutrija.co.me
127.0.0.1 www.postcodeloterij.nl
127.0.0.1 www.nederlandseloterij.nl
127.0.0.1 www.statsloterij.nederlandseloterij.nl
127.0.0.1 www.lotto.pl
127.0.0.1 www.multipasko.pl
127.0.0.1 www.megalotto.pl
127.0.0.1 www.lotto-centrum.com
127.0.0.1 www.jogossantacasa.pt
127.0.0.1 www.loto.ro
127.0.0.1 www.stoloto.ru
127.0.0.1 www.lutrija.rs
127.0.0.1 www.tipos.sk
127.0.0.1 www.etipos.sk
127.0.0.1 www.loterija.si
127.0.0.1 www.eloterija.si
127.0.0.1 www.e-stave.com
127.0.0.1 www.loteriasyapuestas.es
127.0.0.1 www.juegos.loteriasyapuestas.es
127.0.0.1 www.msl.ua
127.0.0.1 www.healthlottery.co.uk
127.0.0.1 www.lotto.cn
127.0.0.1 www.bet.hkjc.com
127.0.0.1 www.pais.co.il
127.0.0.1 www.takarakuji-official.jp
127.0.0.1 www.lldj.com
127.0.0.1 www.macau-slot.com
127.0.0.1 www.galacasino.com
127.0.0.1 www.cashsweep.com.my
127.0.0.1 www.magnum4d.my
127.0.0.1 www.damacai.com.my
127.0.0.1 www.sportstoto.com.my
127.0.0.1 www.online.singaporepools.com
127.0.0.1 www.lotterien.at
127.0.0.1 www.nlotto.co.kr
127.0.0.1 www.nlb.lk
127.0.0.1 www.dlb.lk
127.0.0.1 www.taiwanlottery.com.tw
127.0.0.1 www.lotto.mthai.com
127.0.0.1 www.mpi.gov.tr
127.0.0.1 www.lotoquebec.com
127.0.0.1 www.loteries.lotoquebec.com
127.0.0.1 www.espacejeux.com
127.0.0.1 www.portail.lotoquebec.com
127.0.0.1 www.olg.ca
127.0.0.1 www.home.olg.ca
127.0.0.1 www.lottery.olg.ca
127.0.0.1 www.proline.ca
127.0.0.1 www.olgslotsandcasinos.ca
127.0.0.1 www.playolg.ca
127.0.0.1 www.cgaming.olg.ca
127.0.0.1 www.lottomax.ca
127.0.0.1 www.lotenal.gob.mx
127.0.0.1 www.loteria.com.ec
127.0.0.1 www.nationallottery.co.za
127.0.0.1 www.mylotto.co.nz
File diff suppressed because it is too large Load Diff
+496 -3
View File
@@ -1,5 +1,5 @@
# Porn hosts
# Updated Jan 1, 2018
# Title: Porn hosts
# Updated Nov 03, 2018
127.0.0.1 007angels.com
127.0.0.1 www.007angels.com
@@ -2235,6 +2235,7 @@
127.0.0.1 www.efukt.com
127.0.0.1 egbo.com
127.0.0.1 www.egbo.com
127.0.0.1 ehgt.org
127.0.0.1 ehho.com
127.0.0.1 www.ehho.com
127.0.0.1 ejzbrokenangelz.com
@@ -2457,6 +2458,7 @@
127.0.0.1 www.exclusivepussy.com
127.0.0.1 exgfsbucks.com
127.0.0.1 www.exgfsbucks.com
127.0.0.1 exhentai.org
127.0.0.1 exit.ptekcom.com
127.0.0.1 exit.zoodollars.com
127.0.0.1 exits.adultcash.com
@@ -3145,6 +3147,7 @@
127.0.0.1 hit.reference-sexe.com
127.0.0.1 hitahottie.com
127.0.0.1 www.hitahottie.com
127.0.0.1 hitomi.la
127.0.0.1 hitx.xxxstatistics.com
127.0.0.1 hmrc-gov-uk.9hz.com
127.0.0.1 hobomovies.com
@@ -3189,6 +3192,7 @@
127.0.0.1 www.hornywhores.net
127.0.0.1 hornywife.com
127.0.0.1 www.hornywife.com
127.0.0.1 horrorporn.com
127.0.0.1 hoseangel.com
127.0.0.1 www.hoseangel.com
127.0.0.1 hostave4.net
@@ -3781,7 +3785,8 @@
127.0.0.1 livejasminlatina.com
127.0.0.1 livejasminlesbian.com
127.0.0.1 livejasminwebcams.com
127.0.0.1 www.livejasminwebcams.com
127.0.0.1 www.livejasminwebcams.com
127.0.0.1 cradver.livejasmin.com
127.0.0.1 livematurewebcams.com
127.0.0.1 www.livematurewebcams.com
127.0.0.1 lives.sex-explorer.com
@@ -6906,3 +6911,491 @@
127.0.0.1 www.nudespree.com
127.0.0.1 redporn.xxx
127.0.0.1 www.redporn.xxx
127.0.0.1 myescortberlin.com
127.0.0.1 rotlichtmodelle.de
127.0.0.1 julie-skyhigh.com
127.0.0.1 heuteporno.com
127.0.0.1 manyvids.com
127.0.0.1 tube8.fr
127.0.0.1 youpornx.com
127.0.0.1 mrvideospornogratis.xxx
127.0.0.1 ipornogratis.xxx
127.0.0.1 alexistexas.com
127.0.0.1 premiumcash.com
127.0.0.1 mariemccray.com
127.0.0.1 latexbest.com
127.0.0.1 latexfetishpics.com
127.0.0.1 latex-bitches.com
127.0.0.1 hotlatexdreams.com
127.0.0.1 spekula.com
127.0.0.1 chanelprestonxxx.com
127.0.0.1 rubberteens.com
127.0.0.1 nina.com
127.0.0.1 kagneylinnkarter.com
127.0.0.1 lynxdollars.com
127.0.0.1 diamondfoxxx.com
127.0.0.1 latex-dream.com
127.0.0.1 michellethornexxxposed.com
127.0.0.1 sexygirlspics.com
127.0.0.1 angelinavalentine.com
127.0.0.1 laralarsen.com
127.0.0.1 suzepps.com
127.0.0.1 latex-fantasies.com
127.0.0.1 bustycafe.net
127.0.0.1 moniquealexander.com
127.0.0.1 bellagals.com
127.0.0.1 heatherstarletxxx.com
127.0.0.1 latex-post.com
127.0.0.1 breannebenson.com
127.0.0.1 brandytalorevip.com
127.0.0.1 annmarierios.com
127.0.0.1 sindeejennings.com
127.0.0.1 sarastone.com
127.0.0.1 kitazenxxx.com
127.0.0.1 clubcharismaxxx.com
127.0.0.1 mindimink.com
127.0.0.1 pornstarjustice.com
127.0.0.1 evanotty.com
127.0.0.1 clubrachellove.com
127.0.0.1 yuriluv.com
127.0.0.1 princeyahshua.com
127.0.0.1 clubkatiesummers.com
127.0.0.1 taraholidayxxx.com
127.0.0.1 fukks.com
127.0.0.1 gigiriveraxxx.com
127.0.0.1 emilysplayground.com
127.0.0.1 claudiavalentinexxx.com
127.0.0.1 avadevine.com
127.0.0.1 ericalaurenxxx.com
127.0.0.1 sexyvanessa.com
127.0.0.1 katefrost.com
127.0.0.1 tegansummers.com
127.0.0.1 clubveronicaavluv.com
127.0.0.1 phoenixmarie.com
127.0.0.1 christiestevens.com
127.0.0.1 courtneytaylor.xxx
127.0.0.1 brookewyldexxx.com
127.0.0.1 deepinsidejoslyn.com
127.0.0.1 katerinakayxxx.com
127.0.0.1 whoretodaygonetomorrow.com
127.0.0.1 ariellaferrera.com
127.0.0.1 ravenbayxxx.com
127.0.0.1 alurajensonxxx.com
127.0.0.1 amybrookexxx.com
127.0.0.1 tiffanytyler.com
127.0.0.1 kendralustxxx.com
127.0.0.1 nikita-vonjames.com
127.0.0.1 shawnalenee.tv
127.0.0.1 alanahrae.com
127.0.0.1 torylane.com
127.0.0.1 theavaaddams.com
127.0.0.1 evaangelinaxxxx.com
127.0.0.1 lexibelle.com
127.0.0.1 clubkatsuni.com
127.0.0.1 ginalynn.com
127.0.0.1 teensfirstthreesome.com
127.0.0.1 clubveronicaavluv.com
127.0.0.1 housewivesadventures.com
127.0.0.1 sybiansolos.com
127.0.0.1 jenxstudios.com
127.0.0.1 jennahaze.com
127.0.0.1 pornstarplatinum.com
127.0.0.1 toriblack.com
127.0.0.1 xxxfatclips.com
127.0.0.1 runporn.com
127.0.0.1 freesex.xxx
127.0.0.1 creampietubeporn.com
127.0.0.1 grannymommy.com
127.0.0.1 fetishkimmy.com
127.0.0.1 bigtitsgf.com
127.0.0.1 porn666.net
127.0.0.1 latex-post.com
127.0.0.1 mylovedfatclips.com
127.0.0.1 slutanal.com
127.0.0.1 fuck-suck.com
127.0.0.1 matures-naked.com
127.0.0.1 pornpicsamateur.com
127.0.0.1 nakedtube.com
127.0.0.1 sexstalk.com
127.0.0.1 hornyjourney.com
127.0.0.1 asexstories.com
127.0.0.1 curvyfemales.com
127.0.0.1 xxxbanjo.com
127.0.0.1 nurxxx.mobi
127.0.0.1 tubedb.net
127.0.0.1 apornstories.com
127.0.0.1 pornhubdeutsch.net
127.0.0.1 fucktube.website
127.0.0.1 juicywives.com
127.0.0.1 hotmilfclips.com
127.0.0.1 latex-fantasies.com
127.0.0.1 ebenporno.com
127.0.0.1 fatxxxfuck.com
127.0.0.1 plumperporn.xxx
127.0.0.1 deutschsex.com
127.0.0.1 latexandnylon.com
127.0.0.1 ferronetwork.com
127.0.0.1 latexheaven.com
127.0.0.1 tacamateurs.com
127.0.0.1 farimg.com
127.0.0.1 myhotzpic.com
127.0.0.1 hotntubes.com
127.0.0.1 domsubtube.com
127.0.0.1 mamapics.com
127.0.0.1 youtrannytube.com
127.0.0.1 femdom-fetish-tube.com
127.0.0.1 longsextubes.com
127.0.0.1 epicweapon666.tumblr.com
127.0.0.1 scat-porn-xxx.com
127.0.0.1 femaleshaved.com
127.0.0.1 amateurfetishist.com
127.0.0.1 chubinrubber.tumblr.com
127.0.0.1 scat-extreme.org
127.0.0.1 schokomaus.com
127.0.0.1 connectsport.tumblr.com
127.0.0.1 mistress-simone.tumblr.com
127.0.0.1 painfullanal.com
127.0.0.1 hotgrannypics.com
127.0.0.1 tours-78-94.wellhello.com
127.0.0.1 grqqk.bonedmilfs.com
127.0.0.1 livehotty.com
127.0.0.1 xhomegrown.com
127.0.0.1 greatnass.com
127.0.0.1 nesaporn.com
127.0.0.1 realyoungvids.com
127.0.0.1 cams4bitcoin.com
127.0.0.1 teensexmaniac.com
127.0.0.1 hottestlivewebcams.com
127.0.0.1 trueteenclips.com
127.0.0.1 xixtube.com
127.0.0.1 brandporno.com
127.0.0.1 ok-sex.com
127.0.0.1 tubes.asexstories.com
127.0.0.1 asexstories.com
127.0.0.1 lingeriefreesex.com
127.0.0.1 sextubebox.com
127.0.0.1 youpicktube.com
127.0.0.1 milffox.com
127.0.0.1 kimkimono.nl
127.0.0.1 nurxxx.mobi
127.0.0.1 zbporn.com
127.0.0.1 belgianslalomteam.be
127.0.0.1 lustex.net
127.0.0.1 dvderotik.com
127.0.0.1 naproverku.ru
127.0.0.1 chance-for-dates.com
127.0.0.1 flirtdate18.com
127.0.0.1 bokepxv.com
127.0.0.1 openerotic.co.uk
127.0.0.1 retrotubetv.com
127.0.0.1 xopornhub.com
127.0.0.1 anyxxx.com
127.0.0.1 sonasea-phuquoc.com
127.0.0.1 konyamasajsalonum.xyz
127.0.0.1 ghostvidstube.com
127.0.0.1 freesextuber.com
127.0.0.1 fiable.be
127.0.0.1 tube4cum.com
127.0.0.1 jerseysnfljerseys.com
127.0.0.1 japaneseporn.us
127.0.0.1 shellieneumeier.com
127.0.0.1 firstasiansex.com
127.0.0.1 topxlive.com
127.0.0.1 sid-vd.ru
127.0.0.1 bossvideotube.com
127.0.0.1 girls-on-top.com
127.0.0.1 xxxfat-videos.com
127.0.0.1 carvideotube.com
127.0.0.1 dildoxxxtube.com
127.0.0.1 upbbw.com
127.0.0.1 pornasiantube.com
127.0.0.1 adulttricks.cf
127.0.0.1 big7.com
127.0.0.1 ipl2017live.online
127.0.0.1 anny-g.pornjab.com
127.0.0.1 maxebony.com
127.0.0.1 thumbcon.mydirtyhobby.com
127.0.0.1 xxxtubestar.com
127.0.0.1 actalsymposium2017.nl
127.0.0.1 maisexo.com
127.0.0.1 your-dating-future.com
127.0.0.1 hardmaturesfuck.com
127.0.0.1 afiporn.net
127.0.0.1 bangporn.org
127.0.0.1 xtporntube.com
127.0.0.1 nsfw.reddit.com
127.0.0.1 www.redlight.com
127.0.0.1 redlight.com
127.0.0.1 www.girlsgonehypnotized.com
127.0.0.1 www.girlsgettingsleepy.com
127.0.0.1 hypnoporn.net
127.0.0.1 hypnoporn24.com
127.0.0.1 entrancement.co.uk
127.0.0.1 www.fapdex.com
127.0.0.1 www.girlsbarefoot.com
127.0.0.1 www.girlspoppingballoons.com
127.0.0.1 playvids.com
127.0.0.1 livecam.com
127.0.0.1 extralunchmoney.com
127.0.0.1 jizzxman.com
127.0.0.1 www.jizzxman.com
127.0.0.1 chinapornmovie.com
127.0.0.1 forcedporn.org
127.0.0.1 mzansi.porn
127.0.0.1 pornrapetube.net
127.0.0.1 rapeinporn.com
127.0.0.1 rapeinsleep.com
127.0.0.1 sexteentube.tv
127.0.0.1 tubsexer.com
127.0.0.1 twister.porn
127.0.0.1 www.gonzoxxxmovies.com
127.0.0.1 www.indoporn.mobi
127.0.0.1 www.porn-plus.com
127.0.0.1 www.porndroids.com
127.0.0.1 www.pornhubselect.com
127.0.0.1 www.rushporn.com
127.0.0.1 www.sexmixxx.com
127.0.0.1 www.teenpornvideo.xxx
127.0.0.1 beta.sankakucomplex.com
127.0.0.1 chan.sankakucomplex.com
127.0.0.1 luscious.net
127.0.0.1 baixarhentai.net
127.0.0.1 leitura.baixarhentai.net
127.0.0.1 e-hentai.org
127.0.0.1 rule34.paheal.net
127.0.0.1 rule34.xxx
127.0.0.1 e621.net
127.0.0.1 xbooru.com
127.0.0.1 www.hentaiseason.com
127.0.0.1 www.shadbase.com
127.0.0.1 seasonhentaigallery.blogspot.com
127.0.0.1 thehentaicomics.com
127.0.0.1 www.tufos.com.br
127.0.0.1 myhentaicomics.com
127.0.0.1 mymangacomics.com
127.0.0.1 myhentaimovie.com
127.0.0.1 myhentaiheaven.net
127.0.0.1 myrule34.com
127.0.0.1 hentaihaven.org
127.0.0.1 www.hentaistube.com
127.0.0.1 www.hentaisonlinehd.com
127.0.0.1 www.superhq.net
127.0.0.1 www.aniporn.net
127.0.0.1 hentaisgerais.blogspot.com
127.0.0.1 gelbooru.com
127.0.0.1 hentai4manga.com
127.0.0.1 justicehentai.com/
127.0.0.1 www.doujinlife.com
127.0.0.1 hentai.animestigma.com/
127.0.0.1 hentaigasm.com
127.0.0.1 hentaischool.com
127.0.0.1 hentaifreak.org
127.0.0.1 101hentai.com
127.0.0.1 www.tubehentai.com
127.0.0.1 www.hentaicloud.com
127.0.0.1 myhentai.tv
127.0.0.1 muchohentai.com
127.0.0.1 hentai.animeholics.org
127.0.0.1 www.24hentai.com
127.0.0.1 hentaigaze.com
127.0.0.1 hentaipulse.com
127.0.0.1 www.hentairon.net
127.0.0.1 www.comicxx.com
127.0.0.1 brasilhentai.com
127.0.0.1 javfor.me
127.0.0.1 idol.sankakucomplex.com
127.0.0.1 masturbese.com
127.0.0.1 sobrasileiras.com
127.0.0.1 www.boafoda.com
127.0.0.1 javfind.com
127.0.0.1 javfinder.is
127.0.0.1 javdub.com
127.0.0.1 javmovie.com/
127.0.0.1 www.javqd.com
127.0.0.1 www.javwhores.com
127.0.0.1 www.javmimi.com
127.0.0.1 sextop.net
127.0.0.1 jav.kim
127.0.0.1 jav.one
127.0.0.1 jav.guru
127.0.0.1 www.r18.com
127.0.0.1 hentaitokyo.com
127.0.0.1 javseen.com
127.0.0.1 javsexmovie.com
127.0.0.1 www.javdoe.com
127.0.0.1 javhihi.com
127.0.0.1 javporn.video
127.0.0.1 www.hq-jav.com
127.0.0.1 www.javwide.com
127.0.0.1 jphub.net
127.0.0.1 porn68jav.com
127.0.0.1 jav789.com
127.0.0.1 jav.sex
127.0.0.1 avgle.com
127.0.0.1 www.sexfortuna.com
127.0.0.1 sexfortuna.com
127.0.0.1 www.myfreecams.com
127.0.0.1 myfreecams.com
127.0.0.1 dlouha-videa.cz
127.0.0.1 www.dlouha-videa.cz
127.0.0.1 freevideo.cz
127.0.0.1 www.freevideo.cz
127.0.0.1 myporno.cz
127.0.0.1 www.myporno.cz
127.0.0.1 ceskeporno.cz
127.0.0.1 www.ceskeporno.cz
127.0.0.1 prdelky.biz
127.0.0.1 www.prdelky.biz
127.0.0.1 porno-free.cz
127.0.0.1 www.porno-free.cz
127.0.0.1 hd-porno.cz
127.0.0.1 www.hd-porno.cz
127.0.0.1 porno-videa.tv
127.0.0.1 www.porno-videa.tv
127.0.0.1 pornworld.name
127.0.0.1 www.pornworld.name
127.0.0.1 novinkyverotice.cz
127.0.0.1 www.novinkyverotice.cz
127.0.0.1 jenporno.cz
127.0.0.1 www.jenporno.cz
127.0.0.1 pornoserver.eu
127.0.0.1 www.pornoserver.eu
127.0.0.1 pvideo.cz
127.0.0.1 www.pvideo.cz
127.0.0.1 leo.cz
127.0.0.1 www.leo.cz
127.0.0.1 ceskekundy.cz
127.0.0.1 www.ceskekundy.cz
127.0.0.1 pornot.cz
127.0.0.1 www.pornot.cz
127.0.0.1 pornozdarma.cz
127.0.0.1 www.pornozdarma.cz
127.0.0.1 jenpornuj.cz
127.0.0.1 www.jenpornuj.cz
127.0.0.1 tvojepecko.cz
127.0.0.1 www.tvojepecko.cz
127.0.0.1 pornohaha.com
127.0.0.1 www.pornohaha.com
127.0.0.1 pornoorgie.cz
127.0.0.1 www.pornoorgie.cz
127.0.0.1 zvrhlost.cz
127.0.0.1 www.zvrhlost.cz
127.0.0.1 sex.nikee.net
127.0.0.1 drsnysvet.cz
127.0.0.1 www.drsnysvet.cz
127.0.0.1 freevideo.to
127.0.0.1 www.freevideo.to
127.0.0.1 ukradena-videa.cz
127.0.0.1 www.ukradena-videa.cz
127.0.0.1 iporno.sk
127.0.0.1 www.iporno.sk
127.0.0.1 freesex.cz
127.0.0.1 www.freesex.cz
127.0.0.1 freshporno.cz
127.0.0.1 www.freshporno.cz
127.0.0.1 pornodomobilu.cz
127.0.0.1 www.pornodomobilu.cz
127.0.0.1 freesexporno.cz
127.0.0.1 www.freesexporno.cz
127.0.0.1 redporno.cz
127.0.0.1 www.redporno.cz
127.0.0.1 pornopivo.cz
127.0.0.1 www.pornopivo.cz
127.0.0.1 ceske-porno.tv
127.0.0.1 www.ceske-porno.tv
127.0.0.1 sexice.eu
127.0.0.1 www.sexice.eu
127.0.0.1 sex-doma.cz
127.0.0.1 www.sex-doma.cz
127.0.0.1 pornobabicky.cz
127.0.0.1 www.pornobabicky.cz
127.0.0.1 pinkporno.cz
127.0.0.1 www.pinkporno.cz
127.0.0.1 bigporno.cz
127.0.0.1 www.bigporno.cz
127.0.0.1 smsporno.cz
127.0.0.1 www.smsporno.cz
127.0.0.1 1800800.co.il
127.0.0.1 www.1800800.co.il
127.0.0.1 balisex.co.il
127.0.0.1 www.balisex.co.il
127.0.0.1 colliderporn.com
127.0.0.1 www.colliderporn.com
127.0.0.1 drsex.co.il
127.0.0.1 www.drsex.co.il
127.0.0.1 freefuckvids.com
127.0.0.1 www.freefuckvids.com
127.0.0.1 harmanit.co.il
127.0.0.1 www.harmanit.co.il
127.0.0.1 hdxxx.top
127.0.0.1 www.hdxxx.top
127.0.0.1 il.bongacams.com
127.0.0.1 m.uzit.co.il
127.0.0.1 museumofsex.com
127.0.0.1 www.museumofsex.com
127.0.0.1 only4adults.net
127.0.0.1 www.only4adults.net
127.0.0.1 pornmovies.co.il
127.0.0.1 www.pornmovies.co.il
127.0.0.1 presidentescort.co.il
127.0.0.1 www.presidentescort.co.il
127.0.0.1 sex-ly.com
127.0.0.1 www.sex-ly.com
127.0.0.1 sexadir.co.il
127.0.0.1 www.sexadir.co.il
127.0.0.1 sexeden.co.il
127.0.0.1 sexhubhd.com
127.0.0.1 www.sexhubhd.com
127.0.0.1 sexmovie.co.il
127.0.0.1 www.sexmovie.co.il
127.0.0.1 tubev.sex
127.0.0.1 www.tubev.sex
127.0.0.1 xfinder.com
127.0.0.1 xnxxsex.pro
127.0.0.1 www.sexmagic.co.il
127.0.0.1 www.zesex.co.il
127.0.0.1 www.afarsex.co.il
127.0.0.1 www.tuta.co.il
127.0.0.1 www.shovavon.co.il
127.0.0.1 www.sexmovies-free.com
127.0.0.1 www.bsex.co.il
127.0.0.1 www.sexhinam.co.il
127.0.0.1 www.hdfuckporn.com
127.0.0.1 xnxxfree.icu
127.0.0.1 www.kamasex.co.il
127.0.0.1 www.exhilawriting.com
127.0.0.1 www.yousex.co.il
127.0.0.1 www.newcam18.com
127.0.0.1 sex69.co.il
127.0.0.1 hotcams.co.il
127.0.0.1 www.sexmania.co.il
127.0.0.1 www.russiansex.co.il
127.0.0.1 www.zbeng.co.il
127.0.0.1 www.monika.co.il
127.0.0.1 sexxes.co.il
127.0.0.1 www.shovavon.co.il
127.0.0.1 agaslive.wordpress.com
127.0.0.1 www.sexooops.com
127.0.0.1 www.sexil.co.il
127.0.0.1 www.sexatraf.com
127.0.0.1 www.xnxxfreeporno.com
127.0.0.1 www.partyporn.co.il
127.0.0.1 www.globalsex.co.il
127.0.0.1 hugesex.tv
127.0.0.1 www.fapvid.com
127.0.0.1 porn-ok.com
127.0.0.1 ooo-sex.com
127.0.0.1 yo-sex.com
127.0.0.1 www.bigporn.com
127.0.0.1 ziunim-hinam.blogspot.com
127.0.0.1 www.seex.co.il
127.0.0.1 www.badabing.co.il
127.0.0.1 www.arabtube.co.il
127.0.0.1 www.missx.co.il
+8 -18
View File
@@ -1,18 +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 four extensions:
Currently, this repo includes data sources for four extensions:
* `gambling` for common online betting sites,
* `social` for common social media sites,
* `porn` for porn sites, and
* `fakenews` for fake news sites.
* `gambling` for common online betting sites,
* `porn` for porn sites, and
* `social` for common social media sites,
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
@@ -20,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.
+16 -1
View File
@@ -1,4 +1,4 @@
# Social media hosts
# Title: Social media hosts
# Updated January 5, 2018
# Facebook
@@ -734,6 +734,7 @@
127.0.0.1 login.facebook.com
127.0.0.1 m.facebook.com
127.0.0.1 messages-facebook.com
127.0.0.1 mobile.facebook.com
127.0.0.1 mqtt-mini.facebook.com
127.0.0.1 mqtt.c10r.facebook.com
127.0.0.1 mqtt.facebook.com
@@ -1071,6 +1072,9 @@
127.0.0.1 www.twitter.com
127.0.0.1 www2.twitter.com
127.0.0.1 www4.twitter.com
127.0.0.1 platform.twitter.com
127.0.0.1 cdn.syndication.twimg.com
127.0.0.1 t.co
# Instagram
127.0.0.1 api.instagram.com
@@ -1232,3 +1236,14 @@
# google plus
127.0.0.1 plus.google.com
# 127.0.0.1 plus.l.google.com
# Reddit
127.0.0.1 i.reddit.com
127.0.0.1 nsfw.reddit.com
127.0.0.1 redd.it
127.0.0.1 reddit.com
127.0.0.1 www.reddit.com
127.0.0.1 amp-reddit-com.cdn.ampproject.org
127.0.0.1 old.reddit.com
127.0.0.1 new.reddit.com
+30087 -24325
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -7,9 +7,9 @@
from __future__ import print_function
import sys
import argparse
import subprocess
import sys
def print_failure(msg):
View File
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "hosts",
"version": "1.3.3",
"version": "2.1.17",
"description": "Extending and consolidating hosts files from several well-curated sources like adaway.org, mvps.org, malwaredomainlist.com, someonewhocares.org, and potentially others. You can optionally invoke extensions to block additional sites by category.",
"main": "",
"scripts": {
@@ -34,6 +34,6 @@
},
"homepage": "https://github.com/StevenBlack/hosts#readme",
"devDependencies": {
"release-it": "^4.2.0"
"release-it": "^8.0.0"
}
}
+87 -52
View File
@@ -1,12 +1,29 @@
----
**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)
[![commits since last release](https://img.shields.io/github/commits-since/StevenBlack/hosts/latest.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![last commit](https://img.shields.io/github/last-commit/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![commit activity](https://img.shields.io/github/commit-activity/y/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
# Unified hosts file with base extensions
This repository consolidates several reputable `hosts` files, and merges them
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
* Last updated: **March 18 2018**.
* Here's the [raw hosts file with base extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) containing 56,046 entries.
* Last updated: **November 26 2018**.
* Here's the [raw hosts file with base extensions](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) containing 64,102 entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
@@ -17,22 +34,22 @@ 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) | 56,046 | [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) | 56,719 | [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) | 57,558 | [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) | 65,584 | [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) | 57,193 | [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) | 58,231 | [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) | 66,257 | [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) | 57,866 | [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) | 67,096 | [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) | 58,705 | [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) | 66,731 | [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) | 67,769 | [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) | 59,378 | [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) | 67,404 | [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) | 68,243 | [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) | 68,916 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
Unified hosts = **(adware + malware)** | [Readme](https://github.com/StevenBlack/hosts/blob/master/readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts) | 64,102 | [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) | 64,771 | [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) | 66,368 | [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) | 74,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) | 65,261 | [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) | 67,037 | [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) | 75,051 | [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) | 65,930 | [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) | 76,648 | [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) | 67,527 | [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) | 75,540 | [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) | 77,317 | [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) | 68,196 | [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) | 76,209 | [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) | 77,806 | [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) | 78,475 | [link](http://sbc.io/hosts/alternates/fakenews-gambling-porn-social/hosts)
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -46,49 +63,51 @@ 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](http://www.malwaredomainlist.com/) | [raw](http://www.malwaredomainlist.com/hostslist/hosts.txt) | weekly | 'can be used for free by anyone' | [issues](http://www.malwaredomainlist.com/contact.php)
add.Dead | Dead sites based on 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)
add.Spam | Spam sites based on 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.org | How to make the internet not suck (as much). |[link](http://someonewhocares.org/hosts/) | [raw](http://someonewhocares.org/hosts/zero/hosts) | frequently | non-commercial with attribution | [issues](hosts@someonewhocares.org)
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)
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://github.com/ZeroDot1/CoinBlockerLists) | [raw](https://raw.githubusercontent.com/ZeroDot1/CoinBlockerLists/master/hosts_browser) | frequently | GPLv3 | [issues](https://github.com/ZeroDot1/CoinBlockerLists/issues)
tyzbit | Microsoft tracking domains. A fork of this repo providing additional data. |[link](https://github.com/tyzbit/hosts/blob/master/data/tyzbit/hosts) | [raw](https://raw.githubusercontent.com/tyzbit/hosts/master/data/tyzbit/hosts) | rarely | | [issues]()
CoinBlocker | Simple lists that can help prevent cryptomining in the browser or other applications |[link](https://gitlab.com/ZeroDot1/CoinBlockerLists) | [raw](https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser) | frequently | GPLv3 | [issues](https://gitlab.com/ZeroDot1/CoinBlockerLists/issues)
lightswitch05 | Block ad and tracking domains. |[link](https://github.com/lightswitch05/hosts) | [raw](https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt) | occasionally | Apache-2.0 | [issues](https://github.com/lightswitch05/hosts/issues)
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 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)
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 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)
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)
## Extensions
The unified hosts file is extensible. You manage extensions by curating the
`extensions/` folder tree. See the `fakenews`, `social`, `gambling`, and `porn` extension
folders.
The unified hosts file is extensible. Extensions are used to block domains by category.
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
## Generate your own unified hosts file
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.txt
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
To run unit tests, in the top level directory, just run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -96,10 +115,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -126,9 +141,8 @@ Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
@@ -204,11 +218,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us 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 existance of your remo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -253,9 +267,9 @@ 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.
## Updating hosts file on Windows
@@ -316,7 +330,9 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -326,6 +342,23 @@ 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
@@ -372,6 +405,8 @@ devices under a variety of operating systems.
## Interesting Applications
* [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.
+1 -1
View File
File diff suppressed because one or more lines are too long
+61 -26
View File
@@ -1,5 +1,21 @@
----
**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)
[![commits since last release](https://img.shields.io/github/commits-since/StevenBlack/hosts/latest.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![last commit](https://img.shields.io/github/last-commit/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
[![commit activity](https://img.shields.io/github/commit-activity/y/StevenBlack/hosts.svg)](https://github.com/StevenBlack/hosts/commits/master)
# Unified hosts file @EXTENSIONS_HEADER@
This repository consolidates several reputable `hosts` files, and merges them
@@ -7,6 +23,7 @@ into a unified hosts file with duplicates removed. A variety of tailored hosts
* Last updated: **@GEN_DATE@**.
* Here's the [raw hosts file @EXTENSIONS_HEADER@](https://raw.githubusercontent.com/StevenBlack/hosts/master/@SUBFOLDER@hosts) containing @NUM_ENTRIES@ entries.
* Logo by [@Tobaloidee](https://github.com/Tobaloidee).
### List of all hosts file variants
@@ -33,31 +50,33 @@ Host file source | Description | Home page | Raw hosts | Update frequency | Lice
## Extensions
The unified hosts file is extensible. You manage extensions by curating the
`extensions/` folder tree. See the `fakenews`, `social`, `gambling`, and `porn` extension
folders.
The unified hosts file is extensible. Extensions are used to block domains by category.
Extensions are optional, and are added to the base hosts file. Extensions are combined in various ways wth the default hosts file, and the combined products are stored in the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
For example, you may want to block porn domains in addition to the adware and malware we block by default. That hosts file is stored in the porn subfolder of the [`alternates`](https://github.com/StevenBlack/hosts/tree/master/alternates) folder.
Data for extensions is stored in the [`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder. You manage extensions by curating the
[`extensions`](https://github.com/StevenBlack/hosts/tree/master/extensions) folder tree where you will find the data for `fakenews`, `social`, `gambling`, and `porn` extension data that we maintain and provide for you.
## Generate your own unified hosts file
**Note** if you are using Python 3, please install the dependencies with:
To generate your own unified hosts file you will need Python 3.5 or later.
First install the dependencies with:
pip3 install --user -r requirements.txt
**Note** if you are using Python 2, please install the dependencies with:
pip2 install --user -r requirements_python2.txt
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
To run unit tests, in the top level directory, just run:
python testUpdateHostsFile.py
python3 testUpdateHostsFile.py
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
will generate a unified hosts file based on the sources in the local `data/`
subfolder. The script will prompt you whether it should fetch updated
versions (from locations defined by the `update.json` text file in each
source's folder). Otherwise, it will use the `hosts` file that's already there.
The `updateHostsFile.py` script will generate a unified hosts file based on the sources in the
local `data/` subfolder. The script will prompt you whether it should fetch updated versions
(from locations defined by the `update.json` text file in each source's folder). Otherwise, it
will use the `hosts` file that's already there.
### Usage
@@ -65,10 +84,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Using Python 2.7:
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
#### Command line options:
`--help`, or `-h`: display help.
@@ -95,9 +110,8 @@ Only active when `--replace` is also active.
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
target. Default is `0.0.0.0`.
`--keepdomaincomments`, or `-k`: `false` (default) or `true`, keep the comments
that appear on the same line as domains. The default is `false` since some
router-based implementations can't handle comments in-line with hosts.
`--keepdomaincomments`, or `-k`: `true` (default) or `false`, keep the comments
that appear on the same line as domains. The default is `true`.
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
@@ -173,11 +187,11 @@ Fork this hosts this repo and add your links to [https://github.com/StevenBlack/
Then, submit a pull request.
**WARNING**: this is less desireable than Option 1 because the ongoing curation falls on us and what you've just done is created more work for us.
**WARNING**: this is less desirable than Option 1 because the ongoing curation falls on us 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 existance of your remo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
If you're able to curate your own collection of sketchy domains, then curate your own hosts list. Then signal the existance of your repo as [a new issue](https://github.com/StevenBlack/hosts/issues) and we may include your new repo into the collection of sources we pull whenever we create new versions.
## What is a hosts file?
@@ -222,9 +236,9 @@ 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.
## Updating hosts file on Windows
@@ -285,7 +299,9 @@ sc stop "Dnscache"
Open a Terminal and run with root privileges:
**Debian/Ubuntu** `sudo /etc/rc.d/init.d/nscd restart`
**Debian/Ubuntu** `sudo service network-manager restart`
**Linux Mint** `sudo /etc/init.d/dns-clean start`
**Linux with systemd**: `sudo systemctl restart network.service`
@@ -295,6 +311,23 @@ 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
@@ -341,6 +374,8 @@ devices under a variety of operating systems.
## Interesting Applications
* [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.
+2 -3
View File
@@ -1,3 +1,2 @@
lxml==4.1.1
beautifulsoup4==4.6.0
mock==2.0.0
lxml>=4.2.4
beautifulsoup4==4.6.1
-3
View File
@@ -1,3 +0,0 @@
mock==2.0.0
lxml==4.1.1
beautifulsoup4==4.6.0
+43 -90
View File
@@ -13,9 +13,11 @@ import shutil
import sys
import tempfile
import unittest
import unittest.mock as mock
from io import BytesIO, StringIO
import updateHostsFile
from updateHostsFile import (PY3, Colors, colorize, display_exclusion_options,
from updateHostsFile import (Colors, colorize, display_exclusion_options,
domain_to_idna, exclude_domain, flush_dns_cache,
gather_custom_exclusions, get_defaults,
get_file_by_url, is_valid_domain_format,
@@ -29,14 +31,7 @@ from updateHostsFile import (PY3, Colors, colorize, display_exclusion_options,
update_sources_data, write_data,
write_opening_header)
if PY3:
from io import BytesIO, StringIO
import unittest.mock as mock
unicode = str
else:
from StringIO import StringIO
BytesIO = StringIO
import mock
unicode = str
# Test Helper Objects
@@ -48,13 +43,10 @@ class Base(unittest.TestCase):
@property
def sep(self):
return "\\" if sys.platform == "win32" else "/"
return os.sep
def assert_called_once(self, mock_method):
if PY3 and sys.version_info < (3, 6):
self.assertEqual(mock_method.call_count, 1)
else:
mock_method.assert_called_once()
self.assertEqual(mock_method.call_count, 1)
class BaseStdout(Base):
@@ -78,13 +70,6 @@ class BaseMockDir(Base):
def tearDown(self):
shutil.rmtree(self.test_dir)
def builtins():
if PY3:
return "builtins"
else:
return "__builtin__"
# End Test Helper Objects
@@ -101,7 +86,7 @@ class TestGetDefaults(Base):
"replace": False,
"backup": False,
"skipstatichosts": False,
"keepdomaincomments": False,
"keepdomaincomments": True,
"extensionspath": "foo" + self.sep + "extensions",
"extensions": [],
"compress": False,
@@ -117,7 +102,7 @@ class TestGetDefaults(Base):
"readmedata": {},
"readmedatafilename": ("foo" + self.sep +
"readmeData.json"),
"exclusionpattern": "([a-zA-Z\d-]+\.){0,}",
"exclusionpattern": r"([a-zA-Z\d-]+\.){0,}",
"exclusionregexs": [],
"exclusions": [],
"commonexclusions": ["hulu.com"],
@@ -179,7 +164,7 @@ class TestPromptForUpdate(BaseStdout, BaseMockDir):
contents = f.read()
self.assertEqual(contents, "")
@mock.patch(builtins() + ".open")
@mock.patch("builtins.open")
def test_no_freshen_fail_new_file(self, mock_open):
for exc in (IOError, OSError):
mock_open.side_effect = exc("failed open")
@@ -255,7 +240,6 @@ class TestPromptForUpdate(BaseStdout, BaseMockDir):
def tearDown(self):
BaseStdout.tearDown(self)
# BaseStdout.tearDown(self)
class TestPromptForExclusions(BaseStdout):
@@ -467,7 +451,7 @@ class TestGatherCustomExclusions(BaseStdout):
# Can only test in the invalid domain case
# because of the settings global variable.
@mock.patch("updateHostsFile.raw_input", side_effect=["foo", "no"])
@mock.patch("updateHostsFile.input", side_effect=["foo", "no"])
@mock.patch("updateHostsFile.is_valid_domain_format", return_value=False)
def test_basic(self, *_):
gather_custom_exclusions("foo", [])
@@ -476,8 +460,7 @@ class TestGatherCustomExclusions(BaseStdout):
output = sys.stdout.getvalue()
self.assertIn(expected, output)
@mock.patch("updateHostsFile.raw_input", side_effect=["foo", "yes",
"bar", "no"])
@mock.patch("updateHostsFile.input", side_effect=["foo", "yes", "bar", "no"])
@mock.patch("updateHostsFile.is_valid_domain_format", return_value=False)
def test_multiple(self, *_):
gather_custom_exclusions("foo", [])
@@ -504,7 +487,7 @@ class TestExcludeDomain(Base):
exp_count = 0
expected_regexes = []
exclusion_regexes = []
exclusion_pattern = "[a-z]\."
exclusion_pattern = r"[a-z]\."
for domain in ["google.com", "hulu.com", "adaway.org"]:
self.assertEqual(len(exclusion_regexes), exp_count)
@@ -530,7 +513,7 @@ class TestMatchesExclusions(Base):
self.assertFalse(matches_exclusions(domain, exclusion_regexes))
def test_no_match_list(self):
exclusion_regexes = [".*\.org", ".*\.edu"]
exclusion_regexes = [r".*\.org", r".*\.edu"]
exclusion_regexes = [re.compile(regex) for regex in exclusion_regexes]
for domain in ["1.2.3.4 localhost", "5.6.7.8 hulu.com",
@@ -538,7 +521,7 @@ class TestMatchesExclusions(Base):
self.assertFalse(matches_exclusions(domain, exclusion_regexes))
def test_match_list(self):
exclusion_regexes = [".*\.com", ".*\.org", ".*\.edu"]
exclusion_regexes = [r".*\.com", r".*\.org", r".*\.edu"]
exclusion_regexes = [re.compile(regex) for regex in exclusion_regexes]
for domain in ["5.6.7.8 hulu.com", "9.1.2.3 yahoo.com",
@@ -567,7 +550,7 @@ class TestUpdateSourcesData(Base):
@mock.patch("updateHostsFile.recursive_glob", return_value=[])
@mock.patch("updateHostsFile.path_join_robust", return_value="dirpath")
@mock.patch(builtins() + ".open", return_value=mock.Mock())
@mock.patch("builtins.open", return_value=mock.Mock())
def test_no_update(self, mock_open, mock_join_robust, _):
extensions = []
sources_data = [{"source": "source1.txt"}, {"source": "source2.txt"}]
@@ -589,7 +572,7 @@ class TestUpdateSourcesData(Base):
@mock.patch("updateHostsFile.recursive_glob",
side_effect=[[], ["update1.txt", "update2.txt"]])
@mock.patch("json.load", return_value={"mock_source": "mock_source.ext"})
@mock.patch(builtins() + ".open", return_value=mock.Mock())
@mock.patch("builtins.open", return_value=mock.Mock())
@mock.patch("updateHostsFile.path_join_robust", return_value="dirpath")
def test_update_only_extensions(self, mock_join_robust, *_):
extensions = [".json"]
@@ -607,7 +590,7 @@ class TestUpdateSourcesData(Base):
{"mock_source": "mock_source2.txt"},
{"mock_source": "mock_source3.txt"},
{"mock_source": "mock_source4.txt"}])
@mock.patch(builtins() + ".open", return_value=mock.Mock())
@mock.patch("builtins.open", return_value=mock.Mock())
@mock.patch("updateHostsFile.path_join_robust", return_value="dirpath")
def test_update_both_pathways(self, mock_join_robust, *_):
extensions = [".json"]
@@ -630,13 +613,13 @@ class TestUpdateAllSources(BaseStdout):
self.source_data_filename = "data.json"
self.host_filename = "hosts.txt"
@mock.patch(builtins() + ".open")
@mock.patch("builtins.open")
@mock.patch("updateHostsFile.recursive_glob", return_value=[])
def test_no_sources(self, _, mock_open):
update_all_sources(self.source_data_filename, self.host_filename)
mock_open.assert_not_called()
@mock.patch(builtins() + ".open", return_value=mock.Mock())
@mock.patch("builtins.open", return_value=mock.Mock())
@mock.patch("json.load", return_value={"url": "example.com"})
@mock.patch("updateHostsFile.recursive_glob", return_value=["foo"])
@mock.patch("updateHostsFile.write_data", return_value=0)
@@ -651,7 +634,7 @@ class TestUpdateAllSources(BaseStdout):
self.assertIn(expected, output)
@mock.patch(builtins() + ".open", return_value=mock.Mock())
@mock.patch("builtins.open", return_value=mock.Mock())
@mock.patch("json.load", return_value={"url": "example.com"})
@mock.patch("updateHostsFile.recursive_glob", return_value=["foo"])
@mock.patch("updateHostsFile.write_data", return_value=0)
@@ -668,7 +651,7 @@ class TestUpdateAllSources(BaseStdout):
for expected in expecteds:
self.assertIn(expected, output)
@mock.patch(builtins() + ".open", return_value=mock.Mock())
@mock.patch("builtins.open", return_value=mock.Mock())
@mock.patch("json.load", side_effect=[{"url": "example.com"},
{"url": "example2.com"}])
@mock.patch("updateHostsFile.recursive_glob", return_value=["foo", "bar"])
@@ -770,10 +753,12 @@ class TestStripRule(Base):
self.assertEqual(output, line)
def test_strip_more_than_two(self):
comment = " # comments here galore"
for line in ["0.0.0.0 twitter.com", "127.0.0.1 facebook.com",
"8.8.8.8 google.com", "1.2.3.4 foo.bar.edu"]:
output = strip_rule(line + " # comments here galore")
self.assertEqual(output, line)
output = strip_rule(line + comment)
self.assertEqual(output, line + comment)
class TestWriteOpeningHeader(BaseMockDir):
@@ -917,44 +902,10 @@ class TestWriteOpeningHeader(BaseMockDir):
):
self.assertNotIn(expected, contents)
def test_no_preamble(self):
# We should not even attempt to read this, as it is a directory.
hosts_dir = os.path.join(self.test_dir, "myhosts")
os.mkdir(hosts_dir)
kwargs = dict(extensions="", outputsubfolder="",
numberofrules=5, skipstatichosts=True)
with self.mock_property("updateHostsFile.BASEDIR_PATH"):
updateHostsFile.BASEDIR_PATH = self.test_dir
write_opening_header(self.final_file, **kwargs)
contents = self.final_file.getvalue()
contents = contents.decode("UTF-8")
# Expected contents.
for expected in (
"# This hosts file is a merged collection",
"# with a dash of crowd sourcing via Github",
"# Number of unique domains: {count}".format(
count=kwargs["numberofrules"]),
"Fetch the latest version of this file:",
"Project home page: https://github.com/StevenBlack/hosts",
):
self.assertIn(expected, contents)
# Expected non-contents.
for expected in (
"# Extensions added to this file:",
"127.0.0.1 localhost",
"127.0.0.1 local",
"127.0.0.53",
"127.0.1.1",
):
self.assertNotIn(expected, contents)
def test_preamble(self):
def _check_preamble(self, check_copy):
hosts_file = os.path.join(self.test_dir, "myhosts")
hosts_file += ".example" if check_copy else ""
with open(hosts_file, "w") as f:
f.write("peter-piper-picked-a-pepper")
@@ -990,6 +941,12 @@ class TestWriteOpeningHeader(BaseMockDir):
):
self.assertNotIn(expected, contents)
def test_preamble_exists(self):
self._check_preamble(True)
def test_preamble_copy(self):
self._check_preamble(False)
def tearDown(self):
super(TestWriteOpeningHeader, self).tearDown()
self.final_file.close()
@@ -1100,7 +1057,7 @@ class TestMoveHostsFile(BaseStdout):
expected = ("Automatically moving the hosts "
"file in place is not yet supported.\n"
"Please move the generated file to "
"%SystemRoot%\system32\drivers\etc\hosts")
r"%SystemRoot%\system32\drivers\etc\hosts")
output = sys.stdout.getvalue()
self.assertIn(expected, output)
@@ -1186,7 +1143,7 @@ class TestFlushDnsCache(BaseStdout):
output = sys.stdout.getvalue()
self.assertIn(expected, output)
@mock.patch("os.path.isfile", side_effect=[True] + [False] * 10)
@mock.patch("os.path.isfile", side_effect=[True] + [False] * 11)
@mock.patch("subprocess.call", return_value=0)
def test_flush_posix(self, *_):
with self.mock_property("platform.system") as obj:
@@ -1201,7 +1158,7 @@ class TestFlushDnsCache(BaseStdout):
output = sys.stdout.getvalue()
self.assertIn(expected, output)
@mock.patch("os.path.isfile", side_effect=[True] + [False] * 10)
@mock.patch("os.path.isfile", side_effect=[True] + [False] * 11)
@mock.patch("subprocess.call", return_value=1)
def test_flush_posix_fail(self, *_):
with self.mock_property("platform.system") as obj:
@@ -1216,7 +1173,7 @@ class TestFlushDnsCache(BaseStdout):
output = sys.stdout.getvalue()
self.assertIn(expected, output)
@mock.patch("os.path.isfile", side_effect=[True, False,
@mock.patch("os.path.isfile", side_effect=[True, False, False,
True] + [False] * 10)
@mock.patch("subprocess.call", side_effect=[1, 0])
def test_flush_posix_fail_then_succeed(self, *_):
@@ -1600,7 +1557,7 @@ class TestQueryYesOrNo(BaseStdout):
for invalid_default in ["foo", "bar", "baz", 1, 2, 3]:
self.assertRaises(ValueError, query_yes_no, "?", invalid_default)
@mock.patch("updateHostsFile.raw_input", side_effect=["yes"] * 3)
@mock.patch("updateHostsFile.input", side_effect=["yes"] * 3)
def test_valid_default(self, _):
for valid_default, expected in [(None, "[y/n]"), ("yes", "[Y/n]"),
("no", "[y/N]")]:
@@ -1611,7 +1568,7 @@ class TestQueryYesOrNo(BaseStdout):
self.assertIn(expected, output)
@mock.patch("updateHostsFile.raw_input", side_effect=([""] * 2))
@mock.patch("updateHostsFile.input", side_effect=([""] * 2))
def test_use_valid_default(self, _):
for valid_default in ["yes", "no"]:
expected = (valid_default == "yes")
@@ -1619,19 +1576,15 @@ class TestQueryYesOrNo(BaseStdout):
self.assertEqual(actual, expected)
@mock.patch("updateHostsFile.raw_input", side_effect=["no", "NO", "N",
"n", "No", "nO"])
@mock.patch("updateHostsFile.input", side_effect=["no", "NO", "N", "n", "No", "nO"])
def test_valid_no(self, _):
self.assertFalse(query_yes_no("?", None))
@mock.patch("updateHostsFile.raw_input", side_effect=["yes", "YES", "Y",
"yeS", "y", "YeS",
"yES", "YEs"])
@mock.patch("updateHostsFile.input", side_effect=["yes", "YES", "Y", "yeS", "y", "YeS", "yES", "YEs"])
def test_valid_yes(self, _):
self.assertTrue(query_yes_no("?", None))
@mock.patch("updateHostsFile.raw_input", side_effect=["foo", "yes",
"foo", "no"])
@mock.patch("updateHostsFile.input", side_effect=["foo", "yes", "foo", "no"])
def test_invalid_then_valid(self, _):
expected = "Please respond with 'yes' or 'no'"
+103 -108
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# Script by Ben Limmer
# https://github.com/l1m5
@@ -6,9 +6,6 @@
# This Python script will combine all the host files you provide
# as sources into one, unique host file to keep you internet browsing happy.
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import argparse
import fnmatch
import json
@@ -32,10 +29,8 @@ PY3 = sys.version_info >= (3, 0)
if PY3:
from urllib.request import urlopen
raw_input = input
else: # Python 2
from urllib2 import urlopen
raw_input = raw_input # noqa
else:
raise Exception('We do not support Python 2 anymore.')
# Syntactic sugar for "sudo" command in UNIX / Linux
if platform.system() == "OpenBSD":
@@ -65,7 +60,7 @@ def get_defaults():
"replace": False,
"backup": False,
"skipstatichosts": False,
"keepdomaincomments": False,
"keepdomaincomments": True,
"extensionspath": path_join_robust(BASEDIR_PATH, "extensions"),
"extensions": [],
"compress": False,
@@ -76,12 +71,10 @@ def get_defaults():
"sourcedatafilename": "update.json",
"sourcesdata": [],
"readmefilename": "readme.md",
"readmetemplate": path_join_robust(BASEDIR_PATH,
"readme_template.md"),
"readmetemplate": path_join_robust(BASEDIR_PATH, "readme_template.md"),
"readmedata": {},
"readmedatafilename": path_join_robust(BASEDIR_PATH,
"readmeData.json"),
"exclusionpattern": "([a-zA-Z\d-]+\.){0,}",
"readmedatafilename": path_join_robust(BASEDIR_PATH, "readmeData.json"),
"exclusionpattern": r"([a-zA-Z\d-]+\.){0,}",
"exclusionregexs": [],
"exclusions": [],
"commonexclusions": ["hulu.com"],
@@ -106,8 +99,8 @@ def main():
parser.add_argument("--ip", "-i", dest="targetip", default="0.0.0.0",
help="Target IP address. Default is 0.0.0.0.")
parser.add_argument("--keepdomaincomments", "-k",
dest="keepdomaincomments", default=False,
help="Keep domain line comments.")
dest="keepdomaincomments", action="store_false", default=True,
help="Do not keep domain line comments.")
parser.add_argument("--noupdate", "-n", dest="noupdate", default=False,
action="store_true", help="Don't update from "
"host data sources.")
@@ -143,8 +136,7 @@ def main():
options = vars(parser.parse_args())
options["outputpath"] = path_join_robust(BASEDIR_PATH,
options["outputsubfolder"])
options["outputpath"] = path_join_robust(BASEDIR_PATH, options["outputsubfolder"])
options["freshen"] = not options["noupdate"]
settings = get_defaults()
@@ -157,8 +149,7 @@ def main():
settings["extensionsources"] = list_dir_no_hidden(extensions_path)
# All our extensions folders...
settings["extensions"] = [os.path.basename(item) for item in
list_dir_no_hidden(extensions_path)]
settings["extensions"] = [os.path.basename(item) for item in list_dir_no_hidden(extensions_path)]
# ... intersected with the extensions passed-in as arguments, then sorted.
settings["extensions"] = sorted(list(
set(options["extensions"]).intersection(settings["extensions"])))
@@ -192,15 +183,12 @@ def main():
merge_file = create_initial_file()
remove_old_hosts_file(settings["backup"])
if settings["compress"]:
# Another mode is required to read and write the file in Python 3
final_file = open(path_join_robust(settings["outputpath"], "hosts"),
"w+b" if PY3 else "w+")
final_file = open(path_join_robust(settings["outputpath"], "hosts"), "w+b")
compressed_file = tempfile.NamedTemporaryFile()
remove_dups_and_excl(merge_file, exclusion_regexes, compressed_file)
compress_file(compressed_file, settings["targetip"], final_file)
elif settings["minimise"]:
final_file = open(path_join_robust(settings["outputpath"], "hosts"),
"w+b" if PY3 else "w+")
final_file = open(path_join_robust(settings["outputpath"], "hosts"), "w+b")
minimised_file = tempfile.NamedTemporaryFile()
remove_dups_and_excl(merge_file, exclusion_regexes, minimised_file)
minimise_file(minimised_file, settings["targetip"], final_file)
@@ -271,8 +259,7 @@ def prompt_for_update(freshen, update_auto):
# Starting in Python 3.3, IOError is aliased
# OSError. However, we have to catch both for
# Python 2.x failures.
print_failure("ERROR: No 'hosts' file in the folder. "
"Try creating one manually.")
print_failure("ERROR: No 'hosts' file in the folder. Try creating one manually.")
if not freshen:
return
@@ -367,8 +354,7 @@ def prompt_for_move(final_file, **move_params):
elif move_params["auto"] or skip_static_hosts:
move_file = False
else:
prompt = ("Do you want to replace your existing hosts file " +
"with the newly generated file?")
prompt = "Do you want to replace your existing hosts file with the newly generated file?"
move_file = query_yes_no(prompt)
if move_file:
@@ -379,8 +365,7 @@ def prompt_for_move(final_file, **move_params):
# Exclusion logic
def display_exclusion_options(common_exclusions, exclusion_pattern,
exclusion_regexes):
def display_exclusion_options(common_exclusions, exclusion_pattern, exclusion_regexes):
"""
Display the exclusion options to the user.
@@ -443,13 +428,11 @@ def gather_custom_exclusions(exclusion_pattern, exclusion_regexes):
# We continue running this while-loop until the user
# says that they have no more domains to exclude.
while True:
domain_prompt = ("Enter the domain you want "
"to exclude (e.g. facebook.com): ")
user_domain = raw_input(domain_prompt)
domain_prompt = "Enter the domain you want to exclude (e.g. facebook.com): "
user_domain = input(domain_prompt)
if is_valid_domain_format(user_domain):
exclusion_regexes = exclude_domain(user_domain, exclusion_pattern,
exclusion_regexes)
exclusion_regexes = exclude_domain(user_domain, exclusion_pattern, exclusion_regexes)
continue_prompt = "Do you have more domains you want to enter?"
if not query_yes_no(continue_prompt):
@@ -543,8 +526,7 @@ def update_sources_data(sources_data, **sources_params):
source_data_filename = sources_params["sourcedatafilename"]
for source in recursive_glob(sources_params["datapath"],
source_data_filename):
for source in recursive_glob(sources_params["datapath"], source_data_filename):
update_file = open(source, "r")
update_data = json.load(update_file)
sources_data.append(update_data)
@@ -553,8 +535,7 @@ def update_sources_data(sources_data, **sources_params):
for source in sources_params["extensions"]:
source_dir = path_join_robust(
sources_params["extensionspath"], source)
for update_file_path in recursive_glob(source_dir,
source_data_filename):
for update_file_path in recursive_glob(source_dir, source_data_filename):
update_file = open(update_file_path, "r")
update_data = json.load(update_file)
@@ -613,8 +594,7 @@ def update_all_sources(source_data_filename, host_filename):
if update_data.get("transforms"):
update_transforms = update_data["transforms"]
print("Updating source " + os.path.dirname(
source) + " from " + update_url)
print("Updating source " + os.path.dirname(source) + " from " + update_url)
try:
updated_file = get_file_by_url(update_url)
@@ -647,8 +627,12 @@ def create_initial_file():
# spin the sources for the base file
for source in recursive_glob(settings["datapath"],
settings["hostfilename"]):
start = "# Start {}\n\n".format(os.path.basename(os.path.dirname(source)))
end = "# End {}\n\n".format(os.path.basename(os.path.dirname(source)))
with open(source, "r") as curFile:
write_data(merge_file, curFile.read())
write_data(merge_file, start + curFile.read() + end)
# spin the sources for extensions to the base file
for source in settings["extensions"]:
@@ -657,6 +641,8 @@ def create_initial_file():
with open(filename, "r") as curFile:
write_data(merge_file, curFile.read())
maybe_copy_example_file(settings["blacklistfile"])
if os.path.isfile(settings["blacklistfile"]):
with open(settings["blacklistfile"], "r") as curFile:
write_data(merge_file, curFile.read())
@@ -755,6 +741,8 @@ def remove_dups_and_excl(merge_file, exclusion_regexes, output_file=None):
"""
number_of_rules = settings["numberofrules"]
maybe_copy_example_file(settings["whitelistfile"])
if os.path.isfile(settings["whitelistfile"]):
with open(settings["whitelistfile"], "r") as ins:
for line in ins:
@@ -766,15 +754,12 @@ def remove_dups_and_excl(merge_file, exclusion_regexes, output_file=None):
os.makedirs(settings["outputpath"])
if output_file is None:
# Another mode is required to read and write the file in Python 3
final_file = open(path_join_robust(settings["outputpath"], "hosts"),
"w+b" if PY3 else "w+")
final_file = open(path_join_robust(settings["outputpath"], "hosts"), "w+b")
else:
final_file = output_file
merge_file.seek(0) # reset file pointer
hostnames = {"localhost", "localhost.localdomain",
"local", "broadcasthost"}
hostnames = {"localhost", "localhost.localdomain", "local", "broadcasthost"}
exclusions = settings["exclusions"]
for line in merge_file.readlines():
@@ -787,7 +772,7 @@ def remove_dups_and_excl(merge_file, exclusion_regexes, output_file=None):
line = line.replace("\t+", " ")
# see gh-271: trim trailing whitespace, periods
line = line.rstrip(' .') + "\n"
line = line.rstrip(' .')
# Testing the first character doesn't require startswith
if line[0] == "#" or re.match(r'^\s*$', line[0]):
@@ -807,7 +792,7 @@ def remove_dups_and_excl(merge_file, exclusion_regexes, output_file=None):
keep_domain_comments=settings["keepdomaincomments"])
for exclude in exclusions:
if re.search('[\s\.]' + re.escape(exclude) + '\s', line):
if re.search(r'[\s\.]' + re.escape(exclude) + r'\s', line):
write_line = False
break
@@ -844,7 +829,6 @@ def normalize_rule(rule, target_ip, keep_domain_comments):
and spacing reformatted.
"""
"""
first try: IP followed by domain
"""
@@ -859,7 +843,10 @@ def normalize_rule(rule, target_ip, keep_domain_comments):
rule = "%s %s" % (target_ip, hostname)
if suffix and keep_domain_comments:
rule += " #%s" % suffix
if not suffix.strip().startswith('#'):
rule += " #%s" % suffix
else:
rule += " %s" % suffix
return hostname, rule + "\n"
@@ -876,11 +863,13 @@ def normalize_rule(rule, target_ip, keep_domain_comments):
rule = "%s %s" % (target_ip, ip_host)
if suffix and keep_domain_comments:
rule += " #%s" % suffix
if not suffix.strip().startswith('#'):
rule += " #%s" % suffix
else:
rule += " %s" % suffix
return ip_host, rule + "\n"
"""
finally, if we get here, just belch to screen
"""
@@ -892,9 +881,6 @@ def strip_rule(line):
"""
Sanitize a rule string provided before writing it to the output hosts file.
Some sources put comments around their rules, for accuracy we need
to strip them the comments are preserved in the output hosts file.
Parameters
----------
line : str
@@ -911,7 +897,7 @@ def strip_rule(line):
# just return blank
return ""
else:
return split_line[0] + " " + split_line[1]
return " ".join(split_line)
def write_opening_header(final_file, **header_params):
@@ -939,25 +925,19 @@ def write_opening_header(final_file, **header_params):
write_data(final_file, "# This hosts file is a merged collection "
"of hosts from reputable sources,\n")
write_data(final_file, "# with a dash of crowd sourcing via Github\n#\n")
write_data(final_file, "# Date: " + time.strftime(
"%B %d %Y", time.gmtime()) + "\n")
write_data(final_file, "# Date: " + time.strftime("%B %d %Y", time.gmtime()) + "\n")
if header_params["extensions"]:
write_data(final_file, "# Extensions added to this file: " + ", ".join(
header_params["extensions"]) + "\n")
write_data(final_file, ("# Number of unique domains: " +
"{:,}\n#\n".format(header_params[
"numberofrules"])))
write_data(final_file, ("# Number of unique domains: {:,}\n#\n".format(header_params["numberofrules"])))
write_data(final_file, "# Fetch the latest version of this file: "
"https://raw.githubusercontent.com/"
"StevenBlack/hosts/master/" +
path_join_robust(header_params["outputsubfolder"],
"") + "hosts\n")
write_data(final_file, "# Project home page: https://github.com/"
"StevenBlack/hosts\n#\n")
write_data(final_file, "# ==============================="
"================================\n")
"https://raw.githubusercontent.com/StevenBlack/hosts/master/" +
path_join_robust(header_params["outputsubfolder"], "") + "hosts\n")
write_data(final_file, "# Project home page: https://github.com/StevenBlack/hosts\n")
write_data(final_file, "# Project releases: https://github.com/StevenBlack/hosts/releases\n#\n")
write_data(final_file, "# ===============================================================\n")
write_data(final_file, "\n")
if not header_params["skipstatichosts"]:
@@ -965,10 +945,15 @@ def write_opening_header(final_file, **header_params):
write_data(final_file, "127.0.0.1 localhost.localdomain\n")
write_data(final_file, "127.0.0.1 local\n")
write_data(final_file, "255.255.255.255 broadcasthost\n")
write_data(final_file, "::1 localhost ip6-localhost ip6-loopback\n")
write_data(final_file, "::1 localhost\n")
write_data(final_file, "::1 ip6-localhost\n")
write_data(final_file, "::1 ip6-loopback\n")
write_data(final_file, "fe80::1%lo0 localhost\n")
write_data(final_file, "ff00::0 ip6-localnet\n")
write_data(final_file, "ff00::0 ip6-mcastprefix\n")
write_data(final_file, "ff02::1 ip6-allnodes\n")
write_data(final_file, "ff02::2 ip6-allrouters\n")
write_data(final_file, "ff02::3 ip6-allhosts\n")
write_data(final_file, "0.0.0.0 0.0.0.0\n")
if platform.system() == "Linux":
@@ -978,6 +963,7 @@ def write_opening_header(final_file, **header_params):
write_data(final_file, "\n")
preamble = path_join_robust(BASEDIR_PATH, "myhosts")
maybe_copy_example_file(preamble)
if os.path.isfile(preamble):
with open(preamble, "r") as f:
@@ -1038,20 +1024,17 @@ def move_hosts_file_into_place(final_file):
----------
final_file : file object
The newly-created hosts file to move.
"""
""" # noqa: W605
filename = os.path.abspath(final_file.name)
if os.name == "posix":
print("Moving the file requires administrative privileges. "
"You might need to enter your password.")
print("Moving the file requires administrative privileges. You might need to enter your password.")
if subprocess.call(SUDO + ["cp", filename, "/etc/hosts"]):
print_failure("Moving the file failed.")
elif os.name == "nt":
print("Automatically moving the hosts file "
"in place is not yet supported.")
print("Please move the generated file to "
"%SystemRoot%\system32\drivers\etc\hosts")
print("Automatically moving the hosts file in place is not yet supported.")
print("Please move the generated file to %SystemRoot%\system32\drivers\etc\hosts") # noqa: W605
def flush_dns_cache():
@@ -1060,8 +1043,7 @@ def flush_dns_cache():
"""
print("Flushing the DNS cache to utilize new hosts file...")
print("Flushing the DNS cache requires administrative privileges. " +
"You might need to enter your password.")
print("Flushing the DNS cache requires administrative privileges. You might need to enter your password.")
dns_cache_found = False
@@ -1087,6 +1069,15 @@ def flush_dns_cache():
else:
print_success(nscd_msg.format(result="succeeded"))
centos_file = "/etc/init.d/network"
centos_msg = "Flushing the DNS cache by restarting network {result}"
if os.path.isfile(centos_file):
if subprocess.call(SUDO + [centos_file, "restart"]):
print_failure(centos_msg.format(result="failed"))
else:
print_success(centos_msg.format(result="succeeded"))
system_prefixes = ["/usr", ""]
service_types = ["NetworkManager", "wicd", "dnsmasq", "networking"]
@@ -1097,8 +1088,7 @@ def flush_dns_cache():
for service_type in service_types:
service = service_type + ".service"
service_file = path_join_robust(system_dir, service)
service_msg = ("Flushing the DNS cache by "
"restarting " + service + " {result}")
service_msg = ("Flushing the DNS cache by restarting " + service + " {result}")
if os.path.isfile(service_file):
dns_cache_found = True
@@ -1109,8 +1099,7 @@ def flush_dns_cache():
print_success(service_msg.format(result="succeeded"))
dns_clean_file = "/etc/init.d/dns-clean"
dns_clean_msg = ("Flushing the DNS cache via "
"dns-clean executable {result}")
dns_clean_msg = "Flushing the DNS cache via dns-clean executable {result}"
if os.path.isfile(dns_clean_file):
dns_cache_found = True
@@ -1232,6 +1221,26 @@ def domain_to_idna(line):
# Helper Functions
def maybe_copy_example_file(file_path):
"""
Given a file path, copy over its ".example" if the path doesn't exist.
If the path does exist, nothing happens in this function.
If the path doesn't exist, and the ".example" file doesn't exist, nothing happens in this function.
Parameters
----------
file_path : str
The full file path to check.
"""
if not os.path.isfile(file_path):
example_file_path = file_path + ".example"
if os.path.isfile(example_file_path):
shutil.copyfile(example_file_path, file_path)
def get_file_by_url(url):
"""
Get a file data located at a particular URL.
@@ -1263,7 +1272,7 @@ def get_file_by_url(url):
def write_data(f, data):
"""
Write data to a file object. This is a cross-Python implementation.
Write data to a file object.
Parameters
----------
@@ -1273,13 +1282,7 @@ def write_data(f, data):
The data to write to the file.
"""
if PY3:
f.write(bytes(data, "UTF-8"))
else:
try:
f.write(str(data))
except UnicodeEncodeError:
f.write(str(data.encode("UTF-8")))
f.write(bytes(data, "UTF-8"))
def list_dir_no_hidden(path):
@@ -1297,7 +1300,7 @@ def list_dir_no_hidden(path):
def query_yes_no(question, default="yes"):
"""
Ask a yes/no question via raw_input() and get answer from the user.
Ask a yes/no question via input() and get answer from the user.
Inspired by the following implementation:
@@ -1330,7 +1333,7 @@ def query_yes_no(question, default="yes"):
while not reply:
sys.stdout.write(colorize(question, Colors.PROMPT) + prompt)
choice = raw_input().lower()
choice = input().lower()
reply = None
if default and not choice:
@@ -1338,8 +1341,7 @@ def query_yes_no(question, default="yes"):
elif choice in valid:
reply = valid[choice]
else:
print_failure("Please respond with 'yes' or 'no' "
"(or 'y' or 'n').\n")
print_failure("Please respond with 'yes' or 'no' (or 'y' or 'n').\n")
return reply == "yes"
@@ -1363,11 +1365,10 @@ def is_valid_domain_format(domain):
print("You didn't enter a domain. Try again.")
return False
domain_regex = re.compile("www\d{0,3}[.]|https?")
domain_regex = re.compile(r"www\d{0,3}[.]|https?")
if domain_regex.match(domain):
print("The domain " + domain +
" is not valid. Do not include "
print("The domain " + domain + " is not valid. Do not include "
"www.domain.com or http(s)://domain.com. Try again.")
return False
else:
@@ -1378,10 +1379,6 @@ def recursive_glob(stem, file_pattern):
"""
Recursively match files in a directory according to a pattern.
This function is a version-independent of Python 3.x's function:
glob( ... "/**/" ... )
Parameters
----------
stem : str
@@ -1436,8 +1433,7 @@ def path_join_robust(path, *paths):
return os.path.join(path, *paths)
except UnicodeDecodeError as e:
raise locale.Error("Unable to construct path. This is "
"likely a LOCALE issue:\n\n" + str(e))
raise locale.Error("Unable to construct path. This is likely a LOCALE issue:\n\n" + str(e))
# Colors
@@ -1463,8 +1459,7 @@ def supports_color():
"""
sys_platform = sys.platform
supported = sys_platform != "Pocket PC" and (sys_platform != "win32"
or "ANSICON" in os.environ)
supported = sys_platform != "Pocket PC" and (sys_platform != "win32" or "ANSICON" in os.environ)
atty_connected = hasattr(sys.stdout, "isatty") and sys.stdout.isatty()
return supported and atty_connected
+13 -70
View File
@@ -5,12 +5,10 @@
#
# This Python script will update the readme files in this repo.
from string import Template
import os
import sys
import time
import json
import os
import time
from string import Template
# Project Settings
BASEDIR_PATH = os.path.dirname(os.path.realpath(__file__))
@@ -18,9 +16,6 @@ README_TEMPLATE = os.path.join(BASEDIR_PATH, 'readme_template.md')
README_FILENAME = 'readme.md'
README_DATA_FILENAME = "readmeData.json"
# Detecting Python 3 for version-dependent implementations
PY3 = sys.version_info >= (3, 0)
def main():
s = Template('${description} | [Readme](https://github.com/StevenBlack/'
@@ -32,10 +27,7 @@ def main():
with open(README_DATA_FILENAME, 'r') as f:
data = json.load(f)
if PY3:
keys = list(data.keys())
else:
keys = data.keys()
keys = list(data.keys())
# Sort by the number of en-dashes in the key
# and then by the key string itself.
@@ -60,7 +52,7 @@ def main():
"issues": "",
"url": "",
"license": "",
"issues": "" }
"issues": ""}
t = Template('${name} | ${description} |[link](${homeurl})'
' | [raw](${url}) | ${frequency} | ${license} | [issues](${issues}) ')
@@ -82,63 +74,14 @@ def main():
with open(os.path.join(data[key]["location"],
README_FILENAME), "wt") as out:
for line in open(README_TEMPLATE):
line = line.replace('@GEN_DATE@', time.strftime("%B %d %Y",
time.gmtime()))
line = line.replace('@EXTENSIONS@',
decode_line(extensions_str))
line = line.replace('@EXTENSIONS_HEADER@',
decode_line(extensions_header))
line = line.replace('@NUM_ENTRIES@',
"{:,}".format(data[key]["entries"]))
line = line.replace('@SUBFOLDER@',
decode_line(os.path.join(
data[key]["location"], '')))
line = line.replace('@TOCROWS@',
decode_line(toc_rows))
line = line.replace('@SOURCEROWS@',
decode_line(source_rows))
out.write(decode_line(line))
def decode_line(line):
"""
Python 2 compatible method for decoding unicode lines.
Parameters
----------
line : str
The unicode string to decode.
Returns
-------
decoded_str : str
Decoded unicode string.
"""
# Python 3.x has no unicode issues.
if PY3:
return line
# The biggest Python 2.x compatibility issue is the decoding of the
# en-dash. It either takes the form of u"\u2013" or "\xe2\x80\x93."
#
# This attempts to convert "\xe2\x80\x93" to u"\u2013" if necessary.
# If the character is already in the form of u"\u2013," this will
# raise an UnicodeEncodeError.
#
# In general, this line of code will allow us to convert unicode,
# UTF-8 encoded characters into pure unicode.
try:
line = line.decode("UTF-8")
except UnicodeEncodeError:
pass
# Replace u"\u2013" with the en-dash, so we now can decode.
#
# We can add additional "replace" lines in case there are other unicode
# literals that Python 2.x cannot handle.
line = line.replace(u"\u2013", "-")
return str(line.decode("UTF-8"))
line = line.replace('@GEN_DATE@', time.strftime("%B %d %Y", time.gmtime()))
line = line.replace('@EXTENSIONS@', extensions_str)
line = line.replace('@EXTENSIONS_HEADER@', extensions_header)
line = line.replace('@NUM_ENTRIES@', "{:,}".format(data[key]["entries"]))
line = line.replace('@SUBFOLDER@', os.path.join(data[key]["location"], ''))
line = line.replace('@TOCROWS@', toc_rows)
line = line.replace('@SOURCEROWS@', source_rows)
out.write(line)
if __name__ == "__main__":
View File