?
Solved

how do i disable "save" and "save as" options of web-browser while it is viewing my html page?

Posted on 2007-08-11
7
Medium Priority
?
4,794 Views
Last Modified: 2013-11-05
I'm working with one of my client and his requirement is to disable the copying of the content which his client is viewing. I'd done the basic stuffs of disallowing copy/cut-paste and printing. But, the viewer can easily download the content using "save-As" options present in the "Web-Browser". So, i need to disable it programmatically as soon as my html page is activated.
0
Comment
Question by:spadeworx
6 Comments
 
LVL 14

Accepted Solution

by:
bugs021997 earned 720 total points
ID: 19675545
@spadeworx


I don't believe you can unfortunately
0
 
LVL 14

Expert Comment

by:bugs021997
ID: 19675557
@spadeworx

Frankly anyone with a basic knowledge of computers can easily grab the contents of the website even if you have blocked the copy/paste, right click disabled....I would suggest you can protect your images by doing as below...


Now listen to me, do this:

1st Create a *.Js file with the scripts:

var myVar='<img src="myimg.jpg" galleryimg="no">'
document.write(myVar)

2nd In your html put your script:

<html>
<head>
</head>
<body>
...............
<script src="myscript.js"></script>
</body>
</html>

with this:
Your image will now show the icon "save as" and, when you save the page, the browser (IE) save the all the page without your img.!

Copying the text can be done anyways....
0
 
LVL 14

Expert Comment

by:bugs021997
ID: 19675561
@spadeworx

But again there is a loop hole to it....Moreover, my suggestion will mean that users that have client-side scripting disabled won't get an image at all.

I shall ask you who cares when the user can just right click and select "Save as..."? Or take a screen shot. Or look in the script file and obtain the URL.

The average user really doesn't care about saving your content. Even if they did, it would be for personal use only which is not something to be concerned about. People that actually go looking for content to steal (whether to sell or use in their own site) will not be bothered by anything you try.

You secure nothing, but do manage to obstruct visitors from using their browser properly. That is hardly something to be proud about.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 17

Expert Comment

by:BogoJoker
ID: 19679342
I am going to agree with the experts here.  Disabling anything inside the browser is impossible.  Allowing a webpage to manipulate the browser would be a major security hole and the concept of a webpage controlling the browser just doesn't make sense.

Secondly, the webpage, your html and images, is completely downloaded to the client's computer when they first view it.  If they need to find the image they need only look in their cache or temporary internet files... the data is somewhere on their computer the moment they are viewing the page.

That means if you want to disrupt the user's normal interaction between a browser and a webpage you are just going to frustrate them.

Unless there is a good reason or specific situation surrounding the content that you don't want downloaded you can only mask or obscure the information because by the time the user sees the webpage, they already have the data on their computer.  Always available to be saved forever with the "Save" and "Save as" options.

- Joe P
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 19682065
simple question, simple answer: you cannot. Dot.
Wait, there is one solution: don't deliver the page.
0
 
LVL 1

Expert Comment

by:Computer101
ID: 21022538
Forced accept.

Computer101
EE Admin
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses
Course of the Month17 days, 3 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question