Simple website blocker for linux which utilizes the /etc/hosts file to block sites on local machine. Use at your own responsibility.
- Cmake
- Linux(for now)
- gcc
Run the command make
in the cloned directory.
Then execute the program with appropriate permissions sudo ./hblock
.
It is possible to use a external domain blocklist: sudo ./hblock <blocklist>
.
- Hostsblock simply writes the input site to the hosts file (found in linux by /etc/hosts) and redirects it to localhost address