|jayvii 532daedb99 Moved to Script-group||6 months ago|
|README.md||6 months ago|
|hostblockingscript.sh||6 months ago|
ATTENTION: Please read about the security concerns 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).
This is a decent and effective way of blocking advertisement across all applications on your device and all devices connected to the internet through that device.
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
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