| Topic Archived |
View previous topic :: View next topic |
| Author |
Message |
obi1kinob3 Newbie


Offline Joined: Nov 04, 2004 Posts: 3
|
Posted: Thu Nov 04, 2004 7:55 am Post subject: disabling right click? |
|
G'day all.... is it possible to disable right click  if it is ... how
thanks heaps
obi1kinob3's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) OS/Apache/MySQL/PHP/CPGNuke versions
|
|
| Back to top |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Thu Nov 04, 2004 9:57 am Post subject: Re: disabling right click? |
|
it is possible for the "www for dummies" and soul that understands javascript can turn it off and then right click still works.
Also ever browsed your IE cache ? There is every single file you've downloaded
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
obi1kinob3 Newbie


Offline Joined: Nov 04, 2004 Posts: 3
|
Posted: Thu Nov 04, 2004 11:09 am Post subject: Re: disabling right click? |
|
hmmm ok ... then.. is there a code for php that could hide where my info/pics etc are coming from?
what im ultimately trying to do is stop people from viewing the source of my web pages (ie stop the hotlinking etc) .. i know that there are javascripts etc for html but i dont know of any for php ... does anyone know of any?
obi1kinob3's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) OS/Apache/MySQL/PHP/CPGNuke versions
|
|
| Back to top |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Thu Nov 04, 2004 7:08 pm Post subject: Re: disabling right click? |
|
search on this forum for "leaching" and "hotlink" it will show a few topics about htaccess preventions
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
masterbeta Translator


Offline Joined: May 12, 2004 Posts: 1049 Location: Reading, PA
|
Posted: Thu Nov 04, 2004 8:14 pm Post subject: Re: disabling right click? |
|
htaccess is the way to go, you can also contact your server folk for them to implement the "hotlinking" feature...
_________________ []D [] []\/[] []D
Check out my bear site - www.insidebear.com
masterbeta's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) RHL7 2.6.9-67.0.15ELsmp/A1.3.41(Unix)/MySQL4.1.22-standard/PHP5.2.5-ZO/Dragonfly 9.1.2.1
|
|
| Back to top |
|
 |
obi1kinob3 Newbie


Offline Joined: Nov 04, 2004 Posts: 3
|
Posted: Fri Nov 05, 2004 5:52 am Post subject: Re: disabling right click? |
|
thanks heaps
cheers
obi1kinob3's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) OS/Apache/MySQL/PHP/CPGNuke versions
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
|
| Back to top |
|
 |
Mel Forum Admin


Offline Joined: Jul 21, 2004 Posts: 1386 Location: Eastern Time Zone
|
|
| Back to top |
|
 |
Xamz Newbie


Offline Joined: Feb 07, 2005 Posts: 7 Location: uk
|
Posted: Thu Feb 10, 2005 2:56 pm Post subject: Re: disabling right click? |
|
nukecode have a no right click works like a charm with dragonfly
nukecode.com/modules.p...it&lid=629
Xamz's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) php
|
|
| Back to top |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Thu Feb 10, 2005 3:25 pm Post subject: Re: disabling right click? |
|
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
safecracker4hire 500+ Posts Club


Offline Joined: Nov 26, 2004 Posts: 525 Location: Ontario - CANADA
|
Posted: Thu Feb 10, 2005 4:06 pm Post subject: Re: disabling right click? |
|
Just go to your browsers menu and click View -> Page Source...
safecracker4hire's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) RHE Linux / 2.0.52 / 4.0.22 / 4.3.10 / 9.0.6.1-CVS
|
|
| Back to top |
|
 |
Xamz Newbie


Offline Joined: Feb 07, 2005 Posts: 7 Location: uk
|
Posted: Thu Feb 10, 2005 8:28 pm Post subject: Re: disabling right click? |
|
| Quote:: |
| no it doesn't techtronicz.com/images/tech.gif |
Thats my site??? confued
Xamz's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) php
|
|
| Back to top |
|
 |
xfsunoles XHTML Specialist


Offline Joined: Apr 30, 2004 Posts: 2502 Location: Melbourne, Florida
|
Posted: Thu Feb 10, 2005 8:39 pm Post subject: Re: disabling right click? |
|
JavaScript disable right click is useless, they are workaround of it in many way.
_________________

Firefox is my Favorite Browser
xfsunoles's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Apache/1.3.34 (Unix)/4.0.25-standard/4.4.1/CVS
|
|
| Back to top |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Thu Feb 10, 2005 9:12 pm Post subject: Re: disabling right click? |
|
And a bad implementation as well
| Code:: |
<SCRIPT LANGUAGE="javascript" SRC="scripts/norightclick1.js"> </SCRIPT> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" lang="en">
<head> |
1) not included inside the <head>
2) uppercased while XHTML must be lowercase
| safecracker4hire wrote: |
| View -> Page Source... |
Try that is in Firefox
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
rcorpuz Nice poster


Offline Joined: Dec 27, 2004 Posts: 84
|
Posted: Fri Feb 11, 2005 7:34 am Post subject: Re: disabling right click? |
|
How about this one?
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("Sorry, you do not have permission to right click.");
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;
// End -->
</script>
But ofcourse if they want to get it, there's always a way.
rcorpuz's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP/Apache2/MySQL4.0.23/PHP5.0.3/9.0.4
|
|
| Back to top |
|
 |
|
|