我们如何限制用户保存网页? [英] How can we restrict the user from saving a web page?
问题描述
我们如何限制用户保存页面?
How can we restrict a user from saving the page?
请提供一些提示,以禁用文件"->保存和查看源代码"选项
Please provide some tips to disable File->Save and View Source options
显然,它不能完成,并且可能不应该尝试.但是,关于这个问题的一个更有趣的变体是:如何使用户很难以可用的格式保存页面,以致于这样做不值得他们这样做?这个问题没有价值,但是说我们正在保护一个文章订阅站点,在该站点中,用户每年需要支付几百美元来继续访问文本.
Obviously it can't be done, and probably shouldn't be attempted. But possibly a more interesting variant on this question is how can we make is sufficiently hard for a user to save a page in a usable format such that it is not worth their while doing so? The question doesn't pose a value, but say we were protecting an article subscription site where the user is paying a few hundred dollars per annum for continued access to text.
推荐答案
由于页面已发送到客户端,因此总会有一种获取该信息的方法.试图阻止用户这样做只会使他们感到沮丧.
Since the page has been sent to the client, there will always be a way to get that information. Trying to stop a user from doing this will only frustrate them.
让用户无法保存文件的唯一方法是不将其发送给他们.
The only way to have a user not be able to save a file is to not send it to them.
这篇关于我们如何限制用户保存网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!