News for hackers. Stuff that matters.
Re:ClearURLs – automatically remove tracking elements from URLs by ronjouch on Wednesday May 05, 2021 @05:30AM (#27047885)
I'd love if Firefox's built-in Tracking Protection did without an addon the job ClearURLs does, so two months ago I created

Bug 1697982: "Firefox Tracking Protection should protect against URL/queryparam-based tracking (like ClearURLs/NeatURL addons do)" , https://bugzilla.mozilla.org/show_bug.cgi?id=1697982

Please vote for the bug if you'd like it too.

Also, I see a few interesting comments in this HN thread; this evening when the dust settles, I'll aggregate & bring them to the bug for consideration if/when fixing this bug is considered.

Re:ClearURLs – automatically remove tracking elements from URLs by eythian on Wednesday May 05, 2021 @06:16AM (#27048151)
I don't really know how I feel about having the browser mess with URLs without the user engaging it deliberately. It feels to me something that should perhaps be approached with caution. On the other hand, it does make sense. It's a tricky one.
Re:ClearURLs – automatically remove tracking elements from URLs by matheusmoreira on Wednesday May 05, 2021 @07:24AM (#27048536)
It's exactly the kind of thing user agents should do. If it's good for the user, they should do it by default for everyone.
Re:ClearURLs – automatically remove tracking elements from URLs by smithza on Wednesday May 05, 2021 @04:49PM (#27055618)
It is at best neutral for the user. Sometimes these source trackers help companies know that affiliate links are more often drivers of traffic. Other times it helps with A/B testing because they discover the main logo was more often clicked than the "click me" button or whatever.
Re:ClearURLs – automatically remove tracking elements from URLs by leipert on Wednesday May 05, 2021 @06:19PM (#27056541)
But how does this help me as a user?

Affiliate links are often hidden, and depending on the system might even lead to higher prices, because the shop is offsetting the affiliate program cost.

Whether the company does A/B testing, what does that have to do with me? That also can be implemented without external trackers and just be set in a session.

So I would say it’s a net-positive.

Re:ClearURLs – automatically remove tracking elements from URLs by calvano915 on Thursday May 06, 2021 @11:48AM (#27065063)
Cash back portals often require click through on affiliate links.
Re:ClearURLs – automatically remove tracking elements from URLs by rakoo on Wednesday May 05, 2021 @07:03AM (#27048430)
Firefox already positioned itself when it gave the user a possibility to block tracking cookies and fingerprinting techniques. It's engaged even further now with Site Isolation.

If utm_* query arguments are used solely for tracking, then it only makes sense that Firefox goes the next step

Re:ClearURLs – automatically remove tracking elements from URLs by sodality2 on Wednesday May 05, 2021 @09:24AM (#27049507)
It's possible it can be used for other things however, so it's a slippery slope. I block them anyway but maybe not default?
Re:ClearURLs – automatically remove tracking elements from URLs by rakoo on Wednesday May 05, 2021 @10:14AM (#27050079)
It's still used only for tracking only, so I'd say it's the right time to block them by default before they start being used for something else.
Re:ClearURLs – automatically remove tracking elements from URLs by michaelmior on Wednesday May 05, 2021 @02:49PM (#27054041)
I've seen some sites that use those parameters to activate specific features on a landing page for example. Pretty rare, but it does happen.
Re:ClearURLs – automatically remove tracking elements from URLs by IgorPartola on Wednesday May 05, 2021 @10:01AM (#27049907)
Conversely, if you know that using utm_ parameters will break for a large number of your users, you just won’t use it, no?
Re:ClearURLs – automatically remove tracking elements from URLs by michaelmior on Wednesday May 05, 2021 @02:51PM (#27054068)
This is a fair point. At this point, it's unlikely to break anything. But if it became the default, then any sites that do use them for something important would likely stop. Although there's nothing preventing sites from just renaming these parameters and modifying tracking code to keep tracking anyway.
Re:ClearURLs – automatically remove tracking elements from URLs by freeAgent on Wednesday May 05, 2021 @11:40PM (#27058921)
Most of the technologies used to track people on the web have other uses as well, so this isn’t a unique case.
Re:ClearURLs – automatically remove tracking elements from URLs by darkwater on Wednesday May 05, 2021 @07:18AM (#27048509)
Well that's exactly the kind of job that an (opinionated) User Agent should do for you. <aybe configurable, maybe not. You can always change your agent (so, browser) if you don't like its opinion.
Re:ClearURLs – automatically remove tracking elements from URLs by arsome on Wednesday May 05, 2021 @09:17AM (#27049441)
I'm not so sure, by this logic we should have ad blocking by default as well, however that's a recipe for getting your browser banned by popular sites.
Re:ClearURLs – automatically remove tracking elements from URLs by Nextgrid on Wednesday May 05, 2021 @10:31AM (#27050315)
Ad blocking by default is absolutely the way to go. Spoof the Chrome user agent if this actually becomes a problem (which would help with fingerprinting anyway).

This is a bit like antivirus software authors worrying about being "banned" by the virus creators.

Re:ClearURLs – automatically remove tracking elements from URLs by arsome on Wednesday May 05, 2021 @12:24PM (#27051978)
I'm all for that approach, but it opens a serious cat and mouse game where any rendering difference between Firefox and Chrome is quickly turned into a major problem for average users. Firefox would no longer be something you can recommend to your parents as they'd be constantly fighting bans. Ad blocker detection is bad enough as is with the current number of users.
Re:ClearURLs – automatically remove tracking elements from URLs by kroltan on Wednesday May 05, 2021 @10:00AM (#27049885)
Popup blocking is basically standard and expected, don't see why ad blocking couldn't become so too.
Re:ClearURLs – automatically remove tracking elements from URLs by zo1 on Wednesday May 05, 2021 @10:24AM (#27050244)
Popup blocking is definitely not standard and expected. There is a 90% chance of every website you visit to show a popup and not be "blocked" by the most privacy-conscious browsers. But. They're technically not "popups", they're just divs overlaying over the content that you were served but can't see. Or they're little slide-banners that nag you about signing up for a newsletter email or agreeing to tracking cookie non-sense. Oh and let's not forget about the popups asking you to allow "notifications" from this site, or to allow "location info" to be shared.
Re:ClearURLs – automatically remove tracking elements from URLs by matheusmoreira on Wednesday May 05, 2021 @10:30AM (#27050313)
> that's a recipe for getting your browser banned by popular sites

Good luck with that. They have no choice but to believe whatever data the browser sends them, data that we control. If their precious content leaves their server at all they've already lost.

Re:ClearURLs – automatically remove tracking elements from URLs by woko on Wednesday May 05, 2021 @11:46AM (#27051410)
Exactly.

Every time I have used an add-on like ClearURLs, I have had issues at some point due to some zealous clean-up of URLs which breaks a redirection.

Typically, I don't want the browser to mess with my browsing if I am on the websites of my bank, a shop, etc.

Re:ClearURLs – automatically remove tracking elements from URLs by tinyhitman on Wednesday May 05, 2021 @06:30AM (#27048249)
Maybe prompt the user with a "use clean" or "use as-is" button (and "cancel").

and maybe a custom option; where you can toggle what is cleaned and whatnot.

and provide a "remember for this domain".

Re:ClearURLs – automatically remove tracking elements from URLs by ChefboyOG on Wednesday May 05, 2021 @06:25AM (#27048215)
I think an automatic alert (which can be set to ignore by the user) which flags such links, and offers the option to turn on a config flag which enables URL manipulation like this, would be a good compromise.
Re:ClearURLs – automatically remove tracking elements from URLs by bonestamp2 on Wednesday May 05, 2021 @06:45PM (#27056781)
Yes, maybe some flag that comes up at the end of the address bar to indicate that it sanitized your URL. Then you can click the flag to see details about what it changed and have the option to navigate to the original URL.
Re:ClearURLs – automatically remove tracking elements from URLs by ______- on Wednesday May 05, 2021 @08:57AM (#27049271)
> On the other hand, it does make sense. It's a tricky one.

All attempts by Mozilla to bake-in addon-like behavior so we don't have to install 'yet another damn addon' is welcoming, but as with any of these features, they come with caveats already present in the addons.

For example, Firefox's HTTPS-Only mode (that is basically the HTTPS-Everywhere addon) breaks some sites, and also their anti-tracking feature will break some sites too. But then again: if a site is serving HTTP only then they're doing it wrong (with the exception of captive portals). As for the anti-tracking feature: I rarely see sites asking me to disable my AD-Blocker, and when I do I never give-in, no matter how desperate I am to see hidden content.

Re:ClearURLs – automatically remove tracking elements from URLs by VortexDream on Wednesday May 05, 2021 @07:15AM (#27048497)
I think the problem with this is that ClearURLs can break legitimate uses for URL params. I need to disable it when I do things like online payment. That's not intuitive for users and means an integrated solution needs to take laypersons into account who wouldn't know how to solve the problem (or even what the actual problem is). Is that realistically solvable?
Re:ClearURLs – automatically remove tracking elements from URLs by ronjouch on Wednesday May 05, 2021 @07:30AM (#27048577)
This is realistically solvable.

1. First, by Mozilla analysts & developers making a good job at rolling out a potential implementation in a safe progressive way, with the easiest stuff first (`fbclid`, `gclid`, etc), and then going deeper / per-site, maybe re-using (part of) existing filterlists.

1.1. Also, note that ClearURLs is quite aggressive (as noted by a few commenters, and I confirm): it strips lots of non-URLbar requests, strips ETags, etc. A sibling comment mentions that alternative NeatURL is less aggressive. As with all cat-and-mouse games, this is a trade-off, and an implementation in core Firefox doesn't have to go as far as ClearURLs, at least initially. Offering a strictness knob to users is also an option.

2. Then, Firefox already has UI to disable Tracking Protection and work around sites broken by it: click the shield at the left of your URL bar, then toggle off "Enhanced Tracking Protection is ON for this site" to see if it was ETP that broke the site. This UI maybe need adjustments / more granularity (and maybe not), sure.

Re:ClearURLs – automatically remove tracking elements from URLs by indymike on Wednesday May 05, 2021 @01:26PM (#27052861)
You do realize that parameter names are easy to change?
Re:ClearURLs – automatically remove tracking elements from URLs by surround on Wednesday May 05, 2021 @09:44AM (#27049690)
Mozilla themselves is guilty of link tracking. Any external link on addons.mozilla.org looks like this:

  outgoing.prod.mozaws.net/v1/25c02fd4e609951729e0ec0b41fe5391d912511b45d2a02aeaa839872c8d9def/https%3A//gitlab.com/KevinRoebert/ClearUrls
Re:ClearURLs – automatically remove tracking elements from URLs by wackget on Wednesday May 05, 2021 @12:33PM (#27052116)
You should also suggest they remove their own garbage redirect tracking from the Firefox Addons site.

Any URLs in the addon description section are all tracked/redirected via `https://outgoing.prod.mozaws.net`

Re:ClearURLs – automatically remove tracking elements from URLs by daveoc64 on Wednesday May 05, 2021 @06:38PM (#27056716)
I am not a fan of making such functionality part of the browser.

I use the HTTPS only mode in Firefox - it breaks some sites, and telling Firefox to disable the mode for a specific site doesn't always work.

I feel like a plugin (HTTPS Everywhere) can deal with this a lot better than something that's integrated and reduced to a single checkbox in the settings.

Re:ClearURLs – automatically remove tracking elements from URLs by ronjouch on Wednesday May 05, 2021 @06:42PM (#27056751)
And I am a fan of making such functionality part of the browser :P : one less addon to manage & trust! Aside: the amount of insecure code in addons is scary, see https://palant.info/categories/security/ , not to mention that addons are also a frequent cause of performance trouble (source: me, experienced several times). Thus, the more dubious addon code I'm able to replace with somewhat-well-maintained-and-audited Firefox code with many eyeballs on it, the better.

(At this point, you or a passerby will point at the Pocket fiasco and argue that there's too much stuff shoved into our browsers and just stahp it already. Fair, and I love lean software too. I'd still like this specific feature because A. it's not Pocket, B. it aligns well with what Firefox is doing these days, and C. it aligns with what I expect from my user agent of choice).

Then, supposing this ever makes its way into Fx, you can choose not to use it. And by the way, maybe like you, I will make the same choice if the Fx feature is too basic! But it will remain a win, for the users for whom it's good enough and who would never have bothered with an addon in the first place. Just like ETP vs. uBlock / PrivacyBadger / etc: ETP is a good basic "80%/20%" risk-less step in the right direction, and addons remains way ahead if you the user decide to bother a bit more.

> "telling Firefox to disable [HTTPS only] mode for a specific site doesn't always work."

This looks like a bug that you should report.

Re:ClearURLs – automatically remove tracking elements from URLs by guilhas on Wednesday May 05, 2021 @08:27PM (#27057683)
Firefox should worry about implementing standards as fast as possible and improve the browser speed

And Stop trying to "re-implement" features for which there are already user extensions way more capable

Re:ClearURLs – automatically remove tracking elements from URLs by ronjouch on Wednesday May 05, 2021 @08:41PM (#27057792)
I understand the sentiment, but disagree with it in the case we're talking about, for reasons just as factual and pragmatic as yours. See my reply at https://news.ycombinator.com/item?id=27056751
Re:ClearURLs – automatically remove tracking elements from URLs by nagarjun on Thursday May 06, 2021 @04:14AM (#27060423)
Instead of it being a default feature, I wonder if this makes more sense as a default in Incognito/Private browsing mode?