简体   繁体   English

禁用/修改Chrome开发者工具

[英]Disable/modify Chrome Developer Tools

So I'm part of a project to develop an online testing tool for my university's language programme. 因此,我参与了为大学语言课程开发在线测试工具的项目。 We're trying to keep the system completely HTML/JS/CSS based so we don't have to deal with plugins and compatibility and such. 我们试图使系统完全基于HTML / JS / CSS,因此我们不必处理插件和兼容性等问题。 Currently we have sound files for the listening portion of the examination which we would like to be played only a specified number of times. 目前,我们在考试的听音部分有声音文件,只希望播放指定次数。 We have JS in place to stop the obvious sort of tomfoolery, such as changing the value of timesPlayed or directly fetching the mp3 file with cURL or a separate tab. 我们提供了JS来阻止明显的timesPlayed ,例如更改timesPlayed的值或使用cURL或单独的选项卡直接获取mp3文件。 However, Chrome's Developer Tools, while invaluable to us developers, also allows a very simple means of getting at the sound data: press f12 and find it in the Resources tab, loaded and ready to play. 但是,Chrome的开发人员工具虽然对我们的开发人员来说是无价的,但它也提供了一种非常简单的获取声音数据的方法:按f12键,然后在“资源”标签中找到它,即可加载并准备播放。 Is there a way around this? 有没有解决的办法? I know Developer Tools is impossible to remove, but is there a way to (say) remove our data from that tab after the plays are up, or similar? 我知道无法删除Developer Tools,但是有没有办法在播放结束或类似情况后(例如)从该标签中删除我们的数据?

Thanks. 谢谢。

All major browsers (Chrome, Firefox, Opera, Safari and even IE) has some kind of developer tools. 所有主要的浏览器(Chrome,Firefox,Opera,Safari甚至IE)都具有某种开发人员工具。 As far as I know, you can't disable it. 据我所知,您不能禁用它。

But this is a battle you can't win. 但这是一场你无法取胜的战斗。 Even if you where successfully able to prevent them from playing the file multiple times on the computer, you can't prevent them from recoding the audio externally (either by connecting a recoding device to the computer or using a recoding device to record what comes out from the speakers/headphones). 即使您成功地阻止了他们在计算机上多次播放文件,也无法阻止他们从外部对音频进行编码(通过将记录设备连接到计算机或使用记录设备来记录输出的声音)从扬声器/耳机)。

I don't think it's worth too much time to try to obfuscate it. 我认为对它进行混淆不值得花费太多时间。 It only makes it harder for the developers and maintainers. 这只会使开发人员和维护人员感到更加困难。

This isn't just an issue with Chrome, Firebug will get that information as well. 这不仅是Chrome的问题,Firebug也会获取该信息。 Any time a user gets a resource online it will have a reference link. 每当用户在线获得资源时,都会有一个参考链接。

Usually closed environments have a custom computer setup, which disables most features of the computer. 通常,封闭环境具有自定义的计算机设置,该设置会禁用计算机的大多数功能。 in particular it also has a minimalistic browser. 特别是它还具有简约的浏览器。

If you're going to allow people to have access with a fully-fledged browser, you also have to take into account: is it worth the time it takes to go through the Developer Tools just to access the resources? 如果要允许人们使用功能强大的浏览器进行访问,则还必须考虑到:花时间使用Developer Tools来访问资源是否值得?

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM