How to Block the Facebook Website

By Jedadiah Casey

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 1

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

Step 2

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

Step 3

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

Step 4

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

Step 5

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

Step 6

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

Step 7

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

Step 8

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

Step 9

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

Step 10

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

Step 11

Close Notepad.

Tips & Warnings

  • The changes made affect every user account on the system.
  • Block additional websites by replacing "" with the appropriate website domain names.