How to block websites on your PC
April 17, 2007
There is a very simple way of blocking the unwanted sites on your pc without using the third party software.
Just go to this location:
C:\WINDOWS\system32\drivers\etc
there you see “hosts” file ….open it with notepad and at the end type the following:
0.0.0.0 xyz.com
i m taking the example of xyz.com
save and exit.
If you are not using XP then you may have to restart the pc for the changes to take effect.
By the way 0.0.0.0 is for null ip.
Entry Filed under: troubleshooting. .
9 Comments Add your own
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed


1.
sagar | June 8, 2007 at 9:19 am
However , this doesnot work if you type:
http://www.xyz.com
Hmm.. may be u need to add both
0.0.0.0 xyz.com
0.0.0.0 http://www.xyz.com
2.
sugargeek | August 15, 2009 at 9:48 pm
Hi – I’ve typed it both ways it still doesnt work.
any ideas?
thx
3.
Vishal | March 13, 2008 at 10:33 am
this is very useful for me n im thankful 2 all of u
4.
Vishal | March 13, 2008 at 10:34 am
hiiii
5.
anziano | June 12, 2008 at 9:04 am
i have a laptop DELL, Inspiron 1420 with 2008 windows vista. how would i go about blocking all web sites that are pornography related, even YouTube?
6.
naga raju | August 15, 2008 at 10:26 pm
I am using xp but it not working. U give another tip
7.
tbokr | November 2, 2008 at 12:50 pm
This method works well but is there any other options to allow only a list of sites and block all sites except the list? Because I have a list of 1000 sites for a business purpose and I need to boack all other sites except the list. It is usful to block sites for my employee.
8.
Nidheesh | November 16, 2008 at 5:25 pm
I want to block some sites in my office PC- that is a end user system. I don,t have the administrator password, so the above method not working in my computer…………
any body know ny other method
9.
himanshu | August 31, 2009 at 11:08 pm
i tried this in my computer.my computer is windows vista.i dnt know that its not working or not.i dnt get through it.plz send me other way to block a web site