简体   繁体   English

如何使Flash文件不可下载?

[英]How to make flash file not downloadable?

I want that my flash file on my website, can't be downloaded by anyone. 我希望我的网站上的Flash文件不能被任何人下载。
Is there any way that i can do that? 有什么办法可以做到吗?
As Firefox and many browser has many add-ones which easily detect out flash content and after they can download the flash file? 由于Firefox和许多浏览器具有许多附加组件,可以轻松检测出Flash内容并在以后可以下载Flash文件?

In short: No. 简而言之:不。

Remember that in order to display the contents of the flash file, it will have to be downloaded to the client in any case, and is usually saved to a temporary file on disk. 请记住,为了显示闪存文件的内容,无论如何都必须将其下载到客户端,并且通常将其保存到磁盘上的临时文件中。 There's really no way from keeping a browser from saving the files you send it to disk, short of not sending the files in the first place. 实际上,要避免浏览器将发送给它的文件保存到磁盘上,除了没有首先发送文件之外,实际上是没有办法的。 (In which case, well, the flash cannot be displayed, because the client doesn't have it.) (在这种情况下,由于客户端没有闪光灯,因此无法显示闪光灯。)

And what exactly is the use of a Flash file that you can't download? 不能下载的Flash文件的用途是什么? If it can't be downloaded then you won't be able to view it in a browser. 如果无法下载,则将无法在浏览器中查看。 So don't put it online, then nobody will be able to download it. 因此,不要将其放在网上,那么没人会下载。

Short answer is no. 简短的答案是没有。

But you can make it harder for someone to download and reuse the file. 但是,您可以使某人更难以下载和重用该文件。

You should look into serving the flash file via a PHP script so that it can do checks before serving the file. 您应该考虑通过PHP脚本来提供Flash文件,以便它可以在提供文件之前进行检查。 And in the flash file you can do checks like what the page address is before running the code, etc. 并且在Flash文件中,您可以在运行代码之前进行检查,例如页面地址是什么,等等。

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

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