How to block specific websites in all web browsers  - Windows computerDay by day, hour to hour and every single second internet is filled with more and more adequate information, knowledge, entertainment and other stuffs. Study shows that an average guy spends most of his time in internet only for leisure activities. Don’t you feel like that you are missing out your real life activities by wasting enormous time in internet? Particularly think about social networks and other entertainers (Facebook, Twitter, and YouTube). Here we will see how to block specific websites that consumes most of our time.
There are several reasons to block a website. You will be on a mood set to pursue in some serious online task (developer, designer). Well on the other side sites like Facebook suck your precious time making you less productive the whole day. A guy who thinks about preventing himself from online guilty pleasures can block such websites. Parents who are upset about their kids wasting too much of their time surfing inappropriate content and the reasons go on.

Block websites using windows hosts file

There are parental control softwares and by using it you can easily block any websites that you desire, but you have to pay for it. So by manually editing your host files you can block several websites, no worries we will guide you in easy steps.
A host file is a normal text file used by your OS (windows) to map host names and IP address. By using host file you can redirect a website to your local computer, in simple you can block any website that you wish. This topic is really more useful for parents who are concerned about their child’s online activities. Mainly used to block pornographic websites and note that this method is only for windows users.

How to block specific websites in all web browsers – Windows computer

  1. Go to c:/windows/System32/drivers/etc or simply run this text c:/windows/System32/drivers/etc from start menu. If it’s not c: then choose the appropriate drive where windows is installed.
  2. Now you will see a file called hosts, note that to edit this file you need to have administrator privileges. If you don’t have administrator privileges then you will simple end up seeing this window.How to block specific websites in windows computer - All browsers
  3. Right click on the hosts file and click run as administrator. If you don’t see this option then click start and right click on notepad and then run as administrator.Blocking access to websites in windows PC - Block specific websites in all browser
  4. Now in notepad go to file >> open and then enter the following text c:\windows\System32\drivers\etc\hosts in file name filed and open.
  5. You will now see several lines in notepad and all that is used for mapping.How to block specific websites in all web browsers on windows computer
  6. Just after the final line that is #127.0.0.1       localhost  # ::1    localhost enter the list of sites that you wish to block.
  7. Start with 127.0.0.1 leave a space and then add websites. You can enter list of websites each starting with WWW or non WWW or http://.
127.0.0.1 www.facebook.com
127.0.0.1 facebook.com
127.0.0.1 http://youtube.com
In the above line where 127.0.0.1 is the IP address for local host (local computer).

block specific websites in windows computer on all web browsers

Other than adding domain names, you can block websites by using their IP address like this.
127.0.0.1 69.171.239.12
127.0.0.1 69.171.255.12
Tip: Go to who.is site, enter any website name and you can see its IP address in name servers area.
Save the hosts file when you are done and now go and open any browser (chrome, firefox, iexplorer) and check all those blocked websites. It simply shows a blank page.
Hope this post helped you on how to block specific websites in all web browsers on windows computer.