To block websites on your home computer without spending lots of money in expensive software, here’s a trick for Windows PC.
Step 1: Click the Start button and select Run. Now type the following text in that Run box:
notepad c:\WINDOWS\system32\drivers\etc\hosts
Step 2: Don’t panic if you see some weired characters when notepad opens up. Simply goto the last line of the file and stat typing the websites that you want to block, each seperated by a line break (ENTER).
127.0.0.1 orkut.com
127.0.0.1 facebook.com
127.0.0.1 myspace.com
127.0.0.1 sex.com
Save the file, exit and you’re done. No one will be able to access those sites that you have just blocked using this method. The good thing is you can keep on listing as many offensive sites you want to be blocked.
How to unblock?
If you want to remove the ban later, open the same file as mentioned in Step 1 and delete the above lines.











































thats works thanks all ho contribute in it i get the way thanks alot
this works fine …when the page is opened in IE.But if u have the different browsers like Firefox, this does not work
thanks a lot but is there a way to block the entire website including all its subdirectories without showing messages like access denied or enter password to get access. I mean the same way HOSTs file work, unable to connect.
Tanks
THANK YOU SO MUCH BUDDY , I REALLY APPRECIATE IT
THANK YOU
THANK YOU
THANK YOU
THANK YOU
THANK YOU
THANK YOU
THANK YOU
THANK YOU
THANK YOU
THANK YOU
!!!!!!!!!!!!!!!!!!
This is so good it works on all my browsers like internet explorer or fire fox and google chrome
Thanks A lot this was really helpful =D
hey this works great on all browsers
but don’t forget to add the www. for the websites
e.g.
127.0.0.1 http://www.facebook.com
127.0.0.1 facebook.com
do this so that both formats get blocked i tried this on firefox i dont know about any other browsers but it worked on internet explorer too
This is a great trick
Thanks A lot buddy this was really helpful =D
thanks buddy i have tried it out it worked in all browsers
How to block all site except gmail ?
like i cant save it man
Kenan, you might want to read the comments in this post http://www.davidtan.org/simple-trick-to-block-websites-in-windows/ , hope that helps.
this is dumb! why can’t i block facebook.com?
Yes, you can block whatever website you want to. Are other websites (listed in hosts) blocked successfully and is it only facebook.com that can’t be blocked?
but it can be access by using some websites unblocker………. do you have any solution for this thanks.!
I would like to know what do you mean by “websites unblocker”. Do you have an example? A web proxy hosted by someone on the internet or some kind of software?
If it’s a web proxy, I can see why it’s still accessible and that, I’m afraid, can’t be blocked by using the method mentioned in this article.
If it’s a software installed locally on a computer, then *maybe*, there’s still a way around it.
there is a software named ultrasurf which let u surf blocked sites
Thank you – this is excellent!
hey
i m using wifi at my home. whenever projects are given from college my friends come over to my place and use the facebook and don’t work
so, how can i block facebook on my whole wifi network