Everything after the ? can be safely removed
This is usually true but but not always. There's often times when a URL query like that is used to choose the page to load. I believe wordpress does this
Submitted 3 weeks ago by FundMECFS@quokk.au to [deleted]
https://quokk.au/static/media/posts/1d/c0/1dc08isGgni1VfK.jpeg
Everything after the ? can be safely removed
This is usually true but but not always. There's often times when a URL query like that is used to choose the page to load. I believe wordpress does this
Only on “I have really bad SEO” kinds of blogs. Query strings have been considered a negative thing for many many years.
whuh? querystrings are integral to things like pagination. they are by no means a negative thing.
Not everybody cares for SEO BS
Youtube has the video ID as a query parameter, to use the most obvious example…
WordPress uses a taxonomic system you choose with a mix of the Settings page and how you organize your template hierarchy. To my knowledge there is no out of the box query url functionality in the core system.
There is. ?s=
for a search, and you can combine it with other parameters such as date or taxonomy terms.
Sometimes I’ll post a picture straight from a duckduckgo search, and it doesn’t work without the stuff after the ?
(I’m also not sure how long the url is valid for, so I try not to do this too often)
If you’re still using firefox, right click -> copy clean link. works most of the time.
URL Cleaner on f-droid.org is a great app too!
I just searched and found this one:
The code is open source, and it supports several ways to install it on your device (PWA, shortcut, bookmarklet, and more).
I usually just do it because shorter links look better than 30 lines of crap
Right? The fact that this is an extra bit of tracking information I don’t want makes this an easy sell for anyone looking for a reason to do this, but for me it’s because it just makes links uglier.
Yep!
Only thing I want to see after a ? in a youtube url is t=4m20s
personally i like v=aO82NftCga to be in there as well
This belongs more on Technology and Privacy communities.
For Android users at least, I recommend the Léon URL Cleaner app, when you share a link from many common sources to the URL Cleaner, it removes all that tracking shit for you.
This belongs more on Technology and Privacy communities.
I guess it was posted here to reach a broader audience.
I’m upset, the tech and privacy communities need to step it up cause I’ve never seen this fact. I kinda knew URLs had a lot of junk, but I never knew what could be removed.
Not everything after the ?
can be removed. Obvious and well known example, YouTube videos use the video as part of the query parameters (on non shortened URLs). youtube.com/watch?v=dQw4w9WgXcQ
Fun fact, YouTube has backwards comparability for its video links, so youtube.com/w/dQw4w9WgXcQ will go to the same video (granted, it will change format to the up to date one, but it is one way to go to a yt video without URL arguments)
I judge people based on whether they can understand youtube (which you should be changing to invidious or something else anyway) urls. It’s a useful and very short way to see if people have ever paid attention to repeated patterns. The moment I saw the t=XYs, I was amazed.
ClearURLs was my go to on Firefox, I think it’s still great but it gave me trouble on a couple of sites because it modified the url in the address bar (it was like AliExpress and shopee, Chinese e-commerce sites that look like a web dev vomited, so I hardly blame ClearURLs)
Firefox also now has “copy clean link” when you right click the url bar which also works great.
Thanks. I didn’t know about that. Although I tried doing it and the option was grayed out. Any idea what might be wrong? Do I need to change a setting or something? This was on youtube.
I don’t think YouTube actually has tracking parameters in the url normally, but if you use the share button then the youtu.be link will include the video ID as well tracking. But it looks like you can kinda use it there too if you select the link with tracking, it seems to detect that it’s a link and offers the clean link option when you right click it.
If you go to an Amazon item page then you should see it available when right clicking the address bar.
I also use URLCheck on my phone. Made it the default browser and it pops up with options to clean the link and choose which browser to open it with
Firefox also now has “copy clean link” when you right click the url bar which also works great.
I am an avid and exclusive user of Firefox and I never discovered this because it never would have occurred to me in a million years to right click the URL bar for any reason. So I’ll be damned; there it is. (I always just lasso the relevant part myself and hit ctrl + c.)
I usually change the parameters to things like utm_source=yourmom, just for kicks.
There is also copy clean link option in firefox and brave
This is kinda true but also kinda fear mongering. UTM parameters are just to track where you clicked the link from, and don’t contain anything about you personally.
As someone who has link tracking in our business, yes, some of the stuff after the ? isn’t nefarious tracking, like the utm mentioned above.
All the “list-unsubscribe” options you may have noticed starting about a year ago, are actually required to be there for any company that sends out any kind of email newsletter over a certain threshold. (Lists around 5k or more)
If the unsubscribe links aren’t there, with the required url-encoded parameters (along with some other requirements with DNS) the email will not be delivered to any of the majors (google, yahoo/aol, hotmail, big ISPs) and we get blocked.
The unsubscribe parameters are being tracked, yes, but we have to have them so we can unsubscribe you “in one click” We are not allowed to require you to sign in to unsubscribe you. (Not that we ever did that, but now there must be a one-click option.)
(We used to just be two clicks to unsubscribe off an encoded link. Click -> this you? If yes, click -> you are now unsubscribed. Or sign-in and manage subscriptions without an encoded link.)
Again, the point is that not all url encoded tracking is nefarious. Some of it is now required to try and minimize spam and nefarious emails.
They are called query parameters and they are used for other things as well. So you can remove the ones you see similar to these but sometimes there might be important stuff you need to get the page to load in those parameters.
After removing them (or even if there was nothing to remove) I test out links I’m sending in a private browser window to check that they would work for other people.
this isn't a shitpost this community is being dragged through the mud by non-shitposts
Actually, it’s a a bit of a shitpost. Anything after the ‘?’ is an argument for the html request. Can and is used for tracking, but is also used for website functionality.
IMO, any developer who uses URL parameters for required functionality is short sighted. They should use the path as required parameters.
It’s shitty advice masquerading as something useful and/or insightful.
Add this URL Shortener filterlist to uBlock Origin.
This removes the fast majority of these query parameters.
I honestly couldn’t determine if it was a typo or not, but it’s not “fast” but “vast majority.”
my brain autocorrected it to “vast,” but I like “fast majority” as a phrase
Can I ask how do use this? Do I just copy/paste this into the “my filters” tab in uBlock? ;
Go to the “Filters” tab in the dashboard. At the bottom of the list click “Import” and paste the URL ( raw.githubusercontent.com/…/LegitimateURLShortene… ) in the box. Then click “Apply” to save it.
Legitimate concern, called URL tracking. There’s browser extensions for that.
It’s not always nefarious.
I work for a non-profit. Sometimes it’s helpful to understand the click rate on a mass message.
We don’t provide data to third parties and use a self-hosted oss analytics platform.
So I think folks should understand tracking and manage it but it’s not all bad. Just almost always bad. Really bad.
Worse: a lot of links can’t be fixed or modified since they use click-through services to obscure the destination.
I’m a web developer in a marketing department and agreed UTM tags aren’t really nefarious. We generally use them to track campaigns, and to see the effectiveness of our paid campaigns. (As in how much of a return on investment did we have, are people continuing to traverse the site after hitting the landing page, etc) That said those codes generally don’t give us any info about the user other than what parts of the site you are hitting, (which we can find out through other means anyway). There are tools out there which can give us a creepy amount of data about the users on the site, but UTMs aren’t it.
Removing them when sending out links is good practice as you probably only really need a fraction of the characters in order to get to the site, so your links are cleaner, you look like less of an idiot, and ironically marketers will end up having cleaner data (I doubt you care about this, but it’s true.)
That said, if you really want to prevent sites from getting your data when browsing turning off JavaScript in your browser would probably have the biggest impact.
Everything after the “?” symbol can be removed without issue
“everything after the ? Symbol can be removed without issue” is a bold statement to make. Reminds me when the TV news had a specialist telling people to look at urls before clicking and check if it ends with “.php” as that would mean it is a virus.
Youtube.com/watch?v=[Video ID]
Difference being that the ? in URLs separates the resource from additional information
So unless some website decides to identify the resource in those query field (for example search results pages in a web search), you are generally safe
In any case, messaging apps will try to navigate to the site to create a caption for your message, and that can be a way to check if it works or not
You all got Rick-rolled btw
XcQ all the way!
“XcQ, LINK STAYS BLUE! 😁
Only if they typed it in, but I appreciated a recognizable link!
And you just lost the game
Check out this cool video
There are URL shortener Apps on F-Droid. Simple share the link to this app and get a short link without this privacy mess.
hey you, yeah you, you’re finally awake
Telling people to remove them isn’t very practical. Educating people is step 1, but step 2 is finding a browser extension or browser that scrubs the identifiers from URLs. You will inevitably forget to remove the tracker from the url if you do it manually.
I always do this when I post YouTube links. Be damned if I want to be associated with you lot! (Seriously though, it’s a good idea to do)
Just a reminded, if you have the Clipboard Manager called Ditto
You can strip those right out of your pasted URLs, even many at once !
(for windows users, for linux there is github.com/farzher/clipman but it lacks that particular feature at this time )
Add made up data to those parameters. Like source=ericsschmidtspedoisland
I use an app called “Leon URL Cleaner” from F-Droid. Does a really good job removing tracking params, and only adds one extra step to sharing a URL.
Thing I find funny is when the url seems to indicate you came from an email or something. Now if I share it, anyone who clicks will also count as coming from an email. Dumass ruining your own statistics
This. The question marks and ampersand in youtube URLs are separators and can include your entire playlist, as well. If you just want to share the video, then everything from the first ampersand onwards can go.
Eheran@lemmy.world 3 weeks ago
So annoying to always have to find out how far you can trim a URL before it breaks.
surewhynotlem@lemmy.world 3 weeks ago
Typically anything after the “?”. That’s where the parameters live. There are always exceptions.
Zachariah@lemmy.world 3 weeks ago
There are many URLs that require parameters to load a resource (and aren’t necessarily tracking anything). With YouTube’s non-shortened links (for example), the video ID is after the
?
, but is usually (but not always) immediately after.This:
https://www.youtube.com/watch?v=dQw4w9WgXcQ
Can be shortened to:
https://www.youtube.com/watch?v=dQw4w9WgXcQ
But no shorter.
FundMECFS@quokk.au 3 weeks ago
Happy cake day
DeathByBigSad@sh.itjust.works 2 weeks ago
I mean that’s part of the fun of surfing the web, you get to play a fun puzzle game of “How to Lobotomize a URL”
SubArcticTundra@lemmy.ml 2 weeks ago
There should be an extension that does this
AtariDump@lemmy.world 2 weeks ago
addons.mozilla.org/en-US/firefox/…/clearurls/
GissaMittJobb@lemmy.ml 2 weeks ago
uBlock Origin with the appropriate filter list will do it for you, like this one: github.com/…/LegitimateURLShortener.txt
brbposting@sh.itjust.works 2 weeks ago
Might be able to use a Redirect Checker, like:
Redirect-Checker.org
or
WhereGoes.com
Wonder if this helps with TikTok who has these custom URLs that don’t have parameters, just creepy personalized ones