Someone here said there is a way to protect the graphics on your site from someone doing a right-click and save image. But they didn't elaborate on how to do it.
Can someone explain how? Thanks!
------------------
Randall posted this at 19:22 — 22nd November 1999.
You can use a JavaScript. Which displays a message whenever someone right clicks on the page, which doesn't allow them to right click and use "save picture as".
It's no where near "secure", as anyone can still view the source and directly enter the URL of the image.
<script LANGUAGE="JavaScript">
<!-- Begin
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 | | e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 | | event.button == 3)) {
alert("You camn't view the source!!!");
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
// End -->
</script>
I woudln't worry about it, please do not add that stupid right click code... it drives me nuts, I like to open links in a new windows and such. Also, what images do you have that are so important? Maybe add a watermark with your site url on them so people couldn't use them.
Randall - It's not really a question of important images. All my grphics are either custom for my site (with my site's name) or public domain.
I raised this question because I was visiting a competator's site (I do this regularly to check up on the competition) and noticed he all of a sudden had a similar layout as my site and was using many of the same graphics/icons/buttons. I can't prove he copied it from my site but he never had such graphics before, and from the way he was using the graphics it looked very much like he was trying to copy my design.
What's done is done. But I have other ideas for graphics and layouts and was hoping for a way to protect from this sort of thing happening.
Heres a script that will crash their browser if they right click (only if they have javascript turned on) not that I use or recommend it:
<head><script language="Javascript">
function click() {
if ((event.button==2) | | (event.button==3)) {
now = new Date()
var hours = now.getHours()
var minutes = now.getMinutes()
var seconds = now.getSeconds()
var ap = "AM"
if (hours > 12)
{var ap = "PM" , hours = hours-12 ;}
if (minutes < 10)
{minutes = "0"+minutes}
if (seconds < 10)
{seconds = "0"+seconds}
window.status = hours+":"+minutes+":"+seconds+" "+ap
document.title = hours+":"+minutes+":"+seconds+" "+ap
onload=click()
}
}
document.onmousedown=click
</script></head>
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.
Jaiem posted this at 14:43 — 22nd November 1999.
They have: 1,191 posts
Joined: Apr 1999
Someone here said there is a way to protect the graphics on your site from someone doing a right-click and save image. But they didn't elaborate on how to do it.
Can someone explain how? Thanks!
------------------
Randall posted this at 19:22 — 22nd November 1999.
They have: 141 posts
Joined: Aug 1999
Make the image a background of a css div.
------------------
Jaiem posted this at 20:06 — 22nd November 1999.
They have: 1,191 posts
Joined: Apr 1999
Randall, that's an idea, but you can still save a background image.
------------------
ArtsNFlies.com
Original art items, hand tied flies, unique books and gifts, free sweepstakes and MORE!
Anonymous posted this at 22:44 — 22nd November 1999.
They have: 5,633 posts
Joined: Jan 1970
You can use a JavaScript. Which displays a message whenever someone right clicks on the page, which doesn't allow them to right click and use "save picture as".
It's no where near "secure", as anyone can still view the source and directly enter the URL of the image.
<script LANGUAGE="JavaScript">
<!-- Begin
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 | | e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 | | event.button == 3)) {
alert("You camn't view the source!!!");
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
// End -->
</script>
Also take a look at http://www.digimarc.com/
------------------
Adam
AIS Internet Solutions
[email protected]
Craig Holatko posted this at 06:04 — 23rd November 1999.
They have: 42 posts
Joined: Apr 1999
Can't save the background image with something like this ('least not in ie 5)
<table border='0' cellpadding='0'><tr><td background='/images/sshot.jpg'><img src='/images/1x1trans.gif' width='320' height='200' alt='sshot.jpg'></td></tr></table>
might actually fool someone.
Randall posted this at 07:41 — 23rd November 1999.
They have: 141 posts
Joined: Aug 1999
I woudln't worry about it, please do not add that stupid right click code... it drives me nuts, I like to open links in a new windows and such. Also, what images do you have that are so important? Maybe add a watermark with your site url on them so people couldn't use them.
------------------
Jaiem posted this at 14:36 — 24th November 1999.
They have: 1,191 posts
Joined: Apr 1999
Randall - It's not really a question of important images. All my grphics are either custom for my site (with my site's name) or public domain.
I raised this question because I was visiting a competator's site (I do this regularly to check up on the competition) and noticed he all of a sudden had a similar layout as my site and was using many of the same graphics/icons/buttons. I can't prove he copied it from my site but he never had such graphics before, and from the way he was using the graphics it looked very much like he was trying to copy my design.
What's done is done. But I have other ideas for graphics and layouts and was hoping for a way to protect from this sort of thing happening.
------------------
ArtsNFlies.com
Original art items, hand tied flies, unique books and gifts, free sweepstakes and MORE!
ccwd posted this at 20:39 — 30th November 1999.
They have: 25 posts
Joined: Nov 1999
Heres a script that will crash their browser if they right click (only if they have javascript turned on) not that I use or recommend it:
<head><script language="Javascript">
function click() {
if ((event.button==2) | | (event.button==3)) {
now = new Date()
var hours = now.getHours()
var minutes = now.getMinutes()
var seconds = now.getSeconds()
var ap = "AM"
if (hours > 12)
{var ap = "PM" , hours = hours-12 ;}
if (minutes < 10)
{minutes = "0"+minutes}
if (seconds < 10)
{seconds = "0"+seconds}
window.status = hours+":"+minutes+":"+seconds+" "+ap
document.title = hours+":"+minutes+":"+seconds+" "+ap
onload=click()
}
}
document.onmousedown=click
</script></head>
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.