Image protection

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

roalex

Thread Starter
Joined
Mar 21, 2004
Messages
118
Hi everybody!

here is my question I am building my website in dreamweaver, but i have images in there that i do not want to be printed by people who visit my site what do i have to do to create such a protection?

Thank you

Roalx
 
Joined
Apr 30, 2006
Messages
333
So you dont want images to be copied or printed? Well there is code to stop people right-clicking on images. With the printing, the only thing I can think of is a print css file but I dont think that will affect images.
 

roalex

Thread Starter
Joined
Mar 21, 2004
Messages
118
thank you can you tell me what the code would be to stop the right click?
and avoid the copy or printin of the image.

thank you again
 
Joined
Apr 30, 2005
Messages
3,012
matt-h said:
So you dont want images to be copied or printed? Well there is code to stop people right-clicking on images. With the printing, the only thing I can think of is a print css file but I dont think that will affect images.
Tell CSS not to display the image if printed, that will work ;)

In your CSS file put this:

@media print {
img { visibility: hidden; }
}

Then all images won't show up when printed.
 
Joined
Apr 30, 2006
Messages
333
Put in the <body> section. Edit "var message="Function Disabled!" to whatever you want.

Code:
<script language=JavaScript>
<!--

//Disable right mouse click Script
//By Maximus ([email protected]) w/ mods by DynamicDrive
//For full source code, visit [url]http://www.dynamicdrive.com[/url]

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>
 
Joined
Apr 30, 2005
Messages
3,012
That's just the thing though, NOTHING can prevent saving images to your computer.
There is always a way to get the image.
 
Joined
Oct 9, 2001
Messages
27,087
There is absolutely no possible way to eliminate a person from stealing your images. None. You can make it slightly more difficult, but it's impossible to stop.
 

DoubleHelix

Banned
Joined
Dec 9, 2004
Messages
24,388
Professionals put watermarks on their pictures so when someone saves or prints the picture, it's clear who the original creator is.
 
Joined
Oct 10, 2006
Messages
550
Any image you want, you can just hit the Print Screen button on your keyboard, open MS Paint, Paste, from there, you can just cut and past the picture, save it and rename it...

There is always a way...
 
Joined
Oct 9, 2001
Messages
27,087
That, and it's probably already in your temporary internet files cache directory.
 

MMJ

Guest
Joined
Oct 15, 2006
Messages
3,625
If you are displaying an image on your website than the browser will download it to your computer, no matter what. Basically if you see the image then you have the image.

I would go with the watermark solution.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Members online

Top