Skip to content

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

Notifications You must be signed in to change notification settings

Nneji123/Website-Blocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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.
Script.Modification.mov

Video

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

Website.Blocker.Setup.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).

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages