Blocking Social Media at the Workplace
You hear all the time about employees using social media websites while at work, well if you haven’t already blocked them, here’s a simple trick.
In Linux, you can type “sudo vi /etc/hosts” and add the following lines:
What these lines say is “Computer, when you try to use the domain name system (DNS) to resolve twitter.com to an IP address, hard-code the IP address to be 127.0.0.1.” Note that 127.0.0.1 is a special IP address that corresponds to your own computer. In essence, these entries make it impossible to browse to Twitter, Facebook, or Myspace. You might need to reboot your computer too for the settings to take effect.
Thanks to Matt for the tip.