myhosts
+blacklist
whitelist
readmeData.json
hosts-*
--- /dev/null
+# blacklist
+#
+# The contents of this file (containing a listing of additional domains in
+# 'hosts' file format) are appended to the unified hosts file during the
+# update process. For example, uncomment the following line to block
+# 'example.com':
+
+# 0.0.0.0 example.com
Add one or more *optional* extensions, which originate from subfolders of the `extensions/` folder. Again the url in
`update.info` controls where this extension finds its updates.
+Create an *optional* `blacklist` file. The contents of this file (containing a listing of additional domains in
+`hosts` file format) are appended to the unified hosts file during the update process. A sample `blacklist` is
+included, and may be modified as you desire.
+
+ * NOTE: The `blacklist` is not tracked by git, so any changes you make won't be overridden when you `git pull`
+ this repo from `origin` in the future.
+
### How do I include my own custom domain mappings?
If you have custom hosts records, place them in file `myhosts`. The contents of this file are prepended to the
Add one or more *optional* extensions, which originate from subfolders of the `extensions/` folder. Again the url in
`update.info` controls where this extension finds its updates.
+Create an *optional* `blacklist` file. The contents of this file (containing a listing of additional domains in
+`hosts` file format) are appended to the unified hosts file during the update process. A sample `blacklist` is
+included, and may be modified as you desire.
+
+ * NOTE: The `blacklist` is not tracked by git, so any changes you make won't be overridden when you `git pull`
+ this repo from `origin` in the future.
+
### How do I include my own custom domain mappings?
If you have custom hosts records, place them in file `myhosts`. The contents of this file are prepended to the
"exclusionregexs" : [],
"exclusions" : [],
"commonexclusions" : ["hulu.com"],
+ "blacklistfile" : os.path.join(BASEDIR_PATH, "blacklist"),
"whitelistfile" : os.path.join(BASEDIR_PATH, "whitelist")}
def main():
#Done in a cross-python way
writeData(mergeFile, curFile.read())
+ if os.path.isfile(settings["blacklistfile"]):
+ with open(settings["blacklistfile"], "r") as curFile:
+ #Done in a cross-python way
+ writeData(mergeFile, curFile.read())
+
return mergeFile
def removeDupsAndExcl(mergeFile):