Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1243 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

Making my IMG undownloadable

Thread title: Making my IMG undownloadable
Closed Thread  
Page 1 of 2 1 2 >
    Thread tools Search this thread Display Modes  
12-14-2006, 07:20 PM
#1
jeanmichel is offline jeanmichel
Status: I'm new around here
Join date: Oct 2006
Location:
Expertise:
Software:
 
Posts: 8
iTrader: 0 / 0%
 

jeanmichel is on a distinguished road

  Old  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
Jeff Andersen is offline Jeff Andersen
Status: Superstar
Join date: Apr 2005
Location:
Expertise:
Software:
 
Posts: 4,449
iTrader: 10 / 100%
 

Jeff Andersen is on a distinguished road

  Old

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
jeanmichel is offline jeanmichel
Status: I'm new around here
Join date: Oct 2006
Location:
Expertise:
Software:
 
Posts: 8
iTrader: 0 / 0%
 

jeanmichel is on a distinguished road

  Old

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
jeanmichel is offline jeanmichel
Status: I'm new around here
Join date: Oct 2006
Location:
Expertise:
Software:
 
Posts: 8
iTrader: 0 / 0%
 

jeanmichel is on a distinguished road

  Old

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
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

If someone can see the image in their browser, they've already downloaded the file.

12-14-2006, 09:02 PM
#6
Awesome is offline Awesome
Awesome's Avatar
Status: Pastafarian
Join date: May 2006
Location: Duct Taped to your Ceiling
Expertise:
Software:
 
Posts: 3,440
iTrader: 26 / 93%
 

Awesome is on a distinguished road

  Old

Put the image inside a flash object.

12-14-2006, 09:51 PM
#7
Bennett is offline Bennett
Status: Narassist
Join date: May 2005
Location: USA
Expertise:
Software:
 
Posts: 4,469
iTrader: 32 / 100%
 

Bennett is on a distinguished road

Send a message via MSN to Bennett

  Old

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
jeanmichel is offline jeanmichel
Status: I'm new around here
Join date: Oct 2006
Location:
Expertise:
Software:
 
Posts: 8
iTrader: 0 / 0%
 

jeanmichel is on a distinguished road

  Old

So, Bennett,

Do you have a solution to propose to the world?

12-14-2006, 09:59 PM
#9
Awesome is offline Awesome
Awesome's Avatar
Status: Pastafarian
Join date: May 2006
Location: Duct Taped to your Ceiling
Expertise:
Software:
 
Posts: 3,440
iTrader: 26 / 93%
 

Awesome is on a distinguished road

  Old

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
jeanmichel is offline jeanmichel
Status: I'm new around here
Join date: Oct 2006
Location:
Expertise:
Software:
 
Posts: 8
iTrader: 0 / 0%
 

jeanmichel is on a distinguished road

  Old

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.

Closed Thread  
Page 1 of 2 1 2 >


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed