This is a simple website blocker project implemented in Python.
$-> 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
Thanks kalebu for helping out.