Spyke
privacy·Privacybynarwhal

I wish more people clean URLs before sharing it to others.

I see a lot of people, including friends and family, sharing URLs rife with tracking parameters.

I feel alone in making sure that I'm sharing the cleanest possible URLs to others. For example, checking if the URLs are shortened to hide plenty of tracking params.

Just need to vent, thanks for reading.

Edit: adding some context for future references.

By using url tracking params, tech companies can track who shares the content and who clicks on that specific shared urls. A simple but effective tracking method.

Try sharing Instagram post or YouTube video from the apps.

Instagram adds 'igshid=' . YouTube adds 'si='.

If you share the same IG or YouTube content from different accounts. The 'igshid', 'si' value will be different.

This can be used to tag who shares it, and who clicks on that specific url param value.

TikTok hides a ton of such params behind shortened url. Try expanding tiktok shared urls.

If you use android, use this app to expand, analyze and clean up urls https://github.com/TrianguloY/UrlChecker

If you use Firefox (you should), install ublock origin and add this url tracking filter maintained by adguard: https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_17_TrackParam/filter.txt

https://lemmy.ml/post/6177058Open linkView original on lemmy.ml
lemm.ee

Friends and family don't know what cleaning a URL means. Nobody does.

276

There's a lot of common patterns, but you have to understand how URLs work. You have to recognize which URL parameters are tracking ones or even just might be tracking. And that means you have to know how they work and that takes a moment.

In brief, URL parameters start after a ? in the URL and are formatted like key1=values&key2=value2. You can't usually remove all parameters because not all are tracking. To further complicate things, URLs can also have an anchor starting with a # character which will be after the URL parameters. You often don't want to remove that (though theoretically the anchor could in fact contain tracking details).

It's often trial and error to see which parameters you can remove. I do this a lot since I write a lot of technical documentation. Clean URLs make the documentation more compact and less likely to break. It's not just tracking stuff, but sometimes you need to remove temporal data that makes a page display data from a specific time when you want it to just default to the current time (etc).

16
AlexWIWAreply
lemmy.ml

On YouTube links, delete anything after the ?

Someone post the next website

7
ludreply

That shit is so annoying and they just started to add it.

3

I have memorized this link so I know what is rickroll without opening it.

6

That's terrible advice, [...]

Is it really? It reliably protects people from all the garbage content on youtube.

4

Wait shit you're right. I'm too used to the mobile links that have the ID after the slash

2
lemm.ee

This may work for sharing links to static content, but it is terrible advice for anything interactive. That removes all URL params and will break lots of interactive sites.

22
WarmSodareply
lemm.ee

What would be considered interactive vs static? How would I explain that to someone, for example?

6
lemm.ee

Most things you share will be static. These are things like news articles and webcomics where the output of the page is always the same no matter what you do. Things like google searches or YouTube links that are different depending on some way you interact with the site are dynamic. If you search for “apples” in google you’ll get different results than if you search for “oranges.” If you share the apple search with someone, your apple text will be coded as a parameter after the ?. If you strip that off they’d go to google.com and not see any apples. Trackers and other surveillance tools are also captured in the query params so for dynamic content it can be tricky to know which params to remove and which to keep. For static content you can just remove them all because the content doesn’t change based on the params you pass it

13
lemm.ee

That’s just how http requests work though. It’s not their code it’s…the internet

3
ludreply
lemm.ee

No, absolutely everything has to be a separate URL!

^/s^

0
Taleyareply
aussie.zone

If your url for a single item is a paragraph long - often repeating itself - and including shit that can be handled by css that is absolutely shit code. Temu is a particularly batshit example of this.

0
narwhalreply
lemmy.ml

Because I don't expect the target audience to be here in /c/privacy

-17
WarmSodareply
lemm.ee

You don't think anyone is here to learn how to be more private on the Internet? You just expect everyone to already know everything

30
narwhalreply
lemmy.ml

Look, the point is that I've tried explaining it to friends and family and whoever want (and don't want) to listen.

This post is a rant / wishful thinking as stated as being so, I'm not in the mood of explaining everything again. I've done that in my personal blog, etc.

