View Full Version : Image Stealing


Brown_Eyed_Girl
06-24-2003, 02:24 AM
I make my own graphics and I was wondering..what is the tag to prevent people from right clicking and stealing my images?

SSPrincess
06-24-2003, 02:32 AM
No right clicking has come up alot. Next time search the forum. Anyway, here a code:
<script language="JavaScript1.2">
//original author unknown
//modified by, and displayed on www.a1javascripts.com
if (window.Event)
document.captureEvents(Event.MOUSEUP);

function nocontextmenu()
{
event.cancelBubble = true
event.returnValue = false;

return false;
}

function norightclick(e)
{
if (window.Event)
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}

}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.oncontextmenu = nocontextmenu;
document.onmousedown = norightclick;
document.onmouseup = norightclick;
//-->
</script>


Keep in mind, people do find ways to steal pictures, so the only way to keep pictures as your property would be to copyright them.

Hope I was helpful!

elfenheroin
06-24-2003, 04:45 AM
But if the person who wants to steal the pic knows that if you highlight it then click on Edit > Copy then he would still have your pics. *goes to look for code*

<script language="JavaScript1.2">

//Disable select-text script (IE4+, NS6+)- By Andy Scott

function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>

Add that to you site with the no right click script ^_^

Lissa
06-24-2003, 01:10 PM
But, in the end, if they really want your image, they can find it in the temporary internet folder on their computer. All images from Web sites you view download into that folder. Most people know this :(

bellportal
06-24-2003, 02:06 PM
If your host supports '.htaccess' try Lissa's page:

http://www.lissaexplains.com/html6.shtml#direct

HTH.

SSPrincess
06-24-2003, 03:36 PM
Wow! I didn't know there was a code to stop the select-edit-copy!!! But does '.htaccess' prevent the temporary internet files from going onto your computer? And exactly where can I find temporary interent files on my computer...*just got an idea*....:D

zangerbanger
06-24-2003, 06:47 PM
You can find a silent-no right click script off of dynamic drive :) .

MaGiCSuN
06-24-2003, 06:48 PM
Originally posted by Lissa
All images from Web sites you view download into that folder. Most people know this :(

it's needed to view the site. so nope you can't prevent that. Like i say "think before you act" just think if you really think the image is worth putting on the net. Otherwise don't spent no-right-click scripts on it or something, becuase that makes people even more curious to 'get it'

Love,
Mirna

adrielle
06-25-2003, 07:01 AM
or, if they DIDN't know that, they could click Print Screen then go to wherever and crop out the image...:(, isn't that tragic??? the way people steal images????

Jiggawot
06-25-2003, 07:51 AM
There's really no way to protect your images. Thieves can view source, use print screen, etc. The best way is to watermark them. ^_~