Skip to content

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 πŸ’ͺπŸ“ˆ!

Notifications You must be signed in to change notification settings

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

No packages published

Languages