5
WarmSodareply
lemm.ee

You're good, no worries. You created a lot of dialog, and most of it is helpful. I'm not complaining.

4
narwhalreply
lemmy.ml

Thanks. Looking back, maybe I should've at least explained about it a little more. At the time I just wanted to blow off some steam.

4

I could have worded my response better myself.
I'm looking forward to your next rant, tbh

1

How so? This is a rant post, I'm not trying to present it differently.

2
narwhalreply
lemmy.ml

No but that's what the comments are for. I share if the discussion is relevant.

1

Don't worry mate. I've never heard the term but I knew exactly what you meant. I cleaned a url earlier today for Lemmy.

1
mo_ztt ✅reply
lemmy.world

I had someone watch me edit a URL in the address bar and she clearly thought I was just fucking around, because there was no possible way that any human could edit the Matrix language up there and accomplish anything productive.

54
WarmSodareply
lemm.ee

That's part of my point. Most people just don't know.
That's like telling someone to just tune their carburator.

35
lemmy.ml

inb4 you get an indignant reply suggesting that carburetor tuning is a must-have skill for absolutely anyone who owns anything that has one

16
JokeDeityreply
lemm.ee

LOL, wait, is it copypasta or does that guy just post that a lot?

2
Damagereply
slrpnk.net

Brake line bleeding is a must-have skill for anyone with brakes. Otherwise you can never be sure not to have air in the brake lines. Really it's irresponsible not to know how to do this if you have a vehicle with idraulic brakes.

9
psudreply
lemmy.world

Or you can get your mechanic to do it. It's not like brakes get air bubbles during normal operation, it's only a risk when working on the brakes in any other way

(Was your comment a poke at the previous one, pointing out that one doesn't really need those skills? If so I think it's reasonable for a person with a carburettor vehicle to learn how to tune it, as the skills are becoming rare)

3
_cnt0reply
unilem.org

Being able to adjust your sarcasm detector is a must-have skill. Sarcasm levels fluctuate wildly depending on platform, community, season, and topic. Otherwise you can never know if you're making an ass of yourself when replying to other comments. Really, it's irresponsible to partake in social media without a finely tuned sarcasm detector.

11

I take it you missed my bracketed comment acknowledging it was probably sarcastic.

2

They don't necessarily need to; hopefully we can help people install uBlock Origin which removes tracking query parameters from URLs. See privacy.txt

6

Thankfully uBlock Origin removes those parameters for us. The default filters include a whole bunch of removeparam filters; e.g. privacy.txt See also removeparam.

Maybe you could help your friends and family install Firefox and/or uBlock Origin? Every little bit helps :)

97

As long as they don't link them to those links, thereby confusing them to the point of being completely turned off to the idea

2
lemm.ee

To be honest 99% of people, certainly including me, probably don't recognize tracking elements in a URL unless they're like affiliate links.

47
Gsus4reply
feddit.nl

If people were really good at removing that info, they'd probably create a unique hash including all that data that we wouldn't be able to edit.

12
lemm.ee

I mean, I've seen companies start shortening links with the tracking info inside it. Amazon and Spotify are ones I see frequently

7
EddoWagtreply
feddit.nl

Pretty much all junk which isn't human readable is tracking info

11
JGrffnreply
lemmy.ml

Hard to follow that as a rule. Consider any YouTube video, the video id isn't exactly human readable.

3
lemmy.world

Actually it's pretty easy. While not necessarily universally true, 98% of the time if there is a question mark everything after it is completely useless and can be removed.

for example of youtube, if you just use the share link from mobile you will get something like this

https://youtu.be/NMGQnFr0wMI?si=wcY56UThMAL6qkeg

However the only thing needed is

https://youtu.be/NMGQnFr0wMI

discord is similar, share a picture and you get shit like

https://media.discordapp.net/attachments/425755272191934466/1160245184110526586/1696478537347025.png?ex=6533f588&is=65218088&hm=99b1064b483405f42e2f8d18b7c01fc55934434d9178c5cf8d5611870d8a34e4&

