- open run by clicking ctrl+r.
- now type C:\WINDOWS\system32\drivers\etc in run and click enter.
- open hosts with notepad.
- now below the localhost type the fallowing and save.
127.0.0.1 www.facebook.com
127.0.0.1 apps.facebook.com
127.0.0.1 blog.facebook.com
- To block other websites, type website url after 127.0.0.1