Windows XP Community - XPHeads



HOSTS file does nothing?

microsoft.public.windowsxp.network_web


Reply
  #1 (permalink)  
Old 08-08-2008, 07:13 PM
Alex Clark
 
Posts: n/a
HOSTS file does nothing?
Hi all,

I edited my hosts file recently to block out a couple of ad-server domains
and noticed it didn't do anything. Curious to test whether my hosts file
worked at all, I directed www.google.com to 127.0.0.1 and ran IE. It
promptly loaded www.google.com without any bother at all.

I rebooted and still had the same issue. It seems the HOSTS file is being
totally ignored. I've Googled for information on it but as far as I can
tell, Windows XP still makes use of this file?

I'm on XP Pro 64bit if that makes any difference?

TIA,
Alex


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-08-2008, 07:29 PM
Robert L. \(MS-MVP\)
 
Posts: n/a
Re: HOSTS file does nothing?
1. Do you have extension on the hosts file, for example hosts.txt?
2. if ping Google.com, do you receive 127.0.0.1?

--
Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on
http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on
http://www.HowToNetworking.com
"Alex Clark" <quanta@noemail.noemail> wrote in message
news:ORf6TrY%23IHA.4472@TK2MSFTNGP05.phx.gbl...
> Hi all,
>
> I edited my hosts file recently to block out a couple of ad-server domains
> and noticed it didn't do anything. Curious to test whether my hosts file
> worked at all, I directed www.google.com to 127.0.0.1 and ran IE. It
> promptly loaded www.google.com without any bother at all.
>
> I rebooted and still had the same issue. It seems the HOSTS file is being
> totally ignored. I've Googled for information on it but as far as I can
> tell, Windows XP still makes use of this file?
>
> I'm on XP Pro 64bit if that makes any difference?
>
> TIA,
> Alex
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-08-2008, 07:33 PM
Bruno
 
Posts: n/a
Re: HOSTS file does nothing?
"Alex Clark" wrote:
> I edited my hosts file recently to block out a couple of ad-server domains
> and noticed it didn't do anything. Curious to test whether my hosts file
> worked at all, I directed www.google.com to 127.0.0.1 and ran IE. It
> promptly loaded www.google.com without any bother at all.


The hosts file in is "\WINDOWS\system32\drivers\etc" and has no extension.
Is it the file you've edited?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-08-2008, 07:38 PM
Ken Blake, MVP
 
Posts: n/a
Re: HOSTS file does nothing?
On Fri, 8 Aug 2008 15:33:22 -0400, "Bruno" <bgarbay@yahoo.com> wrote:

> "Alex Clark" wrote:
> > I edited my hosts file recently to block out a couple of ad-server domains
> > and noticed it didn't do anything. Curious to test whether my hosts file
> > worked at all, I directed www.google.com to 127.0.0.1 and ran IE. It
> > promptly loaded www.google.com without any bother at all.

>
> The hosts file in is "\WINDOWS\system32\drivers\etc" and has no extension.
> Is it the file you've edited?



And, Alex, exactly how did you edit it? Please copy and paste the line
here.


--
Ken Blake, Microsoft MVP - Windows Desktop Experience
Please Reply to the Newsgroup
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 08-08-2008, 07:49 PM
John Wunderlich
 
Posts: n/a
Re: HOSTS file does nothing?
"Alex Clark" <quanta@noemail.noemail> wrote in
news:ORf6TrY#IHA.4472@TK2MSFTNGP05.phx.gbl:

> Hi all,
>
> I edited my hosts file recently to block out a couple of ad-server
> domains and noticed it didn't do anything. Curious to test
> whether my hosts file worked at all, I directed www.google.com to
> 127.0.0.1 and ran IE. It promptly loaded www.google.com without
> any bother at all.
>
> I rebooted and still had the same issue. It seems the HOSTS file
> is being totally ignored. I've Googled for information on it but
> as far as I can tell, Windows XP still makes use of this file?
>
> I'm on XP Pro 64bit if that makes any difference?
>
> TIA,
> Alex


It is doubtful that the Hosts file is being ignored.
To test, try creating a new Hosts entry "abc" and assign it the
numeric IP address of, say, yahoo.com. Then try pinging "abc"...

A couple of things could cause the behavior you describe.

