Coder Social home page Coder Social logo

webthwart's Introduction

WebThwart Awesome

Website blocking tool for Ubuntu

Overview

WebThwart is a terminal based utility for Ubuntu and other similar Linux distros that aids in blocking, managing and unblocking websites for better productivity and a distract-free online experience.

Based on the (safe) exploitation of /etc/hosts system-config file, WebThwart provides the following features :

help


Installation

Download the repository as a .zip file and then extract it, or clone it using the command

git clone https://github.com/ys1998/WebThwart.git

Change permissions of the block.sh file :

cd WebThwart/
chmod 755 block.sh

The block.sh script can be used as such by invoking it with ./block.sh. For using it as a normal terminal command, follow these steps :

sudo cp block.sh /usr/bin/block

The script can now be invoked with block only.


Usage

The script can be currently used in the following manner :

  • Display help menu
block [-h OR --help]
  • Block specified websites
block [domain_names of website(s) separated by <SPACE>]
  • Block domain names present in a file (one per line)
block [-f OR --file] <file_name>
  • Unblock specified domain names
block [-u OR --unblock] [domain_names separated by <SPACE>]
  • List all reserved/blocked domain names
block [-l OR --list]
  • Reset
    • Reset to refined configuration
     block [-r OR --reset-soft]
    
    • Reset to original configuration
     block [-R OR --reset-hard]
    

Screenshots

img1
img1
img1


TODO

  • Add password-protected unblocking feature
  • Implement blocking of domains for specified time interval

webthwart's People

Contributors

ys1998 avatar

Watchers

 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.