Skip to content

To study scientifically: blocking entertaining website in a time while studing/working

License

Notifications You must be signed in to change notification settings

lsx007/scienwebbing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This idea comes from my friend while I asked him for a idea to initially bring my Python skill to life.

So this project helps to block specific sites in a given time for focusing on your current task with network availability.

####To Do List

  • ~~block some affixed sites in a fix duration (hard logic code, manipulate with hosts file) ~~
  • UI (first in posix system only)
  • import site list from a file
  • Capture packets instead of hosts file
  • Monitor browsers. Add time punishment while trying to access the blocking sites in the time
  • Self persistence. Persistent while closing the terminal

####Known bug

  • fail to exit curses mode correctly
  • fail to check the URL availability
  • Need to flush local DNS cache if your site opened recently

###How to ####Run In Linux/OS X

sudo python ./source/scienWebbing.py

In Windows (The author hasn't know yet either)

####Begin

  1. Input digit to set minutes, default as 30mins
  2. Other than digit would treated as sites
  3. You can reset your time again
  4. Hit enter to run...
  5. When time's up, finish

About

To study scientifically: blocking entertaining website in a time while studing/working

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published