News for hackers. Stuff that matters.
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.