Free Information Technology Magazines and eBooks

Sunday, June 28, 2009

How to block particular website on Windows

There are several software that you can use to automatically block websites on your Windows PC but if you prefer to do it manually, you can. It cannot be done via the Windows Registry however you modify the "hosts" file of windows to block particular websites. To disallow your browser from accessing particular website, follow this instruction.


1. From your windows desktop, click windows START button
2. Choose RUN to display the Run dialog box.
3. On the Run dialog, enter "notepad \windows\system32\drivers\etc\hosts". (alternately you can use windows explorer to browse to "c:\windows\system32\drivers\etc" then locate the hosts file.)
4. Press enter to open the hosts file using notepad.
5. Add a line into the file that looks like this.

127.0.0.1 www.xxx.com
127.0.0.1 www.youporn.com
127.0.0.1 www.dontgohere.com


6. Then Save it using notepad's File > Save.

For more Windows Tips & Tricks, subscribe now.

2 comments:

Anonymous said...

hi, recently i am doing a project. This project i need to block the unwanted website to disallow the children access to certain website. i have refer to ur post, using the host file to block the website. But as i know the method only can block the URL only not entire website. For example, if i block the google.com, but i still can access the google.com.my.

Fryan Valdez said...

Hi. You can add google.com.my on hosts too.