Answers of all questions.

   Copyright © IT eGuru. Site Design by Apex Computer                                                           Home | About US | Contact | Terms & Condition | Disclaimer                                       





Guides everything you need.  |

       हिन्दी वेबसाइट                          मराठी वेब साईट

How To Block Unwanted Websites In Just Five Minutes Without Using Any Software

September 29, 2015

If you spend more than 2 hours/day on your social account, then you must Block Websites using hosts file in Windowsbe addicted to Facebook and other social network, which will drop your productivity in doing work or other important activities.

If you are businessman, then there is the possibility of dropping employee’s productivity rate at work on spending their work time on unwanted websites like Social networking, e-stores, political, YouTube, finance and news.

In addition, if you have a computer or laptop at home and your children are using it, then you may worry about your young children are spending too much time on websites like Facebook, YouTube etc. With the threats of Facebook addiction and negative impact on children, as parents or teachers you may concern about the children safety.

In my last post “Protect Your Kids Online With This Best Free Parental Control Tools” I discuss about some tools that that will help you protect your child and you can be aware of your kid’s activity on the Internet.

Also to block all adult websites, refer previous post “How to Block Adult Websites using OpenDNS

Also there are many unsafe websites that could be spreading viruses, contain explicit content or even be trying to steal your personal data.

In such cases, it might be best to block certain unwanted websites on your computer. But How?

There are different ways to block websites. You can use Firewall system, antivirus, browser Add-Ons or configure in your router to block certain websites. But you have to spend either money or time or both to use these methods.

Here is an effective method for restricting users of all ages from seeing the content you don’t want them to access. Just add the list of website you want to block in hosts file and it will block these sites for all users on all browsers of a Windows PC. This method is straightforward and free, and it doesn’t require you to download or install any additional software.

What is Hosts File?

A hosts file is an address translator and redirector plain text file stored on your computer, that is loaded into memory (cache) at startup. It maps hostnames to IP addresses. Every website has its specific IP address. When you type domain name in browser, hosts file translates that domain names or NetBIOS names into an IP addresses

When you access a website, your computer contacts your domain name system (DNS) server and requests its numerical IP address. Your computer will then connect to this numerical IP address and access the website. Every time when Windows queries a DNS server, it first checks the Hosts file for redirection information.

In Windows, this file is located athosts files -Run notepadfile as administrator


Blocking Websites with Hosts File:

You can use a HOSTS file to block ads, banners and cookies, by adding them in its excluding lists. But you need to have Administrator rights, to do this.

hosts files - add websites to block

(Note: In Windows 8.1 and 10 use IP while in earlier versions use or use original IP of that website)

To find IP of any website--> Go To Command Prompt --> Type the command “ping” --> Here you can find IP of that website.

Here in place of example you can add any website name like Facebook, YouTube etc.


(Make sure that there is more than one space between IP and domain name)

hosts files- to block website in windows

Now next time when you want to open, then operating system will check whether the site has already got its IP address defined in the hosts file. If it is there, then system will not load Facebook from its original IP address and shows a block page.

This method is very easy and suitable for a common user as you don’t need to install any software and browser Add-Ons.

But this hosts file can be easily edited if someone knows this trick and has administrator right on that computer. That’s why if you are using this method; always give user login for your children or employees so that they will not be able to edit the hosts files.

Redirect Website:

You can also use this trick to redirect any website to another website. For example, you want to redirect to your desired website, let’s say So when anyone type into our address bars, we’ll redirect and open

In this case type the IP address of before


This tells the computer to connect to IT eGuru’s  IP address.