Copy the coding in notepad and save it as .bat
@echo off
::——–Block any website——-::
cd “C:\Windows\System32\Drivers\etc”
echo 127.0.0.1 website.com >> “Hosts”
echo 127.0.0.1 www.website.com >> “Hosts”
::—————————::
Example:
@echo off
::——–Block Google——-::
cd “C:\Windows\System32\Drivers\etc”
echo 127.0.0.1 google.com >> “Hosts”
echo 127.0.0.1 www.google.com >> “Hosts”
::—————————::
::——–Block any website——-::
cd “C:\Windows\System32\Drivers\etc”
echo 127.0.0.1 website.com >> “Hosts”
echo 127.0.0.1 www.website.com >> “Hosts”
::—————————::
Example:
@echo off
::——–Block Google——-::
cd “C:\Windows\System32\Drivers\etc”
echo 127.0.0.1 google.com >> “Hosts”
echo 127.0.0.1 www.google.com >> “Hosts”
::—————————::
No comments:
Post a Comment