You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: alternates/fakenews-gambling-porn-social/readme.md
+31-25
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,8 @@
5
5
This repository consolidates several reputable `hosts` files, and merges them
6
6
into a unified hosts file with duplicates removed. A variety of tailored hosts files are provided.
7
7
8
-
* Last updated: **February 28 2018**.
9
-
* 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,869 entries.
8
+
* Last updated: **March 03 2018**.
9
+
* 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,865 entries.
10
10
11
11
12
12
### List of all hosts file variants
@@ -17,22 +17,22 @@ with Github download links.
17
17
18
18
Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
**Expectation**: These unified hosts files should serve all devices, regardless
@@ -76,13 +76,19 @@ folders.
76
76
77
77
## Generate your own unified hosts file
78
78
79
-
To run unit tests, in the top level directory, just run:
79
+
**Note** if you are using Python 3, please install the dependencies with:
80
80
81
-
python testUpdateHostsFile.py
81
+
pip3 install --user -r requirements.txt
82
+
83
+
**Note** if you are using Python 2, please install the dependencies with:
84
+
85
+
pip2 install --user -r requirements_python2.txt
82
86
83
-
**Note**if you are using Python 2, you must first install the `mock` library:
87
+
**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).
84
88
85
-
pip install mock
89
+
To run unit tests, in the top level directory, just run:
90
+
91
+
python testUpdateHostsFile.py
86
92
87
93
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
88
94
will generate a unified hosts file based on the sources in the local `data/`
@@ -141,9 +147,9 @@ in a subfolder. If the subfolder does not exist, it will be created.
141
147
section at the top, containing lines like `127.0.0.1 localhost`. This is
142
148
useful for configuring proximate DNS services on the local network.
143
149
144
-
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
145
-
ignoring non-necessary lines (empty lines and comments) and putting multiple
146
-
domains in each line. Reducing the number of lines of the hosts file improves
150
+
`--compress`, or `-c`: `false` (default) or `true`, *Compress* the hosts file
151
+
ignoring non-necessary lines (empty lines and comments) and putting multiple
152
+
domains in each line. Reducing the number of lines of the hosts file improves
147
153
the performances under Windows (with DNS Client service enabled).
148
154
149
155
`--minimise`, or `-m`: `false` (default) or `true`, like `--compress`, but puts
0 commit comments