Tech Magazine

How to Manually Block a Website from Your Pc

Posted on the 26 September 2012 by Babanature @proudlyonenaija

Some of us don’t want our kids watching adult movies and some don’t want their kids clicking their blog ad to prevent ban. Most people have other reasons of blocking some certain sites from showing in their pc.


So on today, we are going to know how to block sites from our pc manually without stress. Note that if you block any site it can’t be opened by any browser except you reverse it and remember that this tutorial is very simple to comprehend.

For this trick to work we are going to edit the host file of our windows and we will use the Ip address “ (i.e localhost)”.Whenever somebody tries to open the blocked website the user will be redirected to localhost.

1. If you’re running vista or windows 7, open your notepad as admin

2. Now click “file” and press “open” then go to C: \Windows\System32\Drivers\Etc and locate the file “hosts”.

3. When this hosts file is opened in Notepad, at the end of the file you will see something like “ localhost”.

4. Under “” just add another website URL that you want to block. Example

Now try to visit the site you just added with your browser and watch what happens.

Tip: Remember that you can always disable it by deleting the site you input.

You can drop your comment at the comment box below. Your comments are much appreciated and welcome.

If this post is of help to you, kindly click the like button and recommend use to friends. Don’t forget to subscribe to our feed.

Back to Featured Articles on Logo Paperblog