How to Block Facebook

Want to block Facebook and other sites, like Pinterest or Youtube, on your computer to avoid those distractions for you, your team at work, or your ten-year-old. Read this article to find out how to block Facebook easily and simply in 3 different ways suitable for all versions of Windows versions from Windows 7 to Windows 10.

How to Block Facebook with Blocking Software

The best way to block the Facebook website with no way to override your limits is to use special software such as HT Employee Monitor for business or HT Parental Controls for home. The software makes it easy to block any websites with a few clicks has many other useful features. It supports all popular browsers and all Windows versions.

  1. Download and install the software.
    Download HT Employee Monitor
    Download HT Parental Controls
  2. Go to Website Limiting.
  3. Click Facebook on the list and select Block.

How to block Facebook

How to Configure Time Limits for Facebook

Best of all that you can block Facebook at work time and allow it at launch / post-workday or after homework will be finished.

  1. Click Facebook to select it and choose Limit.
  2. Set up the Schedule or specify the maximum time allowed per day.

Configure Time Limits for Facebook

Learn more on how to limit time on Facebook

Now the Facebook website is blocked or limited for your users in accordance with your settings. If your user tries to access the banned website, he will get an empty page.

Besides blocking Facebook on the computer, HT Employee Monitor and HT Parental Controls have many other options. Our software combines monitoring and blocking features, and lets restrict any computer user activity


Block Facebook and Other Sites

Block any website in these browsers: Chrome, Internet Explorer, Microsoft Edge, Firefox, Opera

Block Websites by Categories

Block unwanted websites in up to 10 categories - Adult Content, Gambling, Violence, Drugs, etc.

Restrict Access to Any Applications

Block games, instant messengers, browsers, and so on


Monitor Computer Activities

Monitor visited websites, launched programs, computer time, etc.

Block Keywords

Block inappropriate keywords from search and results

Remote Management

Configure the filters and view logs remotely across the network

How to Block Facebook with a Whitelist

One more way to block Facebook is to use a Whitelist. With the Whitelist, you block all websites except those you allow for work or study. For example, Wikipedia, the school website, e-libraries, etc. Blocking with the whitelist is the most strict, but the most effective and productive at the same time.

  1. Go to Website Blocking.
  2. Under the Whitelist, click Add and enter the URL of the site you want to allow.
  3. Add all websites you want to allow to the Whitelist.
  4. Select the Allow only whitelisted websites checkbox.

Whitelist HT Employee Monitor

How to Block Facebook Using the Hosts File

The host file is a Windows service file that is also used by some browsers. You can add some instructions to the file to block certain websites on your computer.

Note! Make a backup of the hosts file and put it somewhere safe, in case you make a mistake.
  1. Open the hosts file C:\WINDOWS\system32\drivers\etc\hosts with Notepad or another plain text editor.
  2. Copy this:
    # block facebook
    127.0.0.1 https://facebook.com
    127.0.0.1 login.facebook.com
    127.0.0.1 www.facebook.com
    127.0.0.1 blog.facebook.com
    127.0.0.1 apps.facebook.com
  3. Paste the text into the Hosts file after 127.0.0.1 localhost.
  4. Save and close the Hosts file.
  5. Since you cannot save the file without an extension, save it as your text editor suggests. Then open the folder with your Hosts file, select it and press F2 to delete its extension while renaming.
  6. Replace the existing Hosts file with yours.
  7. Restart your computer to apply the changes.

block facebook hosts file


Note! This method of blocking websites have disadvantages. Users can bypass your ban.
  1. When you block Facebook with the Hosts file, users can access Facebook through anonymizers. He/she can visit an anonymizer, enter the needed URL, and access the forbidden website on its behalf. The problem is that you can block all thousands of anonymizers.
  2. Pay attention that your user can launch another browser that does not use the Host file or change the hosts file.
  3. This method may not work correctly on your computer.

So how to block Facebook reliably in all top browsers independently of Windows version and make it impossible to unblock the website. Use HT Employee Monitor for business and HT Parental Controls for home. Get a 14-day free trial and test all the benefits of our software.