News for hackers. Stuff that matters.
Re:Go Browser Package by 38 on Saturday May 18, 2024 @08:15PM (#40403135)
please stop doing stuff like this. its trivial to change the user-agent when making a request with a programming language, so any logic surrounding that should be non existent, or as simple as possible.

the user-agent string has an essentially arbitrary format, so its not really a good place to be reading data from, or worse serving a different response based on the value.

Re:Go Browser Package by zuck_vs_musk on Saturday May 18, 2024 @09:32PM (#40403445)
This is useful.

If you have a website, you want to collect statistical data on which browsers are accessing your website and test for the best experiences on the top browsers.

Re:Go Browser Package by 38 on Saturday May 18, 2024 @10:19PM (#40403662)
that sounds nice, but history has shown thats never what happens.

what REALLY happens is the most popular browser and even version is determined, and anything thats not that doesn't get tested, and eventually breaks. its the pinnacle of lazy programming. "lets use telemetry so that we can point to data that allows us to make software thats as brittle as possible".

Re:Go Browser Package by philosopher1234 on Saturday May 18, 2024 @11:58PM (#40404168)
There are limited resources in the world. The bulk of the resources should go to the bulk of the users. It’s a feature that rare configurations are less tested
Re:Go Browser Package by tgv on Sunday May 19, 2024 @03:03AM (#40404831)
It's a (minor) necessary evil that gives useful information. Almost no-one spoofs their user agent. I use this to pin down problems on the user side. Our users have all kinds of weird devices (e.g. browsing with a PlayStation) and it can be hard to find where things go wrong. There was a case where we lost more users than usual, and it turned out to be something very subtle related to tab switching in Safari. Without the user agent, we would never have found out.
Re:Go Browser Package by 38 on Sunday May 19, 2024 @11:59AM (#40407759)
> Almost no-one spoofs their user agent.

Citation needed

Re:Go Browser Package by mynameisvlad on Sunday May 19, 2024 @01:30PM (#40408375)
Ask one of your non-tech friends to spoof a user agent. And see if they even know what a user agent is.

They won’t.

But also, what exactly were you expecting out of a citation? A survey done about whether people spoof their UA or not? That doesn’t exist and likely never will.

Re:Go Browser Package by 38 on Sunday May 19, 2024 @03:01PM (#40409003)
Re:Go Browser Package by mynameisvlad on Sunday May 19, 2024 @05:02PM (#40409716)
I am well aware what it means. I asked you what you were expecting because it doesn't exist and probably never will. Nobody goes around surveying people about user agents. That just doesn't happen in the real world.
Re:Go Browser Package by dblohm7 on Sunday May 19, 2024 @04:56PM (#40409685)
(Former browser dev)

Agreed. Feature detection is the way, not UA sniffing.

Re:Go Browser Package by 38 on Sunday May 19, 2024 @07:16PM (#40410477)
Whoosh