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 1, 2  Next
Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  Security

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

Offline Offline
Joined: Nov 04, 2004
Posts: 3

PostPosted: Thu Nov 04, 2004 7:55 am
Post subject: disabling right click?

G'day all.... is it possible to disable right click Confused if it is ... how Confused

thanks heaps


obi1kinob3's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
OS/Apache/MySQL/PHP/CPGNuke versions
Back to top
View user's profile
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: 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
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
obi1kinob3
Newbie
Newbie

Offline Offline
Joined: Nov 04, 2004
Posts: 3

PostPosted: 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
View user's profile
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: 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
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
masterbeta
Translator
Translator

Offline Offline
Joined: May 12, 2004
Posts: 1049
Location: Reading, PA
PostPosted: 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
View user's profile Visit poster's website
obi1kinob3
Newbie
Newbie

Offline Offline
Joined: Nov 04, 2004
Posts: 3

PostPosted: Fri Nov 05, 2004 5:52 am
Post subject: Re: disabling right click?

thanks heaps

cheers

Very Happy


obi1kinob3's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
OS/Apache/MySQL/PHP/CPGNuke versions
Back to top
View user's profile
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Fri Nov 05, 2004 3:47 pm
Post subject: Re: disabling right click?

If you have Cpanel, you probably already have the 'hotlinking' feature available, and yes, it's been covered many times Smile

_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
Mel
Forum Admin
Forum Admin

Offline Offline
Joined: Jul 21, 2004
Posts: 1386
Location: Eastern Time Zone
PostPosted: Sat Nov 06, 2004 12:03 am
Post subject: Re: disabling right click?

Here is a tuturial that might be helpful.

www.javascriptkit.com/...ss10.shtml

_________________
DF TIPS | Upgrade| Find Your Signature Specs|
"A bug in the code is worth two in the documentation. "


Mel please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile Visit poster's website
Xamz
Newbie
Newbie

Offline Offline
Joined: Feb 07, 2005
Posts: 7
Location: uk
PostPosted: 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
View user's profile Visit poster's website
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Thu Feb 10, 2005 3:25 pm
Post subject: Re: disabling right click?

no it doesn't techtronicz.com/images/tech.gif


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
safecracker4hire
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Nov 26, 2004
Posts: 525
Location: Ontario - CANADA
PostPosted: 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
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
Xamz
Newbie
Newbie

Offline Offline
Joined: Feb 07, 2005
Posts: 7
Location: uk
PostPosted: 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 Shocked


Xamz's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
php
Back to top
View user's profile Visit poster's website
xfsunoles
XHTML Specialist
XHTML Specialist

Offline Offline
Joined: Apr 30, 2004
Posts: 2502
Location: Melbourne, Florida
PostPosted: 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
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: 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 Wink


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
rcorpuz
Nice poster
Nice poster

Offline Offline
Joined: Dec 27, 2004
Posts: 84

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

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