News for hackers. Stuff that matters.
Re:Personal and social information of 1.2B people discovered... by sillysaurusx on Friday November 22, 2019 @11:49AM (#21607298)
So far, the answers have contained non-technical answers like "Distributed Scraping." Well, yes, obviously.

A more useful answer is: I did this once, many years ago. Back then it was a matter of hooking up PhantomJS and making sure your user string was set correctly. Since PhantomJS was – I think – essentially the same as what headless chrome is today, the server can't determine that you're running a headless browser.

Now, it's not so easy nowadays to do that. There are mechanisms to detect whether the client is in headless mode. But most websites don't implement advanced detection and countermeasures. And in the ideal case, you can't really detect that someone is doing automated scraping. Imagine a VM that's literally running chrome, and the script is set up to interact with the VM using nothing but mouse movements and keyboard presses. You could even throw in some AI to the mix: record some real mouse movements and keyboard presses over time, then hook up some AI to your script such that it generates movements and keyboard presses that are impossible to distinguish from real human inputs. Such a system would be almost impossible to differentiate vs your real users.

The other piece of the puzzle is user accounts. You often have to have "aged" user accounts. For example, if you tried to scrape LinkedIn using your own account, it wouldn't matter if you were using 500 IPs. They would probably notice.

It's hard to counter a determined scraper.

Re:Personal and social information of 1.2B people discovered... by onlyrealcuzzo on Friday November 22, 2019 @11:59AM (#21607423)
I wrote a chrome headless framework that types using semi-realistic key presses (timing, mistakes, corrections) and does semi-realistic scrolling / swiping and clicking / tapping.

It's not very hard to get something that would be too hard for almost every website beside Google and Facebook to bother with. If it's a 1 on a 0-9 scale in difficulty, most websites just don't have the resources to detect it

It took me like ~3 hours to write it, but I guarantee it would take months for someone to detect it, and even then, they'd have a lot of false positives and negatives.

Re:Personal and social information of 1.2B people discovered... by zer0tonin on Friday November 22, 2019 @12:10PM (#21607540)
I think there's also a lot of bot-detection-as-a-service around here that can be used by sites smaller than Google and Facebook, like WhiteOps or IAS anti-fraud.
Re:Personal and social information of 1.2B people discovered... by mschuster91 on Friday November 22, 2019 @01:44PM (#21608597)
These are highly questionable under GDPR, many of them rely on tracking users wherever they go (e.g. Recaptcha is known for this).
Re:Personal and social information of 1.2B people discovered... by 77pt77 on Friday November 22, 2019 @09:03PM (#21611931)
> These are highly questionable under GDPR

How many fines has GDPR resulted in?

Re:Personal and social information of 1.2B people discovered... by mschuster91 on Sunday November 24, 2019 @06:48PM (#21624356)
Not many yet, general consensus is to first warn and get companies to implement better compliance - only those who really openly shit on GDPR get the fines.
Re:Personal and social information of 1.2B people discovered... by 1996 on Friday November 22, 2019 @12:48PM (#21607972)
then release it!

Headless chrome cat and mouse game is a lot of fun. We need more players.

Re:Personal and social information of 1.2B people discovered... by hobofan on Friday November 22, 2019 @01:51PM (#21608669)
LinkedIn doesn't protection doesn't seem to be that sophisticated at the moment. Someone I know maintains ~weekly up-to-date profiles of a few million users via a headless scraper that uses ~10 different premium accounts and a very low number of different IPs.
Re:Personal and social information of 1.2B people discovered... by arpa on Friday November 22, 2019 @02:45PM (#21609287)
That is a violation of ToS (using registerd accounts for scrape) and could carry potential legal implications.
Re:Personal and social information of 1.2B people discovered... by gddvhy on Friday November 22, 2019 @03:35PM (#21609780)
So is leaking PII? ToS isn't a legal contract: it's not signed by anyone and it's changed every other week without consent of users. ToS is just a formal excuse why someone's account may be suspended.
Re:Personal and social information of 1.2B people discovered... by cookiecaper on Friday November 22, 2019 @02:40PM (#21609227)
As long as you are able to source more than one provider, this can work well enough. If you're dependent on a single data source, e.g., because that source is the only possible source of said data, you'll get nuked from orbit by legal rather than technical means.

I had a business that was generating more money than my full-time job for a while. We helped and greatly simplified matters for several thousand independent proprietors while having a positive effect on the load of the data source, since we were able to batch/coalesce requests, make better use of caches, and take notification responsibilities on ourselves.

Once in a while someone would get worried and grumpy at the data source and there were a couple of cat-and-mouse games, but we easily outwitted their scraping detection each time. When they got tired of losing the technical game, they sent out the lawyers, which was far more effective. We were acquiring facts about dates and times from the place that issued/decided those dates and times, so there wasn't really any reliable alternative data source, and we had to shut down.

The glimmer of hope on the horizon is LinkedIn v. HiQ, which seems poised to potentially finally overturn 4 decades of anti-scraping case law, but not holding my breath too hard there.