but all that's needed is

https://media.discordapp.net/attachments/425755272191934466/1160245184110526586/1696478537347025.png

the ? is almost always used as an escape from the actual url. So if you see a question mark, Just remove everything after it and things will most likely still work.

6

This holds true for youtu.be links, but not youtube.com/watch?v=

Discord file url parameters are to prevent using discord as a free cdn. I believe discord plans on actually enforcing expiration later this year or early next year, at which point those extra url parameters will actually be necessary (and the links will no longer work indefinitely)

By the way for anyone who doesn't know, the ? only appears once in the url. Successive question marks are instead denoted by &

2

Yeah it doesn't work for every website, but it's an okay starting point

2

I'm aware that with most privacy issues, a lot of people have limited understanding about it. Hell, I'm probably ignorant on many other privacy issues outside of this topic.

5

Phones and chrome are designed to prevent people from noticing that they're being tracked and helping big tech track others

39

This app is awesome, using it and really enjoying it

I would say this is my app do the year

6
lemmy.world

It looks like Lèon is for sharing (outbound) links to others whereas UrlChecker handles shared (inbound) links. Is that right? Or can UrlChecker also scrub a link before I send it?

1
SatyrSackreply
lemmy.one

It fortunately does both. You "share" a gross link to URLCheck, clean it up within the app, then can share the clean URL to whatever app.

1

Thanks. I tried it briefly along with Leon and LinkSheet (also mentioned in the comments). URLCheck is hands down the best of the bunch, but its UI is so terrible and obtuse that I can't bring myself to have to interact with it regularly. Will keep an eye on it though!

1
HidingCatreply
kbin.social

People generally don't care (I myself am not at the level of this community). It also involves enough technical know-how that most people won't care. It's like asking people to use a CLI, not going to happen. I'm pretty sure I'm one of the few people who still C&P URLs to share, most people hit a "Share" button.

13
N4CHEMreply
lemmy.ml

You're both right: most people don't know what any of this means, but also people who know often don't care. In my group of friends there are 2 programmers, they perfectly understand this yet they still share links full of trackers in the group chat.

My strategy is to friendly scold them (a programmer should know better) and in the same message share the same link without tracking rubbish. This way my non-technical friends can also see how short the same link can become.

2

Yea, I do it less for privacy reasons, and more for tidiness. Tracking parameters can be so unwieldly nowadays. Something that's 30-40 characters long can balloon to 200-300 characters.

2

It's not just browser though, sharing links from apps also generate these URLs. A lot of people then share these links through chat apps.

I do realize that most people are not aware of it, that's why I said this is more of a rant. Just want to vent to fellow privacy minded people.

3
possumpat.io

Yeah I always mention it when people send a link with all the extra stuff, how you can usually delete everything past the question mark

18
narwhalreply
lemmy.ml

Some apps are hiding it behind shortened URLs. So it looks clean, but if you expand it, then oh boy.

19

The OCD part of me really wants to clean up those URLs simply because the link becomes a massive novella of garbage that's harder to read than Yu-Gi-Oh card text.

14

I thought I was alone in my windmill-tilting on this one! Nice to see there are others who clean URLs of unnecessary querystring parameters

14

Is it me or that feature make the the startup time unbearably slow? After I got tired of waiting seconds the app to show me the link opening options I just disabled that ajd keep URL check on the side for when I see the link is riddled with useless parameters (or even worse URLs inside URLs)

1
lemmy.world

I do this because I hate super long URL's, but is this actually a problem for privacy? Does it not actually fuck with the tracking because now two separate people have got the same tracking Params? (Genuine question).

12
DrMreply
feddit.de

Nope. It's a nightmare. The ad company now knows that you are friends or family

27
Kushanreply
lemmy.world

But what If you send it via social media like Lemmy or Reddit?

4
narwhalreply
lemmy.ml

Then they know who's the poster (you), they can know your username if they want to. A lot of people use the same username in many places, so unless you use different usernames in different social media, it's still valuable data.

If not that, seeing how the content spreads through social media and analyzing the reach is interesting data by itself.

