|
-
May 15th, 2002, 11:41 AM
#1
Thread Starter
Addicted Member
Disable right click?
Whats the HTML to disable the right click function? People keep stealing my graphics.
-
May 15th, 2002, 12:09 PM
#2
Thread Starter
Addicted Member
Is there HTML for this:
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>
I'm not allowed to use Java on this page
-
May 15th, 2002, 12:39 PM
#3
Black Cat
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.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
May 15th, 2002, 12:52 PM
#4
Thread Starter
Addicted Member
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.
-
May 15th, 2002, 01:32 PM
#5
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.
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.
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.
-
May 15th, 2002, 01:47 PM
#6
Frenzied Member
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.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
May 15th, 2002, 01:48 PM
#7
Thread Starter
Addicted Member
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
-
May 15th, 2002, 01:50 PM
#8
true but with that .htaccess file they can't link to them from outside your site. which is what is taking your bandwidth
-
May 15th, 2002, 02:03 PM
#9
Thread Starter
Addicted Member
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.
-
May 16th, 2002, 10:01 AM
#10
Frenzied Member
A link on different techniques to discourage or slow the lifting on images from a web page.
http://www.wildlifephoto.net/digital/copyright1.html
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
May 16th, 2002, 10:42 AM
#11
Black Cat
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...
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
May 16th, 2002, 12:15 PM
#12
Thread Starter
Addicted Member
Thank you guys *mwah*s all around
-
May 17th, 2002, 12:18 AM
#13
Fanatic Member
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.
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.
-Matt
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|