Step by step tutorial of Blocking a website with hosts file in Windows:
Go to Start Menu and click on Run, Paste %systemdrive%/windows/system32/drivers/etc and hit Enter.
Now in folder you will see some files as shown in image below, Copy hosts file and Paste on desktop.
Now, Open pasted hosts file on desktop with Notepad. Add 127.0.0.1<space>www.facebook.com
Now, Click on Save in file menu(not Save as), Now Replace the edited file with the original one in %systemdrive%/windows/system32/drivers/etc.
0 comments: