News for hackers. Stuff that matters.
Re:It is not possible to detect and block Chrome headless by Sephr on Thursday January 18, 2018 @02:36PM (#16180547)
The author's navigator.webdriver fix is easily detected, though of course it is fixable with changes to Chrome. This cat and mouse game probably isn't worth pursuing against dedicated adversaries.

    if (navigator.webdriver || Object.getOwnPropertyDescriptor(navigator, 'webdriver')) {
        // navigator.webdriver exists or was redefined
    }
Re:It is not possible to detect and block Chrome headless by foob on Thursday January 18, 2018 @04:18PM (#16181552)
That test actually wouldn't work:

    > navigator.webdriver
    true
    > Object.getOwnPropertyDescriptor(navigator, 'webdriver')
    undefined
As you say though, it's a cat and mouse game and you could always override the behavior of getOwnPropertyDescriptor() if it were used in a test.