|
|
|
|
Thread title: Making my IMG undownloadable |
|
|
|
|
|
Thread tools
Search this thread
Display Modes
|
|
12-14-2006, 07:20 PM
|
#1
|
Status: I'm new around here
Join date: Oct 2006
Location:
Expertise:
Software:
Posts: 8
|
Making my IMG undownloadable
Hi there,
Is there a way to program html or php or even flash in a way that it is impossible for the end-user to right-click on an img and to download it?
thanks
|
|
12-14-2006, 07:28 PM
|
#2
|
Status: Superstar
Join date: Apr 2005
Location:
Expertise:
Software:
Posts: 4,449
|
Code:
<script language=JavaScript>
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
var message="Function Disabled!";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>
Easily thwarted, but it does the trick.
|
|
12-14-2006, 07:40 PM
|
#3
|
Status: I'm new around here
Join date: Oct 2006
Location:
Expertise:
Software:
Posts: 8
|
Thanks for the hack.
But on a mac you may always control-click to the img.
So do i understand that this function works on any mouseDowns? Even the control-clicks?
Is there another php or javascript way to efficiently limit the download of images.
I know it is possible for a QTmov to be embedded in flash and to secure flash in order to prevent the download of QTs.
Is the same is possible for img?
thanks so much
|
|
12-14-2006, 07:44 PM
|
#4
|
Status: I'm new around here
Join date: Oct 2006
Location:
Expertise:
Software:
Posts: 8
|
Actually, i just tried it and it work quite good!
I'll try to find any flaws to it.
|
|
12-14-2006, 07:52 PM
|
#5
|
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
Posts: 3,820
|
If someone can see the image in their browser, they've already downloaded the file.
|
|
12-14-2006, 09:02 PM
|
#6
|
Status: Pastafarian
Join date: May 2006
Location: Duct Taped to your Ceiling
Expertise:
Software:
Posts: 3,440
|
Put the image inside a flash object.
|
|
12-14-2006, 09:51 PM
|
#7
|
Status: Narassist
Join date: May 2005
Location: USA
Expertise:
Software:
Posts: 4,469
|
Originally Posted by Blue Ire
Put the image inside a flash object.
|
Can still take out the image..
|
|
12-14-2006, 09:58 PM
|
#8
|
Status: I'm new around here
Join date: Oct 2006
Location:
Expertise:
Software:
Posts: 8
|
So, Bennett,
Do you have a solution to propose to the world?
|
|
12-14-2006, 09:59 PM
|
#9
|
Status: Pastafarian
Join date: May 2006
Location: Duct Taped to your Ceiling
Expertise:
Software:
Posts: 3,440
|
Yes, but that's the way that requires the most effort, unless they just take a screenshot.
Honestly, I don't see what people are so worried about their images for. If someone wants it, there is nothing you can do to stop them.
|
|
12-15-2006, 12:47 AM
|
#10
|
Status: I'm new around here
Join date: Oct 2006
Location:
Expertise:
Software:
Posts: 8
|
It is actually quite easy to find some good commercial reasons why one would want to keep his or her work under distribution control.
But your absolutely right on that one, if someone really wants it, nothing will stop them.
Thanks for the tips.
|
|
|
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
|
|