How to block a website on your computer.
If you would like to block a website from being viewed on your Windows computer, follow these steps:
C:\WINDOWS\system32\drivers\etc
First backup the hosts file.
Open hosts file there from the notepad.
At the end of the line you can see as per below.
127.0.0.1 localhost
Append the following line at the end
127.0.0.1 BlockSitename.com # replace the BlockSitename.com with the site name that you want to block.
then go to Start->Run-> type ipconfig /flushdns
Enjoy…
Note: That will only stop the domain name to go to the website but if you know the IP address of the site from dnsstuff or whois then you can browse the site.




















Adam said,
December 7, 2006 @ 3:22 pm
I usually block a websites from my Spyware, those having no spyware can Click the internet icon on the status bar and then-click restricted sites icon and add the websites you want to get blocked .