mirror of
https://github.com/StevenBlack/hosts.git
synced 2024-09-19 00:01:51 +02:00
e1ad037314
* Minor Markdown tweaks * Fix a few typos * Fix the release-it URL * Switch to shields.io for the Travis CI badge too
28 lines
718 B
Markdown
28 lines
718 B
Markdown
# Extensions
|
|
|
|
Use subfolders under this `extensions` folder to house data sources for extensions to the default unified hosts file.
|
|
|
|
Currently, this repo includes data sources for four extensions:
|
|
|
|
* `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 the `updateHostsFile.py` script**:
|
|
|
|
Create a hosts file that includes domain blocking for porn, social media, and gambling.
|
|
|
|
```sh
|
|
python3 updateHostsFile.py --auto --extensions porn social gambling
|
|
```
|
|
|
|
or, in short form:
|
|
|
|
```sh
|
|
python3 updateHostsFile.py -a -e porn social gambling
|
|
```
|