How Can I Protect Images I Upload Online?

Asked By 10 points N/A Posted on -
qa-featured

I have a photo blog (blogger platform). Is there a way that I can disable the right click to avoid the photos from being saved on different computer?

SHARE
Answered By 0 points N/A #107591

How Can I Protect Images I Upload Online?

qa-featured

Your problem is one of the most common problem users like you encounters on web pages. But, glad to say, there is way to overcome this problem.

If you will try to right click an image of yours in which codes is used, there will pop a message box which will inform you that right click copying has been disabled. Another way is to open a new text document (you can either use Notepad or HTML editor). Next you need to COPY/PASTE the following code that I will give you.
 
CODE: 
 
<head>
 
<SCRIPT language="JavaScript">
<!–
var message="Thank you for visiting my site.";
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// –>
</SCRIPT>
 
</head>
 
After you had entered the above code, you need to save the file with an .htm extension. Just as easy as that. All you need to do is to follow the steps I give to solve your problem.

Login/Register to Answer

Related Questions