webgate

1.1.0 • Public • Published

webgate is a simple tool that can block and unblock websites by editing your /etc/hosts file.

Installation:

npm install -g webgate

Usage:

sudo webgate block twitter.com www.facebook.com

sudo webgate unblock twitter.com www.facebook.com

webgate help

webgate requires sudo to edit /etc/hosts. This also prevents tampering by non-sudoers.

You can list as many host arguments as you'd like.

Note:

This tool is easily circumvented by using a proxy server and is provided without warranty. I mainly use it to kill distractions.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    0
    • latest

Version History

Package Sidebar

Install

npm i webgate

Weekly Downloads

0

Version

1.1.0

License

ISC

Last publish

Collaborators

  • patgoley