Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Internet explorer set up - site protection

Reply
Thread Tools Display Modes

Internet explorer set up - site protection

 
 
Serpeverde
Guest
Posts: n/a

 
      01-05-2008
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
 
Reply With Quote
 
 
 
 
forty-nine
Guest
Posts: n/a

 
      01-05-2008

"Serpeverde" <> wrote in message
news:93568a59-d849-4e7f-8e4c-...
> 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

 
Reply With Quote
 
Frank Saunders MS-MVP IE,OE/WM
Guest
Posts: n/a

 
      01-05-2008
"Serpeverde" <> wrote in message
news:93568a59-d849-4e7f-8e4c-...
> 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.

--
Frank Saunders MS-MVP IE,OE/WM
www.fjsmjs.com
Do not reply with email

 
Reply With Quote
 
Rick Rogers
Guest
Posts: n/a

 
      01-05-2008
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
http://mvp.support.microsoft.com/
Windows help - www.rickrogers.org
My thoughts http://rick-mvp.blogspot.com

"Serpeverde" <> wrote in message
news:93568a59-d849-4e7f-8e4c-...
> 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


 
Reply With Quote
 
Serpeverde
Guest
Posts: n/a

 
      01-05-2008
On 5 Gen, 23:51, "Rick Rogers" <r...@mvps.org> wrote:
> 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
>
> "Serpeverde" <serpeverde2...@hotmail.it> wrote in message
>
> news:93568a59-d849-4e7f-8e4c-...
>
>
>
> > 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- Nascondi testo tra virgolette -

>
> - 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
 
Reply With Quote
 
Synapse Syndrome
Guest
Posts: n/a

 
      01-05-2008
"Serpeverde" <> wrote in message
news:1a36450e-f2b4-4f05-95ae-...

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.



 
Reply With Quote
 
Rick Rogers
Guest
Posts: n/a

 
      01-05-2008
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
http://mvp.support.microsoft.com/
Windows help - www.rickrogers.org
My thoughts http://rick-mvp.blogspot.com

"Serpeverde" <> wrote in message
news:1a36450e-f2b4-4f05-95ae-...
On 5 Gen, 23:51, "Rick Rogers" <r...@mvps.org> wrote:
> 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
>
> "Serpeverde" <serpeverde2...@hotmail.it> wrote in message
>
> news:93568a59-d849-4e7f-8e4c-...
>
>
>
> > 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- Nascondi testo tra virgolette -

>
> - Mostra testo tra virgolette -


DONT' WORK

other help...please

 
Reply With Quote
 
Serpeverde
Guest
Posts: n/a

 
      01-06-2008
On 6 Gen, 01:03, "Rick Rogers" <r...@mvps.org> wrote:
> 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.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot cut and paste from internet site using vista BK Windows Vista General Discussion 10 11-18-2008 04:42 AM
No Internet acces via site name amlandreau Windows Vista Networking 3 03-24-2008 09:48 PM
explorer 7 and protection content and classification area Emanuel Pieravanti Windows Vista Administration 0 03-05-2008 09:16 AM
internet explorer cannot open the internet site helenmag Windows Vista General Discussion 2 12-25-2007 05:56 PM
Can't Install a New Program from a Trusted Internet Site Ann Windows Vista Mail 2 10-12-2007 06:11 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59