9
unilem.org

Most tracking parameters actually just specify the source the link came from. Like Twitter or an email. I don't see a lot of tracking parameters that literally are tried to an individual account. But here you seem to be saying that's the most common type of tracking param

2

Try sharing Instagram post or YouTube video from the apps.

Instagram adds 'igshid=' . YouTube adds 'si='.

Try sharing the same IG or YouTube content from different accounts. The 'igshid', 'si' param value will be different

It can be used to tag who shares it, and who clicks on that specific url param.

TikTok hides a ton of such params behind shortened url. Try expanding tiktok shared urls.

4
Kushanreply
lemmy.world

I click links on Lemmy all over the place, I don't follow anyone in particular?

1

I wouldn't go as far as to say that once two people have clicked on the same tracking link the company behind it can tell what your relation is directly. What they will know is that the two or more people are connected in some way, to then infer in what way, they need other circumstantial data, maybe they have an account on that website and they share the surname or, even easier, without account they can tell that the requests came from IPs that come from a circumscribed area, and on and on, the more data points you add the better predictions the company can make.
If several IPs from disparate places in the world use the same link they can probably tell that the link was shared on social media, not knowing which one, but it was sent in a public internet space at least

3
lemmy.ml

Interesting, I never really thought about this before. I wonder if there’s a clipboard manager that does this automatically?

12

There is a Firefox plugin which I believe is called CleanURLs.

it's interesting that you mention the shorturls OP... I'm almost positive as of today that those links you can share that are like amazon.com/a/ab3cd4 are customized tracking links.

Problem is, if you paste it in your browser from the app, it doesn't go back to the original URL. You have to search the product again and customize the color, number, etc, and then strip tracking again from the url.

Most people just want to send a friend a link of the thing they think they'll like.

6

I always remove anything after /ref= from an Amazon link before I forward it to my wife (she has the account and does the orders).

8
plz1reply
lemmy.world

Kind of annoying they only do it in Safari in private mode, and not as a default.

9

mine was set to private only, but i’ve had ios17 since one of the early betas

2

Mine is set to all, but I think I might have done that and forgotten. I am not sure if this setting is also available on MacOS.

1
lemmy.world

A personal gripe of mine. I can't get any of my friends/family to care...

5

It needs to be and should be automatic. But it's not in the interests of media platforms to add such functionality

1

I care about this also. I used to clean them up, but what I've started doing is adding and replacing parts of the share id. And I'll usually put something stupid in there like "booger", just to screw up their tracking data.

4

I shall do it, because i hate this URL ads, even more the fucking link shortener, because they disguised it and avoid to see the destination. Because of this i use 2 extension, a Link unshortener, which reveal the real URL, when i click on a shorten link also the Adguardfilter in the Vivaldi's own trackerblocker, You can find more filters here:

https://filterlists.com

3

I feel the same, I actually feel weird when someone shares with me a url with tracking or source tags, like bro you’re telling on yourself… do you not care?!

3
feddit.nl

Good reminder, I'd never considered that 😅 So why did lots of reddit subs discourage the use of URL shorteners? Was this just standard Reddit badness?

1

Because url shorteners can be used to hide affiliate links or even malicious URLs.

14

I agree completely but most good browsers will automatically filter that stuff out. (Extensions like ClearURL are completely obsolete)

1
sh.itjust.works

I have no idea how to clean a URL and honestly I'm not interested in cleaning every URL I send.

1
Gabureply
lemmy.world

Quick rule: Just remove all of the garbage after a "?" except what is directly following a "search=" or "query=" parameter.

5

Oh yeah I do that by default, if the URL is too long with random stuff at the end I remove what I can without breaking the link

3

As if "search" and "query" are the only two legit get parameters lol...

1

I sometimes leave some IDs in that don't change and seem to track me as a person so the tracking mixes them up with me if the trackers don't discard it on client change.

0
fishosreply
lemmy.world

If anything that just makes it easier to map your social circle. Probably even intentional to see who you share links with.

10

Brave includes “copy clean link” in the context menu in the desktop version.

-2