Skip to content

HenryGR/hosty

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hosty

Ad blocker script for Linux.

Comparison of total memory usage

AUR

If you have Arch Linux or Arch based distribution compatible with AUR (Manjaro, Antergos, ArchBang, Bridge Linux) then you can simply install hosty from the AUR:

$ yaourt -S hosty

https://aur.archlinux.org/packages/hosty

Manual instalation

Requires

  • sudo
  • Wget
  • cURL
  • Gawk

How to install the requirements

  • Ubuntu/Mint/Debian: $ sudo apt-get install wget curl gawk

  • Arch/Manjaro/Antergos: $ sudo pacman -S wget curl gawk

  • Fedora/RHEL/CentOS: $ sudo yum install wget curl gawk

  • SUSE: $ sudo zypper in wget curl gawk

How to install hosty

$ curl -L git.io/hosty | sh

How to run hosty

$ sudo hosty

Whitelist

You can include exceptions editing the file /etc/hosts.whitelist (With root permissions), one domain name per line.

Besides, hosty apply a internal whitelist for safety. If you want only use your custom whitelist and avoid the internal whitelist run:

$ sudo hosty --all

How to restore your original hosts file

$ sudo hosty --restore

How to see the result without changing the file

$ hosty --debug

How to uninstall hosty

$ sudo rm /usr/local/bin/hosty

About

Ad blocker script for Linux.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%