First: Are you accessing the internet through a proxy server? If so,
the proxy server will do the lookups for you.

Second: Browsers are sometimes too smart for their own good. It may
have tried "www.google.com", as specified, and it might have failed
because of your Hosts entry. It then might have automatically tried
"google.com" (which is _not_ the same as far as a Host file is
concerned) which probably did work.

HTH,
John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 08-08-2008, 08:08 PM
Alex Clark
 
Posts: n/a
Re: HOSTS file does nothing?
> 1. Do you have extension on the hosts file, for example hosts.txt?

Nope, it's just HOSTS and it's in my c:\windows\system32\drivers\etc folder

> 2. if ping Google.com, do you receive 127.0.0.1?


Yes! Which tends to imply that IE is doing its own lookup and ignoring the
HOSTS file...?




"Robert L. (MS-MVP)" <findemail@chicagotech.net> wrote in message
news:eMi5RzY%23IHA.3344@TK2MSFTNGP04.phx.gbl...
>
> --
> Bob Lin, MS-MVP, MCSE & CNE
> Networking, Internet, Routing, VPN Troubleshooting on
> http://www.ChicagoTech.net
> How to Setup Windows, Network, VPN & Remote Access on
> http://www.HowToNetworking.com
> "Alex Clark" <quanta@noemail.noemail> wrote in message
> news:ORf6TrY%23IHA.4472@TK2MSFTNGP05.phx.gbl...
>> Hi all,
>>
>> I edited my hosts file recently to block out a couple of ad-server
>> domains and noticed it didn't do anything. Curious to test whether my
>> hosts file worked at all, I directed www.google.com to 127.0.0.1 and ran
>> IE. It promptly loaded www.google.com without any bother at all.
>>
>> I rebooted and still had the same issue. It seems the HOSTS file is
>> being totally ignored. I've Googled for information on it but as far as
>> I can tell, Windows XP still makes use of this file?
>>
>> I'm on XP Pro 64bit if that makes any difference?
>>
>> TIA,
>> Alex
>>

>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 08-08-2008, 08:16 PM
Alex Clark
 
Posts: n/a
Re: HOSTS file does nothing?
Here are a couple of lines I've added:

127.0.0.1 google.com
127.0.0.1 www.google.com

Pinging either of the above resolves to 127.0.0.1. Surfing via IE takes me
to the Google homepage.

> First: Are you accessing the internet through a proxy server? If so,
> the proxy server will do the lookups for you.


I think you've just hit upon the problem - I believe my ISP has some sort of
transparent proxy. So they must be doing the lookup work then, rendering my
HOSTS file irrelevant ya reckon? That's a pain, because I could do with
filtering out a few domains.

AHA! Altering the IE connection settings to add a proxy exception for
addresses beginning with *.google.com seems to prevent it loading though!

At least that explains it, but I don't fancy having to add a long list of
blacklisted sites to that tiny little textbox in the IE settings. Sounds
like it may be the only solution though :-(

Thanks for all your help, and that goes to everyone on this thread.
Alex Clark


"John Wunderlich" <jwunderlich@lycos.com> wrote in message
news:Xns9AF4828B28wunderpsdrscray@138.126.254.210. ..
> "Alex Clark" <quanta@noemail.noemail> wrote in
> news:ORf6TrY#IHA.4472@TK2MSFTNGP05.phx.gbl:
>
>> Hi all,
>>
>> I edited my hosts file recently to block out a couple of ad-server
>> domains and noticed it didn't do anything. Curious to test
>> whether my hosts file worked at all, I directed www.google.com to
>> 127.0.0.1 and ran IE. It promptly loaded www.google.com without
>> any bother at all.
>>
>> I rebooted and still had the same issue. It seems the HOSTS file
>> is being totally ignored. I've Googled for information on it but
>> as far as I can tell, Windows XP still makes use of this file?
>>
>> I'm on XP Pro 64bit if that makes any difference?
>>
>> TIA,
>> Alex

>
> It is doubtful that the Hosts file is being ignored.
> To test, try creating a new Hosts entry "abc" and assign it the
> numeric IP address of, say, yahoo.com. Then try pinging "abc"...
>
> A couple of things could cause the behavior you describe.
>


>
> Second: Browsers are sometimes too smart for their own good. It may
> have tried "www.google.com", as specified, and it might have failed
> because of your Hosts entry. It then might have automatically tried
> "google.com" (which is _not_ the same as far as a Host file is
> concerned) which probably did work.
>
> HTH,
> John



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 08-08-2008, 09:37 PM
Jack \(MVP-Networking\).
 
Posts: n/a
Re: HOSTS file does nothing?
Hi
Maybe this can Help, http://www.ezlan.net/host.html
Jack (MS, MVP-Networking)

"Alex Clark" <quanta@noemail.noemail> wrote in message
news:ORf6TrY%23IHA.4472@TK2MSFTNGP05.phx.gbl...
> Hi all,
>
> I edited my hosts file recently to block out a couple of ad-server domains
> and noticed it didn't do anything. Curious to test whether my hosts file
> worked at all, I directed www.google.com to 127.0.0.1 and ran IE. It
> promptly loaded www.google.com without any bother at all.
>
> I rebooted and still had the same issue. It seems the HOSTS file is being
> totally ignored. I've Googled for information on it but as far as I can
> tell, Windows XP still makes use of this file?
>
> I'm on XP Pro 64bit if that makes any difference?
>
> TIA,
> Alex
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 08-08-2008, 10:30 PM
AlmostBob
 
Posts: n/a
Re: HOSTS file does nothing?
Clear the TIF
cached pages are loaded from the tif


--
Adaware http://www.lavasoft.de
spybot http://www.safer-networking.org
AVG free antivirus http://www.grisoft.com
Etrust/Vet/CA.online Antivirus scan
http://www3.ca.com/securityadvisor/virusinfo/scan.aspx
Panda online AntiVirus scan http://www.pandasoftware.com/ActiveScan/
Catalog of removal tools (1)
http://www.pandasoftware.com/download/utilities/
Catalog of removal tools (2)
http://www3.ca.com/securityadvisor/n...aspx?CID=40387
Blocking Unwanted Parasites with a Hosts file
http://mvps.org/winhelp2002/hosts.htm
links provided as a courtesy, read all instructions on the pages before use

Grateful thanks to the authors and webmasters
_

"Alex Clark" <quanta@noemail.noemail> wrote in message
news:ORf6TrY%23IHA.4472@TK2MSFTNGP05.phx.gbl...
> Hi all,
>
> I edited my hosts file recently to block out a couple of ad-server domains
> and noticed it didn't do anything. Curious to test whether my hosts file
> worked at all, I directed www.google.com to 127.0.0.1 and ran IE. It
> promptly loaded www.google.com without any bother at all.
>
> I rebooted and still had the same issue. It seems the HOSTS file is being
> totally ignored. I've Googled for information on it but as far as I can
> tell, Windows XP still makes use of this file?
>
> I'm on XP Pro 64bit if that makes any difference?
>
> TIA,
> Alex
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 08-08-2008, 11:53 PM
John Wunderlich
 
Posts: n/a
Re: HOSTS file does nothing?
"Alex Clark" <quanta@noemail.noemail> wrote in
news:#s0M4OZ#IHA.1224@TK2MSFTNGP02.phx.gbl:

> Here are a couple of lines I've added:
>
> 127.0.0.1 google.com
> 127.0.0.1 www.google.com
>
> Pinging either of the above resolves to 127.0.0.1. Surfing via IE
> takes me to the Google homepage.
>
>> First: Are you accessing the internet through a proxy server?
>> If so, the proxy server will do the lookups for you.

>
> I think you've just hit upon the problem - I believe my ISP has
> some sort of transparent proxy. So they must be doing the lookup
> work then, rendering my HOSTS file irrelevant ya reckon? That's a
> pain, because I could do with filtering out a few domains.
>
> AHA! Altering the IE connection settings to add a proxy exception
> for addresses beginning with *.google.com seems to prevent it
> loading though!
>
> At least that explains it, but I don't fancy having to add a long
> list of blacklisted sites to that tiny little textbox in the IE
> settings. Sounds like it may be the only solution though :-(
>
> Thanks for all your help, and that goes to everyone on this
> thread. Alex Clark
>
>
>> HTH,
>> John



Thanks for the feedback.
-- John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

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



All times are GMT. The time now is 02:09 PM.


Registry Mechanic - Free Scan Now
Driver Scanner 2009 - Free Scan Now




Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74