SMF For Free Support Forum

SMF For Free Support => SMF For Free Codes and Support => Topic started by: $H-GAGE$ on October 25, 2006, 03:09:57 am

Title: No Right Clicking..............
Post by: $H-GAGE$ on October 25, 2006, 03:09:57 am
hey yaar, does anyone kno the code for the thing that if anyone on my website right-clicks than it pop ups and says "Not right-clicking alowwed"
Title: Re: No Right Clicking..............
Post by: simply sibyl on October 25, 2006, 04:49:17 am
hey yaar, does anyone kno the code for the thing that if anyone on my website right-clicks than it pop ups and says "Not right-clicking alowwed"
hi $H-GAGE$  :)
To be honest with you,  disabling right mouse clicking is redundant.
If a person wants to copy your pics, etc there are so many other ways to do it,  print screen, saving the page, etc etc etc....
Also every time they come to your page(s) copiies of the pics, etc are copied to their hard drive into temp internet files.  They already have them :) 
I know that is not the answer you were looking for,  but you should know before bothering to put a code in that really doesn't help all that much.  If someone wants something, there is always a way.
Title: Re: No Right Clicking..............
Post by: Sassy on October 25, 2006, 07:23:34 am
I use it on mine.  I got my code here: http://www.dynamicdrive.com

whether its a false sense of security or not Sibyl, sometimes it makes the members feel better about posting things, as well as the staff ;)
Title: Re: No Right Clicking..............
Post by: simply sibyl on October 25, 2006, 12:57:21 pm
I use it on mine.  I got my code here: http://www.dynamicdrive.com

whether its a false sense of security or not Sibyl, sometimes it makes the members feel better about posting things, as well as the staff ;)

Just making him aware Sassy  :)
It also makes it very annoying in certain browsers (Opera for example)
As well as making cut and paste in your browser by use of the context menu while writing a post impossible.
Yes I know, there are other ways to copy/paste but for those who are used to doing so thru the context menu and
are stopped because the site owner doesnt want thei graphicis copied its abit annoying.    Sites do lose people because of this.

My own feelings on the whole issue of "protecting images" on a website are this.
If you are running a site that is a business, and selling the graphics that are on your site -  then yes,  you need to protect them from "theft"

If you are not,  then its an open field out here.     

If someone decides to take my banner for instance.   Now I worked hard on that silly thing and Ild rather no one did,  but if they did and used it on thier own site (after some editing)  sooner  or later someone would see and after being at my site and KNOW where they got it from and figure they could have at least been more original instead of using someone elses work.    It all bites ya in the butt sooner or later.

.. and its just graphics afterall.     The only way to stop anyone from "stealilng" graphics on the net is to NOT post them to begin with

:)
Title: Re: No Right Clicking..............
Post by: Crasy on October 25, 2006, 01:55:50 pm
Well, anyways here the code. However I do agree with Sibyl. Plus this code can be completely disabled and rendered useless by anyone that knows how to turn of Javascript on their browser. However if you feel like protecting your site from everyone else here's the code:

Code: [Select]
<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(Sorry, right clicks are disabled);return false")

// -->
</script>
Title: Re: No Right Clicking..............
Post by: simply sibyl on October 25, 2006, 02:47:07 pm
  Plus this code can be completely disabled and rendered useless by anyone that knows how to turn of Javascript on their browser. However if you feel like protecting your site from everyone else here's the code:

 

Good point crasy.   Nowadays it is recommended, and wize to have javascript turned off.
Alot do, and the right click code will , as you said, be useless.
Title: Re: No Right Clicking..............
Post by: Sassy on October 25, 2006, 05:28:27 pm
I didnt add it to stop ppl from stealing my graphics hun, I did it becuase my forum is for moms, and they didnt feel comfy posting pics of their children, I dont blame them either, but the no right click makes them feel better.  I wish there was a way to stop ppl from stealing stuff, esp pics of precious children and doing God knows what to them.  Again, I say maybe it's a false security but my forum isnt like your guys, mine is for moms and private talks about their lives and pics of their kids, not all are welcome on my forum either, I do an ISP check as well, but thats a whole other show, lol....my point being, I totally agree with you both, if anyone wants something bad enuff, they can and will take it, however, for those who dont know how to do all that stuff, I honestly feel it deters them from my forum, which I think is a good thing, again for the safety and comfort of my members.

Thanks for listening and I still luv ya both!! lol    :smitten:
Title: Re: No Right Clicking..............
Post by: simply sibyl on October 25, 2006, 05:35:48 pm
I didnt add it to stop ppl from stealing my graphics hun, I did it becuase my forum is for moms, and they didnt feel comfy posting pics of their children, I dont blame them either, but the no right click makes them feel better.  I wish there was a way to stop ppl from stealing stuff, esp pics of precious children and doing God knows what to them.  Again, I say maybe it's a false security but my forum isnt like your guys, mine is for moms and private talks about their lives and pics of their kids, not all are welcome on my forum either, I do an ISP check as well, but thats a whole other show, lol....my point being, I totally agree with you both, if anyone wants something bad enuff, they can and will take it, however, for those who dont know how to do all that stuff, I honestly feel it deters them from my forum, which I think is a good thing, again for the safety and comfort of my members.

Thanks for listening and I still luv ya both!! lol    :smitten:

I know you already have it set so that not much of your forum can be seen, and given its use, that IS wise and I do not blame you.    People do need to login to see it, and you could maybe set registration so that you have to approve it?   (I know that is a pain)
Title: Re: No Right Clicking..............
Post by: Sassy on October 25, 2006, 05:41:55 pm
I do have it set to that hun, thats what I said silly, lol....I do an ISP check before I allow a new member...I try to be the most cautious Admin I can, well, as much as I can do, lol

oops, gettin off topic, sowwy! :-X
Title: Re: No Right Clicking..............
Post by: simply sibyl on October 25, 2006, 05:44:27 pm
I do have it set to that hun, thats what I said silly, lol....I do an ISP check before I allow a new member...I try to be the most cautious Admin I can, well, as much as I can do, lol

oops, gettin off topic, sowwy! :-X
yeah i kinda pushed it off topic myself..

at any rate.. i dislike disabling right clicking.. but its only my humble opinion  :)
Title: Re: No Right Clicking..............
Post by: $H-GAGE$ on October 26, 2006, 06:35:23 am
OK OK.

I bit posting needed here....

Im using it NOT for every page but for some where i have spended writing infos on GBAs and DS and Wii and things like that. Coz ya kno, there r stupid chldrn in my class who kno NOTHIN about internet and web mastering so they take content from other sites.  And they r big suckrs so i need that for protecting my info. And they dont evn kno what Javascript is!  ;D They r nitwits!! i dont think anyone else than my frnds wud need to steal my content coz im a looser in writing good things  :-[
So, i guess ill just use the code on the page i have precious  ??? info .... but if u have any other better thing than plz tell me ...

Thanks sibl and cnc  :-*
Title: Re: No Right Clicking..............
Post by: $H-GAGE$ on October 26, 2006, 06:41:40 am
hey man, i just saw i had yahoo toolbar and if i disable right click than still if i highlight somethin than a small yahoo sign comes and if i click on it it says "copy" and i can copy the text .............. what!!!!!
Title: Re: No Right Clicking..............
Post by: simply sibyl on October 26, 2006, 06:50:25 am
hey man, i just saw i had yahoo toolbar and if i disable right click than still if i highlight somethin than a small yahoo sign comes and if i click on it it says "copy" and i can copy the text .............. what!!!!!

hi HGAGE :)

You can also drag across the words with the mouse  (left button) and use CTRL - C on the keyboard to copy.  ;)

Or.. do a print screen
Title: Re: No Right Clicking..............
Post by: Crasy on October 26, 2006, 02:00:58 pm
hey man, i just saw i had yahoo toolbar and if i disable right click than still if i highlight somethin than a small yahoo sign comes and if i click on it it says "copy" and i can copy the text .............. what!!!!!

The code is pretty much obsolete-ish. It can stop anyone that doesn't know anything about keyboard shortcuts or buttons on their browser.
Otherwise...useless.

There's very few ways you can protect data...other than copyrighting it or in the case of images, sticking a type of Anti-Rip protection right onto the image.
Title: Re: No Right Clicking..............
Post by: $H-GAGE$ on October 27, 2006, 08:05:13 am
Man  >:(
OK, i think my stuff can b stolen.......still thea are ppl who will recognixe it and report to me... :-*
Title: Re: No Right Clicking..............
Post by: punkrock on November 03, 2006, 12:01:15 am
if you want your stuff protected, then try this:
disable text selection on the page
This disables text selection on the page in IE5+, and to make the process more intuitive, changes the cursor to "not allowed" while the user is dragging the mouse to try and select text:
Code: [Select]
<body onSelectStart="this.style.cursor='not-allowed'; return false;"
onMouseup="this.style.cursor='default'">
i hope it helps! ;)

Title: Re: No Right Clicking..............
Post by: $H-GAGE$ on November 03, 2006, 04:26:59 am
yo thats ALOT!!!! punkrock! 3 cheers for ya!

 8) << punkrock
Title: Re: No Right Clicking..............
Post by: punkrock on November 03, 2006, 01:11:48 pm
your welcome! ;)
Title: Re: No Right Clicking..............
Post by: Sassy on November 03, 2006, 02:11:17 pm
awesome, thanks!!!