GithubHelp home page GithubHelp logo

goldfix / pighosts Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 101 KB

Small project to import Blocklist Collection in your Hosts file.

License: MIT License

Go 98.52% Shell 1.48%
blacklist web-filter dns-filter url-blocklist adware malware adsblock

pighosts's Introduction

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:

pighosts's People

Contributors

goldfix avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.