Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- cd c:\windows\system32\drivers\etc
- del hosts
- echo 0.0.0.0 www.thewebsiteyouwanttoblock.com >> hosts
- echo 0.0.0.0 www.thewebsiteyouwanttoblock.com >> hosts
- echo 0.0.0.0 www.thewebsiteyouwanttoblock.com >> hosts
- REM And do the same thing if you want to block more websites
- REM ------------------------------------------------------
- echo Save it as Blockwebsite.bat
- echo Run it as administrator
- echo After you run it the changes will take place so you don't have to run it next time.
Advertisement
Add Comment
Please, Sign In to add comment