1 unstable release
new 0.1.2 | Jun 21, 2024 |
---|---|
0.1.1 |
|
#735 in Command line utilities
226 downloads per month
71KB
2K
SLoC
Host-RS
Block Website, Ads, Social, Porn, Fakenews, Gambling, Spam sites and website redirector.
[!NOTE] Administrator privileges required to perform any block or unblock operation.
[!NOTE] This application does not block YouTube's ads.
Installation
cargo install host-rs
Install from source code on Linux
git clone https://github.com/BiswajitThakur/host-rs
cd host-rs
make setup build
sudo make install
Install from precompiled binary
- Click here to Download - download sutable binary for your system
cd ~/Downloads/
- Go to the location of the binarry filechmod +x installer_host-rs_*.sh
- Add executable permissionsudo ./installer_host-rs_*.sh
- Execute
Features of Host-RS
- Block websites
- Unblock websites
- Redirect website
- Block Ads
- Unblock ads
- Block all porn sites
- Unblock porn websites
- Block fakenews websites
- Unblock fakenews websites
- Block all social websites
- Unlock social websites
- Block gambling websites
- Unblock gambling websites
Help
> host-rs --help
Usage: host-rs [OPTIONS]
Options:
-b, --block-web <block-web>... Block websites.
-u, --unblock-web <unblock-web>... Unblock websites.
--add-redirect <add-redirect> <add-redirect> Redirect website
--rm-redirect <rm-redirect>... remove from redirect
--block-ads Block Ads.
--unblock-ads Unblock all ads.
--block-porn Block all porn sites.
--unblock-porn Unblock porn websites.
--block-fakenews Block fakenews websites.
--unblock-fakenews Unblock fakenews websites.
--block-social Block all social websites.
--unblock-social Unlock social websites.
--block-gambling Block gambling websites.
--unblock-gambling Unblock gambling websites.
--update-self Update if available.
--remove-self Uninstall
--update-sources Update host sources if available.
-h, --help Print help
-V, --version Print version
Examples
Block web
host-rs --block-web <hostname0 or url0> <hostname1 or url1> ...
or
host-rs -b <hostname0 or url0> <hostname1 or url1> ...
or
host-rs --bw <hostname0 or url0> <hostname1 or url1> ...
Unblock web
host-rs --unblock-web <hostname0 or url0> <hostname1 or url1> ...
or
host-rs -u <hostname0 or url0> <hostname1 or url1> ...
or
host-rs --uw <hostname0 or url0> <hostname1 or url1> ...
Redirect websites
host-rs --add-redirect <hostname0> <hostname1>
or
host-rs --ar <hostname0> <hostname1>
In above example, <hostname1> redirected to <hostname0>
Remove Redirect
host-rs --rm-redirect <hostname0> <hostname1> ...
or
host-rs --rr <hostname0> <hostname1> ...
Block ads
host-rs --block-ads
or
host-rs --ba
Unblock ads
host-rs --unblock-ads
or
host-rs --ua
or
host-rs --uba
Block porn
host-rs --block-porn
or
host-rs --bp
Unblock porn
host-rs --unblock-porn
or
host-rs --up
or
host-rs --ubp
Block fakenews
host-rs --block-fakenews
or
host-rs --bf
Unblock fakenews
host-rs --unblock-fakenews
or
host-rs --uf
or
host-rs --ubf
Block social
host-rs --block-social
or
host-rs --bs
Unblock social
host-rs --unblock-social
or
host-rs --us
or
host-rs --ubs
Block gambling
host-rs --block-gambling
or
host-rs --bg
Unblock gambling
host-rs --unblock-gambling
or
host-rs --ug
or
host-rs --ubg
Update host sources
host-rs --update-sources
Update
This features is not implemented yet.
host-rs --update
or
host-rs --update-self
Uninstall
host-rs --remove-self
or
host-rs --uninstall
Dependencies
~11–25MB
~373K SLoC