Block Unwanted Websites - by just editing host file
Recently a friend of mine, who works at a gaming parlour asked me how to block certain websites. I knew there were many programs out there including some antivirus/firewall suites. But, he needed the solution to work at different parlours. After some research, I found that it was actually very easy to do this.
Warning !! Please backup your file before editing
Open HOSTS file which is located at C:/windows/system32/drivers/etc using notepad.

Lets say you want to block www.hityou.com
Just add 127.0.0.1 www.hityou.com as shown in the image above. You may also add the site without the www. for added safety.
Thats it !!! Now when you try to open the website, your browser will be unalbe to connect to this website because the DNS for the website has been changed to 127.0.0.1 instead of the real DNS.
This is how Spybot S&Dblocks sites with spyware ![]()
Discover and Share
You can also request for a post on a topic of your choice !
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically each day to your feed reader. If you don't have a feed reader, you can always have these articles delivered to your email inbox every day. Click here to sign up.
Trackbacks & Pingbacks
Comments
Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>














Another way to do this is by using K9 software. It is free and license for home use only. Check them out they are excellent.
http://www1.k9webprotection.com/getk9/index.php
Sinceely,
John Bisner
Bisner Consulting Services
Bisnerconsulting.com