2016-02-23 01:39:41 +01:00
|
|
|
# Extensions
|
|
|
|
|
2018-05-14 05:46:22 +02:00
|
|
|
Use subfolders under this `extensions` folder to house data sources for extensions to the default unified hosts file.
|
2016-02-23 01:39:41 +01:00
|
|
|
|
2018-05-14 05:46:22 +02:00
|
|
|
Currently, this repo includes data sources for four extensions:
|
2016-02-23 01:39:41 +01:00
|
|
|
|
2018-05-14 05:46:22 +02:00
|
|
|
* `fakenews` for fake news sites.
|
2017-08-23 08:28:14 +02:00
|
|
|
* `gambling` for common online betting sites,
|
|
|
|
* `porn` for porn sites, and
|
2018-05-14 05:46:22 +02:00
|
|
|
* `social` for common social media sites,
|
2016-12-17 20:28:47 +01:00
|
|
|
|
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
|
|
|
|
2018-09-01 09:56:39 +02:00
|
|
|
**Using the `updateHostsFile.py` script**:
|
2016-02-23 16:05:16 +01:00
|
|
|
|
2018-05-14 05:46:22 +02:00
|
|
|
Create a hosts file that includes domain blocking for porn, social media, and gambling.
|
|
|
|
|
2020-02-22 20:37:58 +01:00
|
|
|
```sh
|
|
|
|
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
|
|
|
|
2020-02-22 20:37:58 +01:00
|
|
|
```sh
|
|
|
|
python3 updateHostsFile.py -a -e porn social gambling
|
|
|
|
```
|