controlling the copying of images from a site

J

Jerry Stuckle

Nico said:
No guarantee, but you can make it difficult for most of them.




My knowledge of Javascript is limited, but have a look in IE6 at
http://www.nicoschuyt.nl/test/thumb_large.htm

And, yes, I know the image is in the cache, but 99.9% of your visitors don't
know what 'cache' is, let alone they can find a file there :)

Better however: Prevent Google to index the pictures and place a watermark
on the large image

??? Took me about 4 seconds to save it to disk in IE. Even less in Firefox.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
(e-mail address removed)
==================
 
N

Nico Schuyt

??? Took me about 4 seconds to save it to disk in IE. Even less in
Firefox.

Way too long (drag into the address bar with left mouse ; right click save
as).
But it's not relevant. What I tried to illustrate is that it is possible to
confuse the visitor by letting him download something else than he expects.
 
J

Jerry Stuckle

Nico said:
Way too long (drag into the address bar with left mouse ; right click save
as).
But it's not relevant. What I tried to illustrate is that it is possible to
confuse the visitor by letting him download something else than he expects.

Hey - I had to wait for it to load! :)

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
(e-mail address removed)
==================
 
J

Jonathan N. Little

Nico said:
No guarantee, but you can make it difficult for most of them.


My knowledge of Javascript is limited, but have a look in IE6 at
http://www.nicoschuyt.nl/test/thumb_large.htm
<img alt="" src="img_large.jpg" width="261" height="550"
ONMOUSEDOWN="if ((document.layers && event.which == 3) ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
?
(document.all && event.button == 2)) saveAsMe('somethingelse.txt'); return
false;">


function saveAsMe (filename){
document.execCommand('SaveAs',null,filename)
^^^^^^^^^^^
?
}

Why bother with testing for old Netscape? "execCommand" crap is only
something MS dreamt up! Your example will only work in IE, so you'd only
be confusing folks who are confused already! ;-)
 
S

Satya

You can follow nico advice by placing one image over another.
Place fully transparent image at the top of your desired image.
That fully transparent image will be of 1*1 bit size. and using width,
height property,
you can stretch it to your desired image size.
That way when user try to copy ur image then he will get the one bit
image.
But a clever user/programmer can go to source code and use the link of
your org. image.
Bye
 
J

Jonathan N. Little

Satya said:
You can follow nico advice by placing one image over another.
Place fully transparent image at the top of your desired image.
That fully transparent image will be of 1*1 bit size. and using width,
height property,
you can stretch it to your desired image size.
That way when user try to copy ur image then he will get the one bit
image.
But a clever user/programmer can go to source code and use the link of
your org. image.

Still very lame protection, does not require one to be a programmer nor
that clever, just savvy enough not to use IE. Gecko browsers have
built-in function "Page-Info" where you can get a listing of a page's
media where both the masking transparent GIF and the desired image will
be listed and downloadable. Opera and Safari may have similar features.
And regardless, with any browser you will find it within your cache
unless you've disabled it...

Don't what someone to download you images, then don't put time on a web
page. The only sure fire way.
 
P

Petr Vileta

Satya said:
You can follow nico advice by placing one image over another.
Place fully transparent image at the top of your desired image.
That fully transparent image will be of 1*1 bit size. and using width,
height property,
you can stretch it to your desired image size.
That way when user try to copy ur image then he will get the one bit
image.
But a clever user/programmer can go to source code and use the link of
your org. image.

Or any clever BFU go to browser menu and click on "Save as..." :)))
This is "Mission Impossible"

--
Petr

Skype: callto://fidokomik

Na mail uvedeny v headeru zpravy nema cenu nic posilat, konci to v PR* :)
Odpovidejte na petr na practisoft cz
 
D

denisb

Petr Vileta said:
Or any clever BFU go to browser menu and click on "Save as..." :)))
This is "Mission Impossible"

what about this ?

<http://www.circaete.net/selection.php?i=p01>
<http://www.circaete.net/selection.php?i=p02>
<http://www.circaete.net/selection.php?i=p03>


"structure of server" :

base_server [private]
*__ p01.jpg
*__ p02.jpg
*__ p03.jpg
\__ web [public]
*__ montre.php
*__ selection.php


"montre.php" :

<?php
$verif = array(p01,p02,p03);
$url = in_array( $_GET['i'], $verif ) ? '../'.$_GET['i'].'.jpg' : '';
echo file_get_contents( $url );
?>


"selection.php" :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>s&eacute;lection</title>
<style type="text/css">
BODY {
background-image:url(montre.php?i=<?php echo $_GET['i']; ?>);
background-repeat:no-repeat;
margin:0;
padding:0;
}
</style>
</head>
<body>
</body>
</html>


it's still possible to copy the image, but it's a little more
complicated.
 
D

denisb

Bergamot said:
With mozilla, it still only takes a few seconds to save the image at
http://www.circaete.net/selection.php?i=p01
Just go to the media tab in Page Info (CTRL+I). Easy peasy.

Yes.

ok ok ok... to clarify :
**I** do not want to protect my images.
I know it is not possible.
I never protected my images on the net than with a watermark.


I would have never to speak in this thread (already closes and where all
was already known as)
 
J

Jonathan N. Little

denisb said:
yes.
I know "it doesn't work"...

Then I do not understand the exercise.
what I have **in mozilla** when I go at
<http://www.circaete.net/montre.php?i=p01> is :

<http://www.circaete.net/result.jpg>

because montre.php voluntarily doesn't send jpeg headers.

but **IE** recognizes a file by extension...

Thats 'cuz IE is Windows centric and Mozilla is not. The Internet is not
Windows centric. But even with IE when is saves as montre.html all you
have to do is rename to montre.jpg (If you don't have the damn Windows
default of hide extensions for known types enabled)
 
D

David Gillen

An noise sounding like Dylan Parry said:
Yes there is.
Set your src="" to a script, say image.php?id=slkru103870w8

You can then check the referrer. If the referrer is anything other than your
page, send them junk. That way people can't even link to you images outside of
your site.

D.
 
D

Dylan Parry

David said:
Yes there is.

No there isn't.
You can then check the referrer. If the referrer is anything other than your
page, send them junk. That way people can't even link to you images outside of
your site.

That isn't going to stop someone from saving the image, or from hitting
print screen and pasting the image into their favourite image editor.

--
Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk

Programming, n: A pastime similar to banging one's head
against a wall, but with fewer opportunities for reward.
 
D

David Gillen

An noise sounding like Dylan Parry said:
No there isn't.


That isn't going to stop someone from saving the image, or from hitting
print screen and pasting the image into their favourite image editor.
Fine then, convert the image pixel by pixel into a 1x1pixel table cells with
matching background color.
Thereby having no image on your page at all for them to save.

So, yes there is.

D.
 
J

Jerry Stuckle

David said:
An noise sounding like Dylan Parry said:


Yes there is.
Set your src="" to a script, say image.php?id=slkru103870w8

You can then check the referrer. If the referrer is anything other than your
page, send them junk. That way people can't even link to you images outside of
your site.

D.

Additionally, many browsers and firewalls block the referrer.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
(e-mail address removed)
==================
 

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
473,792
Messages
2,569,639
Members
45,353
Latest member
RogerDoger

Latest Threads

Top