简体   繁体   English

如何防止检测到 Chrome 开发者工具?

[英]How can I prevent Chrome Developer tools from being detected?

Came across something unexpected today.今天遇到了一件意想不到的事情。 There is a certain website which plays a video.有一个播放视频的网站。 However, when chrome devtools is opened it does two unexpected things.然而,当 chrome devtools 打开时,它会做两件意想不到的事情。

  1. It somehow detects that the chrome devtools has been opened without the use of a "debugger" statement, and still detects that it has been opened even if the devtools is not docked (ie its opened as a separate window)它以某种方式检测到 chrome devtools 已在不使用“调试器”语句的情况下打开,并且即使 devtools 未停靠(即它作为单独的窗口打开)仍然检测到它已打开
  2. It clears the console log (which I can prevent) but the code source section of this is recorded as "(unknown)" in the console log instead of a source:line# format (ie javafile.js:30, vm11:22, etc.) so there is no clickable link to jump to the relevant code.它清除了控制台日志(我可以阻止),但是它的代码源部分在控制台日志中记录为“(未知)”而不是 source:line# 格式(即 javafile.js:30、vm11:22、等)所以没有可点击的链接跳转到相关代码。

未知代码源

I've done searches on how to achieve this functionality and haven't succeeded so I am not sure how it is being done.我已经搜索过如何实现此功能但没有成功,所以我不确定它是如何完成的。 Similar questions have been solved by either dealing with the "debugger" statement (in this case its not used), or by undocking the devtools, neither of which have helped me.类似的问题已经通过处理“调试器”语句(在这种情况下未使用)或通过取消对接开发工具来解决,这两种方法都没有帮助我。 I also haven't found what causes an unknown code source so tracking down the code doing this has been more difficult.我也没有找到导致未知代码源的原因,因此追踪执行此操作的代码更加困难。

The website that I am experiencing this on is vexmovies.org, and a link to an example page which has this behavior can be found here: http://vexmovies.org/chicken-run我遇到此问题的网站是 vexmovies.org,可以在此处找到具有此行为的示例页面的链接: http://vexmovies.org/chicken-run

Not really an answer to this question, but I found an alternative way to use one of dev tools's features,.network sniffer, without being detected by websites that actively detecting and blocking dev tools.不是这个问题的真正答案,但我找到了另一种方法来使用开发工具的一个功能,.network 嗅探器,而不会被主动检测和阻止开发工具的网站检测到。 Well theres an extension on Chrome Web Store literally named "Network Sniffer".那么在 Chrome Web 商店上有一个扩展,字面意思是“网络嗅探器”。 So I used that and I managed to sniff videos url out of a similar website to your example site.因此,我使用它并设法从与您的示例网站类似的网站中嗅探出视频 url。 Im guessing this is what you want to do;).我猜这就是您想要做的;)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Chrome 的开发者工具中按主机和端口进行过滤? - How can I filter by host and port in Chrome's developer tools? 如何在 Chrome 开发者工具中访问 JSON 响应? - How can I access JSON response in Chrome Developer Tools? Chrome或Firefox上的开发人员工具:如何查看库中的帮助(建议)? - Developer Tools at Chrome or Firefox: how can I see help (suggestions) from libraries? 我可以使用锚点打开Chrome开发者工具吗? - Can I open Chrome Developer Tools with an anchor? 如何从 Firefox 开发人员工具启动 Ajax 请求? - How can I initiate Ajax request from firefox developer tools? 如何使用 Chrome 的开发人员工具查看 window 对象中定义了哪些变量? - How can I see what variables are defined in the window object with Chrome's developer tools? 如何使用Chrome浏览器开发者工具调试网页上的脚本? - How can I debug the scripts on my web page using the Chrome browser developer tools? 在 Chrome 开发者工具中,如何禁用刷新元素周围的突出显示? - In Chrome Developer Tools, how can I disable the highlight around elements that refresh? 如何在Chrome开发者工具JavaScript控制台中将CoffeeScript访问JS编译的vars? - How can I access CoffeeScript to JS compiled vars in the Chrome Developer Tools JavaScript Console? vscode chrome 开发者工具控制台错误出现在第 2586 行,我该如何解决? - vscode chrome developer tools console error on line 2586 how can i fix this?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM