EZ AdAway is a Shell script that uses the hosts file in order to block ads system-wide.
- Easy to use: run it directly in less than a minute.
- No installation: no install, no problem. This script can be run as an alias for minimal impact.
- Lightweight: this script is very small and has very few dependencies.
Get started as fast as possible with minimal trouble using the following command:
It is recommended that you review the code before executing it.
Add this line to your shell .*rc
configuration file.
e.g: add this to your .bashrc
, if your shell is bash
:
alias adaway="$(curl -fsSL https://raw.githubusercontent.com/r-jb/ez-adaway/main/adaway.sh | sh)"
Using wget
:
wget https://raw.githubusercontent.com/r-jb/ez-adaway/main/adaway.sh
chmod +x adaway.sh
./adaway.sh
Using curl
:
curl -O https://raw.githubusercontent.com/r-jb/ez-adaway/main/adaway.sh
chmod +x adaway.sh
./adaway.sh
To bring up the script menu, just run:
adaway
The script can also be launched with command line arguments as follows:
adaway apply
: Activate the adblockeradaway restore
: Deactivate the adblocker
By following lists are used by default:
You can modify the blocking lists in the script by just changing the HOST_SOURCES
variable at the beginning of the script. Comments in the list are ignored.
- No performance loss: this method uses native system components and eliminate the CPU overhead of a full on adblocker
- Works system-wide: the domain block works not only in browsers, but in every other program as well
- Not browser a plugin: not another one
This script is in no way a a full replacement for advanced browser adblockers like uBlock Origin.