From 724b31654c76e2134a17e37b61d9e2b378a8f0ee Mon Sep 17 00:00:00 2001 From: Ethan O'Brien Date: Fri, 30 Aug 2024 09:21:24 -0500 Subject: [PATCH] Rename project --- LICENSE | 2 +- README.md | 2 +- adblock.sh | 37 ------------------------------------- 3 files changed, 2 insertions(+), 39 deletions(-) delete mode 100755 adblock.sh diff --git a/LICENSE b/LICENSE index ae3d955..65e9b38 100644 --- a/LICENSE +++ b/LICENSE @@ -208,7 +208,7 @@ If you develop a new program, and you want it to be of the greatest possible use To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found. - adblock-hosts-script + blocker-hosts-script Copyright (C) 2024 ethanaobrien This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. diff --git a/README.md b/README.md index a82c775..000452c 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,4 @@ A bash script to pull adblock host files from multiple locations -Run `adblock.sh` +Run `./blocker.sh` diff --git a/adblock.sh b/adblock.sh deleted file mode 100755 index 1b884fb..0000000 --- a/adblock.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -sudo rm -f /etc/hosts -echo "# Static table lookup for hostnames." | sudo tee /etc/hosts > /dev/null -echo "# See hosts(5) for details." | sudo tee -a /etc/hosts > /dev/null - -# Discord -echo "0.0.0.0 discord.com" | sudo tee -a /etc/hosts > /dev/null -echo "0.0.0.0 discord.gg" | sudo tee -a /etc/hosts > /dev/null -echo "0.0.0.0 discordapp.com" | sudo tee -a /etc/hosts > /dev/null -echo "0.0.0.0 discord.media" | sudo tee -a /etc/hosts > /dev/null -echo "0.0.0.0 discordapp.net" | sudo tee -a /etc/hosts > /dev/null -echo "0.0.0.0 discordcdn.com" | sudo tee -a /etc/hosts > /dev/null -echo "0.0.0.0 discord.dev" | sudo tee -a /etc/hosts > /dev/null -echo "0.0.0.0 discord.new" | sudo tee -a /etc/hosts > /dev/null -echo "0.0.0.0 discord.gift" | sudo tee -a /etc/hosts > /dev/null -echo "0.0.0.0 discordstatus.com" | sudo tee -a /etc/hosts > /dev/null -echo "0.0.0.0 dis.gb" | sudo tee -a /etc/hosts > /dev/null -echo "0.0.0.0 discord.co" | sudo tee -a /etc/hosts > /dev/null - -echo "" | sudo tee -a /etc/hosts > /dev/null - -# Mihoyo -echo "0.0.0.0 log-upload-os.hoyoverse.com" | sudo tee -a /etc/hosts > /dev/null -echo "0.0.0.0 log-upload.mihoyo.com" | sudo tee -a /etc/hosts > /dev/null -echo "0.0.0.0 log-upload-os.mihoyo.com" | sudo tee -a /etc/hosts > /dev/null -echo "0.0.0.0 devlog-upload.mihoyo.com" | sudo tee -a /etc/hosts > /dev/null -echo "0.0.0.0 sg-public-data-api.hoyoverse.com" | sudo tee -a /etc/hosts > /dev/null -echo "0.0.0.0 dump.gamesafe.qq.com" | sudo tee -a /etc/hosts > /dev/null -echo "0.0.0.0 apm-log-upload-os.hoyoverse.com" | sudo tee -a /etc/hosts > /dev/null -echo "0.0.0.0 zzz-log-upload-os.hoyoverse.com" | sudo tee -a /etc/hosts > /dev/null -echo "0.0.0.0 overseauspider.yuanshen.com" | sudo tee -a /etc/hosts > /dev/null -echo "0.0.0.0 hkrpg-log-upload-os.hoyoverse.com" | sudo tee -a /etc/hosts > /dev/null - -echo "" | sudo tee -a /etc/hosts > /dev/null - -curl -L https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | tail -n +40 | sudo tee -a /etc/hosts > /dev/null -curl -L https://raw.githubusercontent.com/anudeepND/blacklist/master/adservers.txt | sudo tee -a /etc/hosts > /dev/null