News for hackers. Stuff that matters.
Re:It is not possible to detect and block Chrome headless by urlgrey on Thursday January 18, 2018 @02:01PM (#16180174)
Crawlers & scrapers that rely on headless browsers like Chrome often initiate playback of video on the pages they access.

The company I work for (Mux) has a product that collects user-experience metrics for video playback in browsers & native apps. It's been a non-trivial effort developing a system to identify video views from headless browsers so that we might limit their impact on metrics. Being able to make this differentiation has a real benefit to human users of our customer's websites.

My preference would be for headless browsers to not interact with web video or be easily identifiable via request headers, though I doubt either of these things will happen any time soon.

Re:It is not possible to detect and block Chrome headless by goerz on Thursday January 18, 2018 @02:58PM (#16180747)
Video should never play unless actively initiated by the user. That would fix the metrics, as the headless browser probably wouldn't initiate the video playback
Re:It is not possible to detect and block Chrome headless by bpicolo on Thursday January 18, 2018 @03:14PM (#16180906)
If it's a video site, I expect the video to play when I land, e.g. youtube. I'm initiating on purpose by browsing
Re:It is not possible to detect and block Chrome headless by nybble41 on Thursday January 18, 2018 @04:12PM (#16181504)
Regarding YouTube in particular, I tend to open up videos in background tabs for later viewing and find it very annoying that they start playing automatically before I get around to that tab. I did go there to watch the video—eventually. Just not the second that the page finishes loading.

YMMV. A persistent setting to enable or disable auto-play would be ideal.

Re:It is not possible to detect and block Chrome headless by JeremyBanks on Thursday January 18, 2018 @05:45PM (#16182339)
Chrome doesn't autoplay videos in background tabs until you focus them.
Re:It is not possible to detect and block Chrome headless by nybble41 on Friday January 19, 2018 @02:58PM (#16189252)
Actually it doesn't even seem to load most of the page in a background tab until it's focused... which is also annoying. (Or perhaps it's just the parts hidden behind 'onload' JavaScript, which these days is most of the page content.) Part of the reason for opening the tab in the background is getting the lengthy loading process out of the way while I'm reading something else.

For this reason I tend to activate the tab and then go back to what I was doing before... and then the video auto-plays.

Re:It is not possible to detect and block Chrome headless by Whitestrake on Thursday January 18, 2018 @07:04PM (#16182849)
Firefox likewise has toggles for disabling autoplay in background tabs (on by default) and disabling autoplay completely (off by default).
Re:It is not possible to detect and block Chrome headless by goerz on Thursday January 18, 2018 @04:43PM (#16181778)
Yeah, I definitely don't. But I think a persistent "auto-play" toggle (default "off") is ok.
Re:It is not possible to detect and block Chrome headless by chriswarbo on Thursday January 18, 2018 @04:50PM (#16181838)
The first thing I do when hitting a YouTube URL is stop the video. Then I'll either run youtube-dl on the URL, or just paste it straight into a proper video player (VLC).
Re:It is not possible to detect and block Chrome headless by bpicolo on Thursday January 18, 2018 @06:22PM (#16182573)
Pretty confident you're in the extreme minority on that one
Re:It is not possible to detect and block Chrome headless by txsh on Thursday January 18, 2018 @11:26PM (#16184147)
There are Chrome extensions that automatically pause the video.
Re:It is not possible to detect and block Chrome headless by criddell on Thursday January 18, 2018 @02:47PM (#16180652)
How are they initiating playback? Are they pressing play, or just triggering auto-play behavior?