Skip to content
/ blocker Public

A C-based tool which enable's you to block Website's and Application's on your linux based operating system.

Notifications You must be signed in to change notification settings

a5hish/blocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blocker

A C-based tool which enable's you to block Website's and Application's on your linux based operating system.

Description

blocker block's website's and application's which are black-listed/specified in the configuration file(.blockrc)

Options usage
-help show help options available with the tool.
-block block's all the urls/application specified in the configuration file.
-unblock Unblock's the urls/application specified in the configuration file
-edit open's the configuration file to edit in an editor

Note : the tool should be used with root privilege as it manipulate's the /etc/hosts file.

About configuration file

The url's of websites and path's to the application binary should be specified in the configuration. file .

Example: open the config file by using the -edit option.

$ ./blocker -edit

To block fb.com and netflix.com edit the config file after editing it should look like this.

[URLS]
# enter your urls below this comments. 
# (eg: www.example.com)
www.fb.com
www.netflix.com

[PATHS]
# enter path to the BINARY of the application to block below this comments.
# (eg: /home/application/app)

Save the config file and exit. and then use the following option to block them.

$ cd undefined
s sudo ./blocker -block

(done they are blocked now) to unblock use the -unblock option.

$ sudo ./blocker -unblock

About

A C-based tool which enable's you to block Website's and Application's on your linux based operating system.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published