Onenaija Blog

The People's Blog

  • Home
  • Blogging
    • Blogger
    • WordPress
    • Google Adsense
    • Video
  • Computer/Internet
    • Tips & Tricks
    • Mobile Tips/ Tricks
    • Pc Tips/ Tricks
  • Tech
    • Android
    • Facebook
    • Youtube
    • Reviews
  • Others
    • Making Money Online
    • Entertainment
    • Forum
  • About Me
    • Contact Me
  • Hire Me
  • Advertise With Us
  • Guest Post
Home » Tips & Tricks » Pc Tips/ Tricks » HOW TO MANUALLY BLOCK A WEBSITE FROM YOUR PC

HOW TO MANUALLY BLOCK A WEBSITE FROM YOUR PC

September 26, 2012 By: babanature8 Comments

Facebook
Twitter
Pinterest
Linkedin
Bufferapp

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 “127.0.0.1 (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 “127.0.0.1 localhost”.

4. Under “127.0.0.1localhost” just add another website URL that you want to block. Example 127.0.0.1localhost 127.0.0.2 www.amazon.com 127.0.0.3 www.facebook.com

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.

Don't Miss Any Post Again. Subscribe To Our Feed And Be Updated

Enter your email address below:

 

Powered by OnenaijaBlog

Facebook
Twitter
Pinterest
Linkedin
Bufferapp

About babanature

I am a researcher and internet consultant. I love designing web sites, building blogs, doing tutorials, playing with codes, watching cartoons, writing articles, blogging, singing and lots more...
You can always hook me up on Facebook, twitter, YouTube and Google+

Comments

  1. Johann says

    January 27, 2013 at 6:18 pm

    Hi,
    I like your tips, well done keep the good work.
    now, I have activated windows 8 using your way and when I try to modify localhost it gives me an error message:
    “Please check if this file is opened in another program.”

    Would you know why? and how to fix it?

    Thanks

    Reply
    • babanature says

      January 27, 2013 at 9:01 pm

      Hello Johann,
      Thanks for the complement. If you’re trying to open your host file, you’ll need to open it using admin privilege and i assure you that it will work. so do give it a try and let me know how it goes.

      Reply
  2. Johann says

    January 28, 2013 at 6:17 pm

    Thank you very much, it works well.
    I did try to bare a website using hosts and it works but is there a way to redirect it to a different website instead of the error message below?:
    “XML Parsing Error: undefined entity
    Location: jar:jar:file:///C:/Users/Johann/AppData/Roaming/Mozilla/Firefox/Profiles/2o7yigt0.default/extensions/speedtest@gotomyhelp.com.xpi!/chrome/speedtest.jar!/content/netError.xhtml
    Line Number 392, Column 33: &netOffline.longDesc;
    ——————————–^”

    Thank you for your help

    Reply
    • babanature says

      January 29, 2013 at 12:39 am

      Hello Johann,
      Nice for stopping by. i’m glad to know that it worked for you. i never had such problems on my blocked sites. is your firefox the latest version?

      Reply
  3. olakunle says

    March 18, 2013 at 12:02 am

    Pls, I can’t find ‘host’ in my own ‘etc’, it is just empty so I couldn’t continue.

    Reply
    • babanature says

      March 18, 2013 at 12:09 am

      Then try using your system without the notepad

      Reply
  4. vicky says

    September 16, 2013 at 3:11 pm

    not working…
    this is how i added,

    # localhost name resolution is handled within DNS itself.
    # 127.0.0.1 localhost
    # ::1 localhost
    # 127.0.0.2 http://www.amazon.com

    but after saving, i’m able to open amazon!!!,,,how to block it?

    Reply
    • babanature says

      September 16, 2013 at 4:19 pm

      It is not working for you because you did not perform the trick as you should. Try to follow what i laid down with my steps

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

CommentLuv badgeShow more posts

Search The Blog

DO YOU WANT TO PROMOTE YOUR PRODUCT?

Do you have a product that you would like us to review here at onenaijablog? If you already have a post written for your product, would you like us to publish it to our unique blog readers? Then take the advantage of our low cost plan by . Contacting Us Today

Recent Reviews

  • InnJoo Halo
  • Infinix Hot 2 (X510)
  • InnJoo Fire

RSS Contents From Babanature Blog

  • Don't download latest Windows 10 update if you own one of these popular laptops
  • The new Android 11 features that will actually change your phone
  • The new PlayStation 5 looks like a giant broadband router
  • 5 secure smartphone settings that’ll protect you from hackers
  • Facebook's new tool reveals if you're being scammed

FOLLOW ONENAIJA BLOG

Icon IconIcon Follow Me on Pinterest

Translate to Your Language

Friend Us On Facebook

Copyright © 2021 · Proudly Onenaijablog Re-Touched By, Babanature | Google+