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 “127.0.0.1 localhost

Locate Localhost

Step 3
Immediately under the “127.0.0.1 localhost“, enter the website you want to block by using the format “127.0.0.1 webaddress.com”. 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.

Demo

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






This post has 21 comments.

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

    Reply

  2. Vincent
    28 Jan 08
    12:23 am

    Thanks Dexter, I remember dropping a card at your blog :D

    Reply

  3. LEE
    06 Jul 08
    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!

    thanks!

    Reply

  4. Vincent
    06 Jul 08
    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.

    Reply

  5. Leslie
    10 Oct 08
    12:13 am

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

    Reply

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

    Reply

  7. Vincent
    13 Dec 08
    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.

    Reply

  8. Confused
    16 Mar 09
    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 ??

    Reply

  9. kazman
    18 May 09
    7:10 am

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

    Reply

  10. bro
    12 Feb 10
    1:52 am

    i cant block http://88.225.217.222:8080/ this adress. its not working

    Reply

  11. jack
    28 Feb 10
    8:08 pm

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

    Reply

  12. kenny
    01 Mar 10
    6:13 am

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

    “127.0.0.1 http://88.225.217.222:8080/

    Then you save the file and close the window…

    Reply

  13. amit
    11 Mar 10
    8:48 pm

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

    Reply

  14. 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) =-.

    Reply

  15. Susi
    28 Jun 10
    11:26 am

    how to unblock ?

    Reply

  16. Anas
    30 Dec 10
    7:28 pm

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

    Reply

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

    Reply

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

    Reply

  19. Nice Post ! Thanks for sharing

    Reply

  20. Thank you for the great post

    Reply

  21. rental
    12 Jan 12
    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

    Reply


    Subscribe via EmailSend me updates to this email: