(Msg. 1) Posted: Thu Jul 31, 2008 12:32 pm
Post subject: Block ad sites with Hosts file - not working ? Archived from groups: microsoft>public>windowsxp>security_admin (more info?)
I have a customized hosts file with sites as adultfriendfinder.com,
doubleclick.com, fling.com .... and the like included in it.
However, I find that embedded ads as well as occasional popups from these
(and other sites included in the hosts file) appear both in Internet
Explorer as well as Firefox!
The syntax used is correct AFAIK. For example:
127.0.0.1 doubleclick.com
Is there something I am overlooking?
TIA
Rubicon
---------
(Msg. 2) Posted: Thu Jul 31, 2008 2:55 pm
Post subject: Re: Block ad sites with Hosts file - not working ? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Rubicon wrote:
> I have a customized hosts file with sites as adultfriendfinder.com,
> doubleclick.com, fling.com .... and the like included in it.
No, you don't. If you have a hosts file, it has a list of *hostnames*,
not domains. The hosts file is only usable if a fully qualified domain
name is specified, and that includes the hostname. You can't block on
domains using the hosts file. You can only block (redirect) based on
hostnames. That is why, for example, ther are over 50 entries for the
Doubleclick domain to block ads from there, and that still does not
guarantee that all ads from Doubleclick will get blocked. They could
add another host as their ad server. They could rename a host. They
could use a boundary host that accepts any hostname so you will never
have a complete list (because you cannot specify a domain, only a host,
and you cannot list an infinite number of hosts). The site could use a
server-side script that decides from where to retrieve the ad but the
hostname or ad source changes all the time and is a host that isn't in
your hosts file. They can stream the data so your web browser hasn't a
clue what is the source host for the content. They could use Flash to
hide the source.
> However, I find that embedded ads as well as occasional popups from these
> (and other sites included in the hosts file) appear both in Internet
> Explorer as well as Firefox!
> The syntax used is correct AFAIK. For example:
> 127.0.0.1 doubleclick.com
No, that is NOT correct syntax. Domains cannot be specified. HOSTS, as
the file is named, must be specified.
> Is there something I am overlooking?
Yep, and already mentioned above. Look at the MVPS hosts file that you
can download. You won't see the doubleclick.net and doubleclick.com
domains listed. You will see hosts on those domains listed, something
like <hostname>.doubleclick.com, and you'll see dozens of them because
lots of hosts are used by that ad service, they change to different
hosts, they change their hosts names, and have other ways of hiding the
ad source.
If you want to block on domains, get a firewall with that feature, or
incorporate an add-on into your web browser with that features (IE7Pro
has that but obviously only for IE). You could also stop using your
ISP's DNS server and use one that lets you block domains, like OpenDNS.
You configure your TCP parameters to use OpenDNS and in your account
there you add domains to a block list; however, I believe you must run
their DNS Updater client (I use the one from DynDNS since I also use
that service to equate my dynamic IP address to an IP Name for easy
access to my host from somewhere else, like from work) to report your
current IP address to your OpenDNS account so they know for which host
your account's config is to be applied.
(Msg. 3) Posted: Fri Aug 01, 2008 11:32 am
Post subject: Re: Block ad sites with Hosts file - not working ? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
I highly recommend PRIVOXY for what you're trying to do:
It can be complex (as it's a powerful tool), but a basic install w/ the
default settings works very well without any tweaking at all. If you like
to tweak then it's very flexable, but read the excellent manual first!
I've used this for years and it works very well. It's still actively
supported and a new version is almost ready for release. The development
team is still active and adding features, tho it is a mature and stable
product.
RE: hosts files, look at the MVPS hosts file (updated monthly), and read
the info at their site, especially re: disabling the DNS Service w/ a
large hosts file. I use this too, in conjunction w/ Privoxy. Together
they protect you from most ad-junk, drive-by malware, and the well known
bad-guy sites.
(Msg. 4) Posted: Fri Aug 01, 2008 5:24 pm
Post subject: Re: Block ad sites with Hosts file - not working ? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Response at bottom:
<frodo DeleteThis @theshire.net> wrote in message
news:OMqdndqXcMotpw7VnZ2dnUVZ_jadnZ2d@posted.radix...
> I highly recommend PRIVOXY for what you're trying to do:
>
> www.privoxy.org >
> It can be complex (as it's a powerful tool), but a basic install w/ the
> default settings works very well without any tweaking at all. If you like
> to tweak then it's very flexable, but read the excellent manual first!
>
> I've used this for years and it works very well. It's still actively
> supported and a new version is almost ready for release. The development
> team is still active and adding features, tho it is a mature and stable
> product.
>
> RE: hosts files, look at the MVPS hosts file (updated monthly), and read
> the info at their site, especially re: disabling the DNS Service w/ a
> large hosts file. I use this too, in conjunction w/ Privoxy. Together
> they protect you from most ad-junk, drive-by malware, and the well known
> bad-guy sites.
>
> Good Luck...
Thanks for the informative response. I will be following your suggestions
this weekend!
BTW - is this what you are referring to? -
http://www.mvps.org/winhelp2002/hosts.htm
Regards and thanks again!
Rubicon
---------
(Msg. 5) Posted: Sat Aug 02, 2008 11:01 am
Post subject: Re: Block ad sites with Hosts file - not working ? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Rubicon <rubicon.TakeThisOut@donot.reply> wrote:
> Thanks for the informative response. I will be following your suggestions
> this weekend!
> BTW - is this what you are referring to? -
> http://www.mvps.org/winhelp2002/hosts.htm > Regards and thanks again!
> Rubicon
> ---------
that's it. there are others too, HPHOSTS has a good following.
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum