GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How to disable right click on a website? (https://gfy.com/showthread.php?t=966905)

Si 05-05-2010 05:51 AM

How to disable right click on a website?
 
I've been trying to figure out how to disable right click on one of my websites.

Tried google, all the code I found and tried didn't work.

Also tried a wordpress plugin, think it was called "no copy" and that didn't work either.

Anyone got the correct code, or a decent wordpress plugin that actually works for doing this?

Thanks in advance :thumbsup

u-Bob 05-05-2010 06:13 AM

doesn't work....

grumpy 05-05-2010 06:18 AM

does it work here?
http://www.onlypee.com/index_onlypee.php

then copy the java

Barefootsies 05-05-2010 06:22 AM

Quote:

Originally Posted by u-Bob (Post 17108895)
doesn't work....

They will just get around it if they know how to disable java in browser.

However, not everyone know this.

seeandsee 05-05-2010 06:26 AM

just rencode your source code with simple shit

fris 05-05-2010 06:41 AM

do you not want them copying text? or viewing source code?

quantum-x 05-05-2010 06:52 AM

Don't bother. Seriously..

stephane76 05-05-2010 06:58 AM

Code:

<script language=JavaScript>
<!--
 
//Disable right mouse click Script
//By Maximus ([email protected]) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
 
var message="ENTER YOUR MESSAGE HERE";
 
///////////////////////////////////
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>

FROM http://www.dynamicdrive.com/dynamicindex11/noright.htm

Cheers :thumbsup

TeenCat 05-05-2010 07:02 AM

big sign in header "DO NOT USE RIGHT MOUSE BUTTON" may be enough :2 cents:

Serial Pervert 05-05-2010 07:28 AM

Quote:

Originally Posted by TeenCat (Post 17109016)
big sign in header "DO NOT USE RIGHT MOUSE BUTTON" may be enough :2 cents:

i don't think so, but...

Si 05-05-2010 07:28 AM

Quote:

Originally Posted by fris (Post 17108970)
do you not want them copying text? or viewing source code?

That would be nice, couldn't find anything that worked though :(

TeenCat 05-05-2010 07:31 AM

have you tried put there new blank layer? as its popular in galleries, when you click on thumb, only blank screen popups and pic is there, no reload. play with it, it may work ... :2 cents:

u-Bob 05-05-2010 07:32 AM

Quote:

Originally Posted by quantum-x (Post 17108993)
Don't bother. Seriously..

q f t

trying to disable right click, will only accomplish one thing: pissed of users.

JOKER 05-05-2010 07:34 AM

add this into your < body > tag:

onselectstart="return false" oncontextmenu="return false" ondragstart="return false"

Oracle Porn 05-05-2010 07:34 AM

1997 called....

SmokeyTheBear 05-05-2010 08:16 AM

trying to disable right click altogether or disable copy/paste ?

dmhubby 05-05-2010 08:19 AM

I think it's a waste of your time. Guys that want to save will save, the disable right click will not really stop anyone and just add a bunch of unnecessary Java script in your site.

grumpy 05-05-2010 08:22 AM

Quote:

Originally Posted by dmhubby (Post 17109339)
I think it's a waste of your time. Guys that want to save will save, the disable right click will not really stop anyone and just add a bunch of unnecessary Java script in your site.

if it only stops 10% it still stops 10%, but numbers are better :thumbsup

fris 05-05-2010 08:32 AM

Quote:

Originally Posted by Si (Post 17109091)
That would be nice, couldn't find anything that worked though :(

it was a question ;)

which is it you want to do

Vendzilla 05-05-2010 08:32 AM

If you disable right click, then you have to disable veiw source, good luck
But I get a lot of stuff at dynamicdrive.com

fris 05-05-2010 11:00 AM

http://wordpress.org/extend/plugins/jr-protection/

Quote:

This protection plugin gives you several ways to stop other users stealing your content!

There are three different ways of stopping users stealing it:

1.Disabling right-click
2.Disabling text selection
3.Disabling your RSS feed (So users cannot scrape your content).
This plugin has support for all of them, simply by editting the options
hope this helps

Si 05-06-2010 07:33 AM

Quote:

Originally Posted by fris (Post 17109844)

Nice one! thanks man :thumbsup


All times are GMT -7. The time now is 11:46 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123