Forum Moderators: mack
<body oncontextmenu="return flase" onselectstart="return false" ondragstart="returnflase">
I guess my question is: Are there any workarounds for it? I used it locally on my macine and it seems to work but will disabling javascript on the browser deem this useless? I realize that by putting stuff on the web i am opening myself for theft of content, graphics etc.. but i'd like to do as much as possible to prevent it.
thanks in advance..
--esteban
This META tag will block the toolbar in IE6:
<meta http-equiv='imagetoolbar' content='no'>
This script will block the content menu from poping up on a right-click, but like you said, if JavaScript is disabled...
<SCRIPT language='JavaScript' type='text/JavaScript'>
<!--
function click(e)
{
if (document.all)
if (event.button == 2)
return false;
if(document.layers)
if (e.which == 3)
return false;
}
function click2()
{
event.returnValue=false;
return false;
}
if (document.layers)
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=click;
document.oncontextmenu=click2;
// -->
</SCRIPT>
Stop browser cache (this one's tricky):
<meta http-equiv='Pragma' content='no-cache'>
<meta http-equiv='Expires' content='-1'>
The trick is that you have to do it again at the bottom of the page because you can't clear the cache unless there is something in it:
...
</body>
<head>
<meta http-equiv='Pragma' content='no-cache'>
<meta http-equiv='Expires' content='-1'>
</head>
</html>
I have a few other tricks in ASP, mainly redirects for people who try to bookmark and "Make available offline" for the site, and using <frame src=""> to call a script to load the image which was really tough.
Anyway, have fun trying to protect those images. I'm finding that there are fewer people trying to download than you think, and taking simple steps to slow them down usually stops them all together.
TMI