Whats the HTML to disable the right click function? People keep stealing my graphics.
Printable View
Whats the HTML to disable the right click function? People keep stealing my graphics.
Is there HTML for this:
I'm not allowed to use Java on this page :(Code:<script name='Javascript'>
<!--
function right( val ) {
if (navigator.appName == 'Netscape' && (val.which == 3 || val.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("If you want to buy an item, use the left mouse button :)");
return false;
}
return true;
}
document.onmousedown = right;
document.onmouseup = right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown = right;
window.onmouseup = right;
//-->
</script>
This one needs to be in a FAQ - too bad we're all too lazy to write one.:(
Anyway - there's no 100% foolproof way of stopping people from stealing your graphics - IMHO, most ways of making this more difficult are so trivially beaten they are not worth implementing.
Yeah, I know that, but not everyone knows how to. I keep getting e-mails that i'm exceeding my bandwidth limit, because people are using my images.
you can stop them from doing that with a .htaccess file.
and why can't you use javascript? and if html could do that then we wouldn't need java or javascript anymore.
for the .htaccess file look into rewritemode.
http://httpd.apache.org/docs/misc/rewriteguide.html
and scroll down to "Blocked Inline-Images"
if you can't use javascript and you can't use .htaccess files I would move to another server as the one you have sucks.
and that is totally wrong. if the user is making a page and using you image on a link in thier site then they will know how to click on View -> source and get the url of that image. plus just 2 cliks of my keyboard and I can by-pass your right click.Quote:
Originally posted by rinoaheartilly
Yeah, I know that, but not everyone knows how to. I keep getting e-mails that i'm exceeding my bandwidth limit, because people are using my images.
This sounds like people are linking to your pictures, not necessarily saving them. In that case, do what Scoutt is suggesting.Quote:
Originally posted by rinoaheartilly
Yeah, I know that, but not everyone knows how to. I keep getting e-mails that i'm exceeding my bandwidth limit, because people are using my images.
I know, I can get past them too, just right click and press enter at the same time. I just wanna put people off, if they're that desperate for my pictures then they'll get them anyway
true but with that .htaccess file they can't link to them from outside your site. which is what is taking your bandwidth
Yeah, I'm taking a look now.
It's for my guild, on neopets, and we aren't allowed to use Java, because people are usign it to create fake loginpages, so that they can steal other people's accounts.
A link on different techniques to discourage or slow the lifting on images from a web page.
http://www.wildlifephoto.net/digital/copyright1.html
Periodically change the file names of all your pictures and correct the links - then put some offensive or disgusting images as the original file names...
Thank you guys :) *mwah*s all around :)
JavaScript and Java are two seperate things. Javascript is client side and therefore would not be banned from your server as your server does not run it wherease Java is server side and could easily be banned from use.Quote:
Originally posted by rinoaheartilly
Yeah, I'm taking a look now.
It's for my guild, on neopets, and we aren't allowed to use Java, because people are usign it to create fake loginpages, so that they can steal other people's accounts.
-Matt