Open “My Computer” and go to this location
Find out the host files from there and right click on that file.open that file using “Notepad”.
Scroll your mouse, go to down of that page and find “127.0.0.1 Localhost”.
After that line, type the IP named “127.0.0.2” and then URL of the website you want to block. For example,
You can add as many websites as you want,the last digit of the IP like 2, 3, 4, 5, 6 etc.
After putting all the restricted sites, save the file and then exit.