householdsix
Jul 26 2005, 02:58 PM
Is there a way to disable this? I have seen it done on things like blogs, but is it possible with IPB 2.0.4?
cthree
Jul 26 2005, 03:56 PM
www.hotscripts.com
.Logan
Jul 26 2005, 04:09 PM
There's tons of scripts which can be used to disable right click.
To do it on your board, try putting one of them in your board footer/wrapper.
Here's one:
CODE
<script language=JavaScript>
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
var message="Function Disabled!";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>
Not sure if it works in all browsers though, hard to find ones that do.
Dan C
Jul 26 2005, 04:29 PM
However, they are quite possibly, within the top 10 most irritating and top 10 most useless javascripts ever to be created.
.Logan
Jul 26 2005, 04:32 PM
It's very true, because they don't do anything. You can't stop people from viewing the source, copying, or taking images. CTRL+C to copy, Edit > View Source for the source and images.
As Dan said, they are completely useless. So really 'householdsix' there's no point in using them.
.Kris
Jul 26 2005, 05:37 PM
Firefox has Page Info under Tools which you can view all the stuff.
FLGN
Jul 26 2005, 07:22 PM
It is useless and annoying. Good luck annoying your guests with it. I strongly suggest you do not use it.
marcele
Jul 26 2005, 07:47 PM
Its really impossible to do .. all a user has to do is turn off javascript and your protect code is useless..
Saviah Wildlife
Jul 26 2005, 07:50 PM
I agree, too many workarounds and the script is simply annoying as can be.
//Nathan
Jul 26 2005, 07:54 PM
Yeah, you'll scare people off if all of a sudden your site is taking control of their computer. That's what it will feel like to the end user. "Whaddaya mean I can't right click? well F you, I'm going elsewhere". Been there done that. Now I use Firefox, and in the Javascript options, you can stop Java from disabling or altering the context menu. There are a few scripts which trip it up, but the Firefox extension "Allow right click" sorts it for good. That Firefox outright blocks the no-right-click scripts and there's an extension to perfect the blockage, should be a testament to how the general Internet community feels about those scripts. They're a rung above spyware on the Internet food chain. IMHO.
Quillz
Jul 27 2005, 12:20 AM
A no right-click code is like a locked door in the middle of an open field.
Bazza
Jul 27 2005, 02:47 AM
A good tip i came across once though never used was to add some comments at the top of the source code such as
//Your IP Address has been logged, Please do not steal my code//
Or words to that effect then followed up by about 50 line breaks so that when somebody clicks to view source all they initially get is what you put in your comments at the start of the page and a blank screen, Quite clever i thought.
Obviously if somebody notices that they can just scroll down the page then so be it like it has already been said you will not stop people from stealing code. But this may just foil a few lamers.
TMF Group
Jul 27 2005, 03:03 AM
Two rules to live by...
1. If you wear a low cut top and a push-up bra people will stare at your boobs.
2. If you put images on the net, people will lift them.
It is human nature... get over it and quite complaining (in both circumstances,)
.om
Jul 27 2005, 03:37 AM
Its one wasted feature useful to bug the end users. If you are quite sore of the fact that people are visit your site, go ahead and disable rt click
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.