2. Then Right click on Notepad and Run it as administrator.
3. Now open host file by clicking on File > Open and locate to following address
C:\WINDOWS\system32\drivers\etc
# Blocking Facebook
127.0.0.1 login.facebook.com
127.0.0.1 www.facebook.com
127.0.0.1 apps.facebook.com
127.0.0.1 blog.facebook.com
5. Now save the host file and done.
6. Open any browser and try to open facebook. It won't open. If facebook opens then you might have done somthing wrong. (let me know if you face any problem)
Blocking Other Website
# block google
127.0.0.1 www.google.com