2016-02-23 01:39:41 +01:00
|
|
|
# Extensions
|
|
|
|
|
2016-02-28 02:16:41 +01:00
|
|
|
Use subfolders under the `extensions` folder to house extensions to the final unified hosts file.
|
2016-02-23 01:39:41 +01:00
|
|
|
|
2016-03-08 23:33:40 +01:00
|
|
|
Currently this repo includes three extensions:
|
2016-02-23 01:39:41 +01:00
|
|
|
|
2016-03-08 23:33:40 +01:00
|
|
|
* `gambling` for common online betting sites,
|
|
|
|
* `social` for common social media sites, and
|
2016-12-17 20:28:47 +01:00
|
|
|
* `porn` for porn sites.
|
|
|
|
* `fakenews` for fake news sites.
|
|
|
|
|
2016-03-08 23:33:40 +01:00
|
|
|
|
|
|
|
Here are some sample calls, which vary which extensions are included.
|
2016-02-23 01:39:41 +01:00
|
|
|
|
2016-02-23 16:05:16 +01:00
|
|
|
**Using Python 3**:
|
|
|
|
|
2016-03-18 11:52:08 +01:00
|
|
|
python3 updateHostsFile.py --auto --extensions porn social gambling
|
2016-02-23 16:05:16 +01:00
|
|
|
|
|
|
|
or, in short form:
|
2016-02-23 01:39:41 +01:00
|
|
|
|
2016-03-08 23:33:40 +01:00
|
|
|
python3 updateHostsFile.py -a -e porn social gambling
|
|
|
|
|
|
|
|
|
2016-02-23 01:39:41 +01:00
|
|
|
|
2016-02-23 16:05:16 +01:00
|
|
|
**Using Python 2.7**:
|
2016-02-23 01:39:41 +01:00
|
|
|
|
2016-03-13 06:32:14 +01:00
|
|
|
python updateHostsFile.py -auto --extensions porn social gambling
|
2016-02-23 16:05:16 +01:00
|
|
|
|
|
|
|
or, in short form:
|
|
|
|
|
2016-03-08 23:33:40 +01:00
|
|
|
python updateHostsFile.py -a -e porn social gambling
|
2016-03-06 18:07:13 +01:00
|
|
|
|
2016-02-23 16:05:16 +01:00
|
|
|
|
|
|
|
More built-in extensions are coming soon.
|