...

View Full Version : Image Theft Protection for IE and FF



Tim2680
10-20-2009, 07:33 AM
Ive read and read about this topic across the web.// To stop image theft and copyright infringements with the best solutions to prevent image theft. And seemed to come across the best solution to protect your images is to not post them on the web at all :D.

However the task im trying to accomplish is to stop IE from right clicking and also Firefox from dragging the image to desktop. 90% of my website community are IE and Firefox users. So im comfortable if I secure those two browsers. All in all i know that does not protect the images from another method. But anyhow here is my quesion - I use the following code to stop IE from right clicking but what solution can I add to it to prevent FireFox users from simply clicking and dragging the image to thier desktop? If anyone has any other suggestions would be greatly appreciated as well. Thanks in advance for any help!



<script type="text/javascript">
<!--

function IE(e)
{
if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3"))
{
return false;
}
}
function NS(e)
{
if (document.layers || (document.getElementById && !document.all))
{
if (e.which == "2" || e.which == "3")
{
return false;
}
}
}
document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false");

//-->
</script>
</body>
</html>

godofreality
10-20-2009, 07:40 AM
your question should be in the javascript section and not the php section since it has nothing to do with php at all and as far as i am aware there really is no real way of preventing sum1 from taking the images and even using the javascrip t to turn off right clicking all a person would have to do is disable javascript then all of the coding u r working on to prevent a person from right clicking won't work anyways

Phil Jackson
10-20-2009, 07:42 AM
godofreality << tells the truth



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum