Find out what I'm doing, Follow Me :)

Wednesday, January 12, 2011

Block a website address from opening in windows

This trick will be helpful for those who want to block access to particular websites on their system. Parents can block certain websites from their younger ones. It can also be used in schools and colleges etc….

Trick to block a website in windowsWell this trick is very simple and it goes this way.

1. Open MyComputer

2. Browse C: (or your Operating system drive)

3. Browse Windows –>System32–>drivers–>etc

so the Location will be C:\WINDOWS\system32\drivers\etc

In the etc folder look for the file hosts

4. Open this file hosts with notepad.

5. Locate the line localhost

6. To block for example, just add this text under localhost:

7. Save the file.

In this way add any number of sites you want, however you will need to prefix it with “″.

Note: This blocks the website from opening in any browser whether it is Mozilla Firefox or Internet Explorer


  1. also tell me how can i remove this blocking to again browse theparticular site

  2. To remove the blockage of that site you just have to remove the TEXT added by you in hosts file as mention above
    if you added this text in host file localhost:
    these sites are blocked

    DELETE text added by you and you will be able BROWSE again :-)