Skip to content

This repository contains a website blocker script that modifies the hosts file to block specified websites during certain hours. The script supports both Linux and Windows environments and can be used to improve productivity by restricting access to distracting sites.

Notifications You must be signed in to change notification settings

ArifulIslamPreence/websiteblocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Website Blocker Python

This is a simple website blocker project implemented in Python.

Getting started

    $-> git clone https://github.com/Kalebu/Website-blocker-python
    $-> cd Website-blocker-python
    $ Website-blocker-python ->

Host file location

hosts_file_linux = "/etc/hosts"
hosts_file_windows = r"C:\Windows\System32\drivers\etc\hosts"
default_hosts_file = hosts_file_linux 

the script will automaticaly detect your OS and will add the host records to the relevent location

Acknowledgement

Thanks kalebu for helping out.

About

This repository contains a website blocker script that modifies the hosts file to block specified websites during certain hours. The script supports both Linux and Windows environments and can be used to improve productivity by restricting access to distracting sites.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages