Follow the following basic steps
- Open the file named Hosts under Windir:(C: )\Windows\System32\drivers\etc. Before opening the file, kindly check whether you have administrative access on the file. If not then grant yourself access.
- Add entry to the file of the website for which you want access to be restricted
- Save this and facebook will not be accessible