Skip to content

A productivity tool for blocking websites from the command line.

Notifications You must be signed in to change notification settings

patgoley/webgate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

A productivity tool for blocking websites from the command line.

Resources

Stars

Watchers

Forks

Packages

No packages published