(Jul. 31, 2015 01:27 PM)Faxopita Wrote: Hello whenever,
the script won't touch ad.goodsite.com, because shortening non-cloud-based subdomain-included addresses always leave untouched the domain and the first portion of its subdomain—a convention of mine, but free to you to modify it and keep the second portion of the subdomain as well. However, the script would compress ad.goodsite.com to .goodsite.com if goodsite.com were mistakenly included in the original hosts file as well. If the hosts file contained server1.ad.goodsite.com and server2.ad.goodsite.com, then the script would return .ad.goodsite.com, thus being rid of subdomain's portion 2; if the hosts file contained ad.goodsite.com and goodsite.com, then .goodsite.com would be the result. If you wanted to modify the script to keep the second portion of any subdomain when available, then your amended script would simply return .server1.ad.goodsite.com and .server2.ad.goodsite.com The resulting dot-prefixed entries would prevent your browser from loading any potential content such as, for example, tracking.server1.ad.goodsite.com
Thanks for your input.
I don't think so, in my opinion you should not convert server1.ad.goodsite.com and server2.ad.goodsite.com to .ad.goodsite.com, because that will cause you some trouble in the future, for example:
server1.ad.goodsite.com and server2.ad.goodsite.com, but the site use cdn.ad.goodsite.com to host core content, for example Jquery, AngularJS then Privoxy will block them too, so use what the hosts file give us will be good enough.
adimg.tv.com and mads.tv.com, this site might be similar with Youtube, but shorten to .tv.com will block the whole site.
But this is a good idea to optimize something like:
Code:
0.0.0.0 c.cnzz.com
0.0.0.0 hos1.cnzz.com
0.0.0.0 hzs1.cnzz.com
0.0.0.0 hzs2.cnzz.com
0.0.0.0 hzs4.cnzz.com
0.0.0.0 hzs8.cnzz.com
0.0.0.0 hzs10.cnzz.com
0.0.0.0 hzs13.cnzz.com
0.0.0.0 hzs15.cnzz.com
0.0.0.0 hzs22.cnzz.com
0.0.0.0 icon.cnzz.com
0.0.0.0 pcookie.cnzz.com
0.0.0.0 pw.cnzz.com
0.0.0.0 s1.cnzz.com
0.0.0.0 s3.cnzz.com
0.0.0.0 s4.cnzz.com
0.0.0.0 s5.cnzz.com
0.0.0.0 s7.cnzz.com
0.0.0.0 s8.cnzz.com
0.0.0.0 s9.cnzz.com
....
0.0.0.0 s132.cnzz.com
0.0.0.0 s137.cnzz.com
Will be a huge performance boost.