Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
Toggle Content
 
Forums ⇒ CMS (All) ⇒ Security :: Archives ⇒ disabling right click? :: Archived


disabling right click? :: Archived
Post any security related questions in here.
Please send discovered reports to security @ cpgnuke.com
Do Not post links to exploits or hacker sites - your post will be edited/deleted.
If you think you've been hacked, FIRST go through your server logs.

Go to page Previous  1, 2
Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  Security

Topic Archived View previous topic :: View next topic  
Author Message
safecracker4hire
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Nov 26, 2004
Posts: 525
Location: Ontario - CANADA
PostPosted: Fri Feb 11, 2005 5:18 pm
Post subject: Re: disabling right click?

Same for both FireFox and IE

FireFox (View -> Page Source)
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>
<base href="http://techtronicz.com/" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>TechtronicZ &gt; &gt; News</title>
<meta http-equiv="expires" content="0" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="author" content="TechtronicZ" />
<meta name="copyright" content="Copyright (c) 2005 by TechtronicZ" />

<meta name="robots" content="index, follow" />
<meta name="rating" content="general" />
<meta name="generator" content="CPG-Nuke - Copyright (c) 2005 by CPG-Nuke Development Team :: http://www.cpgnuke.com" />
<meta name="description" content="News Your Number One Resource " />
<meta name="keywords" content="news, new, headlines" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="shortcut icon" href="themes/cpgnuke/images/favicon.ico" type="image/x-icon" />
<script type="text/javascript">if (self != top) top.location.replace(self.location)</script>
<script language="JavaScript" type="text/javascript" src="includes/javascript/infobox.js"></script>
<script type="text/javascript" src="includes/javascript/blockscript.js"></script>

<link rel="copyright" href="index.php?name=Credits" title="Copyrights" />
<link rel="author" href="index.php?name=Members_List" title="Members List" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="rss/news2.php" />

<link rel="stylesheet" type="text/css" href="themes/cpgnuke/style/style.css" />
</head>

IE (View -> Source)

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>
<base href="http://techtronicz.com/" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>TechtronicZ &gt; &gt; News</title>
<meta http-equiv="expires" content="0" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="author" content="TechtronicZ" />
<meta name="copyright" content="Copyright (c) 2005 by TechtronicZ" />
<meta name="robots" content="index, follow" />
<meta name="rating" content="general" />
<meta name="generator" content="CPG-Nuke - Copyright (c) 2005 by CPG-Nuke Development Team :: http://www.cpgnuke.com" />
<meta name="description" content="News Your Number One Resource " />
<meta name="keywords" content="news, new, headlines" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="shortcut icon" href="themes/cpgnuke/images/favicon.ico" type="image/x-icon" />
<script type="text/javascript">if (self != top) top.location.replace(self.location)</script>
<script language="JavaScript" type="text/javascript" src="includes/javascript/infobox.js"></script>
<script type="text/javascript" src="includes/javascript/blockscript.js"></script>

<link rel="copyright" href="index.php?name=Credits" title="Copyrights" />
<link rel="author" href="index.php?name=Members_List" title="Members List" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="rss/news2.php" />
<link rel="stylesheet" type="text/css" href="themes/cpgnuke/style/ie.css" />
</head>


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
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
xfsunoles
XHTML Specialist
XHTML Specialist

Offline Offline
Joined: Apr 30, 2004
Posts: 2502
Location: Melbourne, Florida
PostPosted: Sat Feb 12, 2005 3:14 am
Post subject: Re: disabling right click?

rcorpuz wrote:
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.

there are way to bypass that script so easily.

_________________

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
View user's profile Visit poster's website AIM Address MSN Messenger Yahoo Messenger Photo Gallery
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Sat Feb 12, 2005 10:49 am
Post subject: Re: disabling right click?

C:\Documents and Settings\YOURNAME\Local Settings\Temporary Internet Files


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
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  Security
Page 2 of 2
All times are GMT
Go to page Previous  1, 2

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

Детальніше...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy