« Should I quarantine virus | Home | Can you get a virus from visiting a website »

How to block certain websites

April 11, 2008

I would like to block certain websites on my computer whats a good and hopefully free way to block websites?

One of the easiest and free way to block access to a website is modifying the Windows “Host” file. It’s not very hard to do and will only take a few minutes. This will work on Windows XP, Windows Vista and older Windows OS
.
When you use the host file to block a website it will work with all browsers and all User Accounts.

*Vista users must disable UAC and have Administrative rights before modifying the hosts file.

Click Start > Computer > Local Disk (C:) > Windows > System 32 > drivers > etc.

Now open the “hosts” file with Notepad (you can do that by right clicking on the file and choose “Open” then select Notepad)

This is where you can add websites that you want to block. Under the section “127.0.0.1 Localhost” is where you type in the website to block. All you have to do is type “127.0.0.1 url to block” in the next line after all the default local hosts text.

Here’s a quick example lets say I want to block “Myspace” from being accessed from this computer all I would do is add “127.0.0.1 www.myspace.com”. Its also a good idea to add another line without the “www” but this step may not be necessary, test and try.

When you are finished adding all the site you want to block be sure to save it. Now try to accessing the site you are trying to block. You should see a “Unable to connect” web page. If it didn’t work try restarting the computer.

You can add as many sites to block as you like and you can also block certain pages from being accessed as well.

Topics: How to |

Related Posts:
Block name search in Facebook
How to install flash player

Comments