HOW TO BLOCK WEBSITES ON YOUR COMPUTER

  • 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 login.facebook.com
                  127.0.0.1 www.facebook.com
                  127.0.0.1 apps.facebook.com
                  127.0.0.1 blog.facebook.com
          
              This will block facebook in your pc  
  • To  block other websites, type website url after   127.0.0.1  
Example  :127.0.0.1 www.gmail.com (this will block gmail)       
facebook
google-plus
twitter
pinterest