Skip to content

Small project to import Blocklist Collection in your Hosts file.

License

Notifications You must be signed in to change notification settings

goldfix/pigHosts

Repository files navigation

GitHub GitHub release (latest SemVer) Travis (.com) branch

pigHosts

  • Latest version: GitHub release (latest SemVer)
  • Download blocklist hosts from remote sites.
  • Add and remove blocklist hosts, from your hosts file.
  • Possibility to customize your download blocklist links.
  • Possibility to esclude specific hosts.
  • Windows & Linux version.

Use:


pigHost

Usage:
 pigHost (load | unload | force_init) [--debug] | (--version) | (--check-update)
 pigHost (--help | -h)

Options:
 -h, --help       help online
 -v, --version    view version
 --check-update   check if there is a new version
 --debug          view debug info

Command:
 load           load custom hosts from external urls declared in the file: '<USER_FOLDER>/.pigHosts/pigHosts.urls'
 unload         disable and remove custom hosts
 force_init     delete and create a new set of configuration files: '<USER_FOLDER>/.pigHosts/pigHosts.excluded' and '<USER_FOLDER>/.pigHosts/pigHosts.urls'

Configuration files:

When you started first time pigHost, will be created two configuration file:

  • <USER_FOLDER>/.pigHosts/pigHosts.excluded : list of hosts to esclude. These hosts are excluded, if present, from blocklist.
  • <USER_FOLDER>/.pigHosts/pigHosts.urls : in this file you can add your list of urls where to download blocklist .

Important notes

Some antivirus locks .../etc/hosts file. Remember to configure the antivirus correctly so not to block this file.

  • On Windows is necessary run pigHosts as Administrator.
  • On Linux is necessary run pigHosts with elevated privileges (sudo pighost ...).

Build from source

  • Download go-task.
  • Set your GOPATH environment variable.
  • In the ./src folder, execute command: task build-mod-vendor.

Thanks to:

Blocklist Collection sites:

Tools and libraries: