Windows XP Community - XPHeads



Hosts file effectiveness

microsoft.public.windowsxp.general


Reply
  #1 (permalink)  
Old 07-08-2008, 09:51 PM
RobertVA
 
Posts: n/a
Hosts file effectiveness
Am I misunderstanding the use of the Hosts file to block web sites?

I thought adding "127.0.0.1 acme.com" was supposed to override the
Domain Name Server's data for the IP address when ANY browsers requested
a page from acme.com (made up domain name), directing the browser to the
local hard drive. Since the requested page probably isn't on my hard
drive this should permit me to block things like advertising pop-ups
from that site.

So many sites won't function without JavaScript. I'm not enthusiastic
about turning it off.

However, I continue to find cookies from these domains when I scan for
tracking cookies. Third party cookies are turned off in my browser
security settings too. Today I was even subject to a pop-up window with
one of the supposedly blocked domains displaying in the browser address bar!

IF the sites opening these ads are using the site's actual IP address to
bypass the Hosts file, should the address bar be displaying the IP
address or the URL?

TIA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-08-2008, 10:37 PM
RJK
 
Posts: n/a
Re: Hosts file effectiveness
Have you...

IE | drop down Tools | Internet options | Privacy | Advanced | "Block"
third party Cookies ??

regards, Richard



"RobertVA" <robert_c72athotmail@invalid.com> wrote in message
news:eK0rOTU4IHA.3480@TK2MSFTNGP03.phx.gbl...
> Am I misunderstanding the use of the Hosts file to block web sites?
>
> I thought adding "127.0.0.1 acme.com" was supposed to override the
> Domain Name Server's data for the IP address when ANY browsers requested a
> page from acme.com (made up domain name), directing the browser to the
> local hard drive. Since the requested page probably isn't on my hard drive
> this should permit me to block things like advertising pop-ups from that
> site.
>
> So many sites won't function without JavaScript. I'm not enthusiastic
> about turning it off.
>
> However, I continue to find cookies from these domains when I scan for
> tracking cookies. Third party cookies are turned off in my browser
> security settings too. Today I was even subject to a pop-up window with
> one of the supposedly blocked domains displaying in the browser address
> bar!
>
> IF the sites opening these ads are using the site's actual IP address to
> bypass the Hosts file, should the address bar be displaying the IP address
> or the URL?
>
> TIA



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-08-2008, 10:39 PM
RJK
 
Posts: n/a
Re: Hosts file effectiveness
ooops, I now see you already have done that.

regards, Richard


"RobertVA" <robert_c72athotmail@invalid.com> wrote in message
news:eK0rOTU4IHA.3480@TK2MSFTNGP03.phx.gbl...
> Am I misunderstanding the use of the Hosts file to block web sites?
>
> I thought adding "127.0.0.1 acme.com" was supposed to override the
> Domain Name Server's data for the IP address when ANY browsers requested a
> page from acme.com (made up domain name), directing the browser to the
> local hard drive. Since the requested page probably isn't on my hard drive
> this should permit me to block things like advertising pop-ups from that
> site.
>
> So many sites won't function without JavaScript. I'm not enthusiastic
> about turning it off.
>
> However, I continue to find cookies from these domains when I scan for
> tracking cookies. Third party cookies are turned off in my browser
> security settings too. Today I was even subject to a pop-up window with
> one of the supposedly blocked domains displaying in the browser address
> bar!
>
> IF the sites opening these ads are using the site's actual IP address to
> bypass the Hosts file, should the address bar be displaying the IP address
> or the URL?
>
> TIA



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-08-2008, 10:45 PM
RJK
 
Posts: n/a
Re: Hosts file effectiveness
Try this :-)
http://www.schooner.com/~loverso/no-ads/#whatis

regards, Richard


"RJK" <nospam@hotmail.com> wrote in message
news:O9cqytU4IHA.4332@TK2MSFTNGP06.phx.gbl...
> ooops, I now see you already have done that.
>
> regards, Richard
>
>
> "RobertVA" <robert_c72athotmail@invalid.com> wrote in message
> news:eK0rOTU4IHA.3480@TK2MSFTNGP03.phx.gbl...
>> Am I misunderstanding the use of the Hosts file to block web sites?
>>
>> I thought adding "127.0.0.1 acme.com" was supposed to override the
>> Domain Name Server's data for the IP address when ANY browsers requested
>> a page from acme.com (made up domain name), directing the browser to the
>> local hard drive. Since the requested page probably isn't on my hard
>> drive this should permit me to block things like advertising pop-ups from
>> that site.
>>
>> So many sites won't function without JavaScript. I'm not enthusiastic
>> about turning it off.
>>
>> However, I continue to find cookies from these domains when I scan for
>> tracking cookies. Third party cookies are turned off in my browser
>> security settings too. Today I was even subject to a pop-up window with
>> one of the supposedly blocked domains displaying in the browser address
>> bar!
>>
>> IF the sites opening these ads are using the site's actual IP address to
>> bypass the Hosts file, should the address bar be displaying the IP
>> address or the URL?
>>
>> TIA

>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-08-2008, 11:19 PM
John Wunderlich
 
Posts: n/a
Re: Hosts file effectiveness
RobertVA <robert_c72athotmail@invalid.com> wrote in
news:eK0rOTU4IHA.3480@TK2MSFTNGP03.phx.gbl:

> Am I misunderstanding the use of the Hosts file to block web
> sites?
>
> I thought adding "127.0.0.1 acme.com" was supposed to
> override the Domain Name Server's data for the IP address when ANY
> browsers requested a page from acme.com (made up domain name),
> directing the browser to the local hard drive. Since the requested
> page probably isn't on my hard drive this should permit me to
> block things like advertising pop-ups from that site.
>
> So many sites won't function without JavaScript. I'm not
> enthusiastic about turning it off.
>
> However, I continue to find cookies from these domains when I scan
> for tracking cookies. Third party cookies are turned off in my
> browser security settings too. Today I was even subject to a
> pop-up window with one of the supposedly blocked domains
> displaying in the browser address bar!
>
> IF the sites opening these ads are using the site's actual IP
> address to bypass the Hosts file, should the address bar be
> displaying the IP address or the URL?
>
> TIA


Keep in mind that the Hosts file is strictly a one-to-one mapping and
it will override DNS lookups. The line in your example will block
access to "acme.com" but won't block access to "www.acme.com" or
"anything.acme.com" or "ads.acme.com".

-- John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-09-2008, 12:17 AM
Kayman
 
Posts: n/a
Re: Hosts file effectiveness
On Tue, 08 Jul 2008 17:51:41 -0400, RobertVA wrote:

> Am I misunderstanding the use of the Hosts file to block web sites?
>
> I thought adding "127.0.0.1 acme.com" was supposed to override the
> Domain Name Server's data for the IP address when ANY browsers requested
> a page from acme.com (made up domain name), directing the browser to the
> local hard drive. Since the requested page probably isn't on my hard
> drive this should permit me to block things like advertising pop-ups
> from that site.
>
> So many sites won't function without JavaScript. I'm not enthusiastic
> about turning it off.
>
> However, I continue to find cookies from these domains when I scan for
> tracking cookies. Third party cookies are turned off in my browser
> security settings too. Today I was even subject to a pop-up window with
> one of the supposedly blocked domains displaying in the browser address bar!
>
> IF the sites opening these ads are using the site's actual IP address to
> bypass the Hosts file, should the address bar be displaying the IP
> address or the URL?
>

HOSTS files are IMO overated. If you're on IE7 use IEPro.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-09-2008, 12:47 AM
Twayne
 
Posts: n/a
Re: Hosts file effectiveness
> Am I misunderstanding the use of the Hosts file to block web sites?
>
> I thought adding "127.0.0.1 acme.com" was supposed to override
> the Domain Name Server's data for the IP address when ANY browsers
> requested a page from acme.com (made up domain name), directing the
> browser to
> the local hard drive. Since the requested page probably isn't on my
> hard drive this should permit me to block things like advertising
> pop-ups
> from that site.
>
> So many sites won't function without JavaScript. I'm not enthusiastic
> about turning it off.
>
> However, I continue to find cookies from these domains when I scan for
> tracking cookies. Third party cookies are turned off in my browser
> security settings too. Today I was even subject to a pop-up window
> with one of the supposedly blocked domains displaying in the browser
> address bar!
> IF the sites opening these ads are using the site's actual IP address
> to bypass the Hosts file, should the address bar be displaying the IP
> address or the URL?
>
> TIA


I suspect the following links will be useful to you. MVPS.org has a
very useful HOSTS file I've used for quite awhile now and like. There
are many others, too.
Be sure to read about how to keep a large HOSTS file from slowing down
your computer; MVP org provides a batch file to help that along.

Lots of info in these:
http://en.wikipedia.org/wiki/Hosts_file

http://www.mvps.org/winhelp2002/hosts.htm

http://www.mvps.org/winhelp2002/hostsfaq.htm

http://accs-net.com/hosts/what_is_hosts.html

http://everythingisnt.com/hosts.html

Except for MVPx... I don't recommend anyone or anything, but there are
some good ones out there. These links are provided in the interest of
information, not recommendation of the sites themselves.

Twayne


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 07-09-2008, 03:04 AM
RobertVA
 
Posts: n/a
Re: Hosts file effectiveness
John Wunderlich wrote:
> RobertVA <robert_c72athotmail@invalid.com> wrote in
> news:eK0rOTU4IHA.3480@TK2MSFTNGP03.phx.gbl:
>
>> Am I misunderstanding the use of the Hosts file to block web
>> sites?
>>
>> I thought adding "127.0.0.1 acme.com" was supposed to
>> override the Domain Name Server's data for the IP address when ANY
>> browsers requested a page from acme.com (made up domain name),
>> directing the browser to the local hard drive. Since the requested
>> page probably isn't on my hard drive this should permit me to
>> block things like advertising pop-ups from that site.
>>
>> So many sites won't function without JavaScript. I'm not
>> enthusiastic about turning it off.
>>
>> However, I continue to find cookies from these domains when I scan
>> for tracking cookies. Third party cookies are turned off in my
>> browser security settings too. Today I was even subject to a
>> pop-up window with one of the supposedly blocked domains
>> displaying in the browser address bar!
>>
>> IF the sites opening these ads are using the site's actual IP
>> address to bypass the Hosts file, should the address bar be
>> displaying the IP address or the URL?
>>
>> TIA

>
> Keep in mind that the Hosts file is strictly a one-to-one mapping and
> it will override DNS lookups. The line in your example will block
> access to "acme.com" but won't block access to "www.acme.com" or
> "anything.acme.com" or "ads.acme.com".
>
> -- John


That would explain much of what's slipping through. Does whatever
processes the Hosts file recognize any wild card characters like "*"? It
would be handy if something like "127.0.0.1 *acme.com" would block
anything from the "acme.com" domain including sub-domains ("www..." or not).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 07-09-2008, 10:22 AM
RJK
 
Posts: n/a
Re: Hosts file effectiveness
Wildcards don't work in hosts - experimented with that a long time ago,
....as previously posted - and in case it's of use - lots of useful concepts
mentioned here :-
http://www.schooner.com/~loverso/no-ads/#whatis



"RobertVA" <robert_c72athotmail@invalid.com> wrote in message
news:%235MBRCX4IHA.4272@TK2MSFTNGP03.phx.gbl...
> John Wunderlich wrote:
>> RobertVA <robert_c72athotmail@invalid.com> wrote in
>> news:eK0rOTU4IHA.3480@TK2MSFTNGP03.phx.gbl:
>>> Am I misunderstanding the use of the Hosts file to block web
>>> sites?
>>> I thought adding "127.0.0.1 acme.com" was supposed to
>>> override the Domain Name Server's data for the IP address when ANY
>>> browsers requested a page from acme.com (made up domain name),
>>> directing the browser to the local hard drive. Since the requested
>>> page probably isn't on my hard drive this should permit me to
>>> block things like advertising pop-ups from that site.
>>>
>>> So many sites won't function without JavaScript. I'm not
>>> enthusiastic about turning it off.
>>>
>>> However, I continue to find cookies from these domains when I scan
>>> for tracking cookies. Third party cookies are turned off in my
>>> browser security settings too. Today I was even subject to a
>>> pop-up window with one of the supposedly blocked domains
>>> displaying in the browser address bar!
>>> IF the sites opening these ads are using the site's actual IP
>>> address to bypass the Hosts file, should the address bar be
>>> displaying the IP address or the URL?
>>>
>>> TIA

>>
>> Keep in mind that the Hosts file is strictly a one-to-one mapping and it
>> will override DNS lookups. The line in your example will block access to
>> "acme.com" but won't block access to "www.acme.com" or
>> "anything.acme.com" or "ads.acme.com".
>>
>> -- John

>
> That would explain much of what's slipping through. Does whatever
> processes the Hosts file recognize any wild card characters like "*"? It
> would be handy if something like "127.0.0.1 *acme.com" would block
> anything from the "acme.com" domain including sub-domains ("www..." or
> not).



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 01:08 PM.








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