hostblocker

System-Wide adblocker for GNU/Linux
git clone https://src.jayvii.de/pub/hostblocker.git
Log | Files | Refs | README

commit 0d198404c90119c14dd9229ce19f784914caa0f2
parent 532daedb994ab1ba178067e0195b708a5f894112
Author: JayVii <jayvii@posteo.de>
Date:   Sun, 19 Sep 2021 21:06:11 +0200

Update README

Diffstat:
MREADME.md | 16++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/README.md b/README.md @@ -1,7 +1,6 @@ # Adblocking "/etc/hosts" **ATTENTION:** -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). Run: -> 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 - -or: -> sudo sh /home/USER/.hostblockingscript - - -## Screenshot -![Hostblockingscript](http://i.imgur.com/PrIro33.png) +``` +sudo ~/.hostblockingscript +```