Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

webgate

patgoley15ISC1.1.0

Block and unblock websites using your /etc/hosts file.

gate, block, unblock, hosts

readme

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.