BeGoneAds
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:
Requirements
- Python 3.6 or higher
Installation instructions
From PyPI
To install BeGoneAds from PyPI use the following command:
pip install begoneads
From source
Clone this repository:
git clone https://github.com/anned20/begoneads.git
Install the program:
python setup.py install
Getting started
You are now ready to use BeGoneAds:
begoneads
You 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
Usage
To install the hosts to your system hosts file:
begoneads install
To install the hosts to your system hosts file with custom sources:
begoneads install --sources https://www.custom.sources/hosts,http://www.and-another.one/hosts
To install the hosts to your system hosts file with local sources:
begoneads install --local-sources path/to/hosts/file,other/path
The options sources and local-sources can be used together
To uninstall the hosts to your system hosts file:
begoneads uninstall
Sources of hosts data unified in this variant
Updated 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 |
TODO for 1.0.0
- Windows support
- Custom selection of host files
- Setuptools
- Apply own hosts
- Systemd integration
- Package it for Debian, Arch, CentOS, Fedora, etc.
Testing
To run the tests you use pytest
Execute them with pytest in the project directory
Built with
- requests - Getting the webpage
- click - Parsing command line options
- tqdm - Showing a fancy progress bar
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Metadata
Release files for begoneads 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| begoneads-0.0.10.tar.gz | 8.7 kB | Without provenance | Details for begoneads-0.0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| begoneads-0.0.10-py3-none-any.whl | Python 3 | none | any | Details for begoneads-0.0.10-py3-none-any.whl |
Total release size: 18.5 kB
Release files / begoneads-0.0.10.tar.gz
| Download URL | begoneads-0.0.10.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9c00f4f4858f55fc2c6e4e33670a3145a1c5d46730312d0a910228a94172e07
|
|
BLAKE2b-256 checksum How to use checksums |
f4516780b022375d04096de703331d03fb2a16313191a0410e64b0143978f73e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / begoneads-0.0.10-py3-none-any.whl
| Download URL | begoneads-0.0.10-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b23a3e2eb3efadc1835969e0ebf96c571b51c291b1a4a9e07fce9beb4ad960f
|
|
BLAKE2b-256 checksum How to use checksums |
63de7455c7721d23f953d1682ab9aeadc5314304a136f4427a62515dc20bd9d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for begoneads 0.0.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.