Skip to content

revlk2/Python-Blocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

ะ’ะพั‚ ะฝะตะผะฝะพะณะพ ัƒะปัƒั‡ัˆะตะฝะฝะฐั ะฒะตั€ัะธั ั ะดะพะฑะฐะฒะปะตะฝะธะตะผ ัะผะฐะนะปะธะบะพะฒ ะธ ะฑะพะปะตะต ะฟั€ะธะฒะปะตะบะฐั‚ะตะปัŒะฝั‹ะผ ะพะฟะธัะฐะฝะธะตะผ:

Website Blocker in Python ๐Ÿšซ๐Ÿ’ป

Intro ๐Ÿ‘‹


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 โœจ


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!

Getting Started ๐Ÿš€


To get started with this project, simply clone the repository and edit the location of your host file depending on your operating system ๐Ÿ–ฅ๏ธ.

Adding Sites to Block + Editing Host Files ๐Ÿ”’


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. ๐ŸŽฉโœจ

Setting Work Hours โณ


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.

time_to_block

Congratulations! ๐ŸŽ‰


Well done! Youโ€™ve now created a fully functioning website blocker to improve your productivity. All built with Python! ๐Ÿ๐Ÿ’ช

Issues โ“


If you run into any issues or difficulties while running the script, feel free to raise them in the Issues section! ๐Ÿ› ๏ธ

Pull Requests ๐Ÿค


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. ๐Ÿš€

Give It a Star โœจ


If you find this project useful, please give it a star โญ on GitHub! ๐ŸŒŸ

About

This repository contains the code for a website blocker project in Python ๐Ÿ. It helps reduce distractions by blocking websites ๐ŸŒ during work or study hours ๐Ÿ•’. Boost your productivity ๐Ÿ’ผ, stay focused ๐ŸŽฏ, and avoid distractions ๐Ÿšซ. Perfect for increasing efficiency ๐Ÿ’ช๐Ÿ“ˆ!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages