Crates.io | blokator |
lib.rs | blokator |
version | 0.5.3 |
source | src |
created_at | 2022-10-02 16:46:45.405131 |
updated_at | 2023-02-16 18:11:06.460998 |
description | Simple system-wide adblocker |
homepage | |
repository | https://gitlab.com/Tomkoid/blokator |
max_upload_size | |
id | 678459 |
size | 162,370 |
Blokator is hosts-based. The hosts file is a way to map hostnames to IP addresses, which acts like local DNS server.
Blokator can run basically everywhere. These are the tested platforms:
If you have another init system or networking service, you can restart it manually or even reboot the computer.
1
so Blokator thinks that the restart of NetworkManager failedAfter you installed Blokator, you need to sync the hosts files. To sync the hosts files, run Blokator with --sync argument:
blokator --sync
Then you can enable Blokator with --apply argument:
blokator --apply
To add your own hosts file, you can add your repo with --add-repo argument:
blokator --add-repo <URL>
To delete repo you added, you can run Blokator with --del-repo argument:
blokator --del-repo <URL>
To display the help page with all available commands, you can run Blokator with --help argument:
blokator --help
You will find more usage examples in man page
Before you begin, make sure you have installed these things:
You can install Blokator easily with Cargo package manager:
cargo install blokator
MAKE SURE THAT ~/.cargo/bin
IS IN YOUR $PATH
First, you need to clone the git repo to your local machine:
git clone https://gitlab.com/Tomkoid/blokator.git
Now go to the new cloned directory:
cd blokator
In that directory you can build Blokator using make:
make build
And install it to the system:
sudo make install
You're done now!
At this moment, Blokator is available only in AUR or tomkoid-repo for Arch Linux.
To download Blokator from AUR it's recommended to use AUR helper to install Blokator.
Checkout tomkoid-repo installation in README.md.