Internet explorer set up - site protection

S

Serpeverde

One post explained how to deny access to some web site by adding the
following text into the HOSTS file (C:\windows\system32\drivers\etc
\hosts):

e.g.

127.0.0.1 "name of forbidden site"

The problem I have is that opening with wordpad the file, the system
does not allow me to save the file (it gives file in use message).

Can you tell me how to modify th hosts file saving it succesfully?

serpeverde2007
 
F

forty-nine

Serpeverde said:
One post explained how to deny access to some web site by adding the
following text into the HOSTS file (C:\windows\system32\drivers\etc
\hosts):

e.g.

127.0.0.1 "name of forbidden site"

The problem I have is that opening with wordpad the file, the system
does not allow me to save the file (it gives file in use message).

Can you tell me how to modify th hosts file saving it succesfully?

serpeverde2007

One way is to run cmd.exe as administartor.
You will be in system32.

cd to drivers
cd to etc
edit hosts
save
exit

I tried, and this method works
 
F

Frank Saunders MS-MVP IE,OE/WM

Serpeverde said:
One post explained how to deny access to some web site by adding the
following text into the HOSTS file (C:\windows\system32\drivers\etc
\hosts):

e.g.

127.0.0.1 "name of forbidden site"

The problem I have is that opening with wordpad the file, the system
does not allow me to save the file (it gives file in use message).

Can you tell me how to modify th hosts file saving it succesfully?

serpeverde2007

Right click it and select Properties. Uncheck Read Only. Make your
changes. Right click it and select Properties. Recheck Read Only.
 
R

Rick Rogers

Hi,

When opening wordpad or notepad, do not double click it to open, instead
right click it and select 'run as administrator'. This will give you the
elevated privileges necessary to make changes to the system file.

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP

Windows help - www.rickrogers.org
My thoughts http://rick-mvp.blogspot.com
 
S

Serpeverde

Hi,

When opening wordpad or notepad, do not double click it to open, instead
right click it and select 'run as administrator'. This will give you the
elevated privileges necessary to make changes to the system file.

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVPhttp://mvp.support.microsoft.com/
Windows help -www.rickrogers.org
My thoughtshttp://rick-mvp.blogspot.com









- Mostra testo tra virgolette -

DONT' WORK

1 Using dos EDIT it says: not allowed to modify read only file.

2 Se right click, property.....the read only box is NOT marked. ??????

3 right click it and select 'run as administrator'.....Not present in
my right click menu

other help...please
 
S

Synapse Syndrome

DONT' WORK

1 Using dos EDIT it says: not allowed to modify read only file.

2 Se right click, property.....the read only box is NOT marked. ??????

3 right click it and select 'run as administrator'.....Not present in
my right click menu

other help...please
-----------------------------------------------------------------------------

He meant right click Wordpad. Not the HOSTS file.

Try right-clicking Notepad and Run as Administrator. I'd rather use Notepad
as Wordpad might add some formatting which you do not want in this text
file.

I actually use EditPad Lite as the text editor, as it has a lot of useful
features that Notepad lacks. http://www.editpadpro.com/editpadlite.html

If you want a really decent HOSTS file, with loads of crap sites included,
try this: http://someonewhocares.org/hosts/

ss.
 
R

Rick Rogers

Hi,

1 Using dos EDIT it says: not allowed to modify read only file.

As Frank has told you, you need to change the read only attribute first.
It's not dos, it's a command prompt and you should run "attrib -r
C:\Windows\system32\drivers\etc\hosts" first. And, to do so you must run
from an elevated command prompt.

2 Se right click, property.....the read only box is NOT marked. ??????

What are you right clicking on?

3 right click it and select 'run as administrator'.....Not present in
my right click menu

What are you right clicking? The hosts file? You need to right click the
application you are going to use to open the hosts file, whether that be
notepad, wordpad, or the command prompt.

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP

Windows help - www.rickrogers.org
My thoughts http://rick-mvp.blogspot.com

Hi,

When opening wordpad or notepad, do not double click it to open, instead
right click it and select 'run as administrator'. This will give you the
elevated privileges necessary to make changes to the system file.

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft
MVPhttp://mvp.support.microsoft.com/
Windows help -www.rickrogers.org
My thoughtshttp://rick-mvp.blogspot.com









- Mostra testo tra virgolette -

DONT' WORK

other help...please
 
S

Serpeverde

Hi,

1 Using dos EDIT it says: not allowed to modify read only file.

As Frank has told you, you need to change the read only attribute first.
It's not dos, it's a command prompt and you should run "attrib -r
C:\Windows\system32\drivers\etc\hosts" first. And, to do so you must run
from an elevated command prompt.

2 Se right click, property.....the read only box is NOT marked. ??????


The file is not read only (box not Checked in the property of the
hosts fiel) However I did as you told me opening notepad as
amministrator and I could modify the file.


Thank you to everybody.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top