ΠΠΎΡ Π½Π΅ΠΌΠ½ΠΎΠ³ΠΎ ΡΠ»ΡΡΡΠ΅Π½Π½Π°Ρ Π²Π΅ΡΡΠΈΡ Ρ Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ΠΈΠ΅ΠΌ ΡΠΌΠ°ΠΉΠ»ΠΈΠΊΠΎΠ² ΠΈ Π±ΠΎΠ»Π΅Π΅ ΠΏΡΠΈΠ²Π»Π΅ΠΊΠ°ΡΠ΅Π»ΡΠ½ΡΠΌ ΠΎΠΏΠΈΡΠ°Π½ΠΈΠ΅ΠΌ:
Hey there, everyone! π
This repository contains the code for a simple website blocker project built with Python π. Itβs designed to help you block distracting websites during work hours to reduce distractions and boost productivity ππΌ.
The magic behind this project is modifying the host file on your computer, which controls your access to the web π. With this tool, you can focus on your work without distractions!
To get started with this project, simply clone the repository and edit the location of your host file depending on your operating system π₯οΈ.
Now, open app.py, go to line 4 where the site_to_block variable is located, and add the websites you want to block during your work time β°.
The script will automatically detect your operating system and update the host file accordingly. π©β¨
Youβll need to set the start and end working hours when you want to block access to those websites. To do this, go to the last line of the code and edit the hours accordingly.
Well done! Youβve now created a fully functioning website blocker to improve your productivity. All built with Python! ππͺ
If you run into any issues or difficulties while running the script, feel free to raise them in the Issues section! π οΈ
Got an improvement or feature in mind? Feel free to submit Pull Requests! I welcome contributions to make this project even better, and Iβll merge them as soon as possible. π
If you find this project useful, please give it a star β on GitHub! π
