C:\WINDOWS\system32\drivers\etc\hosts doesn't work!
I am trying to block a web site by entering into C:\WINDOWS
\system32\drivers\etc\hosts the following line:
127.0.0.1 www.ebay.com
I then use my browser to test if that really works, by entering into
the address bar:
http://www.ebay.com
However, for some strange reason, the browser gets to www.ebay.com as
if no such line is in this hosts file - for some long minutes!
After some time (I didn't measure exactly) it seems that Windows (or
the browser) finally notice that the hosts file changed and block it
just as I wanted.
Any idea why this delay?
How can I get rid of this delay?
BTW, I tried restarting the DNS Client service to see if that helps,
but it seems to not affect anything.
Thanks,
Jenna
Re: C:\WINDOWS\system32\drivers\etc\hosts doesn't work!
jennapeltz@gmail.com wrote in
news:9270c330-ecfb-4708-bc8f-e3fbe7b4e79d@35g2000pry.googlegroups.com
:
> I am trying to block a web site by entering into C:\WINDOWS
> \system32\drivers\etc\hosts the following line:
>
> 127.0.0.1 www.ebay.com
>
> I then use my browser to test if that really works, by entering
> into the address bar:
>
> http://www.ebay.com
>
> However, for some strange reason, the browser gets to www.ebay.com
> as if no such line is in this hosts file - for some long minutes!
>
> After some time (I didn't measure exactly) it seems that Windows
> (or the browser) finally notice that the hosts file changed and
> block it just as I wanted.
>
> Any idea why this delay?
>
> How can I get rid of this delay?
>
> BTW, I tried restarting the DNS Client service to see if that
> helps, but it seems to not affect anything.
>
> Thanks, Jenna
>
1) Have you tried clearing the cache on your browser?
2) You might also want to clear your DNS cache:
Start->Run->Cmd then enter the command:
ipconfig /flushdns
HTH,
-- John
Re: C:\WINDOWS\system32\drivers\etc\hosts doesn't work!
On Jan 1, 8:08 pm, John Wunderlich <jwunderl...@lycos.com> wrote:
>
> 1) Have you tried clearing the cache on your browser?
Yes, I did. It doesn't help.
> 2) You might also want to clear your DNS cache:
> Start->Run->Cmd then enter the command:
> ipconfig /flushdns
>
I did that, too. It doesn't help.
Is it possible that the browser, too, has its own DNS cache?
Thanks,
Jenna
Re: C:\WINDOWS\system32\drivers\etc\hosts doesn't work!
Does disabling the DNS Client service help?
--
Regards,
Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
The Winhelponline Blog http://www.winhelponline.com/blog
<jennapeltz@gmail.com> wrote in message
news:9270c330-ecfb-4708-bc8f-e3fbe7b4e79d@35g2000pry.googlegroups.com...
>I am trying to block a web site by entering into C:\WINDOWS
> \system32\drivers\etc\hosts the following line:
>
> 127.0.0.1 www.ebay.com
>
> I then use my browser to test if that really works, by entering into
> the address bar:
>
> http://www.ebay.com
>
> However, for some strange reason, the browser gets to www.ebay.com as
> if no such line is in this hosts file - for some long minutes!
>
> After some time (I didn't measure exactly) it seems that Windows (or
> the browser) finally notice that the hosts file changed and block it
> just as I wanted.
>
> Any idea why this delay?
>
> How can I get rid of this delay?
>
> BTW, I tried restarting the DNS Client service to see if that helps,
> but it seems to not affect anything.
>
> Thanks,
> Jenna
Re: C:\WINDOWS\system32\drivers\etc\hosts doesn't work!
On Jan 2, 12:44 am, "Ramesh Srinivasan, MS-MVP" <ramesh@unknownhost>
wrote:
> Does disabling the DNS Client service help?
>
As I mentioned in my original post, I tried restarting the DNS Client
service - including disabling it completely - but that doesn't help
the DELAY problem.
Please note: My problem is NOT that the HOSTS files change is not
EVENTUALLY being recognized by the system.
My problem is that it takes some unspecified delay for the browser to
recognize it.
I want to know where this delay is coming from, so that I can at least
know when to expect that change or, better yet, how to control it.
If I knew that clearing some cache would help, that would be super,
but as I said earlier clearing the cache doesn't eliminate the DELAY.
Where does that delay come from? How many layers and levels of caching
are there for this poor DNS thing?
Thanks,
Jenna
Re: C:\WINDOWS\system32\drivers\etc\hosts doesn't work!
On Fri, 2 Jan 2009 08:40:49 -0800 (PST), jennapeltz@gmail.com wrote:
>On Jan 2, 12:44 am, "Ramesh Srinivasan, MS-MVP" <ramesh@unknownhost>
>wrote:
>> Does disabling the DNS Client service help?
>>
>
>As I mentioned in my original post, I tried restarting the DNS Client
>service - including disabling it completely - but that doesn't help
>the DELAY problem.
>
>Please note: My problem is NOT that the HOSTS files change is not
>EVENTUALLY being recognized by the system.
>
>My problem is that it takes some unspecified delay for the browser to
>recognize it.
>
>I want to know where this delay is coming from, so that I can at least
>know when to expect that change or, better yet, how to control it.
>
>If I knew that clearing some cache would help, that would be super,
>but as I said earlier clearing the cache doesn't eliminate the DELAY.
>Where does that delay come from? How many layers and levels of caching
>are there for this poor DNS thing?
>
>Thanks,
>Jenna
Simply close the browser and then restart the browser. Upon restarting
the browser, the domain entered into the HOSTS file should be blocked.
JM
Re: C:\WINDOWS\system32\drivers\etc\hosts doesn't work!
Try my FixIE Tool. Download it here
http://pcbutts1.com/downloads/tools/tools.htm
--
The Real Truth http://pcbutts1-therealtruth.blogspot.com/
<jennapeltz@gmail.com> wrote in message
news:f1d63e31-eb45-404e-8aad-b35a9487f057@40g2000prx.googlegroups.com...
> On Jan 2, 12:44 am, "Ramesh Srinivasan, MS-MVP" <ramesh@unknownhost>
> wrote:
>> Does disabling the DNS Client service help?
>>
>
> As I mentioned in my original post, I tried restarting the DNS Client
> service - including disabling it completely - but that doesn't help
> the DELAY problem.
>
> Please note: My problem is NOT that the HOSTS files change is not
> EVENTUALLY being recognized by the system.
>
> My problem is that it takes some unspecified delay for the browser to
> recognize it.
>
> I want to know where this delay is coming from, so that I can at least
> know when to expect that change or, better yet, how to control it.
>
> If I knew that clearing some cache would help, that would be super,
> but as I said earlier clearing the cache doesn't eliminate the DELAY.
> Where does that delay come from? How many layers and levels of caching
> are there for this poor DNS thing?
>
> Thanks,
> Jenna
Re: C:\WINDOWS\system32\drivers\etc\hosts doesn't work!
Don't you really mean your destructive tool? I wouldn't run it under ANY
circumstances.
"The Real Truth MVP" <toidi@tpap.com> wrote in message
news:bPs7l.15784$Ws1.5208@nlpi064.nbdc.sbc.com...
> Try my FixIE Tool. Download it here
> http://pcbutts1.com/downloads/tools/tools.htm
>
>
>
> --
> The Real Truth http://pcbutts1-therealtruth.blogspot.com/
>
>
>
>
> <jennapeltz@gmail.com> wrote in message
> news:f1d63e31-eb45-404e-8aad-b35a9487f057@40g2000prx.googlegroups.com...
>> On Jan 2, 12:44 am, "Ramesh Srinivasan, MS-MVP" <ramesh@unknownhost>
>> wrote:
>>> Does disabling the DNS Client service help?
>>>
>>
>> As I mentioned in my original post, I tried restarting the DNS Client
>> service - including disabling it completely - but that doesn't help
>> the DELAY problem.
>>
>> Please note: My problem is NOT that the HOSTS files change is not
>> EVENTUALLY being recognized by the system.
>>
>> My problem is that it takes some unspecified delay for the browser to
>> recognize it.
>>
>> I want to know where this delay is coming from, so that I can at least
>> know when to expect that change or, better yet, how to control it.
>>
>> If I knew that clearing some cache would help, that would be super,
>> but as I said earlier clearing the cache doesn't eliminate the DELAY.
>> Where does that delay come from? How many layers and levels of caching
>> are there for this poor DNS thing?
>>
>> Thanks,
>> Jenna
>