Home » General, Security, Tutorials

How to: Block a website

24 April 2008 1,586 views 9 Comments



Want to bully your friends by blocking their favorite websites or just want to hide some web pages from your children? Here’s how you can block certain websites on your home computer:

Step 1: Click the Start button and select Run. Type the following text in that Run box:

notepad c:\WINDOWS\system32\drivers\etc\hosts

Step 2: You will see a new notepad window on your screen containing some cryptic information. Don’t panic. Just go to the last line of the file, hit the enter key and type the following (for example):

127.0.0.1 myspace.com

Save the file and exit. That’s it. None of the above sites will now open on your computer.

You can block as many websites as you like with the above technique. If you want to remove the ban later, open the same file as mentioned in Step 1 and delete the above lines.

More Cool Windows XP Tips & Tricks HERE!

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

9 Comments »

  • Akshay said:

    Thanks a ton boss… cool trick

  • Eerik said:

    You’re welcome :D

  • Jason said:

    Trying to block a web site and your trick is not working?

  • satish said:

    nice trick boss thanks

  • Dipu said:

    using this tip we cant block http://www.bharathmatrimony.com.please help

  • Linda said:

    I am trying to block http://www.urbandictionary.com from my teenager and I have tried several times and it will still open with no problems. Any idea?

  • Pawan said:

    this help is not working. any other idea, please provide. I am very thankful to you, if you can provice. How can I block yahoo messenger?

  • Foyzul Karim said:

    please try to reboot the computer after changing the host file in the appropriate folder

  • Anthony said:

    it did not work and I am 100% sure my computer is xp

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.