Blocking Social Media at the Workplace

admin

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:

127.0.0.1 twitter.com
127.0.0.1 www.twitter.com
127.0.0.1 facebook.com
127.0.0.1 www.facebook.com
127.0.0.1 myspace.com
127.0.0.1 www.myspace.com

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.

No comments

You must be logged in to post a comment.