How to: Block a website
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.










Thanks a ton boss… cool trick
You’re welcome
Trying to block a web site and your trick is not working?
nice trick boss thanks
using this tip we cant block http://www.bharathmatrimony.com.please help
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?
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?
please try to reboot the computer after changing the host file in the appropriate folder
it did not work and I am 100% sure my computer is xp
ryan adams tattoo,
Hey dude thanks for that ,I.E. CAN’T OPEN SUCH KIND OF SITE BUT GOOGLE DO THIS ,PLZ HELP ME
it doesnt work buddy!
Want to bully your friends by blocking their favorite websites
how to lock site windows xp
sir,mein facebook ko block kiya tha kekin fir bhi facebook khul jati hai.notepad c:\WINDOWS\system32\drivers\etc\hosts
asha kho ……..
plz answer me…………!
it doesn’t work for me.
Above in step 2 was mentioned
“127.0.0.1 myspace.com”
Instead of this u have to do it like this.
“127.0.0.1 myspace.com
127.0.0.1 http://www.myspace.com”
This will work for sure, if u like my post then do inform me at [email protected]
it didnt work at all…
its fake
Your browser caches the hosts file when it starts up. So if you hit the site and see it works, then do the hosts file trick mentioned in this page and just hit the site again in your browser it will still work. You have to close all your browser windows and restart the browser to get it to take effect.
Your computer will look to the hosts file to resolve a hostname before it asks the DNS server so this is a simple way to block the unwanted websites. The downside is that its easy for someone to take it out of the hosts file if they have local administrator rights on the computer. But I guess a lot of users aren’t geeky enough to know or guess that would be the problem.
Its not a fake. But this wont work if you use a proxy, because the proxy does the DNS lookup for you. If you use a proxy then you have to put the hosts file entry on the proxy itself and then usually you would need to restart the proxy service for it to take effect.
happy geeking..
Leave your response!
Archives
Personal
Recent Comments
Recent Posts
Most Commented