How to block any website in a particular system, on every browser at once?

Suppose we need to block few of the websites in our PC,for children or for the people you are giving your PC or laptop to use for sometime or for having fun.
And you don't want to use any third party software or go through the huge task of blocking appropriate website on each and every of your browser.


This is quite simple to block any of the website on every browser at once.


How to do this?
Just open Notepad as administrator.
Go to c drive(the drive where your OS in installed).
Then go to windows>system32>driver>etc
Then click on save as type and select all files,then you  will see a hosts file.
Open the host file and add a website followed by the IP address 127.0.0.1 in next line.

After saving this file file just go to any of your browser and search that website.you will see website can't be reached.
Here I've blocked you tube.



Why only 127.0.0.1?

We use this IP because it a loop-back ip address, which can never be assign to any device or website. It is used for self testing.

How It works?

This all is the concept of DNS. It stands for Domain Name Server. DNS converts IP address to valid name and a name to valid IP address.And all these is done by host files because each and every DNS history saves in this file.And when we search for any websites firstly our every browser search in host file for that IP address or that name.If it found that name or Ip it execute.

But we have change that name and ip too So it will not be contacted through IP or Name.

Comments

  1. Thank you again for all the knowledge you distribute,Good post. I was very interested in the article, it's quite inspiring I should admit. I like visiting you site since I always come across interesting articles like this one.Great Job, I greatly appreciate that.Do Keep sharing! Regards,
    Network Cables

    ReplyDelete
    Replies
    1. Very thanks for your appreciation dear,i'll keep posting,Suggestions always welcomes.

      Delete

Post a Comment