Re:Facebook adds 5 divs, 9 spans and 30 CSS classes to every...
by osrec on Friday February 08, 2019 @12:51PM
(#19116788)
Not really. We have scraped many sites successfully that try this randomisation logic. There is always a pattern, which often can be determined via heuristics. It does make things trickier, but not impossible or especially difficult.
Re:Facebook adds 5 divs, 9 spans and 30 CSS classes to every...
by Novashi on Friday February 08, 2019 @01:21PM
(#19117111)
It feels like the point is just to raise the difficulty for script kiddies.
After all, there’s always headless browsers and OCR
Re:Facebook adds 5 divs, 9 spans and 30 CSS classes to every...
by osrec on Friday February 08, 2019 @01:24PM
(#19117138)
Yeah, it's a bit pointless really. If you're going to put data on the open web, you should be prepared for it to be copied.
Re:Facebook adds 5 divs, 9 spans and 30 CSS classes to every...
by lazopm on Friday February 08, 2019 @01:25PM
(#19117148)
I think you can just iterate over the text nodes and see if you stumble upon every letter you're looking for in the right order, it would work for any kind of randomly added text.
Pretty easy to build a randomizing span algo that you can't hardcode.