An open API service indexing awesome lists of open source software.

https://github.com/nneji123/website-blocker

A Python Script that blocks websites during a certain time interval.
https://github.com/nneji123/website-blocker

Last synced: 7 months ago
JSON representation

A Python Script that blocks websites during a certain time interval.

Awesome Lists containing this project

README

          

## Website Blocker

This is a python script which runs in the background and blocks websites from being accessed during a particular time by redirecting the website to another address.

## Setup and Usage
1. On Windows, open Task Scheduler.
2. Create a task under the 'Actions" pane and give it a name.
3. Configure the task for your OS version.
4. Checklist 'Run with highest privileges' so the script can access the admin folders.
5. Go to triggers and choose when you want the script to run.
6. Under the action tab select 'Start a program' then locate the 'website_blocker' on your system and click 'OK'.
7. The script will run when next the pc is turned on or restarted.

https://user-images.githubusercontent.com/101701760/162280146-09693b0e-f5c1-4b5b-93de-5a2ca93d0131.mov

## Video
A video on how to set up the script and the task manager is also included.

https://user-images.githubusercontent.com/101701760/162279465-c6357c40-6585-4c7f-9908-8753ec2bbf5d.mov

## Modifications
1. You can add as many sites to the script as you want just go to 'website_list' and a site to the list.
2. You can also edit the times at which the script blocks a website by going to line 17 and changing 8(starting hour of the script) and 15(ending hour of the script).