mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-07-01 02:36:52 +00:00
Documentation: clarify the role of extensions, and how they work.
This commit is contained in:
@@ -1,19 +1,21 @@
|
||||
# Extensions
|
||||
|
||||
Use subfolders under the `extensions` folder to house extensions to the final unified hosts file.
|
||||
Use subfolders under this `extensions` folder to house data sources for extensions to the default unified hosts file.
|
||||
|
||||
Currently, this repo includes four extensions:
|
||||
Currently, this repo includes data sources for four extensions:
|
||||
|
||||
* `gambling` for common online betting sites,
|
||||
* `social` for common social media sites,
|
||||
* `porn` for porn sites, and
|
||||
* `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 Python 3**:
|
||||
|
||||
Create a hosts file that includes domain blocking for porn, social media, and gambling.
|
||||
|
||||
python3 updateHostsFile.py --auto --extensions porn social gambling
|
||||
|
||||
or, in short form:
|
||||
@@ -30,5 +32,3 @@ or, in short form:
|
||||
|
||||
python updateHostsFile.py -a -e porn social gambling
|
||||
|
||||
|
||||
More built-in extensions are coming soon.
|
||||
|
||||
Reference in New Issue
Block a user