How To Block Websites Without Software

Your kids are spending way too much time on a certain website and you are not happy with it? Discover adult websites in the History after your kids used your computer?

If your kids still won’t listen even after all the nagging, you might want to just block the websites you don’t want them to visit. In just 3 simple steps, without any software downloading, you can block as many websites as you want easily.

Step 1
Click Start > Run. Type notepad C:/Windows/System32/drivers/etc/hosts in the “Open:” field and click OK.

Run hosts

Step 2
A notepad will pop up. Find the line where it says “ localhost

Locate Localhost

Step 3
Immediately under the “ localhost“, enter the website you want to block by using the format “”. For example, you want to block Google and Yahoo from being accessed:

Block website

You can block as many websites as you want, just make sure you only enter one URL per line. To remove the blocked websites, just simply remove the line and you are done.


Click on the Fullscreen icon icon for a full screen view.

#block website#Internet#Windows XP


  1. Dexter : - January 27, 2008 @ 6:42 pm

    Nice site. I am now subscribed via google reader. I learn this site via entrecard

  2. Vincent - January 28, 2008 @ 12:23 am

    Thanks Dexter, I remember dropping a card at your blog 😀

  3. LEE - July 6, 2008 @ 6:34 am

    Hey there. I just tried it but it keeps saying i don’t have enough memory and to try again! but i know i have enough memory since i barely use or save/download anything on my computer! please help!


  4. Vincent - July 6, 2008 @ 11:10 am

    Hello Lee, May I know at which part it says you don’t have enough memory? That should not happen because you don’t install anything here, but just editing a text file.

  5. Leslie - October 10, 2008 @ 12:13 am

    this didn’t work. I was able to access all the website I put in there.

  6. James Lamtman - December 13, 2008 @ 9:34 am

    This site locks my mouse and scroll button. I feel that it should dealeted from the internet

  7. Vincent - December 13, 2008 @ 11:52 am

    @James: I guess it’s caused by something else instead, since I don’t see how this blog can affect the responsiveness of your mouse.

  8. Confused - March 16, 2009 @ 1:02 am

    i opened it in command promt …. tried to add the lines as you all suggest, but it told that it couldnt be done since it was a “read-only file” …. tried doing it in notepad , and it told me it couldnt create the path file …./hosts !

    are you supposed to save the txt file to replace the original hosts file ??

  9. kazman - May 18, 2009 @ 7:10 am

    how do u finish it off do ui just click the x button or do u save it im lost

  10. bro - February 12, 2010 @ 1:52 am

    i cant block this adress. its not working

  11. jack - February 28, 2010 @ 8:08 pm

    other tricks for any website block not a use software not a old tricks host file

  12. kenny - March 1, 2010 @ 6:13 am

    bro, if you want to block then you need to put this line in the hosts file just like described in the blog..


    Then you save the file and close the window…

  13. amit - March 11, 2010 @ 8:48 pm

    ya it works but i have 1question that it doesn’t block the whole only block the specific name u typed

  14. web filter - June 21, 2010 @ 1:52 pm

    That’s great tips, or turn to a web filter software is also a wise choice.
    .-= (web filter´s blog – Tips on setting Parental controls in Win7) =-.

  15. Susi - June 28, 2010 @ 11:26 am

    how to unblock ?

  16. Anas - December 30, 2010 @ 7:28 pm

    when i use proxy with firefox, this way is not working!! even if I turn of the DSN client.

  17. keylogger - April 25, 2011 @ 11:26 am

    great tips! I really need it to block bad webistes on my home computer.

  18. Arik Air Booking - May 17, 2011 @ 6:35 pm

    so all the time… these adblocking softwares r making money out of fooling innocent people

  19. latest jobs - September 25, 2011 @ 12:29 pm

    Nice Post ! Thanks for sharing

  20. keylogger - September 27, 2011 @ 4:49 pm

    Thank you for the great post

  21. rental - January 12, 2012 @ 1:37 pm

    We have cost effective solutions at the best prices Guaranteed
    We are open 365/24/7 For rental , sales and service
    We can deliver results within your budget in one hour in the Miami area 2 hour with in the tri-county area.Place the phone number :Call now at 786-426-0062

  22. BLA - July 4, 2012 @ 9:10 am


  23. Hermes Birkin bags - September 11, 2012 @ 3:04 pm

    Thanks for sharing these tips. Please click to Read More information.

Leave a Reply

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