Forums

This topic is locked

Deny Right Click Extention ?

Posted 09 Jan 2002 17:13:35
1
has voted
09 Jan 2002 17:13:35 Stephen Bateman posted:
Does anyone know where I can find an extention for inserting a "Right-Click" action to try and stop people stealing my content ? I have seen several Java scripts but would love a simple behavior to do this, as I have about 250 pages to do.

Thanks

GT

Replies

Replied 09 Jan 2002 20:45:09
09 Jan 2002 20:45:09 Kent Steelman replied:
An alternate solution might be to talk with the ISP that manages the web site and discuss with them solution on this matter. I seem to remember at www.macromedia.com that they suggest you changes the permisisons of the directories so that the users have only execute access. This may not be applicable with your site, but then again it may be another way to solve the same problem and then you do not have to write and insert a script for all 250 pages



Wm. Kent Steelman
Replied 09 Jan 2002 20:57:24
09 Jan 2002 20:57:24 Stephen Bateman replied:
Thanks, I will look into that as well.

The key thing is stopping people saving images easily...

GT
Replied 09 Jan 2002 22:47:32
09 Jan 2002 22:47:32 TC McFall replied:
Traveller....

in the absence of an extension, try the following:

firt of all, make a template for your site with the embedded code so that you don't have to worry about it in the future...

second, try going to Edit > Find and Replace (CTL + F) and set it to look for "Source Code" in "Entire local site" and replace your closing HEAD tag with the JS script + the closing HEAD tag.

Further....you really need to understand that you CANNOT PROTECT YOUR IMAGES. PERIOD. I am sorry if I am bursting a bubble, but the concept is simply flawed. Please realize that anything that they can view they already have on their hard-drive. We never really see anything that is on the net (per se)....we see it from our own cache. You might be making it a bit more difficult for them to see the source (along with tricks like no toolbars and auto-refresh to different pages, etc...) but you cannot stop them.
in fact, the effect that you are trying to achieve is, quite frankly, annoying. You will most likely incite them to try that much harder. This sort of code is (in my personal opinion) best left to the porn/warez sites.

good luck anyway!

<img src="www.chromehenge.com/images/monkey_smiley.gif" border=0>

~kr0m3

There are no "webmasters"...only "webstudents". Now, snatch the floppy from my hand, grasshopper.

Edited by - chromehenge on 09 Jan 2002 22:49:32
Replied 09 Jan 2002 22:55:18
09 Jan 2002 22:55:18 TC McFall replied:
to be specific....(i felt bad not offering an example!) <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>

replace:

<pre id=code><font face=courier size=2 id=code>&lt;/head&gt; </font id=code></pre id=code>

with:

<pre id=code><font face=courier size=2 id=code>&lt;script language="Javascript1.2"&gt;
message = "Function Disabled!";
function NoRightClick(b) {
if(((navigator.appName=="Microsoft Internet Explorer"&&(event.button &gt; 1))
||((navigator.appName=="Netscape"&&(b.which &gt; 1))){
alert(message);
return false;
}
}
document.onmousedown = NoRightClick;

// --&gt;
&lt;/script&gt;
&lt;/head&gt;</font id=code></pre id=code>


peace!
~kr0m3

There are no "webmasters"...only "webstudents". Now, snatch the floppy from my hand, grasshopper.
Replied 10 Jan 2002 13:25:46
10 Jan 2002 13:25:46 Kent Steelman replied:
I read something last night in a reference book about using server side behaviors to protect a page.... this might be another option. I will re-read and either para-phrase or scan in the page of the book and send to you.

Wm. Kent Steelman
Replied 15 Jan 2002 01:13:57
15 Jan 2002 01:13:57 Kent Steelman replied:
GT here is the information, late but as promised.....
Reference is SAM's Teach yourself DWUD in 21 Days.... Chapter 18 page 543

Open the page you want to protect
Open Server Behavior Palett
Click + and Choose Restrict Access to Page From User Authentication Submenu
Configure the Behavior to restrict access based on USERname and Passoword.

Kent

Wm. Kent Steelman
Replied 15 Jan 2002 19:02:45
15 Jan 2002 19:02:45 Kent Steelman replied:
Last alternative solution. Macromedia at www.macromedia.com has in it extention download section an extenion available for download that will allow the programmer to define the right click function. Title Right Click Menu Buiding Extention.

Wm. Kent Steelman

Reply to this topic