How to setup the displayed file to be undownloadable?

G

Guest

Foe example, I have a file (image) display application (maybe in client side)
and my server application can show the path/name of the file. When I click
the file in the IE, I am asked for either "save" or "open" in a popup window.
How can I set some property in server side such that the "save" is disabled,
i.e., the client can only open the file to view but not save to his local
machine.

Thanks

David
 
B

Bruno Alexandre

You can't...
cause the user can use the PRINT SCREEN function, in your "view mode",
so why bother for the "Save Image As..."

the photo companys use a watermark to avoid copping, this wattermark is
visible in all images and will be remove if you pay for it, so, my opinion
is: Forget about it or use JavaScript Client Side to block the right mouse
click, like this:


<script language="JavaScript"> <!--
// No rightclick script v.2.5
// (c) 1998 barts1000
// (e-mail address removed)
// Don't delete this header!

var message="Sorry, that function is disabled.\n\nContents & Graphics
Copyright ©your name\nOur work is not Public Domain, and should NOT be taken
from this site."; // Message for the alert box

// Don't edit below!

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// --> </script>
 
G

Guest

Thank you very much.

David

Bruno Alexandre said:
You can't...
cause the user can use the PRINT SCREEN function, in your "view mode",
so why bother for the "Save Image As..."

the photo companys use a watermark to avoid copping, this wattermark is
visible in all images and will be remove if you pay for it, so, my opinion
is: Forget about it or use JavaScript Client Side to block the right mouse
click, like this:


<script language="JavaScript"> <!--
// No rightclick script v.2.5
// (c) 1998 barts1000
// (e-mail address removed)
// Don't delete this header!

var message="Sorry, that function is disabled.\n\nContents & Graphics
Copyright ©your name\nOur work is not Public Domain, and should NOT be taken
from this site."; // Message for the alert box

// Don't edit below!

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// --> </script>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,433
Messages
2,571,683
Members
48,796
Latest member
Greg L.

Latest Threads

Top