hostblocker

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

README.md (1867B)


      1 # Adblocking "/etc/hosts"
      2 
      3 **ATTENTION:**
      4 
      5 The script downloads several adblock-lists and places their content into your /etc/hosts, redirecting those domains to 0.0.0.0 (NULL).
      6 
      7 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.
      8 
      9 Substitude to "adblock" addons for your webbrowser.
     10 
     11 ## Adblock-lists
     12 
     13 1. [(outdated) Disconnect-list](https://raw.githubusercontent.com/disconnectme/disconnect/b27abbf033c6f80f157fe9d98cb767c87065fbf4/firefox/content/disconnect.safariextension/opera/chrome/scripts/data.js)
     14 2. [Adblock: Easylist](https://easylist-downloads.adblockplus.org/easylist.txt)
     15 3. [Adblock: EasyPrivacy](https://easylist-downloads.adblockplus.org/easyprivacy.txt)
     16 4. [Adblock: AntiAdblock](https://easylist-downloads.adblockplus.org/antiadblockfilters.txt)
     17 5. [Adblock: Annoyancelist](https://easylist-downloads.adblockplus.org/fanboy-annoyance.txt)
     18 6. [Adblock: Socialmedialist](https://easylist-downloads.adblockplus.org/fanboy-social.txt)
     19 7. [WinHelp: Adblocking](http://winhelp2002.mvps.org/hosts.txt)
     20 8. [Hostsfile: AntiAd & Protection](http://hosts-file.net/ad_servers.asp)
     21 9. [Dan Pollock's AntiAd](http://someonewhocares.org/hosts/hosts)
     22 10. [Adblock: AntiMalware](https://easylist-downloads.adblockplus.org/malwaredomains_full.txt) (disabled by default)
     23 
     24 
     25 
     26 ## Usage
     27 
     28 Copy this file to a place you'll remember (eg: your home-directory).
     29 Run:
     30 ```
     31 chmod +x ~/.hostblockingscript
     32 ```
     33 
     34 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.
     35 ```
     36 sudo ~/.hostblockingscript
     37 ```