mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-07-01 02:36:52 +00:00
Add known licenses data to json metadata
This commit is contained in:
@@ -4,5 +4,6 @@
|
|||||||
"homeurl": "https://github.com/mitchellkrogza/Badd-Boyz-Hosts",
|
"homeurl": "https://github.com/mitchellkrogza/Badd-Boyz-Hosts",
|
||||||
"frequency": "weekly",
|
"frequency": "weekly",
|
||||||
"issues": "https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues",
|
"issues": "https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues",
|
||||||
"url": "https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts"
|
"url": "https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts",
|
||||||
|
"license": "'non-commercial with attribution'"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
"homeurl": "https://github.com/azet12/KADhosts",
|
"homeurl": "https://github.com/azet12/KADhosts",
|
||||||
"frequency": "frequently",
|
"frequency": "frequently",
|
||||||
"issues": "https://github.com/azet12/KADhosts/issues",
|
"issues": "https://github.com/azet12/KADhosts/issues",
|
||||||
"url": "https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt"
|
"url": "https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt",
|
||||||
}
|
"license": "GPLv3"
|
||||||
|
}
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
"homeurl": "https://github.com/FadeMind/hosts.extras",
|
"homeurl": "https://github.com/FadeMind/hosts.extras",
|
||||||
"frequency": "occasionally",
|
"frequency": "occasionally",
|
||||||
"issues": "https://github.com/FadeMind/hosts.extras/issues",
|
"issues": "https://github.com/FadeMind/hosts.extras/issues",
|
||||||
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/SpotifyAds/hosts"
|
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/SpotifyAds/hosts",
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
"homeurl": "https://github.com/FadeMind/hosts.extras",
|
"homeurl": "https://github.com/FadeMind/hosts.extras",
|
||||||
"frequency": "occasionally",
|
"frequency": "occasionally",
|
||||||
"issues": "https://github.com/FadeMind/hosts.extras/issues",
|
"issues": "https://github.com/FadeMind/hosts.extras/issues",
|
||||||
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts"
|
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts",
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
"homeurl": "https://adaway.org/",
|
"homeurl": "https://adaway.org/",
|
||||||
"frequency": "occasionally",
|
"frequency": "occasionally",
|
||||||
"issues": "https://github.com/AdAway/AdAway/issues",
|
"issues": "https://github.com/AdAway/AdAway/issues",
|
||||||
"url": "https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt"
|
"url": "https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt",
|
||||||
|
"license": "CC BY 3.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
"homeurl": "https://github.com/FadeMind/hosts.extras",
|
"homeurl": "https://github.com/FadeMind/hosts.extras",
|
||||||
"frequency": "occasionally",
|
"frequency": "occasionally",
|
||||||
"issues": "https://github.com/FadeMind/hosts.extras/issues",
|
"issues": "https://github.com/FadeMind/hosts.extras/issues",
|
||||||
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts"
|
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts",
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
"homeurl": "https://github.com/FadeMind/hosts.extras",
|
"homeurl": "https://github.com/FadeMind/hosts.extras",
|
||||||
"frequency": "occasionally",
|
"frequency": "occasionally",
|
||||||
"issues": "https://github.com/FadeMind/hosts.extras/issues",
|
"issues": "https://github.com/FadeMind/hosts.extras/issues",
|
||||||
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts"
|
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts",
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
"homeurl": "https://github.com/FadeMind/hosts.extras",
|
"homeurl": "https://github.com/FadeMind/hosts.extras",
|
||||||
"frequency": "occasionally",
|
"frequency": "occasionally",
|
||||||
"issues": "https://github.com/FadeMind/hosts.extras/issues",
|
"issues": "https://github.com/FadeMind/hosts.extras/issues",
|
||||||
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts"
|
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts",
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
"homeurl": "https://github.com/FadeMind/hosts.extras",
|
"homeurl": "https://github.com/FadeMind/hosts.extras",
|
||||||
"frequency": "occasionally",
|
"frequency": "occasionally",
|
||||||
"issues": "https://github.com/FadeMind/hosts.extras/issues",
|
"issues": "https://github.com/FadeMind/hosts.extras/issues",
|
||||||
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts"
|
"url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts",
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
"homeurl": "http://www.malwaredomainlist.com/",
|
"homeurl": "http://www.malwaredomainlist.com/",
|
||||||
"frequency": "weekly",
|
"frequency": "weekly",
|
||||||
"issues": "http://www.malwaredomainlist.com/contact.php",
|
"issues": "http://www.malwaredomainlist.com/contact.php",
|
||||||
"url": "https://www.malwaredomainlist.com/hostslist/hosts.txt"
|
"url": "https://www.malwaredomainlist.com/hostslist/hosts.txt",
|
||||||
|
"license": "'can be used for free by anyone'"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
"homeurl": "http://winhelp2002.mvps.org/",
|
"homeurl": "http://winhelp2002.mvps.org/",
|
||||||
"frequency": "monthly",
|
"frequency": "monthly",
|
||||||
"issues": "mailto:winhelp2002@gmail.com",
|
"issues": "mailto:winhelp2002@gmail.com",
|
||||||
"url": "http://winhelp2002.mvps.org/hosts.txt"
|
"url": "http://winhelp2002.mvps.org/hosts.txt",
|
||||||
|
"license": "CC BY-NC-SA 4.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
"homeurl": "http://someonewhocares.org/hosts/",
|
"homeurl": "http://someonewhocares.org/hosts/",
|
||||||
"frequency": "frequently",
|
"frequency": "frequently",
|
||||||
"issues": "hosts@someonewhocares.org",
|
"issues": "hosts@someonewhocares.org",
|
||||||
"url": "http://someonewhocares.org/hosts/zero/hosts"
|
"url": "http://someonewhocares.org/hosts/zero/hosts",
|
||||||
|
"license": "non-commercial with attribution"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
"homeurl": "https://github.com/marktron/fakenews",
|
"homeurl": "https://github.com/marktron/fakenews",
|
||||||
"frequency": "occasional",
|
"frequency": "occasional",
|
||||||
"issues": "https://github.com/marktron/fakenews/issues",
|
"issues": "https://github.com/marktron/fakenews/issues",
|
||||||
"url": "https://raw.githubusercontent.com/marktron/fakenews/master/fakenews"
|
"url": "https://raw.githubusercontent.com/marktron/fakenews/master/fakenews",
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
"homeurl": "https://github.com/Sinfonietta/hostfiles",
|
"homeurl": "https://github.com/Sinfonietta/hostfiles",
|
||||||
"frequency": "occasional",
|
"frequency": "occasional",
|
||||||
"issues": "https://github.com/Sinfonietta/hostfiles/issues",
|
"issues": "https://github.com/Sinfonietta/hostfiles/issues",
|
||||||
"url": "https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts"
|
"url": "https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts",
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
"homeurl": "https://github.com/Sinfonietta/hostfiles",
|
"homeurl": "https://github.com/Sinfonietta/hostfiles",
|
||||||
"frequency": "occasional",
|
"frequency": "occasional",
|
||||||
"issues": "https://github.com/Sinfonietta/hostfiles/issues",
|
"issues": "https://github.com/Sinfonietta/hostfiles/issues",
|
||||||
"url": "https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts"
|
"url": "https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts",
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
"homeurl": "https://github.com/Sinfonietta/hostfiles",
|
"homeurl": "https://github.com/Sinfonietta/hostfiles",
|
||||||
"frequency": "occasional",
|
"frequency": "occasional",
|
||||||
"issues": "https://github.com/Sinfonietta/hostfiles/issues",
|
"issues": "https://github.com/Sinfonietta/hostfiles/issues",
|
||||||
"url": "https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts"
|
"url": "https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts",
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
"homeurl": "https://github.com/Sinfonietta/hostfiles",
|
"homeurl": "https://github.com/Sinfonietta/hostfiles",
|
||||||
"frequency": "occasional",
|
"frequency": "occasional",
|
||||||
"issues": "https://github.com/Sinfonietta/hostfiles/issues",
|
"issues": "https://github.com/Sinfonietta/hostfiles/issues",
|
||||||
"url": "https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts"
|
"url": "https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts",
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,22 +19,22 @@ Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror
|
|||||||
---------------- |:------:|:---------:|:--------------:|:-------------:
|
---------------- |:------:|:---------:|:--------------:|:-------------:
|
||||||
@TOCROWS@
|
@TOCROWS@
|
||||||
|
|
||||||
**Expectation**: These unified hosts files should serve all devices, regardless
|
**Expectation**: These unified hosts files should serve all devices, regardless
|
||||||
of OS.
|
of OS.
|
||||||
|
|
||||||
## Sources of hosts data unified in this variant
|
## Sources of hosts data unified in this variant
|
||||||
|
|
||||||
Updated `hosts` files from the following locations are always unified and
|
Updated `hosts` files from the following locations are always unified and
|
||||||
included:
|
included:
|
||||||
|
|
||||||
Host file source | Description | Home page | Raw hosts | Update frequency
|
Host file source | Description | Home page | Raw hosts | Update frequency | License
|
||||||
-----------------|-------------|:---------:|:---------:|:-------:
|
-----------------|-------------|:---------:|:---------:|:-------:|:-------:
|
||||||
@SOURCEROWS@
|
@SOURCEROWS@
|
||||||
|
|
||||||
|
|
||||||
## Extensions
|
## Extensions
|
||||||
The unified hosts file is extensible. You manage extensions by curating the
|
The unified hosts file is extensible. You manage extensions by curating the
|
||||||
`extensions/` folder tree. See the `fakenews`, `social`, `gambling`, and `porn` extension
|
`extensions/` folder tree. See the `fakenews`, `social`, `gambling`, and `porn` extension
|
||||||
folders.
|
folders.
|
||||||
|
|
||||||
## Generate your own unified hosts file
|
## Generate your own unified hosts file
|
||||||
@@ -70,34 +70,34 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
|
|||||||
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
`--auto`, or `-a`: run the script without prompting. When `--auto` is invoked,
|
||||||
|
|
||||||
* Hosts data sources, including extensions, are updated.
|
* Hosts data sources, including extensions, are updated.
|
||||||
* No extensions are included by default. Use the `--extensions` or `-e` flag
|
* No extensions are included by default. Use the `--extensions` or `-e` flag
|
||||||
to include any you want.
|
to include any you want.
|
||||||
* Your active hosts file is *not* replaced unless you include the `--replace`
|
* Your active hosts file is *not* replaced unless you include the `--replace`
|
||||||
flag.
|
flag.
|
||||||
|
|
||||||
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate
|
||||||
over them.
|
over them.
|
||||||
|
|
||||||
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
|
`--extensions <ext1> <ext2> <ext3>`, or `-e <ext1> <ext2> <ext3>`: the names
|
||||||
of subfolders below the `extensions` folder containing additional
|
of subfolders below the `extensions` folder containing additional
|
||||||
category-specific hosts files to include in the amalgamation. Example:
|
category-specific hosts files to include in the amalgamation. Example:
|
||||||
`--extensions porn` or `-e social porn`.
|
`--extensions porn` or `-e social porn`.
|
||||||
|
|
||||||
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
`--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache.
|
||||||
Only active when `--replace` is also active.
|
Only active when `--replace` is also active.
|
||||||
|
|
||||||
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the
|
||||||
target. Default is `0.0.0.0`.
|
target. Default is `0.0.0.0`.
|
||||||
|
|
||||||
`--keepdomaincomments`, or `-k`: `false` (default) or `true`, keep the comments
|
`--keepdomaincomments`, or `-k`: `false` (default) or `true`, keep the comments
|
||||||
that appear on the same line as domains. The default is `false` since some
|
that appear on the same line as domains. The default is `false` since some
|
||||||
router-based implementations can't handle comments in-line with hosts.
|
router-based implementations can't handle comments in-line with hosts.
|
||||||
|
|
||||||
`--skipstatichosts`, or `-s`: `false` (default) or `true`,
|
`--skipstatichosts`, or `-s`: `false` (default) or `true`,
|
||||||
|
|
||||||
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
`--noupdate`, or `-n`: skip fetching updates from hosts data sources.
|
||||||
|
|
||||||
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
|
`--output <subfolder>`, or `-o <subfolder>`: place the generated source file
|
||||||
in a subfolder. If the subfolder does not exist, it will be created.
|
in a subfolder. If the subfolder does not exist, it will be created.
|
||||||
|
|
||||||
`--replace`, or `-r`: trigger replacing your active hosts
|
`--replace`, or `-r`: trigger replacing your active hosts
|
||||||
|
|||||||
@@ -58,10 +58,11 @@ def main():
|
|||||||
"homeurl": "",
|
"homeurl": "",
|
||||||
"frequency": "",
|
"frequency": "",
|
||||||
"issues": "",
|
"issues": "",
|
||||||
"url": ""}
|
"url": "",
|
||||||
|
"license: ""}
|
||||||
|
|
||||||
t = Template('${name} | ${description} |[link](${homeurl})'
|
t = Template('${name} | ${description} |[link](${homeurl})'
|
||||||
' | [raw](${url}) | ${frequency} ')
|
' | [raw](${url}) | ${frequency} | ${license} ')
|
||||||
|
|
||||||
for key in keys:
|
for key in keys:
|
||||||
extensions = key.replace("-", ", ")
|
extensions = key.replace("-", ", ")
|
||||||
|
|||||||
Reference in New Issue
Block a user