Latest amalgamated hosts file, with 27,140 unique entries.

This commit is contained in:
Steven Black
2016-02-15 11:18:51 -05:00
parent b394d64ec4
commit 734ffa8f32
2 changed files with 32 additions and 23 deletions
+4 -1
View File
@@ -1,6 +1,8 @@
# This file is a merged collection of hosts from reputable sources,
# with a dash of crowd sourcing via Github
#
# Latest version of this file: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
#
# Project home page: https://github.com/StevenBlack/hosts
#
# ===============================================================
@@ -17363,7 +17365,7 @@
# Please forward any additions, corrections or comments by email to
# hosts@someonewhocares.org
# Last updated: Fri, 12 Feb 2016 at 09:06:33 GMT
# Last updated: Mon, 15 Feb 2016 at 10:27:37 GMT
# Use this file to prevent your computer from connecting to selected
# internet hosts. This is an easy and effective way to protect you from
@@ -25005,6 +25007,7 @@
0.0.0.0 www.agkn.com
0.0.0.0 www.alexxe.com
0.0.0.0 www.allosponsor.com
0.0.0.0 www.amazing-opportunities.info
0.0.0.0 www.annuaire-autosurf.com
0.0.0.0 www.apparelncs.com
0.0.0.0 www.apparel-offer.com
+28 -22
View File
@@ -3,17 +3,17 @@
This repo consolidates several reputable `hosts` files and merges them into a single
amalgamated hosts file with duplicates removed.
**Currently this amalgamated hosts file contains 27,139 unique entries.**
**Currently this amalgamated hosts file contains 27,140 unique entries.**
## Goals of this amalgamated hosts file
The goals of this repo are to
The goals of this repo are to:
1) automatically combine high-quality lists of hosts,
1. automatically combine high-quality lists of hosts,
2) de-dupe the resultant combined list,
2. de-dupe the resultant combined list,
3) and keep the resultant file reasonably sized.
3. and keep the resultant file reasonably sized.
A high-quality source is defined here as one that is actively curated. A hosts source should be frequently
updated by its maintainers with both additions and removals. The larger the hosts file, the higher the level of
@@ -38,28 +38,34 @@ monthly, or thereabouts.
* Peter Lowe at [http://pgl.yoyo.org/adservers/](http://pgl.yoyo.org/adservers/), updated regularly.
* My own small list in raw form [here](https://raw.github.com/StevenBlack/hosts/master/data/StevenBlack/hosts).
You can add additional sources by placing them in the `data/` directory. Provide a copy of that new
`hosts` file, and place its update url in `update.info`. The `updateHostsFile.py` routine will
automatically refresh the `hosts` file from source each time a new amalgamated file is generated.
## Generate your own amalgamated hosts file
The `updateHostsFile.py` script, which is python 2.7 and Python 3-compatible, will generate an amalgamated hosts file
based on the sources in the local `data/` subfolder. The script will prompt ask you if it should fetch updated versions
over the web (defined by the update.info text file in each source's folder), or it will use the `hosts` file that's
already there.
**Usage**
python updateHostsFile.py [--auto]
Command line options:
`--auto`, `-a`: run the script without prompting. When `--auto` is invoked,
* Host data sources are updated.
* Your active hosts file is *not* replaced.
## How do I control which sources are amalgamated?
You can add additional sources by placing each in a subfolder of the `data/` folder. Provide a copy of that new
`hosts` file, and place its update url in `update.info`.
## How do I incorporate my own hosts?
If you have custom host records, place them in file `myhosts`. The contents of this file are prepended to the
amalgamated hosts file during the update process.
## Using updateHostsFile.py
This Python script will generate a unique hosts file based on the sources in the `data/` folder.
You can either have the script go out and fetch an updated version over the web (defined by the
update.info text file in the source's directory), or it will use the `hosts` file that's already
there.
Usage
python updateHostsFile.py
**TAKE NOTE** this script is tested with Python version 2.7.10.
## What is a hosts file?
A hosts file, named `hosts` (with no file extension), is a plain-text file used by all operating
@@ -82,7 +88,7 @@ file will do it:
# etc...
## Why use `0.0.0.0` instead of `127.0.0.1`?
## We recommend using `0.0.0.0` instead of `127.0.0.1`
Using `0.0.0.0` is faster because you don't have to wait for a timeout. It also does not interfere
with a web server that may be running on the local PC.