Skip to content

AaydenGoh/Web-Blocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web-Blocker

Description:

Website blocker with time setting

How to use:

1. Run cmd with admin and run create.bat

What does it do:

1. create.bat:
Create two directories named Af and Ori at %SystemRoot%\System32\drivers\etc\ (hostfile directory) and copy hosts file to each of the directory. Follow by, copy setting.bat, revert.bat and revertv2.bat to hostfile directory. At the end, it creates 3 task scheduler.

2. setting.bat:
Check today's day and time, if true, move copy modified hostfile to replace.

3. revert.bat:
Replace hostfile with orignal hostfile in %SystemRoot%\System32\drivers\etc\Ori

4. revertv2.bat:
Same goes to revert.bat, but this version is trigger for weekend

About

website blocker with time setting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published