English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

How do you prevent someone from right clicking a picture on your site,and taking it,or saving it.I have seen the answer before,but have misplaced it.Please send your expertise.Thanks!

2006-09-29 06:13:35 · 8 answers · asked by Sherry H 4 in Computers & Internet Security

8 answers

Here is a "no-right click" script. However, just know that you can never stop the experienced user from taking a picture. This will only slow down the amateurs.

2006-09-29 06:16:28 · answer #1 · answered by Jer 3 · 1 0

The only way is for it not to be a conventional picture but rather a (Eg:) flash object or signature file etc, pic must be converted.

You see, there may actually be a way to set up the page so that the save pic option is grayed out when right clicked on, (Depending on the HTML platform and format) but it doesn't matter anyway, 'cause anyone can quite easily take a screenshot and import it into a no# of programs that already come with windows.

Or JUST AS EASILY, people can just save the page from the explorer and take it apart in many ways after that.


The best Idea Is to put smaller thumbnails on the pages so the pics will be of no use to anyone.

2006-09-29 06:16:14 · answer #2 · answered by Spaghetti MY 5 · 0 0

You can go to Dynamicdrive.com and download a javascript that disables the use of the right mouse button on your web page. But, a savvy user can disable javascripting and still get to your picture.

You could also watermark the picture so that if the do take it, it still has information about the true owner.

2006-09-29 06:20:10 · answer #3 · answered by wava 1 · 0 0

from time to time you could fool some web pages through perfect clicking in yet another window then at the same time as holding down the right mouse button drag the pointer over the picture than launch. This only works from time to time.

2016-11-25 02:35:13 · answer #4 · answered by Anonymous · 0 0

If someone wants an image, there is no way to prevent it in the end.

var specialcase = ((navigator.userAgent.indexOf('Mac') != -1) || document.all)
var flag = 0;
var msg = 'This image is protected by copyright.\nWe request you not to copy it.';
var x,y,x1,y1,copyAttempt;

function init()
{
if (!(document.getElementById || document.all || document.layers)) return;
if (specialcase && document.layers)
{
document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = special;
}
for (i=0;i {
document.images[i].onmousedown = checkIt;
document.images[i].onmouseup = function() {return false};
if (specialcase)
{
document.images[i].onmousemove = special;
document.images[i].onclick = clearIt;
}
}
}

function checkIt(e)
{
copyAttempt = 0;
if (window.Event)
{
x = e.screenX;
y = e.screenY;
theButt = (e.which == 3);
}
else
{
x = window.event.clientX;
y = window.event.clientY;
theButt = (window.event.button == 2);
}
if (theButt)
{
copyAttempt = 1;
flag = 0;
alert(msg);
return false; // NN4 only
}
if (specialcase) flag = 1;
return false;
}

function special(e)
{
theObj = '';
if (window.Event)
{
x1 = e.screenX;
y1 = e.screenY;
if (e.target.parentNode) theObj = e.target.parentNode.tagName;
}
else
{
x1 = window.event.clientX;
y1 = window.event.clientY;
theObj = window.event.srcElement.parentElement.tagName;
}
var isLink = (theObj == 'A');
if (flag && (!isLink || ((Math.abs(x-x1) > 10) || (Math.abs(y-y1) > 10))))
{
copyAttempt = 1;
flag = 0;
alert(msg);
return false;
}
}

function clearIt()
{
flag = 0;
if (copyAttempt)
{
copyAttempt = 0;
return false;
}
}

and call function init() onLoad:

2006-09-29 06:16:58 · answer #5 · answered by Anonymous · 0 0

my advice would be to photoshop some type of wording or copyright across the picture... this would alter the looks of the picture a bit, however, people would be less likely to copy it... or you can add some type of disclaimer on your page abou the legality of illegally copying pictures... but like everyone says, if you don't want people stealing them, then don't post them in a publicly accessed page

2006-09-29 06:24:31 · answer #6 · answered by B-rad 2 · 0 0

Put this inbetween the and tags....

2006-09-29 06:16:36 · answer #7 · answered by Anonymous · 0 0

what if you embedded the picture into a pdf ?

2006-09-29 06:15:31 · answer #8 · answered by Strangerbarry 4 · 0 1

fedest.com, questions and answers