Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kalebu/website-blocker-python
A simple website blocker project implemented in Python, It can be used to block certain websites during working time to reduce distraction thus improving productivity
https://github.com/kalebu/website-blocker-python
python python-beginners python-cli-project python-project python-script python-website-blocker python3 pythontanzania tanzania website-blocker
Last synced: about 8 hours ago
JSON representation
A simple website blocker project implemented in Python, It can be used to block certain websites during working time to reduce distraction thus improving productivity
- Host: GitHub
- URL: https://github.com/kalebu/website-blocker-python
- Owner: Kalebu
- Created: 2020-05-18T18:02:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-24T01:13:19.000Z (over 1 year ago)
- Last Synced: 2023-06-25T20:38:25.087Z (over 1 year ago)
- Topics: python, python-beginners, python-cli-project, python-project, python-script, python-website-blocker, python3, pythontanzania, tanzania, website-blocker
- Language: Python
- Homepage: https://kalebujordan.com/how-to-build-website-blocker-in-python/
- Size: 238 KB
- Stars: 70
- Watchers: 3
- Forks: 27
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Website Blocker Python
Intro
------------Hi Guys 👋
This repository consists the code of a simple website blocker project implemented in Python. It can be used to block certain websites during work time to reduce distraction thus improving productivity.
The magic
--------------The magic of this project lies on modifying the host file within your
computer that manages how you access the web.Getting started
---------------------Well to get started with this project just clone the repository
and edit the host file location depending on the OS your using.```bash
$-> git clone https://github.com/Kalebu/Website-blocker-python
$-> cd Website-blocker-python
$ Website-blocker-python ->
```Adding sites to block + Editing host files
------------------------------------------------Now open the *app.py* and then go to line 4 with variable *site_to_block*
and you can add the sites you would like to block during work timethe script will automaticaly detect your OS and will add the host records to the relevent location
One more thing
-------------------You would need to set up the starting working + ending working hours where you would like to be restricted from accessing those websites.
To do this go to line last line of our code and edit the hours where by.![time_to_block](./time_to_block.png)
Congratulations
--------------------Well done you now have a fully functioning website blocker that you have made yourself to improve your productivity, in Python
Issues
-----------Incase you have any difficulties or issues while trying to run the script
you can raise it on the issuesPull Requests
----------------If you have something to add, I welcome pull requests that improve the project, your helpful contribution will be merged as soon as possible.
Give it a Star ✴️
--------------------
If you find this repo useful , give it a starCredits
-----------
All the credits to [kalebu](https://github.com/Kalebu)