News for hackers. Stuff that matters.
Re:Tracking users via CSS by onion2k on Tuesday September 15, 2020 @08:29AM (#24480442)
It depends what "this" refers to.

If it's CSS, then no.

If it's loading an external image, then also no. Certainly no more evil than any other method of getting a user's browser to make an HTTP request anyway.

If it's tracking users then maybe. Gathering data is evil unless you have a very good reason. If you're gathering it and not actually using it then that is definitely evil. If you're gathering everything in case you need it then that is also evil. If you're gathering data that's unique to individuals that's even worse. If you're gathering data that's unique to individuals, and keeping it, and using it to build up profiles by blending it with other sources, and then selling the information that's really evil.

Just gathering browser agent strings or screen resolutions though, it's not terrible. Although I do wonder why you need CSS analytics rather than just using the server log from the request for the HTML file.

Re:Tracking users via CSS by bnegreve on Tuesday September 15, 2020 @08:40AM (#24480525)
> I do wonder why you need CSS analytics rather than just using the server log from the request for the HTML file.

From the article:

Lots of automated traffic on the web, bots, crawlers and scrapers. So if there is a way that can remove most of the automated traffic without loading any JS, is that a win?

   body:hover {
        background-image: url("https://underjord.io/you-was-tracked.png");
    }
[...] This has a certain elegance because it actually requires mouse interaction.
Re:Tracking users via CSS by jiofih on Tuesday September 15, 2020 @08:42AM (#24480539)
The vast majority of bots and scrapers today are headless browsers, so I’m not sure that would be very effective.
Re:Tracking users via CSS by chownie on Tuesday September 15, 2020 @08:47AM (#24480588)
I think that's the point, a headless browser is unlikely to trigger :hover behaviour.
Re:Tracking users via CSS by hoistbypetard on Tuesday September 15, 2020 @09:56AM (#24481217)
> I think that's the point, a headless browser is unlikely to trigger :hover behaviour.

That is not true. I just tried it with headless chrome and triggered :hover behavior immediately just by synthesizing mouse movement the same way I would by using it as a scraper.

Re:Tracking users via CSS by gruez on Tuesday September 15, 2020 @10:12AM (#24481364)
I think his point is that the average scraper isn't going to bother simulating mouse movements to trigger the hover behavior.
Re:Tracking users via CSS by hoistbypetard on Tuesday September 15, 2020 @10:33AM (#24481610)
Not specifically for that purpose, sure. I didn't simulate the mouse movements for that purpose. The hover triggered when I simulated scrolling and clicks the same way I do when I want to scrape sports stats from sites that hide them behind scroll movements or mouse clicks.
Re:Tracking users via CSS by marcosdumay on Tuesday September 15, 2020 @12:48PM (#24483399)
It will at least filter all the bots that aren't trying to hide that they are bots, just trying very hard to understand your page.

You can use it to clean your analytics, but yes, it's useless for fraud prevention.

Re:Tracking users via CSS by hoistbypetard on Tuesday September 15, 2020 @02:28PM (#24484830)
It didn't filter out my bot which makes no real attempt to hide that it's a bot; all it does is scroll and click.

Sure, it'd clean analytics up a little bit, but that would come at the expense of being able to use a CDN/cache for my CSS. Even leaving aside implementation effort, that's a big price to get some but not all bots out of my log data.

Re:Tracking users via CSS by Viliam1234 on Tuesday September 15, 2020 @09:22AM (#24480889)
The evil is in how you use the data.

And of course, if you share the data with a third party (that includes if you use their services to collect or process the data), you should logically assume the worst.

I would probably be okay to share all kinds of data with the websites I use, if I could reasonably trust that it will never be used to identify me personally. If you have a website, and you are curious whether your audience is mostly male or female, young or old, using computers or smartphones, I can understand the need, and would not object against my presence increasing some number in the database by one.

Well, there is this problem that if you collect too many attributes about me, and if they are all connected together (as opposed to merely increasing a few independent counters), a sufficiently large collection can be used in the future to identify me uniquely, which is the part I object against. And I have no control about how you store the information, and it is reasonable for me to assume the worst.

To make an analogy with the offline world, if you e.g. give a public lecture, you can see what kind of people are in the audience. And I would feel no desire to wear a mask for the purpose of hiding my age or gender or race or whatever from the lecturer.

But I would object against someone taking my photo, using it to identify me, and writing the information of me attending given lecture on given day into some huge dossier about me, that he would later share with other shady people, so that they can all have my incredibly detailed biography (in case of Google, including also most of my private correspondence). That is definitely evil.

Re:Tracking users via CSS by mcv on Tuesday September 15, 2020 @09:28AM (#24480947)
If you gather data but you anonymise it, then you're totally fine. If you gather it in order to later use it to improve the UX on your site, that's fine.

It's making it personally identifiable and linking it to other things where you get in the really evil territory.

Re:Tracking users via CSS by korijn on Tuesday September 15, 2020 @08:39AM (#24480511)
I am inclined to compare CSS to guns now. At what point is the tool evil and when should it be banned? When all it's users are evil? More than half? Is the tool never evil? Ethics...
Re:Tracking users via CSS by mumblemumble on Tuesday September 15, 2020 @09:09AM (#24480771)
I'd maybe compare it to a toothbrush instead. Yes, you can sharpen one end of it and then use it to do unfriendly things to people. But that's not exactly its primary use case.
Re:Tracking users via CSS by korijn on Thursday September 17, 2020 @02:54AM (#24501884)
Fair enough