BeGoneAds is a script that puts some popular hosts file lists into the systems hosts file as a adblocker measure.
See it working on asciinema:
- Python 3.6 or higher
To install BeGoneAds from PyPI use the following command:
pip install begoneadsClone this repository:
git clone https://github.com/anned20/begoneads.gitInstall the program:
python setup.py installYou are now ready to use BeGoneAds:
begoneadsYou should see something like:
Usage: begoneads [OPTIONS] COMMAND [ARGS]...
Install or uninstall BeGoneAds, the host blocker for the system hosts
file
Options:
--help Show this message and exit.
Commands:
install Install or update BeGoneAds
uninstall Uninstall BeGoneAds
To install the hosts to your system hosts file:
begoneads installTo install the hosts to your system hosts file with custom sources:
begoneads install --sources https://www.custom.sources/hosts,http://www.and-another.one/hostsTo install the hosts to your system hosts file with local sources:
begoneads install --local-sources path/to/hosts/file,other/pathThe options sources and local-sources can be used together
To uninstall the hosts to your system hosts file:
begoneads uninstallUpdated hosts files from the following locations are always unified and
included:
| Host file source | Home page |
|---|---|
| Steven Black's ad-hoc list | link |
| Malware Domain List | link |
| add.Dead | link |
| add.Spam | link |
| Dan Pollock | link |
| MVPS hosts file | link |
| yoyo.org | link |
| Mitchell Krog's - Badd Boyz Hosts | link |
| CoinBlocker | link |
| UncheckyAds | link |
| add.2o7Net | link |
| KADhosts | link |
| AdAway | link |
| add.Risk | link |
- Windows support
- Custom selection of host files
- Setuptools
- Apply own hosts
- Systemd integration
- Package it for Debian, Arch, CentOS, Fedora, etc.
To run the tests you use pytest
Execute them with pytest in the project directory
- requests - Getting the webpage
- click - Parsing command line options
- tqdm - Showing a fancy progress bar
This project is licensed under the MIT License - see the LICENSE.md file for details