How to Block Facebook With Hosts file For Windows

in #block8 years ago

 There are some websites for every one of us, which distract us, right? These distracting sites are where we turn to spend free time. For example, there isFacebook, Twitter and Reddit, etc. These are all sorts of sites which sure serve a purpose i.e. FB connects us with friends, Reddit is good for news, but often we use them at work. If you are one of those lucky fellows who works online, then you know how distracting and time-consuming websites can be. For a lot of people, Facebook is a really distracting site. Many workplaces have this social network banned in their office computers, but what if you don’t have a workplace? What if you are your own boss? What if your computer is entirely in your control, so it’s likely you have access to all sorts of sites.
 You may have tried not accessing these sites, but since these distracting sites just a click away, we tend to spend hours every day on them. Most people want to block distracting sites for productivity reasons. Trust me, once distracting sites are blocked, the productivity often skyrockets.In this tutorial, we will learn how to block Facebook with hosts file. It is a manual method and is applicable to computers with Windows operating system. Sorry Apple folks, this post is not for you!  Yes, there are softwares like Freedom, ColdTurkey and extensions likeStayFocusd which serve exact same purpose: blocking distracting sites, but this manual method is much efficient I believe. Let’s get to it.

How to Block Facebook with Hosts file?

For Windows 10, Follow the step by step guidelines.

  • Down to your task bar, there is a search bar. When you want something like: your documents, applications, paint etc… You need to search for them and that’s where this search bar comes.
  • Look for notepad, Right click on the notepad.
  • Click “Run as Administrator”.
  • After running the notepad as admin. Notepad will open and now you have to open hosts file to edit.
  • Ctrl+O and the exact address for host file is “C://Windows >> System 32 >> Drivers >> etc.”
  • Now there is the whole hosts file. You need to edit this file for block distracting sites.
  • In the hosts file there is an IP address for your local computer which is “127.0.0.1”.
  • Simply write this IP address and press the space-bar and write domain name of the site which you want to block.
  • If you want to block Facebook then write it’s domain name right after the IP address.
  • Save changes you’ve made. And check what happens.

Here are the screenshots! 


Coin Marketplace

STEEM 0.23
TRX 0.22
JST 0.037
BTC 98709.14
ETH 3447.96
USDT 1.00
SBD 3.20