如何在浏览器的FILE菜单中禁用保存! [英] How to disable save as in FILE menu in browser !

查看:90
本文介绍了如何在浏览器的FILE菜单中禁用保存!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的客户希望网站受到复制保护。我已经禁用了复制和粘贴,并使用javascript打印。



现在我的客户想要禁用FILE中的另存为菜单。我知道该页面将缓存在用户的临时Internet文件中。



但是想让普通用户难以获取数据。



有没有办法跟踪另存为菜单事件?



有没有办法加密页面,这样,当用户下载页面时,他只能查看加密内容?



我在等待回复!!!!!!!!!!!!

My client wants the website to be copy protected. I have already disabled copy and paste, and print using javascript.

Now my client wants to disable the Save as menu in FILE. I know that the page will get cached in the user's Temporary Internet Files.

But want to make then "ordinary" users hard to get data.

Is there any way to track the "Save As" menu event?

Is there any way to encrypt the page, so that when the user download the page he can only view encrypted content?

I'm waiting for the reply !!!!!!!!!!!!

推荐答案

网站内容原则上不能被复制保护。如果在客户端网站上查看某些内容,则表示已经下载,期间。



另存为...功能及其可用性不是网站控制的功能,这是每个特定浏览器自行决定的动作;而且,如果任何特定的浏览器甚至允许禁用此功能,则没有人会使用它;这样的限制会违反一些最基本的用户权利。



即使某些浏览器限制下载,也可以通过任何普通合格开发人员可以创建的软件下载内容。



另一方面,如果您在服务器端实现所有细节,则可以完美地保护实现的任何细节(算法,数据,数据结构)。没有人可以访问服务器端实现。更确切地说,这成为运行HTTP服务器的主机的安全问题。



-SA
A Web site content cannot be copy protected in principle. If some content is viewed on client site, it means it already have been downloaded, period.

"Save As…" functionality and its availability is not the functionality controlled by a Web site, this is an action of a sole discretion of each particular browser; moreover, if any particular browser would even permitted disabling of this function, no one would use it; such limitation would violate some most basic user rights.

Even of some browser limits downloading, the content can be downloaded by software any average qualified developer can create.

From the other hand, you can perfectly protect any detail of implementation (algorithms, data, data structures) if you implement it all on the server side. No one can access server-side implementation. More exactly, this become a matter of security of the host running an HTTP server.

—SA


加载你不想通过AJAX保存的内容。

如果你想阻止保存所有页面,

只需通过一个内容加载所有内容在加载DOM之后调用ajax。

当用户保存页面时,将不会保存通过ajax加载的所有内容。

我希望概念清晰。
Load the content you don't want to be saved via AJAX.
If you want to prevent saving all page,
simply load all the content inside via an ajax call after the DOM is loaded.
When the user save the page, all the content loaded via ajax will be not saved.
I hope the concept is clear.


从网站上你无法禁用浏览器的基本功能。

如果您需要相同的功能,我建议您在新窗口中显示您的内容并禁用其中的所有内容。 br $> b $ b

-SG
From website you cant disable Browser's basic funtionality.
If you required the same funtionality I would suggest to display your content in a new window and disable everything there.

-SG


这篇关于如何在浏览器的FILE菜单中禁用保存!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