If you are using Windows Vista and want to block some websites that you think are not advisable for your children or anyone else, follow these steps:
1. Paste C:\WINDOWS\system32\drivers\etc in search box after clicking Start.
2. You will see 5 files inside the folder. Don’t forget to back up hosts first.

3. Open hosts file using notepad.
4. Scroll to the bottom of the page and find:
127.0.0.1 localhost
5. Add websites that you want to block using the format below. Please note that you only need to save one URL per line.
127.0.0.1 www.google.com
127.0.0.1 www.yahoo.com
127.0.0.1 www.digg.com
6. Save the file then close.
7. Go to Start and run “ipconfig /flushdns” Note: ipconfig /flushdns – will flush and reset a client resolver cache.
Extra Info:
Windows DNS Client may freeze your system if your hosts file is too large. Please follow the steps below to avoid this.
1. Click Start then type “services.msc” in the run box of windows.
2. Navigate to DNS Client.
3. Right click DNS Client then click Properties.
4. Look for Start-up Type then change setting to manual.
5. Click Apply.
6. Then click the Stop button.
7. This is necessary before saving a large number of websites to your hosts file.
Note: To disable website blocking, simply rename the hosts file to anything.