Author: JayVii <firstname.lastname@example.org>
Date: Sun, 19 Sep 2021 21:06:11 +0200
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/README.md b/README.md
@@ -1,7 +1,6 @@
# Adblocking "/etc/hosts"
-Please read about the *[security concerns](https://notabug.org/jayvii/Scripts/src/master/README.md#attention)* of using random scripts from the internet
The script downloads several adblock-lists and places their content into your /etc/hosts, redirecting those domains to 0.0.0.0 (NULL).
@@ -28,14 +27,11 @@ Substitude to "adblock" addons for your webbrowser.
Copy this file to a place you'll remember (eg: your home-directory).
-> chmod +x /home/USER/.hostblockingscript
+chmod +x ~/.hostblockingscript
Now, you can run the script. As we do editing outside your home-folder, you need root-permissions. Note, that the script will also backup the original "/etc/hosts" file into your home-directory (~/.hostsbackup). This script needs to be run every now and then (I'd say every 2 weeks, min) to have full effect & protection.
-> su -c "./home/USER/.hostblockingscript" root
-> sudo sh /home/USER/.hostblockingscript