5 ms·
This raises the question: Why delay instead of block? Assumption is that user wants page to load faster but does not object to tracking. What if user wants pa
by feelin_googley 9y ago
This raises the question: Why delay instead of block?
Assumption is that user wants page to load faster but does not object to tracking.
What if user wants page to load faster and objects to tracking?
Source of Firefox tracking protection is list at disconnect.me?
credit: eco
https://news.ycombinator.com/item?id=15964393 https://news.ycombinator.com/item?id=15964393
Basic gethostbyname()->HOSTS file blocking:
#!/bin/sh
exec curl https://disconnect.me/trackerprotection/blocked \
|sed -n '/<\/br>/!{/\./s/^/255.255.255.255 /;};/\./p' >> /etc/hosts;
User may want to add these too:
https://disconnect.me/trackerprotection/unblocked
Beyond HOSTS file, authoritative DNS gives more flexibility, e.g. logging all requests, using wildcards, etc. For example, tinydns:
#!/bin/sh
curl https://disconnect.me/trackerprotection/blocked \
|sed -n '/<\/br>/!{/\./s/.*/.&\
=&:255.255.255.255:1/;};/\./p' >> _root.zone/root/data;
if cd _root.zone/root/data;then exec tinydns-data;fi
Or dnscache:
#!/bin/sh
curl https://disconnect.me/trackerprotection/blocked \
|sed -n '/<\/br>/!{
/\./s/.*/echo 255.255.255.255 > _dnscache\/root\/servers\/& /;};
/\./p' > block.sh;
if sh -c ./block.sh;then exec rm block.sh;fi
Note I am not recommending this particular block list. Compared to the one I use, it seems incomplete. I prefer to create own list from DNS logs from own network traffic. Use of wildcards can shorten a long list like this substantially.
- Vinnl 9y agoBlocking is already supported: https://support.mozilla.org/kb/tracking-protection#w_how-to-turn-tracking-protection-on https://support.mozilla.org/kb/tracking-protection#w_how-to-... Mozilla doesn't want to enable it by default because it is the funding model of the web, and no viable alternative funding model for most of the web's content has arrived yet. (At least, that's the public statement. I don't know if e.g. potential lawsuits, etc. also play a role.)
- lucaspiller 9y agoIt's also indirectly their funding model. The bulk of Mozilla's revenue comes from search partnerships, who earn the bulk of their revenue from advertising.
- bigbugbag 9y agoTracking is the funding model of online advertising and investor storytime but it's not the funding model of the web. I think there's no such thing as a funding model of the web. the web was exclusively non commercial and later was opened to commercial activity and later advertising which added tracking because their business model was broken and they needed something to show their customers and investors to gein/keep their trust that online advertising was not a total scam as physical world mostly is. The unexpected side effect is the creation of a global totalitarian surveillance state just to show ads: https://www.hooktube.com/watch?v=iFTWM7HV2UI https://www.hooktube.com/watch?v=iFTWM7HV2UI
- feelin_googley 9y agocorrection to example 2 sed -n '/<\/br>/!{ /\./s/.*/.&\ =&:255.255.255.255:1\ =*.&:255.255.255.255:1/;};/\./p'
- bigbugbag 9y agoThey've always opposed including an adblocker and tracking blocker claiming it's not their choice to make, but it folled no one, we all know it is because their business model and funding relies on tracking and ads.