
how-to block ads
|
|
Share Topic  |
 |
|
|
|
 AVDRespice, Adspice, ProspicePremium join:2003-02-06 Onion, NJ kudos:1 | reply to OZO
Re: How to block google-analytics said by OZO:The list is quite big, because unfortunately Windows hosts file doesn't support wildcard '*' and, therefore, each host name should be listed separately there.
technically, does *any* HOSTS file "support wildcards"? -- --Standard disclaimers apply.-- | | |
|  OZOPremium join:2003-01-17 kudos:2 | said by AVD:said by OZO:The list is quite big, because unfortunately Windows hosts file doesn't support wildcard '*' and, therefore, each host name should be listed separately there.
technically, does *any* HOSTS file "support wildcards"? Technically they don't. And usual explanation is - they were not designed to block name resolutions in the first place. But if they did support of '*', blocking name resolutions would be much more efficient. If you look at examples of HOSTS files usually they contain many lines referring to one domain, but specifying each and every host within that domain, one by one. If HOSTS files supported '*', many of those lines could be substituted with just one line. E.g.: 127.0.0.1 *.google-analytics.com. -- Keep it simple, it'll become complex by itself... | |
|