Minor whitespace/line endings consistency changes

This commit is contained in:
XhmikosR
2024-04-03 08:36:55 +03:00
parent 4d96abf2bc
commit 11f8e20042
33 changed files with 223 additions and 223 deletions

2
.github/config.yml vendored
View File

@@ -18,4 +18,4 @@ newPRWelcomeComment: >
firstPRMergeComment: > firstPRMergeComment: >
Congratulations on merging your first pull request here! 🎉🎉🎉 You are now in our [list of contributors](https://github.com/StevenBlack/hosts/graphs/contributors). Welcome! Congratulations on merging your first pull request here! 🎉🎉🎉 You are now in our [list of contributors](https://github.com/StevenBlack/hosts/graphs/contributors). Welcome!
# It is recommend to include as many gifs and emojis as possible! # It is recommend to include as many gifs and emojis as possible!

View File

@@ -13,5 +13,5 @@ jobs:
with: with:
persist-credentials: false persist-credentials: false
- name: 'Dependency Review' - name: Dependency Review
uses: actions/dependency-review-action@v4 uses: actions/dependency-review-action@v4

View File

@@ -1,9 +1,9 @@
{ {
"name": "Mitchell Krog's - Badd Boyz Hosts", "name": "Mitchell Krog's - Badd Boyz Hosts",
"description": "Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers", "description": "Sketchy domains and Bad Referrers from my Nginx and Apache Bad Bot and Spam Referrer Blockers",
"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": "MIT" "license": "MIT"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "KADhosts", "name": "KADhosts",
"description": "Fraud/adware/scam websites.", "description": "Fraud/adware/scam websites.",
"homeurl": "https://kadantiscam.netlify.app/", "homeurl": "https://kadantiscam.netlify.app/",
"frequency": "frequently", "frequency": "frequently",
"issues": "https://github.com/PolishFiltersTeam/KADhosts/issues", "issues": "https://github.com/PolishFiltersTeam/KADhosts/issues",
"url": "https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt", "url": "https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt",
"license": "CC BY-SA 4.0" "license": "CC BY-SA 4.0"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "MetaMask eth-phishing-detect", "name": "MetaMask eth-phishing-detect",
"description": "Phishing domains targeting Ethereum users.", "description": "Phishing domains targeting Ethereum users.",
"homeurl": "https://github.com/MetaMask/eth-phishing-detect", "homeurl": "https://github.com/MetaMask/eth-phishing-detect",
"frequency": "frequent", "frequency": "frequent",
"issues": "https://github.com/MetaMask/eth-phishing-detect/issues", "issues": "https://github.com/MetaMask/eth-phishing-detect/issues",
"url": "https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt", "url": "https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt",
"license": "DON'T BE A DICK PUBLIC LICENSE" "license": "DON'T BE A DICK PUBLIC LICENSE"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "Steven Black's ad-hoc list", "name": "Steven Black's ad-hoc list",
"description": "Additional sketch domains as I come across them.", "description": "Additional sketch domains as I come across them.",
"homeurl": "https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts", "homeurl": "https://github.com/StevenBlack/hosts/blob/master/data/StevenBlack/hosts",
"frequency": "occasionally", "frequency": "occasionally",
"issues": "https://github.com/StevenBlack/hosts/issues", "issues": "https://github.com/StevenBlack/hosts/issues",
"url": "https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts", "url": "https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts",
"license": "MIT" "license": "MIT"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "URLHaus", "name": "URLHaus",
"description": "A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.", "description": "A project from [abuse.ch](https://abuse.ch/) with the goal of sharing malicious URLs.",
"homeurl": "https://urlhaus.abuse.ch/", "homeurl": "https://urlhaus.abuse.ch/",
"frequency": "weekly", "frequency": "weekly",
"issues": "mailto:contactme@abuse.ch", "issues": "mailto:contactme@abuse.ch",
"url": "https://urlhaus.abuse.ch/downloads/hostfile/", "url": "https://urlhaus.abuse.ch/downloads/hostfile/",
"license": "CC0" "license": "CC0"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "UncheckyAds", "name": "UncheckyAds",
"description": "Windows installers ads sources sites based on https://unchecky.com/ content.", "description": "Windows installers ads sources sites based on https://unchecky.com/ content.",
"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" "license": "MIT"
} }

View File

@@ -1,10 +1,10 @@
{ {
"name": "AdAway", "name": "AdAway",
"description": "AdAway is an open source ad blocker for Android using the hosts file.", "description": "AdAway is an open source ad blocker for Android using the hosts file.",
"homeurl": "https://adaway.org/", "homeurl": "https://adaway.org/",
"frequency": "frequently", "frequency": "frequently",
"issues": "https://github.com/AdAway/adaway.github.io/issues", "issues": "https://github.com/AdAway/adaway.github.io/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", "license": "CC BY 3.0",
"pause": true "pause": true
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "add.2o7Net", "name": "add.2o7Net",
"description": "2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.", "description": "2o7Net tracking sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.",
"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" "license": "MIT"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "add.Dead", "name": "add.Dead",
"description": "Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.", "description": "Dead sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.",
"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" "license": "MIT"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "add.Risk", "name": "add.Risk",
"description": "Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.", "description": "Risk content sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.",
"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" "license": "MIT"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "add.Spam", "name": "add.Spam",
"description": "Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.", "description": "Spam sites based on [hostsfile.org](https://www.hostsfile.org/hosts.html) content.",
"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" "license": "MIT"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "hostsVN", "name": "hostsVN",
"description": "Hosts block ads of Vietnamese", "description": "Hosts block ads of Vietnamese",
"homeurl": "https://github.com/bigdargon/hostsVN", "homeurl": "https://github.com/bigdargon/hostsVN",
"frequency": "occasionally", "frequency": "occasionally",
"issues": "https://github.com/bigdargon/hostsVN/issues", "issues": "https://github.com/bigdargon/hostsVN/issues",
"url": "https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN", "url": "https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/hosts-VN",
"license": "MIT" "license": "MIT"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "minecraft-hosts", "name": "minecraft-hosts",
"description": "Minecraft related tracker hosts", "description": "Minecraft related tracker hosts",
"homeurl": "https://github.com/jamiemansfield/minecraft-hosts", "homeurl": "https://github.com/jamiemansfield/minecraft-hosts",
"frequency": "occasionally", "frequency": "occasionally",
"issues": "https://github.com/jamiemansfield/minecraft-hosts/issues", "issues": "https://github.com/jamiemansfield/minecraft-hosts/issues",
"url": "https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt", "url": "https://raw.githubusercontent.com/jamiemansfield/minecraft-hosts/master/lists/tracking.txt",
"license": "CC0-1.0" "license": "CC0-1.0"
} }

View File

@@ -1,10 +1,10 @@
{ {
"name": "MVPS hosts file", "name": "MVPS hosts file",
"description": "The purpose of this site is to provide the user with a high quality custom HOSTS file.", "description": "The purpose of this site is to provide the user with a high quality custom HOSTS file.",
"homeurl": "https://winhelp2002.mvps.org/", "homeurl": "https://winhelp2002.mvps.org/",
"frequency": "monthly", "frequency": "monthly",
"issues": "mailto:winhelp2002@gmail.com", "issues": "mailto:winhelp2002@gmail.com",
"url": "https://winhelp2002.mvps.org/hosts.txt", "url": "https://winhelp2002.mvps.org/hosts.txt",
"license": "CC BY-NC-SA 4.0", "license": "CC BY-NC-SA 4.0",
"pause": true "pause": true
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "shady-hosts", "name": "shady-hosts",
"description": "Analytics, ad, and activity monitoring hosts", "description": "Analytics, ad, and activity monitoring hosts",
"homeurl": "https://github.com/shreyasminocha/shady-hosts", "homeurl": "https://github.com/shreyasminocha/shady-hosts",
"frequency": "occasionally", "frequency": "occasionally",
"issues": "https://github.com/shreyasminocha/shady-hosts/issues", "issues": "https://github.com/shreyasminocha/shady-hosts/issues",
"url": "https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts", "url": "https://raw.githubusercontent.com/shreyasminocha/shady-hosts/main/hosts",
"license": "CC0-1.0" "license": "CC0-1.0"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "Dan Pollock [someonewhocares](https://someonewhocares.org/)", "name": "Dan Pollock [someonewhocares](https://someonewhocares.org/)",
"description": "How to make the internet not suck (as much).", "description": "How to make the internet not suck (as much).",
"homeurl": "https://someonewhocares.org/hosts/", "homeurl": "https://someonewhocares.org/hosts/",
"frequency": "frequently", "frequency": "frequently",
"issues": "mailto:hosts@someonewhocares.org", "issues": "mailto:hosts@someonewhocares.org",
"url": "https://someonewhocares.org/hosts/zero/hosts", "url": "https://someonewhocares.org/hosts/zero/hosts",
"license": "non-commercial with attribution" "license": "non-commercial with attribution"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "Tiuxo hostlist - ads", "name": "Tiuxo hostlist - ads",
"description": "Categorized hosts files for DNS based content blocking", "description": "Categorized hosts files for DNS based content blocking",
"homeurl": "https://github.com/tiuxo/hosts", "homeurl": "https://github.com/tiuxo/hosts",
"frequency": "occasional", "frequency": "occasional",
"issues": "https://github.com/tiuxo/hosts/issues", "issues": "https://github.com/tiuxo/hosts/issues",
"url": "https://raw.githubusercontent.com/tiuxo/hosts/master/ads", "url": "https://raw.githubusercontent.com/tiuxo/hosts/master/ads",
"license": "CC BY 4.0" "license": "CC BY 4.0"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "yoyo.org", "name": "yoyo.org",
"description": "Blocking with ad server and tracking server hostnames.", "description": "Blocking with ad server and tracking server hostnames.",
"homeurl": "https://pgl.yoyo.org/adservers/", "homeurl": "https://pgl.yoyo.org/adservers/",
"frequency": "frequently", "frequency": "frequently",
"issues": "mailto:pgl@yoyo.org", "issues": "mailto:pgl@yoyo.org",
"url": "https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0", "url": "https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0",
"pause": true "pause": true
} }

View File

@@ -6,17 +6,17 @@ title Disable DNS Cache Service
:: BatchGotAdmin :: BatchGotAdmin
:: Check for permissions :: Check for permissions
if "%PROCESSOR_ARCHITECTURE%" equ "amd64" ( if "%PROCESSOR_ARCHITECTURE%" equ "amd64" (
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system" >nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"
) else ( ) else (
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
) )
:: If the error flag set, we do not have admin rights. :: If the error flag set, we do not have admin rights.
if %ERRORLEVEL% neq 0 ( if %ERRORLEVEL% neq 0 (
echo Requesting administrative privileges... echo Requesting administrative privileges...
goto UACPrompt goto UACPrompt
) else ( ) else (
goto gotAdmin goto gotAdmin
) )
:UACPrompt :UACPrompt

View File

@@ -1,9 +1,9 @@
{ {
"name": "Fake News", "name": "Fake News",
"description": "An in-progress collection of fake news outlets.", "description": "An in-progress collection of fake news outlets.",
"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" "license": "MIT"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "BigDargon's gambling domain blocking hosts file", "name": "BigDargon's gambling domain blocking hosts file",
"description": "Extension from the project hostsVN", "description": "Extension from the project hostsVN",
"homeurl": "https://github.com/bigdargon/hostsVN/", "homeurl": "https://github.com/bigdargon/hostsVN/",
"frequency": "occasional", "frequency": "occasional",
"issues": "https://github.com/bigdargon/hostsVN/issues", "issues": "https://github.com/bigdargon/hostsVN/issues",
"url": "https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN", "url": "https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/gambling/hosts-VN",
"license": "MIT" "license": "MIT"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "Sinfonietta's gambling blocking hosts file", "name": "Sinfonietta's gambling blocking hosts file",
"description": "A collection of category-specific host files.", "description": "A collection of category-specific host files.",
"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" "license": "MIT"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "BigDargon's adult domain blocking hosts file", "name": "BigDargon's adult domain blocking hosts file",
"description": "Extension from the project hostsVN", "description": "Extension from the project hostsVN",
"homeurl": "https://github.com/bigdargon/hostsVN/", "homeurl": "https://github.com/bigdargon/hostsVN/",
"frequency": "occasional", "frequency": "occasional",
"issues": "https://github.com/bigdargon/hostsVN/issues", "issues": "https://github.com/bigdargon/hostsVN/issues",
"url": "https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN", "url": "https://raw.githubusercontent.com/bigdargon/hostsVN/master/extensions/adult/hosts-VN",
"license": "MIT" "license": "MIT"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "brijrajparmar27 - pornography", "name": "brijrajparmar27 - pornography",
"description": "hosts files for DNS based content blocking", "description": "hosts files for DNS based content blocking",
"homeurl": "https://github.com/brijrajparmar27/host-sources", "homeurl": "https://github.com/brijrajparmar27/host-sources",
"frequency": "occasional", "frequency": "occasional",
"issues": "https://github.com/brijrajparmar27/host-sources/issues", "issues": "https://github.com/brijrajparmar27/host-sources/issues",
"url": "https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts", "url": "https://raw.githubusercontent.com/brijrajparmar27/host-sources/master/Porn/hosts",
"license": "CC BY 4.0" "license": "CC BY 4.0"
} }

View File

@@ -1,10 +1,10 @@
{ {
"name": "pornhosts -- a consolidated anti porn hosts file", "name": "pornhosts -- a consolidated anti porn hosts file",
"description": "This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.", "description": "This is an endeavour to find all porn domains and compile them into a single hosts to allow for easy blocking of porn on your local machine or on a network.",
"homeurl": "https://github.com/Clefspeare13/pornhosts", "homeurl": "https://github.com/Clefspeare13/pornhosts",
"frequency": "occasional", "frequency": "occasional",
"issues": "https://github.com/Clefspeare13/pornhosts/issues", "issues": "https://github.com/Clefspeare13/pornhosts/issues",
"url": "https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts", "url": "https://raw.githubusercontent.com/StevenBlack/hosts/master/extensions/porn/clefspeare13/hosts",
"url.old": "https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/download_here/0.0.0.0/hosts", "url.old": "https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/download_here/0.0.0.0/hosts",
"license": "MIT" "license": "MIT"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "Sinfonietta's snuff-site blocking hosts file", "name": "Sinfonietta's snuff-site blocking hosts file",
"description": "A collection of category-specific host files.", "description": "A collection of category-specific host files.",
"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" "license": "MIT"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "Sinfonietta's porn blocking hosts file", "name": "Sinfonietta's porn blocking hosts file",
"description": "A collection of category-specific host files.", "description": "A collection of category-specific host files.",
"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" "license": "MIT"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "Tiuxo hostlist - pornography", "name": "Tiuxo hostlist - pornography",
"description": "Categorized hosts files for DNS based content blocking", "description": "Categorized hosts files for DNS based content blocking",
"homeurl": "https://github.com/tiuxo/hosts", "homeurl": "https://github.com/tiuxo/hosts",
"frequency": "occasional", "frequency": "occasional",
"issues": "https://github.com/tiuxo/hosts/issues", "issues": "https://github.com/tiuxo/hosts/issues",
"url": "https://raw.githubusercontent.com/tiuxo/hosts/master/porn", "url": "https://raw.githubusercontent.com/tiuxo/hosts/master/porn",
"license": "CC BY 4.0" "license": "CC BY 4.0"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "Sinfonietta's social media blocking hosts file", "name": "Sinfonietta's social media blocking hosts file",
"description": "A collection of category-specific host files.", "description": "A collection of category-specific host files.",
"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" "license": "MIT"
} }

View File

@@ -1,9 +1,9 @@
{ {
"name": "Tiuxo hostlist - social", "name": "Tiuxo hostlist - social",
"description": "Categorized hosts files for DNS based content blocking", "description": "Categorized hosts files for DNS based content blocking",
"homeurl": "https://github.com/tiuxo/hosts", "homeurl": "https://github.com/tiuxo/hosts",
"frequency": "occasional", "frequency": "occasional",
"issues": "https://github.com/tiuxo/hosts/issues", "issues": "https://github.com/tiuxo/hosts/issues",
"url": "https://raw.githubusercontent.com/tiuxo/hosts/master/social", "url": "https://raw.githubusercontent.com/tiuxo/hosts/master/social",
"license": "CC BY 4.0" "license": "CC BY 4.0"
} }

View File

@@ -16,17 +16,17 @@ title Update Hosts
:: BatchGotAdmin :: BatchGotAdmin
:: Check for permissions :: Check for permissions
if "%PROCESSOR_ARCHITECTURE%" equ "amd64" ( if "%PROCESSOR_ARCHITECTURE%" equ "amd64" (
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system" >nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"
) else ( ) else (
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
) )
:: If the error flag set, we do not have admin rights. :: If the error flag set, we do not have admin rights.
if %ERRORLEVEL% neq 0 ( if %ERRORLEVEL% neq 0 (
echo Requesting administrative privileges... echo Requesting administrative privileges...
goto UACPrompt goto UACPrompt
) else ( ) else (
goto gotAdmin goto gotAdmin
) )
:UACPrompt :UACPrompt
@@ -44,7 +44,7 @@ cd /d "%~dp0"
:BackupHosts :BackupHosts
:: Backup the default hosts file :: Backup the default hosts file
if not exist "%WINDIR%\System32\drivers\etc\hosts.skel" ( if not exist "%WINDIR%\System32\drivers\etc\hosts.skel" (
copy /v "%WINDIR%\System32\drivers\etc\hosts" "%WINDIR%\System32\drivers\etc\hosts.skel" copy /v "%WINDIR%\System32\drivers\etc\hosts" "%WINDIR%\System32\drivers\etc\hosts.skel"
) )
:UpdateHosts :UpdateHosts