无头浏览器检测

BT1*_*101 10 selenium webdriver headless-browser phantomjs puppeteer

您是否知道任何试图检测用户是否使用 selenium/puppeteer/phantomJS 或任何其他无头浏览器的 web 应用程序/在线测试/在线防火墙?

我已经创建了我的 puppeteer 在线爬虫。我改变了很多不同的东西,比如window.navigator对象(用户代理、~.webdriver 等)。

现在我想确保它是不可检测的。

Tho*_*orf 17

有一个无头浏览器检测测试,可测试以下内容:

  • 用户代理是否包含字符串“HeadlessChrome”?
  • navigator.webdriver设置?
  • window.chrome设置?
  • 浏览器是否跳过请求权限(如通知)?
  • 浏览器插件不可用吗?
  • navigator.languages设置?

如果您的浏览器以“是”回答这些问题中的任何一个,那么您将无法通过测试。有关测试的更多信息,请查看此帖子,该帖子是对名为“检测 Chrome 无头,新技术”的帖子的回复。

The author of the latter post also published another test test (code), which claims to be able to detect bots and crawlers. It performs various tests on browser attributes and generates a fingerprint of your browser.

Other "soft" tests done by websites, might include the mouse movement, scrolling behavior, IP address, etc. I doubt you will find many tests regarding these information as this is basically a cat-and-mouse game.