this post was submitted on 04 Feb 2025
47 points (91.2% liked)

Programming

18082 readers
141 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

Please accept this in the ethos of no stupid questions.

The only programming I do is to defy tracking by deleting hash lines after ? In the url.

Some popular sites I am embarrassed to admit to even viewing have found a way around this by offering me share links without the ?.

It’s Instagram I am ashamed to mention.

What do I do to get rid of the tracking now?

all 11 comments
sorted by: hot top controversial new old
[–] Azzu@lemm.ee 40 points 2 days ago* (last edited 2 days ago)

What do I do to get rid of the tracking now?

You stop using these services.

I'm a programmer, and if they generate page URLs that are unique to you with your tracking baked in, do not allow you to view the page non-logged in, then there's no way to get rid of it, short of hacking their servers/databases.

If you can view it without an account, then you just browse without an account, without using a browser that has a unique fingerprint. So basically use something like the Tor one. Unfortunately for Instagram, I think both is not possible.

Of course it might be like the other comment says, it's only the special share URL that is like this, and the one you browse around normally isn't. Then you just use that one.

[–] JackbyDev@programming.dev 2 points 1 day ago* (last edited 1 day ago)

With TikTok, if you copy and paste the URL into a browser you will get a link you can then copy and paste without the baked-in tracking. You can probably do the same with Instagram, but I just got a link from them and they had the tracking under a query parameter (that's the technical term for the stuff after the question mark). So I'm not sure what you're seeing.

Also, thank you for stripping tracking data off of links you share. "It ain't much, but it's honest work!"

https://www.tiktok.com/t/aaaa becomes https://www.tiktok.com/@someuser/video/111 (manually remove tracking as before). I assume this might work with Instagram, but like I said, when I try it, it doesn't actually give me that style URL.

[–] xtools@programming.dev 25 points 2 days ago

it's similar with amazon/booking - if you use their share button, you get a neater shortened url but tracking is baked in. but you can still just copy the url from the browser search bar instead (which, acknowledged, might particularly not work well for IG)

[–] Kissaki@programming.dev 16 points 2 days ago

Don't use the share with shortened url. Copy the page url instead.

Otherwise (you'll have to) accept that you don't know what's included in the shortened link.

[–] tyler@programming.dev 3 points 2 days ago

also, don't use Notes to try to remove the query parameters. apple is fucking idiotic and made it almost impossible to actually delete the query parameters. I literally tried for like 15 minutes the other day and it was incredible how it would completely ignore me deleting the query parameters and just resave exactly what I had originally input (even if I long pressed and chose edit). It's just easier to repaste it back into safari or whatever and delete it there.

[–] d0ntpan1c@lemmy.blahaj.zone 6 points 2 days ago (1 children)

Chances are they are doing something similar to URL shortening where a reference to the destination and the tracking info is either hashed into the URL directly or stored elsewhere behind whatever ID is in the URL.

Unshortening tools can fetch the actual URL (with any tracking params) in a private context.

I have no idea if anything exists on iOS, but on Android there are tools like URL Check which replace your default browser and let you un-short or otherwise manipulate URLs before opening in a browser or sharing.

[–] waz@lemmy.world 1 points 1 day ago

Yep, I love it. I told my wife about it and she thinks I'm crazy.

[–] spujb@lemmy.cafe 4 points 2 days ago

You should be able to visit the post via a web browser that’s not signed in and get a direct URL. Also just don’t link to IG when possible (I know you probably have your reasons but throwing that out there).