Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- title bLockDown
- color 0A
- echo Warning: Please ensure you are running this program as an administrator
- echo Type Y or N and hit enter to continue
- echo.
- set /p admin=
- IF %admin%==Y goto :edithosts
- IF %admin%==N goto :fin
- :edithosts
- cls
- echo Enter website to block, without www.:
- set /p block=
- echo.
- echo 127.0.0.1 %block% >> C:\WINDOWS\system32\drivers\etc\hosts
- echo 127.0.0.1 www.%block% >> C:\WINDOWS\system32\drivers\etc\hosts
- cls
- echo Website has been blocked.
- echo.
- echo Block another website? Y/N
- set /p blockq=
- IF %blockq%==Y goto :edithosts
- IF %blockq%==N goto :fin
- :fin
- cls
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement