As a thought for anyone who wants to play with the php script then please go and get a copy of the code from
http://www.thesitewizard.com/archive/prote...ectimages.shtmlI cannot place it here due to copyright, but you are free to pick up a copy and modify it.
Set up the initial variables at the front to;
QUOTE
$imagedir = "/home/myhost/public_html/hidden/images/" ;
$validprefixes = array (
"myhost.com",
"www.myhost.com"
) ;
$homepage = "http://www.myhost.com/" ;
note: the /hidden/images/ can be any directories that you create.
If you modify the line
QUOTE
if (empty($referrer) ||
isreferrerokay( $referrer, $validprefixes )) {
to
QUOTE
if ( isreferrerokay( $referrer, $validprefixes )) {
then it will stop somebody picking up the image direct from your site using your code.
you can see the source code for
test3.htm and
test4.htm by looking direct on the website.
The key bits are;
QUOTE
<body onload=setInterval("window.clipboardData.setData('text','')",20) onkeypress="MM_callJS('self.close()')" onkeydown="MM_callJS('self.close()')" onmousedown="MM_callJS('self.close()')">
which closes the window on any mouse or keyboard clicks and stops use of the print screen.
These only work for IE, but you could put a check in for browser type and use similar commands for other browser types - if only I knew what they were

The clever bit of splitting the image in two, and using a semi transparent image so that two horrible looking pictures when placed together made a perfect picture was down to Tracy. This effectively means that the temp file at least only has two halves of a picture in, and the thief has to work out how to put it together - as turtle did

Anyway, I must pop off and catch up with a couple of other things, but I'm sure I'll be back to play with this challenge again at some point

Andy