News for hackers. Stuff that matters.
Re:I’ve banned query strings by wodenokoto on Saturday May 09, 2026 @09:41PM (#48080157)
So my understanding is, he is annoyed that other website adds a query string such as "?ref=origin.com" to links pointing to authors website.

How does this benefit the other website? How does this hurt the authors website?

I am completely confused about the behavior of both side here.

I get that when I run an ad-campaing I want google to add a utm-query string, so I can track which campaign users arrived from - but then the origin and the destination are working together. Here the origin just adds stuff for no reason. Why?

Re:I’ve banned query strings by 0x62 on Saturday May 09, 2026 @10:56PM (#48080558)
It's marketing for the origin site. The line of thought is that the author sees significant traffic from xyz.com in the ref query string, and considers advertising or partnering with the origin site.

Honestly, it is quite useful for niche/startup sites. I have been on both ends of conversations that began from seeing these in web analytics (as someone that saw incoming traffic from a site and reached out, and as someone that received contact from a site I linked to) - and both times it ended in a mutually beneficial partnership.

I can understand the privacy argument to some degree, but it provides no more information than the standard Referer header (and if you use analytics like Simple Analytics/Plausible, it is a lot more visible).

Re:I’ve banned query strings by progbits on Sunday May 10, 2026 @06:15AM (#48082595)
> sees significant traffic from xyz.com in the ref query string, and considers advertising

Why? Already getting traffic for free.

Re:I’ve banned query strings by brabel on Sunday May 10, 2026 @10:18AM (#48084195)
You never ran a website for profit, have you? Knowing who is sending you traffic lets you decide whether your marketing is working, where you should write your blog posts to get more views, etc. This has been the way the web works for decades.
Re:I’ve banned query strings by chrismorgan on Saturday May 09, 2026 @10:55PM (#48080552)
I’m broadly anti-tracking: it’s generally against the interests of the individual.

Query string additions are commonly used to track things. You can see that lots of people don’t want that by the existence of Firefox features like “copy clean link” and Extended Tracking Protection which proactively strips some like UTM parameters.

Some sites happily participate in what I will glibly call the tracking economy. They may benefit because the recipient will see in their logs that lots of people are coming from their site, and do something that helps their site because of that.

My rejecting query strings is a simple form of protest against that system.

Re:I’ve banned query strings by tedbradley on Sunday May 10, 2026 @07:21AM (#48082967)
I understand being for privacy, but on the flip side, information about you can result in a better experience. E.g. in the case of tracking where a person comes from, that can help those two websites improve by coordinating with each other in some way. Or your ads might actually show you something you didn't know you existed that you end up buying. That's probably better than seeing ads you likely have zero interest in. I'll admit it's creepy when an ad is incredibly tuned to your recent internet activity, though.
Re:I’ve banned query strings by chrismorgan on Sunday May 10, 2026 @07:45AM (#48083158)
I started writing a follow-up half an hour before you posted, since the parent comment has been unusually highly voted. I dropped it again, but now you’ve given me something to respond to.

I say I’m broadly anti-tracking. I think it’s clear by this point to anyone with a skerrick of wisdom that the logical extreme of tracking is bad. But for a long way it seems innocuous. So how far do you go before declaring it unacceptable?

I hold myself to higher standards than I will hold others. For myself, I find it is most reliable not to start. I will occasionally show others this attitude or try mildly to recommend it, but largely that’s up to them.

I hate ads (in which I include billboards, newspaper ads, display ads, search ads, Facebook ads, sponsored posts, and a whole lot more; but not first-party stuff, and if it includes content not directly related to what you’re selling, it will probably be exempt too). I block ads as far as I can. Therefore I will never foist ads on others: t’were hypocrisy to do otherwise.

I like clean URLs and also hate precise tracking. Therefore if I send a newsletter-style email, it will include plain URLs that don’t track. So I can’t measure “campaign success”? C’est la vie. I’ll survive. I don’t want to scale anyway. I want people to respond by email, and respond to them. People are what matter in this life, even if I find computers far easier to deal with.

I dislike tracking where it is not functionally necessary. I confess that I haven’t yet taken this to the logical extreme of not recording server logs at all. I won’t ask clients what they are and where they’re from, but if they tell me, I will still record it for now, I guess. I might go more extreme on this in the future. But when some third party tries to force others to tell things unwittingly… that I don’t like.

Re:I’ve banned query strings by fragmede on Sunday May 10, 2026 @03:20PM (#48086950)
> C’est la vie. I’ll survive.

Will you? You made a widget and you're trying to sell it. You've taken out a second mortgage on your house, and used up all your savings. You're down to your last $10,000. If you don't start making sales soon, you're sunk. Where do you spend that $10,000? Facebook? Instagram? Google? TikTok? If you don't know where your leads are coming from, how do you know where to spend your marketing budget?

Re:I’ve banned query strings by chrismorgan on Monday May 11, 2026 @01:09AM (#48091260)
I can’t imagine myself ending up in your scenario: I’m not interested in unbridled growth, if I sell things I want to be able to at least broadly know my customers, so I’ll know where they are in that situation. Besides which I’m never going to be doing that kind of advertising, cost-per-click and such—I consider it a blight on society wholly devoid of virtue, so I’ll not be a hypocrite and use it for my own gain.

It’s an unconventional pathway, but I have complete faith that it will work out. Not always in the ways I expect or prefer, but it will work out.

(Even humanly speaking, your protagonist sounds incompetent—just throwing money at marketing is very ineffective, you want to target and approach different platforms differently, and if you don’t know which of Facebook, Instagram, Google or TikTok will be the best venue to spend your last coins, I think you deserve to fail.)

More generally, these three snippets from the Bible accurately convey my attitude:

> The LORD will provide. — Genesis 22:14

> I have been young, and now am old, yet I have not seen the righteous forsaken, nor his children begging for bread. — Psalm 37:25

> We walk by faith, not by sight. — 2 Corinthians 5:7

This genuinely is how I try to live my life. I’ve seen it work in my parents before me and in a few others’ lives, in anecdotes of grand- and great-grandparents and beyond. (It’s even why I, an Australian by birth, now live in India.)

Re:I’ve banned query strings by tedbradley on Monday May 11, 2026 @03:34AM (#48092084)
What would you consider the "extreme of tracking?" Anyway, I feel like we're dealing with Sorites paradox here, which is something my brother always freaks out over whenever there is a continuum of choices in something like a political argument. E.g. "Tax the rich" → "What is rich?!?" When someone says, "Tax the rich," they generally mean people with dozens of millions in net worth growing fast all the way up to the people who have hundreds of billions. I don't understand why that conversation repeatedly comes up with him. He's also into the slippery slope where, if you like the idea of a wealth tax, he cries bloody murder since income tax started out only on the richest salaries in the nation. So he reasons that... everyone will eventually have a wealth tax instead of it just being the people with billions of dollars who have paid like 1% tax per year due to their net worth being tied up in unsold stocks.

So if I'm going to pick your brain, what would a realistic extreme of tracking look like? You have to log in with your state-issued identity to enter the internet, and systems track absolutely everything you do? Sure, that sounds bad. I can admit that. But I don't feel like having a "?=example.com" is anywhere near that, if you get what I mean.

Do you find it moral to block ads? By that point, you are using free services without paying as intended. Or do you mean you buy YT premium and Twitch Turbo and Spotify premium and all those monthly bills that both block ads while sustaining the services you apparently enjoy using?

Re:I’ve banned query strings by SebastianKra on Sunday May 10, 2026 @10:43AM (#48084407)
Textbook marketing speak: “Don't you want more relevant ads?”.

It assumes that “ads” = useful information, but that's rare at best. Most ads focus on stealing your attention and creating a fear of missing out. NordVPN isn't educating you. They just manufacture a need and then hope that you won't invest time in researching a better option.

Why would I give them more leverage to do that?

Re:I’ve banned query strings by fragmede on Sunday May 10, 2026 @03:15PM (#48086893)
Is it that rare? Sure, there's no advertising profile for "hates VPN ads" but eg an adult male doesn't want ads for women's period pain medication and similarly an adult woman doesn't want ads for male testosterone or other male-coded enhancements ads. Then you get into niche interests like fishing or sewing or 3d printing.
Re:I’ve banned query strings by SebastianKra on Monday May 11, 2026 @03:00AM (#48091866)
You're conflating correctly targeted ads and useful information.

If you sell gambling ads to an addicted gambler, the gambler doesn't get useful information.

Niche interests might get a pass. But then again: if I’m getting an ad for a 3D printing product on a 3D printing review site, its very likely that the advertised product wasn’t actually the best and is just artificially pushed on me.

Re:I’ve banned query strings by tedbradley on Sunday May 10, 2026 @04:00PM (#48087314)
I genuinely would rather see ads for products I might like yet do not know exist instead of purely random ads. I don't understand why a person wouldn't.
Re:I’ve banned query strings by dewey on Saturday May 09, 2026 @10:51PM (#48080526)
If you have a popular website and you add that parameter the target easily sees who sends them traffic, that could be the base of sponsorships / affiliate arrangements for example.
Re:I’ve banned query strings by ihateolives on Sunday May 10, 2026 @03:58AM (#48081924)
But you see that anyway from access.log or whatever your server supports and dashboard/analytics shows it anyway? What's the benefit of adding origin to query string?
Re:I’ve banned query strings by GeneralMaximus on Sunday May 10, 2026 @05:13AM (#48082281)
Not always.

Some web pages don't send referrers by making all links rel="noreferrer". Mastodon used to do this by default, though now they've changed their stance.

Links opened from non-browser apps don't have any referrer information either. E.g. if somebody shares your link on iMessage, WhatsApp, or Telegram.

Email clients may also strip out referrers, but I'm not entirely sure about this one.

If people read your work via RSS readers, you'll almost certainly not get any referrers. Unless it's a web-based reader like Feedly.

My website gets a lot of traffic marked as "Direct / None" by Plausible. I suspect this is traffic from RSS readers or Mastodon, but I can't be sure. A few times I've considered adding a "?ref=RSS" to all URLs served to RSS readers and "?ref=Mastodon" to everything I post on Mastodon. But like the author of this post, I feel uncomfortable tracking my readers like this.

Re:I’ve banned query strings by bornfreddy on Sunday May 10, 2026 @01:50PM (#48086164)
I see where (both of you) are coming from, and I'm very privacy conscious (=paranoid) myself, but in this case, as a user, I wouldn't actually mind. It seems to me you would be tracking flows instead of users, which is fine in my book. Now, including Google fonts on every page, using their tag manager, analytics, captcha... That gives me the creeps. Waaay too much information about each and every user. But generic origin query params? Yeah, ok. :shrug:
Re:I’ve banned query strings by glitchdout on Sunday May 10, 2026 @05:29AM (#48082356)
Adblockers like umatrix have options like "Spoof Referer header". I have this setting enabled, so adding tracking query strings to URLs would go against my user preference.
Re:I’ve banned query strings by cx42net on Monday May 11, 2026 @03:53AM (#48092216)
I agree with you here, this is an odd reaction to a non-problem.

A real-life scenario would be to refuse your snail mail because someone added an extra line in your address.

The only plausible reason would be to avoid polluting the data (like faking the ref= for marketing purpose) but that would assume you are already tracking the ref value for other services, so in a way, you either need it or not, but you can't have both.

If you don't actively track query strings, having them or not has no impact.