How do I block Facebook from my computer?
There's a file:
The file resolves domain names. You can override Facebook's addresses by adding:
You will probably have to have Administrator permissions to edit the file.
This will work for any domain name, but in particular Facebook has a tendency to waste time on non-productive activities.