Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How to block a website in Vista?

Briana Dawson
Attach to Mouth
Join date: 23 Sep 2003
Posts: 5,855
01-11-2009 10:17
How do i block a web site from being access on my PC? I was told there was some text file i could edit and enter the site and that would prevent my PC from loading the website.

Anyone have any ideas?

Thanks!
_____________________
WooT
------------------------------

http://www.secondcitizen.net/Forum/
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
01-11-2009 10:32
The old fashioned way, like one can do with XP, is to edit your hosts file.

In Vista, you'd want to run Notepad as an administrator to edit the file rather than just running Notepad normally.

http://www.ehow.com/how_2055536_site-vista-users-see-notes.html

The above link tells how to do this for myspace.com; you can change the website as needed.


From: the above link
On Vista open Notepad as an Administrator by right clicking on the shortcut to Notepad in your program menu and choosing run as administrator.

Browse to c:\windows\system32\drivers\etc\

Show all files from the file type list, and open up HOSTS. Vista users there is an easier method see the notes below.

Step2

You should now have an explorer window open with several files including your hosts file.
Double click on the hosts file. (Vista users should right click on the file

Step3

You will likely be asked for a program to open the hosts file you can choose from the list and pick notepad.

Step4
at the bottom of the file there is a line:
127.0.0.1 localhost

Add another line under it for MySpace:

127.0.0.1 www.myspace.com

Step5

Your host file should resemble this one.
Add several lines to better block MySpace.

You can add other sites you want to block just use this pattern:

127.0.0.1 localhost
127.0.0.1 www.myspace.com
127.0.0.1 myspace.com
127.0.0.1 myspace
127.0.0.1 search.myspace.com
127.0.0.1 home.myspace.com
127.0.0.1 www.myspace.com
127.0.0.1 browseusers.myspace.com
127.0.0.1 groups.myspace.com
127.0.0.1 events.myspace.com
127.0.0.1 collect.myspace.com
127.0.0.1 forum.myspace.com
127.0.0.1 messaging.myspace.com
127.0.0.1 music.myspace.com

Step6

Save the File by going to File > Save.

You may have to restart the computer for the change to take effect (some setups do not). Try to visit MySpace after you do this. I can make a program to do this for you, but I think it would be better if you made the changes instead of some program you do not trust.


There's also some sort of Parental Control system in Vista.

http://www.microsoft.com/windows/windows-vista/features/parental-controls.aspx

I've only seen Vista in stores so I'm not up on that, but it presumably has a menu driven way to block sites, with lots of shading and gradients and 3D buttons and rounded corners and wants to block 90% of the internet and so on.
_____________________
-

So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.

I can be found on the web by searching for "SuezanneC Baskerville", or go to

http://www.google.com/profiles/suezanne

-

http://lindenlab.tribe.net/ created on 11/19/03.

Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard,
Robin, and Ryan

-
Briana Dawson
Attach to Mouth
Join date: 23 Sep 2003
Posts: 5,855
01-11-2009 10:42
Thanks Suezanne!

I edited the host file and it works great. Now I don't have to worry about being weak and curious about what is happening at that blocked website.

Now the big question. How can i do this in Ubuntu 8.10?
_____________________
WooT
------------------------------

http://www.secondcitizen.net/Forum/
Dante Tucker
Purple
Join date: 8 Aug 2006
Posts: 806
01-11-2009 11:33
From: Briana Dawson
Thanks Suezanne!

I edited the host file and it works great. Now I don't have to worry about being weak and curious about what is happening at that blocked website.

Now the big question. How can i do this in Ubuntu 8.10?


The same file is located in /etc/ and functions the same way.

Also note that changing the host to resolve to 127.0.0.1 is simply telling your computer that the server is located on your computer. So if you are running a server you will actualy be redirecting the traffic to it.
Briana Dawson
Attach to Mouth
Join date: 23 Sep 2003
Posts: 5,855
01-11-2009 12:43
From: Dante Tucker
The same file is located in /etc/ and functions the same way.

Also note that changing the host to resolve to 127.0.0.1 is simply telling your computer that the server is located on your computer. So if you are running a server you will actualy be redirecting the traffic to it.


Thanks.

No i am just making sure a website i was wasting my time on is not reachable from any computer in my house anymore. :D
_____________________
WooT
------------------------------

http://www.secondcitizen.net/Forum/