Skip to content

abrashamc/WebsiteBlocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Website Blocker

Block distractions during work hours!

Pre-requisite

Set appropriate values in defaults.py

  • Websites to block
  • Start and end time (in 24 hours)
  • Polling rate (in seconds)

Supports -

  • Windows
  • Linux
  • macOS

Run

Windows (as administrator) -

  • python blocker.py

Linux/macOS -

  • sudo python blocker.py

Run in background

Windows (as administrator) -

  • Change extension of blocker.py to .pyw
  • Use Task Scheduler to run on startup (Check off 'Run with highest privileges')

Linux/macOS -

  • sudo crontab -e
  • Add line - @reboot python3 ${path_to_blocker.py}/blocker.py to run on startup

About

Block distractions during work hours!

Resources

Stars

Watchers

Forks

Languages