How to Block Facebook Using Hosts File.

Not to be used typically in a corp settings. However, I deal with a lot of small business users. Sometimes, a user likes to be on facebook just a little bit to much and it conflicts with work.

1) open the hosts file. Hosts file location:

Windows XP, Vista and Windows 7 (open notepad as administrator. Then open the file in the following location)
C:\WINDOWS\system32\drivers\etc\hosts

Windows 2000
C:\WINNT\system32\drivers\etc\hosts

Windows 98/ME
C:\WINDOWS\hosts

2) Add the following lines.

# Block Facebook
127.0.0.1 www.facebook.com
127.0.0.1 facebook.com
127.0.0.1 static.ak.fbcdn.net
127.0.0.1 www.static.ak.fbcdn.net
127.0.0.1 login.facebook.com
127.0.0.1 www.login.facebook.com
127.0.0.1 fbcdn.net
127.0.0.1 www.fbcdn.net
127.0.0.1 fbcdn.com
127.0.0.1 www.fbcdn.com
127.0.0.1 static.ak.connect.facebook.com
127.0.0.1 www.static.ak.connect.facebook.com

3) Save

Source


About this entry