How to Block the Facebook Website

There are many different reasons to block websites such as Facebook from being accessed on the computer. For example, an employee accessing Facebook and related websites on a work computer represents a loss of potential productivity, as the employee's attention is on the website instead of where it needs to be. You can block Facebook on the computer by modifying the DNS HOSTS file located in the Windows system folder.

Step

Click the "Start" button in the lower-left corner.

Step

Type "notepad" and right-click on the icon that appears.

Step

Click "Run as Administrator," then "Yes" on the dialog box that appears.

Step

Press "Ctrl" and the letter "O" simultaneously.

Step

Click "Text Documents" and change it to "All Files."

Step

Open the "C:\Windows\System32\drivers\etc\HOSTS" file.

Step

Type "127.0.0.1" -- without quotes -- at the bottom of the file, then press the "tab" key.

Step

Type "facebook.com" -- again, without quotes -- and press the "Enter" key.

Step

Repeat Steps 7 and 8, replacing "facebook.com" with "www.facebook.com" -- without quotes.

Step

Press "Ctrl" and "S" simultaneously to save the changes, which take effect immediately.

Step

Close Notepad.