GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - 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

BranchesTags
Open more actions menu

Latest commit

 

History

23 Commits
23 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
README.md
README.md
 
 
app v2.py
app v2.py
 
 
app.py
app.py
 
 
host_file_location.png
host_file_location.png
 
 
site_to_block.png
site_to_block.png
 
 
time_to_block.png
time_to_block.png
 
 

Repository files navigation

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.

    $-> 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 time

the 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

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 issues

Pull 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 star

Credits

All the credits to kalebu

About

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

kalebujordan.com/how-to-build-website-blocker-in-python/

Topics

pythonpython-beginnerspython-cli-projectpython-projectpython-scriptpython-website-blockerpython3pythontanzaniatanzaniawebsite-blocker

Resources

Readme
Activity

Stars

143 stars

Watchers

1 watching

Forks

57 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.