How to Block Access to Websites

June 9th, 2011 by Markus Leave a reply »

There are various methods for blocking access to websites, but we will show you one of the best and easiest to implement.

Many software programs allow you to block access to sites but you can block any site without the need for any software. So if you want to block sites on your computer that are using up too much bandwidth, or maybe you want to stop your kids from accessing certain sites, this is the way to do it.

Block Websites Using the Hosts File

In Windows, there is a file known as the hosts file. This file contains details of sites and IP addresses. In order to block access to a website, all you need to do is put an entry into this file. Extremely simple.

First, let’s open the hosts file, you will find it in the following location:

C:\Windows\System32\drivers\etc

Double click on the file called “hosts”. It will most likely ask you which program you want to use to open this file. Just select Notepad and click “OK”.

You can also open the hosts file by opening Notepad first and then clicking File->Open and browsing to the same location.

To block a website, just enter the following, 1 entry per line:

127.0.0.1       example.com

block a website

Save the file and you are done. Now any site you have in the hosts file will not be accessible from your computer!

Related posts:

  1. Editing the Speed of Double Clicking on Your Mouse
  2. Backing Up Your Data – Outlook
  3. Segmentation Fault
  4. Disable the CD Autorun
  5. Backup Your Data Now!!
Advertisement

Leave a Reply

You must be logged in to post a comment.