用户不在系统上保存网页 [英] User dont save webpage on system

查看:77
本文介绍了用户不在系统上保存网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好先生
我需要有关此的一些帮助
1)用户单击文件中的保存"按钮时无法保存网站.
2)其次,我想在以Web模式打开pdf文件时禁用保存按钮.

hello sir
i want some help regarding that
1) user can not save website when they click save button in file .
2) Second i want to disable save button when i open pdf file in web mode.

推荐答案

您无法阻止保存任何已加载的资源.而且,您无法避免保留已经缓存的任何内容.

随便看看:所有数据都已经在客户端站点上了.有什么可能会阻止用户使用它?它已经在那里.服务器代码无论是什么,都无法对此数据进行任何控制.

不,无论做什么,您都无法阻止.

—SA
You cannot prevent saving of any resources which are already loaded. And you cannot prevent preserving anything which already was cached.

Just thing about it: all the data is already on the client site. What can possibly prevent the user from using it? It''s already there. The server code, whatever it is, does not have any control over this data.

No, you cannot prevent it, no matter what you do.

—SA


1)您不能阻止它.它完全取决于浏览器.甚至不需要在另一端使用浏览器-它可能是通过httpRequest访问您的应用.
2)参见此处:禁用PDF保存和打印按钮 [ ^ ]已经对该主题进行了讨论.
1) You can''t prevent it. It is purely browser dependant. There need not even be a browser at the other end - it could be an app accessing you via an httpRequest.
2) See here: Disable PDF Save and Print Button[^] where there is already a discussion on the subject.


这篇关于用户不在系统上保存网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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