You can block facebook and other sites in single computer using host file.
Click start and then click on run and type following
Once notepad is open you can edit the file. We will block Facebook in this example. For this just enter in the following after the # mark.
After editing the file don’t forget to save it .
Now check if we try to access Facebook in IE. You can’t get to the page.